File: //snap/google-cloud-cli/396/lib/googlecloudsdk/schemas/networkservices/v1/HttpRouteCorsPolicy.yaml
$schema: "http://json-schema.org/draft-06/schema#"
title: networkservices v1 HttpRouteCorsPolicy 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
allowCredentials:
description: |-
In response to a preflight request, setting this to true indicates that
the actual request can include user credentials. This translates to the
Access-Control-Allow-Credentials header. Default value is false.
type: boolean
allowHeaders:
description: Specifies the content for Access-Control-Allow-Headers header.
type: array
items:
type: string
allowMethods:
description: |-
Specifies the content for Access-Control-Allow-Methods header.
type: array
items:
type: string
allowOriginRegexes:
description: |-
Specifies the regular expression patterns that match allowed
origins. For regular expression grammar, please see
https://github.com/google/re2/wiki/Syntax.
type: array
items:
type: string
allowOrigins:
description: |-
Specifies the list of origins that will be allowed to do CORS
requests. An origin is allowed if it matches either an item in
allow_origins or an item in allow_origin_regexes.
type: array
items:
type: string
disabled:
description: |-
If true, the CORS policy is disabled. The default value is
false, which indicates that the CORS policy is in effect.
type: boolean
exposeHeaders:
description: |-
Specifies the content for Access-Control-Expose-Headers
header.
type: array
items:
type: string
maxAge:
description: |-
Specifies how long result of a preflight request can
be cached in seconds. This translates to the Access-
Control-Max-Age header.
type: string