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

title: networkservices v1 MatchRule export schema
description: A gcloud export/import command YAML validation schema.
type: object
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
  fullPathMatch:
    description: |-
      To satisfy the `MatchRule` condition, the path of the request must exactly
      match the value specified in `full_path_match` after removing any query
      parameters and anchors that might be part of the original URL.
      `full_path_match` must begin with a `/`. The value must be between 1 and
      1024 characters, (inclusive). One of prefix_match, `full_path_match`, or
      path_template_match must be specified.
    type: string
  headerMatches:
    description: |-
      A list of HeaderMatch criteria, all of which must match corresponding
      headers in the request. You can specify up to three headers to match on.
    type: array
    items:
      $ref: HeaderMatch.yaml
  ignoreCase:
    description: |-
      Specifies that prefix_match and full_path_match matches are not case
      sensitive. The default value is `false`, which means that matches are
      case sensitive.
    type: boolean
  pathTemplateMatch:
    description: |-
      To satisfy the `MatchRule` condition, the path of the request must
      match the wildcard pattern specified in `path_template_match` after
      removing any query parameters and anchors that might be part of the
      original URL. `path_template_match` must be between 1 and 255
      characters (inclusive). The pattern specified by `path_template_match`
      can have at most 10 wildcard operators and 10 variable captures. One
      of prefix_match, full_path_match, or `path_template_match` must be
      specified.
    type: string
  prefixMatch:
    description: |-
      To satisfy the `MatchRule` condition, the request's path must begin
      with the specified `prefix_match`. `prefix_match` must begin with a
      `/`. The value must be between 1 and 1024 characters (inclusive). One
      of `prefix_match`, full_path_match, or path_template_match must be
      specified.
    type: string
  queryParameterMatches:
    description: |-
      A list of QueryParameterMatcher criteria, all of which must match
      corresponding query parameters in the request. You can specify up to
      five query parameters to match on.
    type: array
    items:
      $ref: QueryParameterMatcher.yaml
