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

title: networkservices v1 Mesh export schema
description: A gcloud export/import command YAML validation schema.
type: object
required:
- 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
  description:
    description: |-
      A free-text description of the resource. Max length 1024 characters.
    type: string
  envoyHeaders:
    description: |-
      Determines if envoy will insert internal debug headers into upstream
      requests. Other Envoy headers may still be injected. By default, envoy
      will not insert any debug headers.
    type: string
    enum:
    - DEBUG_HEADERS
    - ENVOY_HEADERS_UNSPECIFIED
    - NONE
  interceptionPort:
    description: |-
      If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to
      listen on the specified port of localhost (127.0.0.1) address. The SIDECAR
      proxy will expect all traffic to be redirected to this port regardless of
      its actual ip:port destination. If unset, a port '15001' is used as the
      interception port. This is applicable only for sidecar proxy deployments.
    type: integer
  labels:
    description: Set of label tags associated with the Mesh resource.
    $ref: LabelsValue.yaml
  name:
    description: |-
      Name of the Mesh resource. It matches pattern
      `projects/*/locations/global/meshes/`.
    type: string
