# At this time we are externalizing the config as we don't actually use the http gateway and this keeps the dependency
# isolated to only use. If we do choose to annotate instead of extern we should revisit this and introduce 'buf' for our depends.
openapiOptions:
  file:
    # We only specify one here as we merge files for our configuration
    - file: "active-regions/active_regions.proto"
      option:
        info:
          title: service-dal
          description: "DAL is currently a GRPC ONLY backend service whose goal is to support internal backend teams. This documentation uses http verbiage to conform to swagger standards although NO http gateway is present.This should be considered informational only. 
          Please see authorize for required app_name (all) and auth_token (write) headers."
          contact:
            name: Internal Platform @ Slack
            url: https://plutotv.slack.com/archives/C03SF7PHSAH
        consumes:
          - application/json
        produces:
          - application/json
        securityDefinitions:
          security:
            AuthTokenApiKey:
              type: TYPE_API_KEY
              name: auth_token
              in: IN_HEADER
              description: "client token required for write access"
            AppNameApiKey:
              type: TYPE_API_KEY
              name: app_name
              in: IN_HEADER
              description: "required for all access"
        security:
          - securityRequirement:
              AppNameApiKey: {}
        externalDocs:
          description: Internal Platform DAL Confluence
          url: https://plutotv.atlassian.net/wiki/spaces/IS/pages/2475360730/Internal+Platform+-+DAL
  # anything deprecated should go here as we can't express deprecation in service_config.yaml
  method:
  - method: channelpackage.ChannelManager.GetChannelById
    option:
      deprecated: true
  - method: clippackage.ClipManager.GetClipsByIds
    option:
      deprecated: true
  - method: episodepackage.EpisodeManager.GetEpisodeById
    option:
      deprecated: true
  - method: partnerpackage.PartnerManager.GetPartnersByIds
    option:
      deprecated: true
  - method: seriespackage.SeriesManager.GetSeriesById
    option:
      deprecated: true
  - method: timelinepackage.TimelineManager.GetTimelineById
    option:
      deprecated: true
