1$schema: "http://json-schema.org/draft-06/schema#"
2
3title: compute beta BackendServiceFailoverPolicy export schema
4description: A gcloud export/import command YAML validation schema.
5type: object
6additionalProperties: false
7properties:
8  COMMENT:
9    type: object
10    description: User specified info ignored by gcloud import.
11    additionalProperties: false
12    properties:
13      template-id:
14        type: string
15      region:
16        type: string
17      description:
18        type: string
19      date:
20        type: string
21      version:
22        type: string
23  UNKNOWN:
24    type: array
25    description: Unknown API fields that cannot be imported.
26    items:
27      type: string
28  disableConnectionDrainOnFailover:
29    description: |-
30      This can be set to true only if the protocol is TCP.  The default is
31      false.
32    type: boolean
33  dropTrafficIfUnhealthy:
34    description: |-
35      Applicable only to Failover for Internal TCP/UDP Load Balancing. If set to
36      true, connections to the load balancer are dropped when all primary and
37      all backup backend VMs are unhealthy. If set to false, connections are
38      distributed among all primary VMs when all primary and all backup backend
39      VMs are unhealthy.  The default is false.
40    type: boolean
41  failoverRatio:
42    description: |-
43      Applicable only to Failover for Internal TCP/UDP Load Balancing. The value
44      of the field must be in the range [0, 1]. If the value is 0, the load
45      balancer performs a failover when the number of healthy primary VMs equals
46      zero. For all other values, the load balancer performs a failover when the
47      total number of healthy primary VMs is less than this ratio.
48    type: number
49