$schema: "http://json-schema.org/draft-06/schema#"

title: networkservices v1 ExtensionChain export schema
description: A gcloud export/import command YAML validation schema.
type: object
required:
- extensions
- matchCondition
- name
additionalProperties: false
properties:
  COMMENT:
    type: object
    description: User specified info ignored by gcloud import.
    additionalProperties: false
    properties:
      template-id:
        type: string
      region:
        type: string
      description:
        type: string
      date:
        type: string
      version:
        type: string
  UNKNOWN:
    type: array
    description: Unknown API fields that cannot be imported.
    items:
      type: string
  extensions:
    description: |-
      A set of extensions to execute for the matching request. At least one
      extension is required. Up to 3 extensions can be defined for each
      extension chain for `LbTrafficExtension` resource. `LbRouteExtension`
      chains are limited to 1 extension per extension chain.
    type: array
    items:
      $ref: ExtensionChainExtension.yaml
  matchCondition:
    description: Conditions under which this chain is invoked for a request.
    $ref: ExtensionChainMatchCondition.yaml
  name:
    description: |-
      The name for this extension chain. The name is logged as part of the
      HTTP request logs. The name must conform with RFC-1034, is restricted
      to lower-cased letters, numbers and hyphens, and can have a maximum
      length of 63 characters. Additionally, the first character must be a
      letter and the last a letter or a number.
    type: string
