From 4420d0a49ec9d166e5993804b1c89f5172425716 Mon Sep 17 00:00:00 2001 From: DCL Team Date: Fri, 5 Aug 2022 12:41:09 -0700 Subject: [PATCH] Automated DCL import. - d3c8f16a078d0ffb0707bf59490e3b78d062a0ef Automatic import from cloud_mmv2_dcl_20220805_1231_RC00 by DCL Team GitOrigin-RevId: d3c8f16a078d0ffb0707bf59490e3b78d062a0ef --- .../services/compute/alpha/forwarding_rule.py | 9 -- .../services/compute/beta/forwarding_rule.py | 9 -- python/services/compute/forwarding_rule.py | 9 -- services/google/bigquery/alpha/routine.yaml | 1 + .../alpha/routine_alpha_yaml_embed.go | 6 +- .../google/bigquery/alpha/routine_schema.go | 9 +- services/google/bigquery/beta/routine.yaml | 1 + .../bigquery/beta/routine_beta_yaml_embed.go | 6 +- .../google/bigquery/beta/routine_schema.go | 9 +- services/google/bigquery/routine.yaml | 1 + services/google/bigquery/routine_schema.go | 9 +- .../google/bigquery/routine_yaml_embed.go | 6 +- .../google/billingbudgets/alpha/budget.yaml | 1 + .../alpha/budget_alpha_yaml_embed.go | 6 +- .../billingbudgets/alpha/budget_schema.go | 9 +- .../google/billingbudgets/beta/budget.yaml | 1 + .../beta/budget_beta_yaml_embed.go | 6 +- .../billingbudgets/beta/budget_schema.go | 9 +- services/google/billingbudgets/budget.yaml | 1 + .../google/billingbudgets/budget_schema.go | 9 +- .../billingbudgets/budget_yaml_embed.go | 6 +- .../binaryauthorization/alpha/attestor.yaml | 1 + .../alpha/attestor_alpha_yaml_embed.go | 6 +- .../alpha/attestor_schema.go | 7 +- .../google/binaryauthorization/attestor.yaml | 1 + .../binaryauthorization/attestor_schema.go | 7 +- .../attestor_yaml_embed.go | 6 +- .../binaryauthorization/beta/attestor.yaml | 1 + .../beta/attestor_beta_yaml_embed.go | 6 +- .../beta/attestor_schema.go | 7 +- .../google/cloudfunctions/alpha/function.yaml | 4 + .../alpha/function_alpha_yaml_embed.go | 6 +- .../cloudfunctions/alpha/function_schema.go | 34 ++++---- .../google/cloudfunctions/beta/function.yaml | 4 + .../beta/function_beta_yaml_embed.go | 6 +- .../cloudfunctions/beta/function_schema.go | 34 ++++---- services/google/cloudfunctions/function.yaml | 4 + .../google/cloudfunctions/function_schema.go | 34 ++++---- .../cloudfunctions/function_yaml_embed.go | 6 +- .../google/cloudidentity/alpha/group.yaml | 1 + .../alpha/group_alpha_yaml_embed.go | 6 +- .../cloudidentity/alpha/group_schema.go | 7 +- .../cloudidentity/alpha/membership.yaml | 1 + .../alpha/membership_alpha_yaml_embed.go | 6 +- .../cloudidentity/alpha/membership_schema.go | 9 +- services/google/cloudidentity/beta/group.yaml | 1 + .../beta/group_beta_yaml_embed.go | 6 +- .../google/cloudidentity/beta/group_schema.go | 7 +- .../google/cloudidentity/beta/membership.yaml | 1 + .../beta/membership_beta_yaml_embed.go | 6 +- .../cloudidentity/beta/membership_schema.go | 9 +- services/google/cloudidentity/group.yaml | 1 + services/google/cloudidentity/group_schema.go | 7 +- .../google/cloudidentity/group_yaml_embed.go | 6 +- services/google/cloudscheduler/alpha/job.yaml | 1 + .../alpha/job_alpha_yaml_embed.go | 6 +- .../google/cloudscheduler/alpha/job_schema.go | 7 +- services/google/cloudscheduler/beta/job.yaml | 1 + .../beta/job_beta_yaml_embed.go | 6 +- .../google/cloudscheduler/beta/job_schema.go | 7 +- services/google/cloudscheduler/job.yaml | 1 + services/google/cloudscheduler/job_schema.go | 7 +- .../google/cloudscheduler/job_yaml_embed.go | 6 +- .../google/compute/alpha/forwarding_rule.yaml | 2 + .../alpha/forwarding_rule_alpha_yaml_embed.go | 6 +- .../compute/alpha/forwarding_rule_internal.go | 10 +-- .../compute/alpha/forwarding_rule_schema.go | 12 +-- services/google/compute/alpha/instance.yaml | 9 ++ .../alpha/instance_alpha_yaml_embed.go | 6 +- .../compute/alpha/instance_group_manager.yaml | 3 + ...instance_group_manager_alpha_yaml_embed.go | 6 +- .../alpha/instance_group_manager_schema.go | 25 +++--- .../google/compute/alpha/instance_schema.go | 87 ++++++++++--------- services/google/compute/alpha/network.yaml | 2 + .../compute/alpha/network_alpha_yaml_embed.go | 6 +- .../google/compute/alpha/network_schema.go | 22 ++--- .../compute/alpha/packet_mirroring.yaml | 1 + .../packet_mirroring_alpha_yaml_embed.go | 6 +- .../compute/alpha/packet_mirroring_schema.go | 9 +- .../google/compute/beta/forwarding_rule.yaml | 2 + .../beta/forwarding_rule_beta_yaml_embed.go | 6 +- .../compute/beta/forwarding_rule_internal.go | 10 +-- .../compute/beta/forwarding_rule_schema.go | 12 +-- services/google/compute/beta/instance.yaml | 9 ++ .../compute/beta/instance_beta_yaml_embed.go | 6 +- .../compute/beta/instance_group_manager.yaml | 3 + .../instance_group_manager_beta_yaml_embed.go | 6 +- .../beta/instance_group_manager_schema.go | 25 +++--- .../google/compute/beta/instance_schema.go | 87 ++++++++++--------- services/google/compute/beta/network.yaml | 2 + .../compute/beta/network_beta_yaml_embed.go | 6 +- .../google/compute/beta/network_schema.go | 22 ++--- .../google/compute/beta/packet_mirroring.yaml | 1 + .../beta/packet_mirroring_beta_yaml_embed.go | 6 +- .../compute/beta/packet_mirroring_schema.go | 9 +- services/google/compute/forwarding_rule.yaml | 2 + .../compute/forwarding_rule_internal.go | 10 +-- .../google/compute/forwarding_rule_schema.go | 12 +-- .../compute/forwarding_rule_yaml_embed.go | 6 +- services/google/compute/instance.yaml | 9 ++ .../compute/instance_group_manager.yaml | 3 + .../compute/instance_group_manager_schema.go | 25 +++--- .../instance_group_manager_yaml_embed.go | 6 +- services/google/compute/instance_schema.go | 87 ++++++++++--------- .../google/compute/instance_yaml_embed.go | 6 +- services/google/compute/network.yaml | 2 + services/google/compute/network_schema.go | 22 ++--- services/google/compute/network_yaml_embed.go | 6 +- services/google/compute/packet_mirroring.yaml | 1 + .../google/compute/packet_mirroring_schema.go | 9 +- .../compute/packet_mirroring_yaml_embed.go | 6 +- services/google/dataplex/alpha/asset.yaml | 6 +- .../dataplex/alpha/asset_alpha_yaml_embed.go | 6 +- .../google/dataplex/alpha/asset_internal.go | 2 +- .../google/dataplex/alpha/asset_schema.go | 25 +++--- services/google/dataplex/alpha/zone.yaml | 2 + .../dataplex/alpha/zone_alpha_yaml_embed.go | 6 +- services/google/dataplex/alpha/zone_schema.go | 18 ++-- services/google/dataplex/asset.yaml | 6 +- services/google/dataplex/asset_internal.go | 2 +- services/google/dataplex/asset_schema.go | 25 +++--- services/google/dataplex/asset_yaml_embed.go | 6 +- services/google/dataplex/beta/asset.yaml | 6 +- .../dataplex/beta/asset_beta_yaml_embed.go | 6 +- .../google/dataplex/beta/asset_internal.go | 2 +- services/google/dataplex/beta/asset_schema.go | 25 +++--- services/google/dataplex/beta/zone.yaml | 2 + .../dataplex/beta/zone_beta_yaml_embed.go | 6 +- services/google/dataplex/beta/zone_schema.go | 18 ++-- services/google/dataplex/zone.yaml | 2 + services/google/dataplex/zone_schema.go | 18 ++-- services/google/dataplex/zone_yaml_embed.go | 6 +- .../dataproc/alpha/autoscaling_policy.yaml | 4 + .../autoscaling_policy_alpha_yaml_embed.go | 6 +- .../alpha/autoscaling_policy_schema.go | 34 ++++---- services/google/dataproc/alpha/cluster.yaml | 7 ++ .../alpha/cluster_alpha_yaml_embed.go | 6 +- .../google/dataproc/alpha/cluster_schema.go | 73 +++++++++------- .../google/dataproc/autoscaling_policy.yaml | 4 + .../dataproc/autoscaling_policy_schema.go | 34 ++++---- .../dataproc/autoscaling_policy_yaml_embed.go | 6 +- .../dataproc/beta/autoscaling_policy.yaml | 4 + .../autoscaling_policy_beta_yaml_embed.go | 6 +- .../beta/autoscaling_policy_schema.go | 34 ++++---- services/google/dataproc/beta/cluster.yaml | 7 ++ .../dataproc/beta/cluster_beta_yaml_embed.go | 6 +- .../google/dataproc/beta/cluster_schema.go | 73 +++++++++------- services/google/dataproc/cluster.yaml | 7 ++ services/google/dataproc/cluster_schema.go | 73 +++++++++------- .../google/dataproc/cluster_yaml_embed.go | 6 +- services/google/gkehub/alpha/membership.yaml | 2 + .../alpha/membership_alpha_yaml_embed.go | 6 +- .../google/gkehub/alpha/membership_schema.go | 16 ++-- services/google/gkehub/beta/membership.yaml | 2 + .../gkehub/beta/membership_beta_yaml_embed.go | 6 +- .../google/gkehub/beta/membership_schema.go | 16 ++-- services/google/iam/alpha/workforce_pool.yaml | 1 + .../alpha/workforce_pool_alpha_yaml_embed.go | 6 +- .../google/iam/alpha/workforce_pool_schema.go | 7 +- services/google/iam/beta/workforce_pool.yaml | 1 + .../beta/workforce_pool_beta_yaml_embed.go | 6 +- .../google/iam/beta/workforce_pool_schema.go | 7 +- services/google/iam/workforce_pool.yaml | 1 + services/google/iam/workforce_pool_schema.go | 7 +- .../google/iam/workforce_pool_yaml_embed.go | 6 +- .../google/identitytoolkit/alpha/config.yaml | 9 ++ .../alpha/config_alpha_yaml_embed.go | 6 +- .../identitytoolkit/alpha/config_schema.go | 83 ++++++++++-------- .../alpha/oauth_idp_config.yaml | 1 + .../oauth_idp_config_alpha_yaml_embed.go | 6 +- .../alpha/oauth_idp_config_schema.go | 9 +- .../alpha/tenant_oauth_idp_config.yaml | 1 + ...enant_oauth_idp_config_alpha_yaml_embed.go | 6 +- .../alpha/tenant_oauth_idp_config_schema.go | 9 +- .../google/identitytoolkit/beta/config.yaml | 9 ++ .../beta/config_beta_yaml_embed.go | 6 +- .../identitytoolkit/beta/config_schema.go | 83 ++++++++++-------- .../beta/oauth_idp_config.yaml | 1 + .../beta/oauth_idp_config_beta_yaml_embed.go | 6 +- .../beta/oauth_idp_config_schema.go | 9 +- .../beta/tenant_oauth_idp_config.yaml | 1 + ...tenant_oauth_idp_config_beta_yaml_embed.go | 6 +- .../beta/tenant_oauth_idp_config_schema.go | 9 +- services/google/identitytoolkit/config.yaml | 9 ++ .../google/identitytoolkit/config_schema.go | 83 ++++++++++-------- .../identitytoolkit/config_yaml_embed.go | 6 +- .../identitytoolkit/oauth_idp_config.yaml | 1 + .../oauth_idp_config_schema.go | 9 +- .../oauth_idp_config_yaml_embed.go | 6 +- .../tenant_oauth_idp_config.yaml | 1 + .../tenant_oauth_idp_config_schema.go | 9 +- .../tenant_oauth_idp_config_yaml_embed.go | 6 +- services/google/logging/alpha/log_metric.yaml | 1 + .../alpha/log_metric_alpha_yaml_embed.go | 6 +- .../google/logging/alpha/log_metric_schema.go | 7 +- services/google/logging/beta/log_metric.yaml | 1 + .../beta/log_metric_beta_yaml_embed.go | 6 +- .../google/logging/beta/log_metric_schema.go | 7 +- services/google/logging/log_metric.yaml | 1 + services/google/logging/log_metric_schema.go | 7 +- .../google/logging/log_metric_yaml_embed.go | 6 +- services/google/run/alpha/job.yaml | 2 + .../google/run/alpha/job_alpha_yaml_embed.go | 6 +- services/google/run/alpha/job_schema.go | 18 ++-- services/google/run/alpha/service.yaml | 5 ++ .../run/alpha/service_alpha_yaml_embed.go | 6 +- services/google/run/alpha/service_schema.go | 43 +++++---- .../google/vpcaccess/alpha/connector.yaml | 5 ++ .../alpha/connector_alpha_yaml_embed.go | 6 +- .../vpcaccess/alpha/connector_schema.go | 53 ++++++----- services/google/vpcaccess/beta/connector.yaml | 5 ++ .../beta/connector_beta_yaml_embed.go | 6 +- .../google/vpcaccess/beta/connector_schema.go | 53 ++++++----- services/google/vpcaccess/connector.yaml | 5 ++ services/google/vpcaccess/connector_schema.go | 53 ++++++----- .../google/vpcaccess/connector_yaml_embed.go | 6 +- 216 files changed, 1362 insertions(+), 1066 deletions(-) diff --git a/python/services/compute/alpha/forwarding_rule.py b/python/services/compute/alpha/forwarding_rule.py index 7566436e17..f419d016d1 100755 --- a/python/services/compute/alpha/forwarding_rule.py +++ b/python/services/compute/alpha/forwarding_rule.py @@ -70,7 +70,6 @@ def __init__( self.network_tier = network_tier self.port_range = port_range self.ports = ports - self.region = region self.service_label = service_label self.subnetwork = subnetwork self.target = target @@ -146,9 +145,6 @@ def apply(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -287,9 +283,6 @@ def delete(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -374,8 +367,6 @@ def to_proto(self): resource.port_range = Primitive.to_proto(self.port_range) if Primitive.to_proto(self.ports): resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - resource.region = Primitive.to_proto(self.region) if Primitive.to_proto(self.service_label): resource.service_label = Primitive.to_proto(self.service_label) if Primitive.to_proto(self.subnetwork): diff --git a/python/services/compute/beta/forwarding_rule.py b/python/services/compute/beta/forwarding_rule.py index c38c6bbe0c..0144fa16d9 100755 --- a/python/services/compute/beta/forwarding_rule.py +++ b/python/services/compute/beta/forwarding_rule.py @@ -70,7 +70,6 @@ def __init__( self.network_tier = network_tier self.port_range = port_range self.ports = ports - self.region = region self.service_label = service_label self.subnetwork = subnetwork self.target = target @@ -146,9 +145,6 @@ def apply(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -287,9 +283,6 @@ def delete(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -374,8 +367,6 @@ def to_proto(self): resource.port_range = Primitive.to_proto(self.port_range) if Primitive.to_proto(self.ports): resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - resource.region = Primitive.to_proto(self.region) if Primitive.to_proto(self.service_label): resource.service_label = Primitive.to_proto(self.service_label) if Primitive.to_proto(self.subnetwork): diff --git a/python/services/compute/forwarding_rule.py b/python/services/compute/forwarding_rule.py index 88b975a668..a556c64a2a 100755 --- a/python/services/compute/forwarding_rule.py +++ b/python/services/compute/forwarding_rule.py @@ -70,7 +70,6 @@ def __init__( self.network_tier = network_tier self.port_range = port_range self.ports = ports - self.region = region self.service_label = service_label self.subnetwork = subnetwork self.target = target @@ -146,9 +145,6 @@ def apply(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -287,9 +283,6 @@ def delete(self): if Primitive.to_proto(self.ports): request.resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - request.resource.region = Primitive.to_proto(self.region) - if Primitive.to_proto(self.service_label): request.resource.service_label = Primitive.to_proto(self.service_label) @@ -374,8 +367,6 @@ def to_proto(self): resource.port_range = Primitive.to_proto(self.port_range) if Primitive.to_proto(self.ports): resource.ports.extend(Primitive.to_proto(self.ports)) - if Primitive.to_proto(self.region): - resource.region = Primitive.to_proto(self.region) if Primitive.to_proto(self.service_label): resource.service_label = Primitive.to_proto(self.service_label) if Primitive.to_proto(self.subnetwork): diff --git a/services/google/bigquery/alpha/routine.yaml b/services/google/bigquery/alpha/routine.yaml index bf7a377544..10a793af21 100755 --- a/services/google/bigquery/alpha/routine.yaml +++ b/services/google/bigquery/alpha/routine.yaml @@ -258,6 +258,7 @@ components: x-dcl-go-type: RoutineLanguageEnum description: 'Optional. Defaults to "SQL". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT' + x-dcl-server-default: true enum: - LANGUAGE_UNSPECIFIED - SQL diff --git a/services/google/bigquery/alpha/routine_alpha_yaml_embed.go b/services/google/bigquery/alpha/routine_alpha_yaml_embed.go index 2867419050..63e99efece 100755 --- a/services/google/bigquery/alpha/routine_alpha_yaml_embed.go +++ b/services/google/bigquery/alpha/routine_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigquery/alpha/routine.yaml -var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") +var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n x-dcl-server-default: true\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") -// 10606 bytes -// MD5: 19e7c2f83114048d14011b126770df35 +// 10643 bytes +// MD5: e8e45472f4e07c9f0de8e587f0e22888 diff --git a/services/google/bigquery/alpha/routine_schema.go b/services/google/bigquery/alpha/routine_schema.go index c7e772742c..687c1c7cb8 100755 --- a/services/google/bigquery/alpha/routine_schema.go +++ b/services/google/bigquery/alpha/routine_schema.go @@ -301,10 +301,11 @@ func DCLRoutineSchema() *dcl.Schema { }, }, "language": &dcl.Property{ - Type: "string", - GoName: "Language", - GoType: "RoutineLanguageEnum", - Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + Type: "string", + GoName: "Language", + GoType: "RoutineLanguageEnum", + Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + ServerDefault: true, Enum: []string{ "LANGUAGE_UNSPECIFIED", "SQL", diff --git a/services/google/bigquery/beta/routine.yaml b/services/google/bigquery/beta/routine.yaml index bf7a377544..10a793af21 100755 --- a/services/google/bigquery/beta/routine.yaml +++ b/services/google/bigquery/beta/routine.yaml @@ -258,6 +258,7 @@ components: x-dcl-go-type: RoutineLanguageEnum description: 'Optional. Defaults to "SQL". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT' + x-dcl-server-default: true enum: - LANGUAGE_UNSPECIFIED - SQL diff --git a/services/google/bigquery/beta/routine_beta_yaml_embed.go b/services/google/bigquery/beta/routine_beta_yaml_embed.go index cd86642b5a..5dfedf376e 100755 --- a/services/google/bigquery/beta/routine_beta_yaml_embed.go +++ b/services/google/bigquery/beta/routine_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigquery/beta/routine.yaml -var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") +var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n x-dcl-server-default: true\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") -// 10606 bytes -// MD5: 19e7c2f83114048d14011b126770df35 +// 10643 bytes +// MD5: e8e45472f4e07c9f0de8e587f0e22888 diff --git a/services/google/bigquery/beta/routine_schema.go b/services/google/bigquery/beta/routine_schema.go index 53ba2bee2e..3737fa880b 100755 --- a/services/google/bigquery/beta/routine_schema.go +++ b/services/google/bigquery/beta/routine_schema.go @@ -301,10 +301,11 @@ func DCLRoutineSchema() *dcl.Schema { }, }, "language": &dcl.Property{ - Type: "string", - GoName: "Language", - GoType: "RoutineLanguageEnum", - Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + Type: "string", + GoName: "Language", + GoType: "RoutineLanguageEnum", + Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + ServerDefault: true, Enum: []string{ "LANGUAGE_UNSPECIFIED", "SQL", diff --git a/services/google/bigquery/routine.yaml b/services/google/bigquery/routine.yaml index bf7a377544..10a793af21 100755 --- a/services/google/bigquery/routine.yaml +++ b/services/google/bigquery/routine.yaml @@ -258,6 +258,7 @@ components: x-dcl-go-type: RoutineLanguageEnum description: 'Optional. Defaults to "SQL". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT' + x-dcl-server-default: true enum: - LANGUAGE_UNSPECIFIED - SQL diff --git a/services/google/bigquery/routine_schema.go b/services/google/bigquery/routine_schema.go index 83233456b0..1bf65366b9 100755 --- a/services/google/bigquery/routine_schema.go +++ b/services/google/bigquery/routine_schema.go @@ -301,10 +301,11 @@ func DCLRoutineSchema() *dcl.Schema { }, }, "language": &dcl.Property{ - Type: "string", - GoName: "Language", - GoType: "RoutineLanguageEnum", - Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + Type: "string", + GoName: "Language", + GoType: "RoutineLanguageEnum", + Description: "Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED, SQL, JAVASCRIPT", + ServerDefault: true, Enum: []string{ "LANGUAGE_UNSPECIFIED", "SQL", diff --git a/services/google/bigquery/routine_yaml_embed.go b/services/google/bigquery/routine_yaml_embed.go index 441a1ec38f..3c3233b564 100755 --- a/services/google/bigquery/routine_yaml_embed.go +++ b/services/google/bigquery/routine_yaml_embed.go @@ -17,7 +17,7 @@ package bigquery // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/bigquery/routine.yaml -var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") +var YAML_routine = []byte("info:\n title: Bigquery/Routine\n description: The Bigquery Routine resource\n x-dcl-struct-name: Routine\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n apply:\n description: The function used to apply information about a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n delete:\n description: The function used to delete a Routine\n parameters:\n - name: Routine\n required: true\n description: A full instance of a Routine\n deleteAll:\n description: The function used to delete all Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Routine\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: dataset\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ArgumentsDataType:\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n x-dcl-go-name: DataType\n x-dcl-go-type: RoutineArgumentsDataType\n description: Required unless argument_kind = ANY_TYPE.\n x-kubernetes-immutable: true\n required:\n - typeKind\n properties:\n arrayElementType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ArrayElementType\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - structType\n structType:\n type: object\n x-dcl-go-name: StructType\n x-dcl-go-type: RoutineArgumentsDataTypeStructType\n description: The fields of this struct, in order, if type_kind = \"STRUCT\".\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - arrayElementType\n properties:\n fields:\n type: array\n x-dcl-go-name: Fields\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArgumentsDataTypeStructTypeFields\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this field. Can be absent for\n struct fields.\n x-kubernetes-immutable: true\n type:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: Type\n x-kubernetes-immutable: true\n typeKind:\n type: string\n x-dcl-go-name: TypeKind\n x-dcl-go-type: RoutineArgumentsDataTypeTypeKindEnum\n description: 'Required. The top level type of this field. Can be any standard\n SQL data type (e.g., \"INT64\", \"DATE\", \"ARRAY\"). Possible values: TYPE_KIND_UNSPECIFIED,\n INT64, BOOL, FLOAT64, STRING, BYTES, TIMESTAMP, DATE, TIME, DATETIME,\n INTERVAL, GEOGRAPHY, NUMERIC, BIGNUMERIC, JSON, ARRAY, STRUCT'\n x-kubernetes-immutable: true\n enum:\n - TYPE_KIND_UNSPECIFIED\n - INT64\n - BOOL\n - FLOAT64\n - STRING\n - BYTES\n - TIMESTAMP\n - DATE\n - TIME\n - DATETIME\n - INTERVAL\n - GEOGRAPHY\n - NUMERIC\n - BIGNUMERIC\n - JSON\n - ARRAY\n - STRUCT\n Routine:\n title: Routine\n x-dcl-id: projects/{{project}}/datasets/{{dataset}}/routines/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - dataset\n - routineType\n - definitionBody\n properties:\n arguments:\n type: array\n x-dcl-go-name: Arguments\n description: Optional.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: RoutineArguments\n properties:\n argumentKind:\n type: string\n x-dcl-go-name: ArgumentKind\n x-dcl-go-type: RoutineArgumentsArgumentKindEnum\n description: 'Optional. Defaults to FIXED_TYPE. Possible values: ARGUMENT_KIND_UNSPECIFIED,\n FIXED_TYPE, ANY_TYPE'\n enum:\n - ARGUMENT_KIND_UNSPECIFIED\n - FIXED_TYPE\n - ANY_TYPE\n dataType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: DataType\n x-kubernetes-immutable: true\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: RoutineArgumentsModeEnum\n description: 'Optional. Specifies whether the argument is input or\n output. Can be set for procedures only. Possible values: MODE_UNSPECIFIED,\n IN, OUT, INOUT'\n enum:\n - MODE_UNSPECIFIED\n - IN\n - OUT\n - INOUT\n name:\n type: string\n x-dcl-go-name: Name\n description: Optional. The name of this argument. Can be absent for\n function return argument.\n creationTime:\n type: integer\n format: int64\n x-dcl-go-name: CreationTime\n readOnly: true\n description: Output only. The time when this routine was created, in milliseconds\n since the epoch.\n x-kubernetes-immutable: true\n dataset:\n type: string\n x-dcl-go-name: Dataset\n description: Required. The ID of the dataset containing this routine.\n x-dcl-references:\n - resource: Bigquery/Dataset\n field: name\n parent: true\n definitionBody:\n type: string\n x-dcl-go-name: DefinitionBody\n description: \"Required. The body of the routine. For functions, this is\n the expression in the AS clause. If language=SQL, it is the substring\n inside (but excluding) the parentheses. For example, for the function\n created with the following statement: `CREATE FUNCTION JoinLines(x string,\n y string) as (concat(x, \\\"\\n\\\", y))` The definition_body is `concat(x,\n \\\"\\n\\\", y)` (\\n is not replaced with linebreak). If language=JAVASCRIPT,\n it is the evaluated string in the AS clause. For example, for the function\n created with the following statement: `CREATE FUNCTION f() RETURNS STRING\n LANGUAGE js AS 'return \\\"\\n\\\";\\n'` The definition_body is `return \\\"\\n\\\";\\n`\n Note that both \\n are replaced with linebreaks.\"\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. The description of the routine if defined.\n determinismLevel:\n type: string\n x-dcl-go-name: DeterminismLevel\n x-dcl-go-type: RoutineDeterminismLevelEnum\n description: 'Optional. The determinism level of the JavaScript UDF if defined.\n Possible values: DETERMINISM_LEVEL_UNSPECIFIED, DETERMINISTIC, NOT_DETERMINISTIC'\n enum:\n - DETERMINISM_LEVEL_UNSPECIFIED\n - DETERMINISTIC\n - NOT_DETERMINISTIC\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A hash of this resource.\n x-kubernetes-immutable: true\n importedLibraries:\n type: array\n x-dcl-go-name: ImportedLibraries\n description: Optional. If language = \"JAVASCRIPT\", this field stores the\n path of the imported JAVASCRIPT libraries.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n language:\n type: string\n x-dcl-go-name: Language\n x-dcl-go-type: RoutineLanguageEnum\n description: 'Optional. Defaults to \"SQL\". Possible values: LANGUAGE_UNSPECIFIED,\n SQL, JAVASCRIPT'\n x-dcl-server-default: true\n enum:\n - LANGUAGE_UNSPECIFIED\n - SQL\n - JAVASCRIPT\n lastModifiedTime:\n type: integer\n format: int64\n x-dcl-go-name: LastModifiedTime\n readOnly: true\n description: Output only. The time when this routine was last modified,\n in milliseconds since the epoch.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The ID of the routine. The ID must contain only letters\n (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256\n characters.\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The ID of the project containing this routine.\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n returnType:\n $ref: '#/components/schemas/ArgumentsDataType'\n x-dcl-go-name: ReturnType\n routineType:\n type: string\n x-dcl-go-name: RoutineType\n x-dcl-go-type: RoutineRoutineTypeEnum\n description: 'Required. The type of routine. Possible values: ROUTINE_TYPE_UNSPECIFIED,\n SCALAR_FUNCTION, PROCEDURE'\n enum:\n - ROUTINE_TYPE_UNSPECIFIED\n - SCALAR_FUNCTION\n - PROCEDURE\n strictMode:\n type: boolean\n x-dcl-go-name: StrictMode\n description: Optional. Can be set for procedures only. If true (default),\n the definition body will be validated in the creation and the updates\n of the procedure. For procedures with an argument of ANY TYPE, the definition\n body validtion is not supported at creation/update time, and thus this\n field must be set to false explicitly.\n") -// 10606 bytes -// MD5: 19e7c2f83114048d14011b126770df35 +// 10643 bytes +// MD5: e8e45472f4e07c9f0de8e587f0e22888 diff --git a/services/google/billingbudgets/alpha/budget.yaml b/services/google/billingbudgets/alpha/budget.yaml index dbba55515e..c9b5b5a3d0 100755 --- a/services/google/billingbudgets/alpha/budget.yaml +++ b/services/google/billingbudgets/alpha/budget.yaml @@ -182,6 +182,7 @@ components: description: Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters. + x-dcl-server-default: true properties: calendarPeriod: type: string diff --git a/services/google/billingbudgets/alpha/budget_alpha_yaml_embed.go b/services/google/billingbudgets/alpha/budget_alpha_yaml_embed.go index 761427b224..e6efaebaf0 100755 --- a/services/google/billingbudgets/alpha/budget_alpha_yaml_embed.go +++ b/services/google/billingbudgets/alpha/budget_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/billingbudgets/alpha/budget.yaml -var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") +var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n x-dcl-server-default: true\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") -// 18755 bytes -// MD5: a62d53e1dfa4d280c50d3a3525d35e05 +// 18792 bytes +// MD5: 8a17b3e7373e5b2e6cdc2af37ce9e695 diff --git a/services/google/billingbudgets/alpha/budget_schema.go b/services/google/billingbudgets/alpha/budget_schema.go index d0df551844..710d97982b 100755 --- a/services/google/billingbudgets/alpha/budget_schema.go +++ b/services/google/billingbudgets/alpha/budget_schema.go @@ -202,10 +202,11 @@ func DCLBudgetSchema() *dcl.Schema { }, }, "budgetFilter": &dcl.Property{ - Type: "object", - GoName: "BudgetFilter", - GoType: "BudgetBudgetFilter", - Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + Type: "object", + GoName: "BudgetFilter", + GoType: "BudgetBudgetFilter", + Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "calendarPeriod": &dcl.Property{ Type: "string", diff --git a/services/google/billingbudgets/beta/budget.yaml b/services/google/billingbudgets/beta/budget.yaml index dbba55515e..c9b5b5a3d0 100755 --- a/services/google/billingbudgets/beta/budget.yaml +++ b/services/google/billingbudgets/beta/budget.yaml @@ -182,6 +182,7 @@ components: description: Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters. + x-dcl-server-default: true properties: calendarPeriod: type: string diff --git a/services/google/billingbudgets/beta/budget_beta_yaml_embed.go b/services/google/billingbudgets/beta/budget_beta_yaml_embed.go index cfbb40b49c..e4b5799540 100755 --- a/services/google/billingbudgets/beta/budget_beta_yaml_embed.go +++ b/services/google/billingbudgets/beta/budget_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/billingbudgets/beta/budget.yaml -var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") +var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n x-dcl-server-default: true\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") -// 18755 bytes -// MD5: a62d53e1dfa4d280c50d3a3525d35e05 +// 18792 bytes +// MD5: 8a17b3e7373e5b2e6cdc2af37ce9e695 diff --git a/services/google/billingbudgets/beta/budget_schema.go b/services/google/billingbudgets/beta/budget_schema.go index 668c34eaa4..2c37823f90 100755 --- a/services/google/billingbudgets/beta/budget_schema.go +++ b/services/google/billingbudgets/beta/budget_schema.go @@ -202,10 +202,11 @@ func DCLBudgetSchema() *dcl.Schema { }, }, "budgetFilter": &dcl.Property{ - Type: "object", - GoName: "BudgetFilter", - GoType: "BudgetBudgetFilter", - Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + Type: "object", + GoName: "BudgetFilter", + GoType: "BudgetBudgetFilter", + Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "calendarPeriod": &dcl.Property{ Type: "string", diff --git a/services/google/billingbudgets/budget.yaml b/services/google/billingbudgets/budget.yaml index dbba55515e..c9b5b5a3d0 100755 --- a/services/google/billingbudgets/budget.yaml +++ b/services/google/billingbudgets/budget.yaml @@ -182,6 +182,7 @@ components: description: Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters. + x-dcl-server-default: true properties: calendarPeriod: type: string diff --git a/services/google/billingbudgets/budget_schema.go b/services/google/billingbudgets/budget_schema.go index 91fba9b8c7..36476756a9 100755 --- a/services/google/billingbudgets/budget_schema.go +++ b/services/google/billingbudgets/budget_schema.go @@ -202,10 +202,11 @@ func DCLBudgetSchema() *dcl.Schema { }, }, "budgetFilter": &dcl.Property{ - Type: "object", - GoName: "BudgetFilter", - GoType: "BudgetBudgetFilter", - Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + Type: "object", + GoName: "BudgetFilter", + GoType: "BudgetBudgetFilter", + Description: "Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "calendarPeriod": &dcl.Property{ Type: "string", diff --git a/services/google/billingbudgets/budget_yaml_embed.go b/services/google/billingbudgets/budget_yaml_embed.go index fbd91dbca5..ec9e626c13 100755 --- a/services/google/billingbudgets/budget_yaml_embed.go +++ b/services/google/billingbudgets/budget_yaml_embed.go @@ -17,7 +17,7 @@ package billingbudgets // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/billingbudgets/budget.yaml -var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") +var YAML_budget = []byte("info:\n title: BillingBudgets/Budget\n description: The BillingBudgets Budget resource\n x-dcl-struct-name: Budget\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n apply:\n description: The function used to apply information about a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n delete:\n description: The function used to delete a Budget\n parameters:\n - name: Budget\n required: true\n description: A full instance of a Budget\n deleteAll:\n description: The function used to delete all Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Budget\n parameters:\n - name: billingaccount\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Budget:\n title: Budget\n x-dcl-id: billingAccounts/{{billing_account}}/budgets/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - amount\n - billingAccount\n properties:\n allUpdatesRule:\n type: object\n x-dcl-go-name: AllUpdatesRule\n x-dcl-go-type: BudgetAllUpdatesRule\n description: Optional. Rules to apply to notifications sent based on budget\n spend and thresholds.\n properties:\n disableDefaultIamRecipients:\n type: boolean\n x-dcl-go-name: DisableDefaultIamRecipients\n description: Optional. When set to true, disables default notifications\n sent when a threshold is exceeded. Default notifications are sent\n to those with Billing Account Administrator and Billing Account User\n IAM roles for the target account.\n monitoringNotificationChannels:\n type: array\n x-dcl-go-name: MonitoringNotificationChannels\n description: Optional. Targets to send notifications to when a threshold\n is exceeded. This is in addition to default recipients who have billing\n account IAM roles. The value is the full REST resource name of a monitoring\n notification channel with the form `projects/{project_id}/notificationChannels/{channel_id}`.\n A maximum of 5 channels are allowed. See https://cloud.google.com/billing/docs/how-to/budgets-notification-recipients\n for more details.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Monitoring/NotificationChannel\n field: name\n pubsubTopic:\n type: string\n x-dcl-go-name: PubsubTopic\n description: Optional. The name of the Pub/Sub topic where budget related\n messages will be published, in the form `projects/{project_id}/topics/{topic_id}`.\n Updates are sent at regular intervals to the topic. The topic needs\n to be created before the budget is created; see https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications\n for more details. Caller is expected to have `pubsub.topics.setIamPolicy`\n permission on the topic when it's set for a budget, otherwise, the\n API call will fail with PERMISSION_DENIED. See https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#permissions_required_for_this_task\n for more details on Pub/Sub roles and permissions.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n schemaVersion:\n type: string\n x-dcl-go-name: SchemaVersion\n description: Optional. Required when NotificationsRule.pubsub_topic\n is set. The schema version of the notification sent to NotificationsRule.pubsub_topic.\n Only \"1.0\" is accepted. It represents the JSON schema as defined in\n https://cloud.google.com/billing/docs/how-to/budgets-programmatic-notifications#notification_format.\n amount:\n type: object\n x-dcl-go-name: Amount\n x-dcl-go-type: BudgetAmount\n description: Required. Budgeted amount.\n properties:\n lastPeriodAmount:\n type: object\n x-dcl-go-name: LastPeriodAmount\n x-dcl-go-type: BudgetAmountLastPeriodAmount\n description: Use the last period's actual spend as the budget for the\n present period. LastPeriodAmount can only be set when the budget's\n time period is a .\n x-dcl-conflicts:\n - specifiedAmount\n specifiedAmount:\n type: object\n x-dcl-go-name: SpecifiedAmount\n x-dcl-go-type: BudgetAmountSpecifiedAmount\n description: A specified amount to use as the budget. `currency_code`\n is optional. If specified when creating a budget, it must match the\n currency of the billing account. If specified when updating a budget,\n it must match the currency_code of the existing budget. The `currency_code`\n is provided on output.\n x-dcl-conflicts:\n - lastPeriodAmount\n properties:\n currencyCode:\n type: string\n x-dcl-go-name: CurrencyCode\n description: The three-letter currency code defined in ISO 4217.\n x-kubernetes-immutable: true\n nanos:\n type: integer\n format: int64\n x-dcl-go-name: Nanos\n description: Number of nano (10^-9) units of the amount. The value\n must be between -999,999,999 and +999,999,999 inclusive. If `units`\n is positive, `nanos` must be positive or zero. If `units` is zero,\n `nanos` can be positive, zero, or negative. If `units` is negative,\n `nanos` must be negative or zero. For example $-1.75 is represented\n as `units`=-1 and `nanos`=-750,000,000.\n x-dcl-send-empty: true\n units:\n type: integer\n format: int64\n x-dcl-go-name: Units\n description: The whole units of the amount. For example if `currencyCode`\n is `\"USD\"`, then 1 unit is one US dollar.\n x-dcl-send-empty: true\n billingAccount:\n type: string\n x-dcl-go-name: BillingAccount\n description: The billing account of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/BillingAccount\n field: name\n parent: true\n budgetFilter:\n type: object\n x-dcl-go-name: BudgetFilter\n x-dcl-go-type: BudgetBudgetFilter\n description: Optional. Filters that define which resources are used to compute\n the actual spend against the budget amount, such as projects, services,\n and the budget's time period, as well as other filters.\n x-dcl-server-default: true\n properties:\n calendarPeriod:\n type: string\n x-dcl-go-name: CalendarPeriod\n x-dcl-go-type: BudgetBudgetFilterCalendarPeriodEnum\n description: 'Optional. Specifies to track usage for recurring calendar\n period. For example, assume that CalendarPeriod.QUARTER is set. The\n budget will track usage from April 1 to June 30, when the current\n calendar month is April, May, June. After that, it will track usage\n from July 1 to September 30 when the current calendar month is July,\n August, September, so on. Possible values: CALENDAR_PERIOD_UNSPECIFIED,\n MONTH, QUARTER, YEAR'\n x-dcl-conflicts:\n - customPeriod\n x-dcl-server-default: true\n enum:\n - CALENDAR_PERIOD_UNSPECIFIED\n - MONTH\n - QUARTER\n - YEAR\n creditTypes:\n type: array\n x-dcl-go-name: CreditTypes\n description: Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS,\n this is a list of credit types to be subtracted from gross cost to\n determine the spend for threshold calculations. See a list of acceptable\n credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS,\n this field must be empty.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n creditTypesTreatment:\n type: string\n x-dcl-go-name: CreditTypesTreatment\n x-dcl-go-type: BudgetBudgetFilterCreditTypesTreatmentEnum\n description: Optional. If not set, default behavior is `INCLUDE_ALL_CREDITS`.\n x-dcl-server-default: true\n enum:\n - INCLUDE_ALL_CREDITS\n - EXCLUDE_ALL_CREDITS\n - INCLUDE_SPECIFIED_CREDITS\n customPeriod:\n type: object\n x-dcl-go-name: CustomPeriod\n x-dcl-go-type: BudgetBudgetFilterCustomPeriod\n description: Optional. Specifies to track usage from any start date\n (required) to any end date (optional). This time period is static,\n it does not recur.\n x-dcl-conflicts:\n - calendarPeriod\n required:\n - startDate\n properties:\n endDate:\n type: object\n x-dcl-go-name: EndDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodEndDate\n description: Optional. The end date of the time period. Budgets\n with elapsed end date won't be processed. If unset, specifies\n to track all usage incurred since the start_date.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n startDate:\n type: object\n x-dcl-go-name: StartDate\n x-dcl-go-type: BudgetBudgetFilterCustomPeriodStartDate\n description: Required. The start date must be after January 1, 2017.\n x-kubernetes-immutable: true\n properties:\n day:\n type: integer\n format: int64\n x-dcl-go-name: Day\n description: Day of a month. Must be from 1 to 31 and valid\n for the year and month, or 0 to specify a year by itself or\n a year and month where the day isn't significant.\n x-kubernetes-immutable: true\n month:\n type: integer\n format: int64\n x-dcl-go-name: Month\n description: Month of a year. Must be from 1 to 12, or 0 to\n specify a year without a month and day.\n x-kubernetes-immutable: true\n year:\n type: integer\n format: int64\n x-dcl-go-name: Year\n description: Year of the date. Must be from 1 to 9999, or 0\n to specify a date without a year.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: BudgetBudgetFilterLabels\n properties:\n values:\n type: array\n x-dcl-go-name: Values\n description: The values of the label\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-go-name: Labels\n description: Optional. A single label and value pair specifying that\n usage from only this set of labeled resources should be included in\n the budget. Currently, multiple entries or multiple values per entry\n are not allowed. If omitted, the report will include all labeled and\n unlabeled usage.\n projects:\n type: array\n x-dcl-go-name: Projects\n description: Optional. A set of projects of the form `projects/{project}`,\n specifying that usage from only this set of projects should be included\n in the budget. If omitted, the report will include all usage for the\n billing account, regardless of which project the usage occurred on.\n Only zero or one project can be specified currently.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n services:\n type: array\n x-dcl-go-name: Services\n description: 'Optional. A set of services of the form `services/{service_id}`,\n specifying that usage from only this set of services should be included\n in the budget. If omitted, the report will include usage for all the\n services. The service names are available through the Catalog API:\n https://cloud.google.com/billing/v1/how-tos/catalog-api.'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subaccounts:\n type: array\n x-dcl-go-name: Subaccounts\n description: Optional. A set of subaccounts of the form `billingAccounts/{account_id}`,\n specifying that usage from only this set of subaccounts should be\n included in the budget. If a subaccount is set to the name of the\n parent account, usage from the parent account will be included. If\n the field is omitted, the report will include usage from the parent\n account and all subaccounts, if they exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Cloudbilling/BillingAccount\n field: name\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: User data for display name in UI. The name must be less than\n or equal to 60 characters.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Optional. Etag to validate that the object is unchanged for\n a read-modify-write operation. An empty etag will cause an update to overwrite\n other changes.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. Resource name of the budget.\n x-kubernetes-immutable: true\n x-dcl-server-generated-parameter: true\n thresholdRules:\n type: array\n x-dcl-go-name: ThresholdRules\n description: Optional. Rules that trigger alerts (notifications of thresholds\n being crossed) when spend exceeds the specified percentages of the budget.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: BudgetThresholdRules\n required:\n - thresholdPercent\n properties:\n spendBasis:\n type: string\n x-dcl-go-name: SpendBasis\n x-dcl-go-type: BudgetThresholdRulesSpendBasisEnum\n description: 'Optional. The type of basis used to determine if spend\n has passed the threshold. Behavior defaults to CURRENT_SPEND if\n not set. Possible values: BASIS_UNSPECIFIED, CURRENT_SPEND, FORECASTED_SPEND'\n enum:\n - BASIS_UNSPECIFIED\n - CURRENT_SPEND\n - FORECASTED_SPEND\n thresholdPercent:\n type: number\n format: double\n x-dcl-go-name: ThresholdPercent\n description: 'Required. Send an alert when this threshold is exceeded.\n This is a 1.0-based percentage, so 0.5 = 50%. Validation: non-negative\n number.'\n") -// 18755 bytes -// MD5: a62d53e1dfa4d280c50d3a3525d35e05 +// 18792 bytes +// MD5: 8a17b3e7373e5b2e6cdc2af37ce9e695 diff --git a/services/google/binaryauthorization/alpha/attestor.yaml b/services/google/binaryauthorization/alpha/attestor.yaml index b319a497d1..b8a1366f1b 100755 --- a/services/google/binaryauthorization/alpha/attestor.yaml +++ b/services/google/binaryauthorization/alpha/attestor.yaml @@ -167,6 +167,7 @@ components: field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details. + x-dcl-server-default: true pkixPublicKey: type: object x-dcl-go-name: PkixPublicKey diff --git a/services/google/binaryauthorization/alpha/attestor_alpha_yaml_embed.go b/services/google/binaryauthorization/alpha/attestor_alpha_yaml_embed.go index 8f287b093b..0cc3af75b8 100755 --- a/services/google/binaryauthorization/alpha/attestor_alpha_yaml_embed.go +++ b/services/google/binaryauthorization/alpha/attestor_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/binaryauthorization/alpha/attestor.yaml -var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") +var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n x-dcl-server-default: true\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") -// 9525 bytes -// MD5: 786f380c38e3681cfcf76e5d2db0c8a4 +// 9572 bytes +// MD5: 3e15cc44e082463041e4fe53545b0a56 diff --git a/services/google/binaryauthorization/alpha/attestor_schema.go b/services/google/binaryauthorization/alpha/attestor_schema.go index 4bc09413cc..4ea105beef 100755 --- a/services/google/binaryauthorization/alpha/attestor_schema.go +++ b/services/google/binaryauthorization/alpha/attestor_schema.go @@ -175,9 +175,10 @@ func DCLAttestorSchema() *dcl.Schema { Description: "Optional. A descriptive comment. This field may be updated.", }, "id": &dcl.Property{ - Type: "string", - GoName: "Id", - Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + Type: "string", + GoName: "Id", + Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + ServerDefault: true, }, "pkixPublicKey": &dcl.Property{ Type: "object", diff --git a/services/google/binaryauthorization/attestor.yaml b/services/google/binaryauthorization/attestor.yaml index b319a497d1..b8a1366f1b 100755 --- a/services/google/binaryauthorization/attestor.yaml +++ b/services/google/binaryauthorization/attestor.yaml @@ -167,6 +167,7 @@ components: field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details. + x-dcl-server-default: true pkixPublicKey: type: object x-dcl-go-name: PkixPublicKey diff --git a/services/google/binaryauthorization/attestor_schema.go b/services/google/binaryauthorization/attestor_schema.go index a7945217a6..bb00858d63 100755 --- a/services/google/binaryauthorization/attestor_schema.go +++ b/services/google/binaryauthorization/attestor_schema.go @@ -175,9 +175,10 @@ func DCLAttestorSchema() *dcl.Schema { Description: "Optional. A descriptive comment. This field may be updated.", }, "id": &dcl.Property{ - Type: "string", - GoName: "Id", - Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + Type: "string", + GoName: "Id", + Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + ServerDefault: true, }, "pkixPublicKey": &dcl.Property{ Type: "object", diff --git a/services/google/binaryauthorization/attestor_yaml_embed.go b/services/google/binaryauthorization/attestor_yaml_embed.go index ee3cb7c7e6..0180c51128 100755 --- a/services/google/binaryauthorization/attestor_yaml_embed.go +++ b/services/google/binaryauthorization/attestor_yaml_embed.go @@ -17,7 +17,7 @@ package binaryauthorization // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/binaryauthorization/attestor.yaml -var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") +var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n x-dcl-server-default: true\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") -// 9525 bytes -// MD5: 786f380c38e3681cfcf76e5d2db0c8a4 +// 9572 bytes +// MD5: 3e15cc44e082463041e4fe53545b0a56 diff --git a/services/google/binaryauthorization/beta/attestor.yaml b/services/google/binaryauthorization/beta/attestor.yaml index b319a497d1..b8a1366f1b 100755 --- a/services/google/binaryauthorization/beta/attestor.yaml +++ b/services/google/binaryauthorization/beta/attestor.yaml @@ -167,6 +167,7 @@ components: field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details. + x-dcl-server-default: true pkixPublicKey: type: object x-dcl-go-name: PkixPublicKey diff --git a/services/google/binaryauthorization/beta/attestor_beta_yaml_embed.go b/services/google/binaryauthorization/beta/attestor_beta_yaml_embed.go index 091cc0f8a6..238b5257ec 100755 --- a/services/google/binaryauthorization/beta/attestor_beta_yaml_embed.go +++ b/services/google/binaryauthorization/beta/attestor_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/binaryauthorization/beta/attestor.yaml -var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") +var YAML_attestor = []byte("info:\n title: BinaryAuthorization/Attestor\n description: The BinaryAuthorization Attestor resource\n x-dcl-struct-name: Attestor\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n apply:\n description: The function used to apply information about a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n delete:\n description: The function used to delete a Attestor\n parameters:\n - name: Attestor\n required: true\n description: A full instance of a Attestor\n deleteAll:\n description: The function used to delete all Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Attestor\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Attestor:\n title: Attestor\n x-dcl-id: projects/{{project}}/attestors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A descriptive comment. This field may be updated.\n The field may be displayed in chooser dialogs.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The resource name, in the format: `projects/*/attestors/*`.\n This field may not be updated.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. Time when the attestor was last updated.\n x-kubernetes-immutable: true\n userOwnedDrydockNote:\n type: object\n x-dcl-go-name: UserOwnedDrydockNote\n x-dcl-go-type: AttestorUserOwnedDrydockNote\n description: This specifies how an attestation will be read, and how it\n will be used during policy enforcement.\n required:\n - noteReference\n properties:\n delegationServiceAccountEmail:\n type: string\n x-dcl-go-name: DelegationServiceAccountEmail\n readOnly: true\n description: Output only. This field will contain the service account\n email address that this Attestor will use as the principal when querying\n Container Analysis. Attestor administrators must grant this service\n account the IAM role needed to read attestations from the in Container\n Analysis (`containeranalysis.notes.occurrences.viewer`). This email\n address is fixed for the lifetime of the Attestor, but callers should\n not make any other assumptions about the service account email; future\n versions may use an email based on a different naming pattern.\n x-kubernetes-immutable: true\n noteReference:\n type: string\n x-dcl-go-name: NoteReference\n description: 'Required. The Drydock resource name of a Attestation.\n Authority Note, created by the user, in the format: `projects/*/notes/*`.\n This field may not be updated. An attestation by this attestor is\n stored as a Grafeas Attestation. Authority Occurrence that names a\n container image and that links to this Note. Grafeas is an external\n dependency.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Containeranalysis/Note\n field: name\n publicKeys:\n type: array\n x-dcl-go-name: PublicKeys\n description: Optional. Public keys that verify attestations signed by\n this attestor. This field may be updated. If this field is non-empty,\n one of the specified public keys must verify that an attestation was\n signed by this attestor for the image specified in the admission request.\n If this field is empty, this attestor always returns that no valid\n attestations exist.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeys\n properties:\n asciiArmoredPgpPublicKey:\n type: string\n x-dcl-go-name: AsciiArmoredPgpPublicKey\n description: ASCII-armored representation of a PGP public key,\n as the entire output by the command `gpg --export --armor foo@example.com`\n (either LF or CRLF line endings). When using this field, `id`\n should be left blank. The BinAuthz API handlers will calculate\n the ID and fill it in automatically. BinAuthz computes this\n ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case\n hex. If `id` is provided by the caller, it will be overwritten\n by the API-calculated ID.\n comment:\n type: string\n x-dcl-go-name: Comment\n description: Optional. A descriptive comment. This field may be\n updated.\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of this public key. Signatures verified by\n BinAuthz must include the ID of the public key that can be used\n to verify them, and that ID must match the contents of this\n field exactly. Additional restrictions on this field can be\n imposed based on which public key type is encapsulated. See\n the documentation on `public_key` cases below for details.\n x-dcl-server-default: true\n pkixPublicKey:\n type: object\n x-dcl-go-name: PkixPublicKey\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKey\n description: 'A raw PKIX SubjectPublicKeyInfo format public key.\n NOTE: `id` may be explicitly provided by the caller when using\n this type of public key, but it MUST be a valid RFC3986 URI.\n If `id` is left blank, a default one will be computed based\n on the digest of the DER encoding of the public key.'\n properties:\n publicKeyPem:\n type: string\n x-dcl-go-name: PublicKeyPem\n description: A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13\n signatureAlgorithm:\n type: string\n x-dcl-go-name: SignatureAlgorithm\n x-dcl-go-type: AttestorUserOwnedDrydockNotePublicKeysPkixPublicKeySignatureAlgorithmEnum\n description: 'The signature algorithm used to verify a message\n against a signature using this key. These signature algorithm\n must match the structure and any object identifiers encoded\n in `public_key_pem` (i.e. this algorithm must match that\n of the public key). Possible values: SIGNATURE_ALGORITHM_UNSPECIFIED,\n RSA_PSS_2048_SHA256, RSA_PSS_3072_SHA256, RSA_PSS_4096_SHA256,\n RSA_PSS_4096_SHA512, RSA_SIGN_PKCS1_2048_SHA256, RSA_SIGN_PKCS1_3072_SHA256,\n RSA_SIGN_PKCS1_4096_SHA256, RSA_SIGN_PKCS1_4096_SHA512,\n ECDSA_P256_SHA256, EC_SIGN_P256_SHA256, ECDSA_P384_SHA384,\n EC_SIGN_P384_SHA384, ECDSA_P521_SHA512, EC_SIGN_P521_SHA512'\n enum:\n - SIGNATURE_ALGORITHM_UNSPECIFIED\n - RSA_PSS_2048_SHA256\n - RSA_PSS_3072_SHA256\n - RSA_PSS_4096_SHA256\n - RSA_PSS_4096_SHA512\n - RSA_SIGN_PKCS1_2048_SHA256\n - RSA_SIGN_PKCS1_3072_SHA256\n - RSA_SIGN_PKCS1_4096_SHA256\n - RSA_SIGN_PKCS1_4096_SHA512\n - ECDSA_P256_SHA256\n - EC_SIGN_P256_SHA256\n - ECDSA_P384_SHA384\n - EC_SIGN_P384_SHA384\n - ECDSA_P521_SHA512\n - EC_SIGN_P521_SHA512\n") -// 9525 bytes -// MD5: 786f380c38e3681cfcf76e5d2db0c8a4 +// 9572 bytes +// MD5: 3e15cc44e082463041e4fe53545b0a56 diff --git a/services/google/binaryauthorization/beta/attestor_schema.go b/services/google/binaryauthorization/beta/attestor_schema.go index e1a7e34b68..1c3e83c968 100755 --- a/services/google/binaryauthorization/beta/attestor_schema.go +++ b/services/google/binaryauthorization/beta/attestor_schema.go @@ -175,9 +175,10 @@ func DCLAttestorSchema() *dcl.Schema { Description: "Optional. A descriptive comment. This field may be updated.", }, "id": &dcl.Property{ - Type: "string", - GoName: "Id", - Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + Type: "string", + GoName: "Id", + Description: "The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on `public_key` cases below for details.", + ServerDefault: true, }, "pkixPublicKey": &dcl.Property{ Type: "object", diff --git a/services/google/cloudfunctions/alpha/function.yaml b/services/google/cloudfunctions/alpha/function.yaml index 49a96cfff5..fbba7a17a6 100755 --- a/services/google/cloudfunctions/alpha/function.yaml +++ b/services/google/cloudfunctions/alpha/function.yaml @@ -84,6 +84,7 @@ components: x-dcl-go-name: AvailableMemoryMb description: 'Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.' + x-dcl-server-default: true description: type: string x-dcl-go-name: Description @@ -219,6 +220,7 @@ components: description: |- The ingress settings for the function, controlling what traffic can reach it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB + x-dcl-server-default: true enum: - INGRESS_SETTINGS_UNSPECIFIED - ALLOW_ALL @@ -273,6 +275,7 @@ components: The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Iam/ServiceAccount field: email @@ -346,6 +349,7 @@ components: The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. + x-dcl-server-default: true updateTime: type: string x-dcl-go-name: UpdateTime diff --git a/services/google/cloudfunctions/alpha/function_alpha_yaml_embed.go b/services/google/cloudfunctions/alpha/function_alpha_yaml_embed.go index 141c5ca03f..177055de67 100755 --- a/services/google/cloudfunctions/alpha/function_alpha_yaml_embed.go +++ b/services/google/cloudfunctions/alpha/function_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudfunctions/alpha/function.yaml -var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") +var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n x-dcl-server-default: true\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n x-dcl-server-default: true\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n x-dcl-server-default: true\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") -// 14870 bytes -// MD5: 5a9c3ef358e4730bcdc68e5f5c4f485b +// 15018 bytes +// MD5: fcd0c5e772e7cade501979e34e6e2ed1 diff --git a/services/google/cloudfunctions/alpha/function_schema.go b/services/google/cloudfunctions/alpha/function_schema.go index 4dde0f409f..35fb22dd13 100755 --- a/services/google/cloudfunctions/alpha/function_schema.go +++ b/services/google/cloudfunctions/alpha/function_schema.go @@ -117,10 +117,11 @@ func DCLFunctionSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "availableMemoryMb": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "AvailableMemoryMb", - Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + Type: "integer", + Format: "int64", + GoName: "AvailableMemoryMb", + Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + ServerDefault: true, }, "description": &dcl.Property{ Type: "string", @@ -224,10 +225,11 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "ingressSettings": &dcl.Property{ - Type: "string", - GoName: "IngressSettings", - GoType: "FunctionIngressSettingsEnum", - Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + Type: "string", + GoName: "IngressSettings", + GoType: "FunctionIngressSettingsEnum", + Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + ServerDefault: true, Enum: []string{ "INGRESS_SETTINGS_UNSPECIFIED", "ALLOW_ALL", @@ -280,10 +282,11 @@ func DCLFunctionSchema() *dcl.Schema { Description: "The runtime in which to run the function. Required when deploying a new\nfunction, optional when updating an existing function. For a complete\nlist of possible choices, see the\n[`gcloud` command\nreference](/sdk/gcloud/reference/functions/deploy#--runtime).\n", }, "serviceAccountEmail": &dcl.Property{ - Type: "string", - GoName: "ServiceAccountEmail", - Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", - Immutable: true, + Type: "string", + GoName: "ServiceAccountEmail", + Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Iam/ServiceAccount", @@ -345,9 +348,10 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "timeout": &dcl.Property{ - Type: "string", - GoName: "Timeout", - Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + Type: "string", + GoName: "Timeout", + Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + ServerDefault: true, }, "updateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudfunctions/beta/function.yaml b/services/google/cloudfunctions/beta/function.yaml index 49a96cfff5..fbba7a17a6 100755 --- a/services/google/cloudfunctions/beta/function.yaml +++ b/services/google/cloudfunctions/beta/function.yaml @@ -84,6 +84,7 @@ components: x-dcl-go-name: AvailableMemoryMb description: 'Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.' + x-dcl-server-default: true description: type: string x-dcl-go-name: Description @@ -219,6 +220,7 @@ components: description: |- The ingress settings for the function, controlling what traffic can reach it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB + x-dcl-server-default: true enum: - INGRESS_SETTINGS_UNSPECIFIED - ALLOW_ALL @@ -273,6 +275,7 @@ components: The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Iam/ServiceAccount field: email @@ -346,6 +349,7 @@ components: The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. + x-dcl-server-default: true updateTime: type: string x-dcl-go-name: UpdateTime diff --git a/services/google/cloudfunctions/beta/function_beta_yaml_embed.go b/services/google/cloudfunctions/beta/function_beta_yaml_embed.go index b4d5b271eb..5892a7f2fa 100755 --- a/services/google/cloudfunctions/beta/function_beta_yaml_embed.go +++ b/services/google/cloudfunctions/beta/function_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudfunctions/beta/function.yaml -var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") +var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n x-dcl-server-default: true\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n x-dcl-server-default: true\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n x-dcl-server-default: true\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") -// 14870 bytes -// MD5: 5a9c3ef358e4730bcdc68e5f5c4f485b +// 15018 bytes +// MD5: fcd0c5e772e7cade501979e34e6e2ed1 diff --git a/services/google/cloudfunctions/beta/function_schema.go b/services/google/cloudfunctions/beta/function_schema.go index b4de76d6ea..2eefda4cf5 100755 --- a/services/google/cloudfunctions/beta/function_schema.go +++ b/services/google/cloudfunctions/beta/function_schema.go @@ -117,10 +117,11 @@ func DCLFunctionSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "availableMemoryMb": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "AvailableMemoryMb", - Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + Type: "integer", + Format: "int64", + GoName: "AvailableMemoryMb", + Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + ServerDefault: true, }, "description": &dcl.Property{ Type: "string", @@ -224,10 +225,11 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "ingressSettings": &dcl.Property{ - Type: "string", - GoName: "IngressSettings", - GoType: "FunctionIngressSettingsEnum", - Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + Type: "string", + GoName: "IngressSettings", + GoType: "FunctionIngressSettingsEnum", + Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + ServerDefault: true, Enum: []string{ "INGRESS_SETTINGS_UNSPECIFIED", "ALLOW_ALL", @@ -280,10 +282,11 @@ func DCLFunctionSchema() *dcl.Schema { Description: "The runtime in which to run the function. Required when deploying a new\nfunction, optional when updating an existing function. For a complete\nlist of possible choices, see the\n[`gcloud` command\nreference](/sdk/gcloud/reference/functions/deploy#--runtime).\n", }, "serviceAccountEmail": &dcl.Property{ - Type: "string", - GoName: "ServiceAccountEmail", - Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", - Immutable: true, + Type: "string", + GoName: "ServiceAccountEmail", + Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Iam/ServiceAccount", @@ -345,9 +348,10 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "timeout": &dcl.Property{ - Type: "string", - GoName: "Timeout", - Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + Type: "string", + GoName: "Timeout", + Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + ServerDefault: true, }, "updateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudfunctions/function.yaml b/services/google/cloudfunctions/function.yaml index 49a96cfff5..fbba7a17a6 100755 --- a/services/google/cloudfunctions/function.yaml +++ b/services/google/cloudfunctions/function.yaml @@ -84,6 +84,7 @@ components: x-dcl-go-name: AvailableMemoryMb description: 'Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.' + x-dcl-server-default: true description: type: string x-dcl-go-name: Description @@ -219,6 +220,7 @@ components: description: |- The ingress settings for the function, controlling what traffic can reach it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB + x-dcl-server-default: true enum: - INGRESS_SETTINGS_UNSPECIFIED - ALLOW_ALL @@ -273,6 +275,7 @@ components: The email of the function's service account. If empty, defaults to `{project_id}@appspot.gserviceaccount.com`. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Iam/ServiceAccount field: email @@ -346,6 +349,7 @@ components: The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. + x-dcl-server-default: true updateTime: type: string x-dcl-go-name: UpdateTime diff --git a/services/google/cloudfunctions/function_schema.go b/services/google/cloudfunctions/function_schema.go index 5646118b49..f8dfc870ab 100755 --- a/services/google/cloudfunctions/function_schema.go +++ b/services/google/cloudfunctions/function_schema.go @@ -117,10 +117,11 @@ func DCLFunctionSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "availableMemoryMb": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "AvailableMemoryMb", - Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + Type: "integer", + Format: "int64", + GoName: "AvailableMemoryMb", + Description: "Memory (in MB), available to the function. Default value is 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.", + ServerDefault: true, }, "description": &dcl.Property{ Type: "string", @@ -224,10 +225,11 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "ingressSettings": &dcl.Property{ - Type: "string", - GoName: "IngressSettings", - GoType: "FunctionIngressSettingsEnum", - Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + Type: "string", + GoName: "IngressSettings", + GoType: "FunctionIngressSettingsEnum", + Description: "The ingress settings for the function, controlling what traffic can reach\nit. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB", + ServerDefault: true, Enum: []string{ "INGRESS_SETTINGS_UNSPECIFIED", "ALLOW_ALL", @@ -280,10 +282,11 @@ func DCLFunctionSchema() *dcl.Schema { Description: "The runtime in which to run the function. Required when deploying a new\nfunction, optional when updating an existing function. For a complete\nlist of possible choices, see the\n[`gcloud` command\nreference](/sdk/gcloud/reference/functions/deploy#--runtime).\n", }, "serviceAccountEmail": &dcl.Property{ - Type: "string", - GoName: "ServiceAccountEmail", - Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", - Immutable: true, + Type: "string", + GoName: "ServiceAccountEmail", + Description: "The email of the function's service account. If empty, defaults to\n`{project_id}@appspot.gserviceaccount.com`.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Iam/ServiceAccount", @@ -345,9 +348,10 @@ func DCLFunctionSchema() *dcl.Schema { }, }, "timeout": &dcl.Property{ - Type: "string", - GoName: "Timeout", - Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + Type: "string", + GoName: "Timeout", + Description: "The function execution timeout. Execution is considered failed and\ncan be terminated if the function is not completed at the end of the\ntimeout period. Defaults to 60 seconds.", + ServerDefault: true, }, "updateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudfunctions/function_yaml_embed.go b/services/google/cloudfunctions/function_yaml_embed.go index eb6c80e822..9407939e49 100755 --- a/services/google/cloudfunctions/function_yaml_embed.go +++ b/services/google/cloudfunctions/function_yaml_embed.go @@ -17,7 +17,7 @@ package cloudfunctions // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudfunctions/function.yaml -var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") +var YAML_function = []byte("info:\n title: CloudFunctions/Function\n description: The CloudFunctions Function resource\n x-dcl-struct-name: Function\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n apply:\n description: The function used to apply information about a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n delete:\n description: The function used to delete a Function\n parameters:\n - name: Function\n required: true\n description: A full instance of a Function\n deleteAll:\n description: The function used to delete all Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Function\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: region\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Function:\n title: Function\n x-dcl-id: projects/{{project}}/locations/{{region}}/functions/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - runtime\n - region\n - project\n properties:\n availableMemoryMb:\n type: integer\n format: int64\n x-dcl-go-name: AvailableMemoryMb\n description: 'Memory (in MB), available to the function. Default value is\n 256MB. Allowed values are: 128MB, 256MB, 512MB, 1024MB, and 2048MB.'\n x-dcl-server-default: true\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of a function.\n entryPoint:\n type: string\n x-dcl-go-name: EntryPoint\n description: |-\n The name of the function (as defined in source code) that will be\n executed. Defaults to the resource name suffix, if not specified. For\n backward compatibility, if function with given name is not found, then the\n system will try to use function named \"function\".\n For Node.js this is name of a function exported by the module specified\n in `source_location`.\n x-kubernetes-immutable: true\n environmentVariables:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: EnvironmentVariables\n description: Environment variables that shall be available during function\n execution.\n eventTrigger:\n type: object\n x-dcl-go-name: EventTrigger\n x-dcl-go-type: FunctionEventTrigger\n description: A source that fires events in response to a condition in another\n service.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - httpsTrigger\n required:\n - eventType\n - resource\n properties:\n eventType:\n type: string\n x-dcl-go-name: EventType\n description: |-\n Required. The type of event to observe. For example:\n `providers/cloud.storage/eventTypes/object.change` and\n `providers/cloud.pubsub/eventTypes/topic.publish`.\n\n Event types match pattern `providers/*/eventTypes/*.*`.\n The pattern contains:\n\n 1. namespace: For example, `cloud.storage` and\n `google.firebase.analytics`.\n 2. resource type: The type of resource on which event occurs. For\n example, the Google Cloud Storage API includes the type `object`.\n 3. action: The action that generates the event. For example, action for\n a Google Cloud Storage Object is 'change'.\n These parts are lower case.\n x-kubernetes-immutable: true\n failurePolicy:\n type: boolean\n x-dcl-go-name: FailurePolicy\n description: Specifies policy for failed executions.\n x-kubernetes-immutable: true\n resource:\n type: string\n x-dcl-go-name: Resource\n description: |-\n Required. The resource(s) from which to observe events, for example,\n `projects/_/buckets/myBucket`.\n\n Not all syntactically correct values are accepted by all services. For\n example:\n\n 1. The authorization model must support it. Google Cloud Functions\n only allows EventTriggers to be deployed that observe resources in the\n same project as the `Function`.\n 2. The resource type must match the pattern expected for an\n `event_type`. For example, an `EventTrigger` that has an\n `event_type` of \"google.pubsub.topic.publish\" should have a resource\n that matches Google Cloud Pub/Sub topics.\n\n Additionally, some services may support short names when creating an\n `EventTrigger`. These will always be returned in the normalized \"long\"\n format.\n\n See each *service's* documentation for supported formats.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n format: projects/{{project}}/buckets/{{name}}\n - resource: Pubsub/Topic\n field: name\n service:\n type: string\n x-dcl-go-name: Service\n description: |\n The hostname of the service that should be observed.\n\n If no string is provided, the default service implementing the API will\n be used. For example, `storage.googleapis.com` is the default for all\n event types in the `google.storage` namespace.\n x-kubernetes-immutable: true\n httpsTrigger:\n type: object\n x-dcl-go-name: HttpsTrigger\n x-dcl-go-type: FunctionHttpsTrigger\n description: An HTTPS endpoint type of source that can be triggered via\n URL.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - eventTrigger\n properties:\n securityLevel:\n type: string\n x-dcl-go-name: SecurityLevel\n x-dcl-go-type: FunctionHttpsTriggerSecurityLevelEnum\n description: 'Both HTTP and HTTPS requests with URLs that match the\n handler succeed without redirects. The application can examine the\n request to determine which protocol was used and respond accordingly.\n Possible values: SECURITY_LEVEL_UNSPECIFIED, SECURE_ALWAYS, SECURE_OPTIONAL'\n x-kubernetes-immutable: true\n enum:\n - SECURITY_LEVEL_UNSPECIFIED\n - SECURE_ALWAYS\n - SECURE_OPTIONAL\n url:\n type: string\n x-dcl-go-name: Url\n readOnly: true\n description: Output only. The deployed url for the function.\n x-kubernetes-immutable: true\n ingressSettings:\n type: string\n x-dcl-go-name: IngressSettings\n x-dcl-go-type: FunctionIngressSettingsEnum\n description: |-\n The ingress settings for the function, controlling what traffic can reach\n it. Possible values: INGRESS_SETTINGS_UNSPECIFIED, ALLOW_ALL, ALLOW_INTERNAL_ONLY, ALLOW_INTERNAL_AND_GCLB\n x-dcl-server-default: true\n enum:\n - INGRESS_SETTINGS_UNSPECIFIED\n - ALLOW_ALL\n - ALLOW_INTERNAL_ONLY\n - ALLOW_INTERNAL_AND_GCLB\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels associated with this Cloud Function.\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: |-\n The limit on the maximum number of function instances that may coexist at a\n given time.\n name:\n type: string\n x-dcl-go-name: Name\n description: A user-defined name of the function. Function names must be\n unique globally.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the function.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n description: The name of the Cloud Functions region of the function.\n x-kubernetes-immutable: true\n runtime:\n type: string\n x-dcl-go-name: Runtime\n description: |\n The runtime in which to run the function. Required when deploying a new\n function, optional when updating an existing function. For a complete\n list of possible choices, see the\n [`gcloud` command\n reference](/sdk/gcloud/reference/functions/deploy#--runtime).\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: |-\n The email of the function's service account. If empty, defaults to\n `{project_id}@appspot.gserviceaccount.com`.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n sourceArchiveUrl:\n type: string\n x-dcl-go-name: SourceArchiveUrl\n description: The Google Cloud Storage URL, starting with gs://, pointing\n to the zip archive which contains the function.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceRepository\n sourceRepository:\n type: object\n x-dcl-go-name: SourceRepository\n x-dcl-go-type: FunctionSourceRepository\n description: Represents parameters related to source repository where a\n function is hosted.\n x-kubernetes-immutable: true\n x-dcl-conflicts:\n - sourceArchiveUrl\n required:\n - url\n properties:\n deployedUrl:\n type: string\n x-dcl-go-name: DeployedUrl\n readOnly: true\n description: |-\n Output only. The URL pointing to the hosted repository where the function\n were defined at the time of deployment. It always points to a specific\n commit in the format described above.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: |-\n The URL pointing to the hosted repository where the function is defined.\n There are supported Cloud Source Repository URLs in the following\n formats:\n\n To refer to a specific commit:\n `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`\n To refer to a moveable alias (branch):\n `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*`\n In particular, to refer to HEAD use `master` moveable alias.\n To refer to a specific fixed alias (tag):\n `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/*`\n\n You may omit `paths/*` if you want to use the main directory.\n x-kubernetes-immutable: true\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: FunctionStatusEnum\n readOnly: true\n description: 'Output only. Status of the function deployment. Possible values:\n CLOUD_FUNCTION_STATUS_UNSPECIFIED, ACTIVE, OFFLINE, DEPLOY_IN_PROGRESS,\n DELETE_IN_PROGRESS, UNKNOWN'\n x-kubernetes-immutable: true\n enum:\n - CLOUD_FUNCTION_STATUS_UNSPECIFIED\n - ACTIVE\n - OFFLINE\n - DEPLOY_IN_PROGRESS\n - DELETE_IN_PROGRESS\n - UNKNOWN\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: |-\n The function execution timeout. Execution is considered failed and\n can be terminated if the function is not completed at the end of the\n timeout period. Defaults to 60 seconds.\n x-dcl-server-default: true\n updateTime:\n type: string\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of a Cloud Function\n in RFC3339 UTC 'Zulu' format, with nanosecond resolution and up to nine\n fractional digits.\n x-kubernetes-immutable: true\n versionId:\n type: integer\n format: int64\n x-dcl-go-name: VersionId\n readOnly: true\n description: |-\n Output only. The version identifier of the Cloud Function. Each deployment attempt\n results in a new version of a function being created.\n x-kubernetes-immutable: true\n vpcConnector:\n type: string\n x-dcl-go-name: VPCConnector\n description: |-\n The VPC Network Connector that this cloud function can connect to. It can\n be either the fully-qualified URI, or the short name of the network\n connector resource. The format of this field is\n `projects/*/locations/*/connectors/*`\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n vpcConnectorEgressSettings:\n type: string\n x-dcl-go-name: VPCConnectorEgressSettings\n x-dcl-go-type: FunctionVPCConnectorEgressSettingsEnum\n description: |-\n The egress settings for the connector, controlling what traffic is diverted\n through it. Possible values: VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, PRIVATE_RANGES_ONLY, ALL_TRAFFIC\n enum:\n - VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\n - PRIVATE_RANGES_ONLY\n - ALL_TRAFFIC\n") -// 14870 bytes -// MD5: 5a9c3ef358e4730bcdc68e5f5c4f485b +// 15018 bytes +// MD5: fcd0c5e772e7cade501979e34e6e2ed1 diff --git a/services/google/cloudidentity/alpha/group.yaml b/services/google/cloudidentity/alpha/group.yaml index b2a83bf398..87bc704eb1 100755 --- a/services/google/cloudidentity/alpha/group.yaml +++ b/services/google/cloudidentity/alpha/group.yaml @@ -177,6 +177,7 @@ components: type: string x-dcl-go-name: DisplayName description: The display name of the `Group`. + x-dcl-server-default: true dynamicGroupMetadata: type: object x-dcl-go-name: DynamicGroupMetadata diff --git a/services/google/cloudidentity/alpha/group_alpha_yaml_embed.go b/services/google/cloudidentity/alpha/group_alpha_yaml_embed.go index a6f7ecfffb..5fba36ca8c 100755 --- a/services/google/cloudidentity/alpha/group_alpha_yaml_embed.go +++ b/services/google/cloudidentity/alpha/group_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudidentity/alpha/group.yaml -var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n posixGroups:\n type: array\n x-dcl-go-name: PosixGroups\n description: The POSIX groups associated with the `Group`.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupPosixGroups\n properties:\n gid:\n type: string\n x-dcl-go-name: Gid\n description: GID of the POSIX group.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the POSIX group.\n systemId:\n type: string\n x-dcl-go-name: SystemId\n description: System identifier for which group name and gid apply\n to. If not specified it will default to empty value.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") +var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n x-dcl-server-default: true\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n posixGroups:\n type: array\n x-dcl-go-name: PosixGroups\n description: The POSIX groups associated with the `Group`.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupPosixGroups\n properties:\n gid:\n type: string\n x-dcl-go-name: Gid\n description: GID of the POSIX group.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the POSIX group.\n systemId:\n type: string\n x-dcl-go-name: SystemId\n description: System identifier for which group name and gid apply\n to. If not specified it will default to empty value.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") -// 13611 bytes -// MD5: b8ca7006254905b0d524768fd18d1283 +// 13648 bytes +// MD5: d231a67e8f55052fc0a1673c2e1eef65 diff --git a/services/google/cloudidentity/alpha/group_schema.go b/services/google/cloudidentity/alpha/group_schema.go index bd930377c8..f74d4e8928 100755 --- a/services/google/cloudidentity/alpha/group_schema.go +++ b/services/google/cloudidentity/alpha/group_schema.go @@ -202,9 +202,10 @@ func DCLGroupSchema() *dcl.Schema { }, }, "displayName": &dcl.Property{ - Type: "string", - GoName: "DisplayName", - Description: "The display name of the `Group`.", + Type: "string", + GoName: "DisplayName", + Description: "The display name of the `Group`.", + ServerDefault: true, }, "dynamicGroupMetadata": &dcl.Property{ Type: "object", diff --git a/services/google/cloudidentity/alpha/membership.yaml b/services/google/cloudidentity/alpha/membership.yaml index 0eb722d0a5..9d243f507b 100755 --- a/services/google/cloudidentity/alpha/membership.yaml +++ b/services/google/cloudidentity/alpha/membership.yaml @@ -132,6 +132,7 @@ components: description: Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned. + x-dcl-server-default: true properties: id: type: string diff --git a/services/google/cloudidentity/alpha/membership_alpha_yaml_embed.go b/services/google/cloudidentity/alpha/membership_alpha_yaml_embed.go index bf50b5fe4e..0673838348 100755 --- a/services/google/cloudidentity/alpha/membership_alpha_yaml_embed.go +++ b/services/google/cloudidentity/alpha/membership_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudidentity/alpha/membership.yaml -var YAML_membership = []byte("info:\n title: Cloudidentity/Membership\n description: The Cloudidentity Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: groups/{{group}}/memberships/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - preferredMemberKey\n - roles\n - group\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Membership` was created.\n x-kubernetes-immutable: true\n deliverySetting:\n type: string\n x-dcl-go-name: DeliverySetting\n x-dcl-go-type: MembershipDeliverySettingEnum\n readOnly: true\n description: 'Output only. Delivery setting associated with the membership.\n Possible values: DELIVERY_SETTING_UNSPECIFIED, ALL_MAIL, DIGEST, DAILY,\n NONE, DISABLED'\n x-kubernetes-immutable: true\n enum:\n - DELIVERY_SETTING_UNSPECIFIED\n - ALL_MAIL\n - DIGEST\n - DAILY\n - NONE\n - DISABLED\n displayName:\n type: object\n x-dcl-go-name: DisplayName\n x-dcl-go-type: MembershipDisplayName\n readOnly: true\n description: Output only. The display name of this member, if available\n x-kubernetes-immutable: true\n properties:\n familyName:\n type: string\n x-dcl-go-name: FamilyName\n readOnly: true\n description: Output only. Member's family name\n x-kubernetes-immutable: true\n fullName:\n type: string\n x-dcl-go-name: FullName\n readOnly: true\n description: Output only. Localized UTF-16 full name for the member.\n Localization is done based on the language in the request and the\n language of the stored display name.\n x-kubernetes-immutable: true\n givenName:\n type: string\n x-dcl-go-name: GivenName\n readOnly: true\n description: Output only. Member's given name\n x-kubernetes-immutable: true\n group:\n type: string\n x-dcl-go-name: Group\n description: The group for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudidentity/Group\n field: name\n parent: true\n memberKey:\n type: object\n x-dcl-go-name: MemberKey\n x-dcl-go-type: MembershipMemberKey\n description: Immutable. The `EntityKey` of the member. Either `member_key`\n or `preferred_member_key` must be set when calling MembershipsService.CreateMembership\n but not both; both shall be set when returned.\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of an existing group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.\n x-dcl-server-generated-parameter: true\n preferredMemberKey:\n type: object\n x-dcl-go-name: PreferredMemberKey\n x-dcl-go-type: MembershipPreferredMemberKey\n description: Required. Immutable. The `EntityKey` of the member.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n roles:\n type: array\n x-dcl-go-name: Roles\n description: The `MembershipRole`s that apply to the `Membership`. If unspecified,\n defaults to a single `MembershipRole` with `name` `MEMBER`. Must not contain\n duplicate `MembershipRole`s with the same `name`.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: MembershipRoles\n required:\n - name\n properties:\n expiryDetail:\n type: object\n x-dcl-go-name: ExpiryDetail\n x-dcl-go-type: MembershipRolesExpiryDetail\n description: The expiry details of the `MembershipRole`. Expiry details\n are only supported for `MEMBER` `MembershipRoles`. May be set if\n `name` is `MEMBER`. Must not be set if `name` is any other value.\n x-dcl-send-empty: true\n properties:\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n description: The time at which the `MembershipRole` will expire.\n name:\n type: string\n x-dcl-go-name: Name\n restrictionEvaluations:\n type: object\n x-dcl-go-name: RestrictionEvaluations\n x-dcl-go-type: MembershipRolesRestrictionEvaluations\n description: Evaluations of restrictions applied to parent group on\n this membership.\n properties:\n memberRestrictionEvaluation:\n type: object\n x-dcl-go-name: MemberRestrictionEvaluation\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluation\n description: Evaluation of the member restriction applied to this\n membership. Empty if the user lacks permission to view the restriction\n evaluation.\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluationStateEnum\n readOnly: true\n description: 'Output only. The current state of the restriction\n Possible values: ENCRYPTION_STATE_UNSPECIFIED, UNSUPPORTED_BY_DEVICE,\n ENCRYPTED, NOT_ENCRYPTED'\n enum:\n - ENCRYPTION_STATE_UNSPECIFIED\n - UNSUPPORTED_BY_DEVICE\n - ENCRYPTED\n - NOT_ENCRYPTED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: MembershipTypeEnum\n readOnly: true\n description: 'Output only. The type of the membership. Possible values:\n OWNER_TYPE_UNSPECIFIED, OWNER_TYPE_CUSTOMER, OWNER_TYPE_PARTNER'\n x-kubernetes-immutable: true\n enum:\n - OWNER_TYPE_UNSPECIFIED\n - OWNER_TYPE_CUSTOMER\n - OWNER_TYPE_PARTNER\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Membership` was last updated.\n x-kubernetes-immutable: true\n") +var YAML_membership = []byte("info:\n title: Cloudidentity/Membership\n description: The Cloudidentity Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: groups/{{group}}/memberships/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - preferredMemberKey\n - roles\n - group\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Membership` was created.\n x-kubernetes-immutable: true\n deliverySetting:\n type: string\n x-dcl-go-name: DeliverySetting\n x-dcl-go-type: MembershipDeliverySettingEnum\n readOnly: true\n description: 'Output only. Delivery setting associated with the membership.\n Possible values: DELIVERY_SETTING_UNSPECIFIED, ALL_MAIL, DIGEST, DAILY,\n NONE, DISABLED'\n x-kubernetes-immutable: true\n enum:\n - DELIVERY_SETTING_UNSPECIFIED\n - ALL_MAIL\n - DIGEST\n - DAILY\n - NONE\n - DISABLED\n displayName:\n type: object\n x-dcl-go-name: DisplayName\n x-dcl-go-type: MembershipDisplayName\n readOnly: true\n description: Output only. The display name of this member, if available\n x-kubernetes-immutable: true\n properties:\n familyName:\n type: string\n x-dcl-go-name: FamilyName\n readOnly: true\n description: Output only. Member's family name\n x-kubernetes-immutable: true\n fullName:\n type: string\n x-dcl-go-name: FullName\n readOnly: true\n description: Output only. Localized UTF-16 full name for the member.\n Localization is done based on the language in the request and the\n language of the stored display name.\n x-kubernetes-immutable: true\n givenName:\n type: string\n x-dcl-go-name: GivenName\n readOnly: true\n description: Output only. Member's given name\n x-kubernetes-immutable: true\n group:\n type: string\n x-dcl-go-name: Group\n description: The group for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudidentity/Group\n field: name\n parent: true\n memberKey:\n type: object\n x-dcl-go-name: MemberKey\n x-dcl-go-type: MembershipMemberKey\n description: Immutable. The `EntityKey` of the member. Either `member_key`\n or `preferred_member_key` must be set when calling MembershipsService.CreateMembership\n but not both; both shall be set when returned.\n x-dcl-server-default: true\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of an existing group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.\n x-dcl-server-generated-parameter: true\n preferredMemberKey:\n type: object\n x-dcl-go-name: PreferredMemberKey\n x-dcl-go-type: MembershipPreferredMemberKey\n description: Required. Immutable. The `EntityKey` of the member.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n roles:\n type: array\n x-dcl-go-name: Roles\n description: The `MembershipRole`s that apply to the `Membership`. If unspecified,\n defaults to a single `MembershipRole` with `name` `MEMBER`. Must not contain\n duplicate `MembershipRole`s with the same `name`.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: MembershipRoles\n required:\n - name\n properties:\n expiryDetail:\n type: object\n x-dcl-go-name: ExpiryDetail\n x-dcl-go-type: MembershipRolesExpiryDetail\n description: The expiry details of the `MembershipRole`. Expiry details\n are only supported for `MEMBER` `MembershipRoles`. May be set if\n `name` is `MEMBER`. Must not be set if `name` is any other value.\n x-dcl-send-empty: true\n properties:\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n description: The time at which the `MembershipRole` will expire.\n name:\n type: string\n x-dcl-go-name: Name\n restrictionEvaluations:\n type: object\n x-dcl-go-name: RestrictionEvaluations\n x-dcl-go-type: MembershipRolesRestrictionEvaluations\n description: Evaluations of restrictions applied to parent group on\n this membership.\n properties:\n memberRestrictionEvaluation:\n type: object\n x-dcl-go-name: MemberRestrictionEvaluation\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluation\n description: Evaluation of the member restriction applied to this\n membership. Empty if the user lacks permission to view the restriction\n evaluation.\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluationStateEnum\n readOnly: true\n description: 'Output only. The current state of the restriction\n Possible values: ENCRYPTION_STATE_UNSPECIFIED, UNSUPPORTED_BY_DEVICE,\n ENCRYPTED, NOT_ENCRYPTED'\n enum:\n - ENCRYPTION_STATE_UNSPECIFIED\n - UNSUPPORTED_BY_DEVICE\n - ENCRYPTED\n - NOT_ENCRYPTED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: MembershipTypeEnum\n readOnly: true\n description: 'Output only. The type of the membership. Possible values:\n OWNER_TYPE_UNSPECIFIED, OWNER_TYPE_CUSTOMER, OWNER_TYPE_PARTNER'\n x-kubernetes-immutable: true\n enum:\n - OWNER_TYPE_UNSPECIFIED\n - OWNER_TYPE_CUSTOMER\n - OWNER_TYPE_PARTNER\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Membership` was last updated.\n x-kubernetes-immutable: true\n") -// 10270 bytes -// MD5: 6b7b619405323348b3a6e5eb77b3ebde +// 10307 bytes +// MD5: 7d8c881bebbbb673d9b8d9a7b2a3f5db diff --git a/services/google/cloudidentity/alpha/membership_schema.go b/services/google/cloudidentity/alpha/membership_schema.go index 4ca29584a8..53c324bcbd 100755 --- a/services/google/cloudidentity/alpha/membership_schema.go +++ b/services/google/cloudidentity/alpha/membership_schema.go @@ -163,10 +163,11 @@ func DCLMembershipSchema() *dcl.Schema { }, }, "memberKey": &dcl.Property{ - Type: "object", - GoName: "MemberKey", - GoType: "MembershipMemberKey", - Description: "Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned.", + Type: "object", + GoName: "MemberKey", + GoType: "MembershipMemberKey", + Description: "Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "id": &dcl.Property{ Type: "string", diff --git a/services/google/cloudidentity/beta/group.yaml b/services/google/cloudidentity/beta/group.yaml index b2a83bf398..87bc704eb1 100755 --- a/services/google/cloudidentity/beta/group.yaml +++ b/services/google/cloudidentity/beta/group.yaml @@ -177,6 +177,7 @@ components: type: string x-dcl-go-name: DisplayName description: The display name of the `Group`. + x-dcl-server-default: true dynamicGroupMetadata: type: object x-dcl-go-name: DynamicGroupMetadata diff --git a/services/google/cloudidentity/beta/group_beta_yaml_embed.go b/services/google/cloudidentity/beta/group_beta_yaml_embed.go index 0e11687932..06d0d691e3 100755 --- a/services/google/cloudidentity/beta/group_beta_yaml_embed.go +++ b/services/google/cloudidentity/beta/group_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudidentity/beta/group.yaml -var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n posixGroups:\n type: array\n x-dcl-go-name: PosixGroups\n description: The POSIX groups associated with the `Group`.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupPosixGroups\n properties:\n gid:\n type: string\n x-dcl-go-name: Gid\n description: GID of the POSIX group.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the POSIX group.\n systemId:\n type: string\n x-dcl-go-name: SystemId\n description: System identifier for which group name and gid apply\n to. If not specified it will default to empty value.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") +var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n x-dcl-server-default: true\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n posixGroups:\n type: array\n x-dcl-go-name: PosixGroups\n description: The POSIX groups associated with the `Group`.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupPosixGroups\n properties:\n gid:\n type: string\n x-dcl-go-name: Gid\n description: GID of the POSIX group.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the POSIX group.\n systemId:\n type: string\n x-dcl-go-name: SystemId\n description: System identifier for which group name and gid apply\n to. If not specified it will default to empty value.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") -// 13611 bytes -// MD5: b8ca7006254905b0d524768fd18d1283 +// 13648 bytes +// MD5: d231a67e8f55052fc0a1673c2e1eef65 diff --git a/services/google/cloudidentity/beta/group_schema.go b/services/google/cloudidentity/beta/group_schema.go index 412425208a..1051c22bbb 100755 --- a/services/google/cloudidentity/beta/group_schema.go +++ b/services/google/cloudidentity/beta/group_schema.go @@ -202,9 +202,10 @@ func DCLGroupSchema() *dcl.Schema { }, }, "displayName": &dcl.Property{ - Type: "string", - GoName: "DisplayName", - Description: "The display name of the `Group`.", + Type: "string", + GoName: "DisplayName", + Description: "The display name of the `Group`.", + ServerDefault: true, }, "dynamicGroupMetadata": &dcl.Property{ Type: "object", diff --git a/services/google/cloudidentity/beta/membership.yaml b/services/google/cloudidentity/beta/membership.yaml index 0eb722d0a5..9d243f507b 100755 --- a/services/google/cloudidentity/beta/membership.yaml +++ b/services/google/cloudidentity/beta/membership.yaml @@ -132,6 +132,7 @@ components: description: Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned. + x-dcl-server-default: true properties: id: type: string diff --git a/services/google/cloudidentity/beta/membership_beta_yaml_embed.go b/services/google/cloudidentity/beta/membership_beta_yaml_embed.go index fa0b9bc995..c6ddcad1ce 100755 --- a/services/google/cloudidentity/beta/membership_beta_yaml_embed.go +++ b/services/google/cloudidentity/beta/membership_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudidentity/beta/membership.yaml -var YAML_membership = []byte("info:\n title: Cloudidentity/Membership\n description: The Cloudidentity Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: groups/{{group}}/memberships/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - preferredMemberKey\n - roles\n - group\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Membership` was created.\n x-kubernetes-immutable: true\n deliverySetting:\n type: string\n x-dcl-go-name: DeliverySetting\n x-dcl-go-type: MembershipDeliverySettingEnum\n readOnly: true\n description: 'Output only. Delivery setting associated with the membership.\n Possible values: DELIVERY_SETTING_UNSPECIFIED, ALL_MAIL, DIGEST, DAILY,\n NONE, DISABLED'\n x-kubernetes-immutable: true\n enum:\n - DELIVERY_SETTING_UNSPECIFIED\n - ALL_MAIL\n - DIGEST\n - DAILY\n - NONE\n - DISABLED\n displayName:\n type: object\n x-dcl-go-name: DisplayName\n x-dcl-go-type: MembershipDisplayName\n readOnly: true\n description: Output only. The display name of this member, if available\n x-kubernetes-immutable: true\n properties:\n familyName:\n type: string\n x-dcl-go-name: FamilyName\n readOnly: true\n description: Output only. Member's family name\n x-kubernetes-immutable: true\n fullName:\n type: string\n x-dcl-go-name: FullName\n readOnly: true\n description: Output only. Localized UTF-16 full name for the member.\n Localization is done based on the language in the request and the\n language of the stored display name.\n x-kubernetes-immutable: true\n givenName:\n type: string\n x-dcl-go-name: GivenName\n readOnly: true\n description: Output only. Member's given name\n x-kubernetes-immutable: true\n group:\n type: string\n x-dcl-go-name: Group\n description: The group for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudidentity/Group\n field: name\n parent: true\n memberKey:\n type: object\n x-dcl-go-name: MemberKey\n x-dcl-go-type: MembershipMemberKey\n description: Immutable. The `EntityKey` of the member. Either `member_key`\n or `preferred_member_key` must be set when calling MembershipsService.CreateMembership\n but not both; both shall be set when returned.\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of an existing group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.\n x-dcl-server-generated-parameter: true\n preferredMemberKey:\n type: object\n x-dcl-go-name: PreferredMemberKey\n x-dcl-go-type: MembershipPreferredMemberKey\n description: Required. Immutable. The `EntityKey` of the member.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n roles:\n type: array\n x-dcl-go-name: Roles\n description: The `MembershipRole`s that apply to the `Membership`. If unspecified,\n defaults to a single `MembershipRole` with `name` `MEMBER`. Must not contain\n duplicate `MembershipRole`s with the same `name`.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: MembershipRoles\n required:\n - name\n properties:\n expiryDetail:\n type: object\n x-dcl-go-name: ExpiryDetail\n x-dcl-go-type: MembershipRolesExpiryDetail\n description: The expiry details of the `MembershipRole`. Expiry details\n are only supported for `MEMBER` `MembershipRoles`. May be set if\n `name` is `MEMBER`. Must not be set if `name` is any other value.\n x-dcl-send-empty: true\n properties:\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n description: The time at which the `MembershipRole` will expire.\n name:\n type: string\n x-dcl-go-name: Name\n restrictionEvaluations:\n type: object\n x-dcl-go-name: RestrictionEvaluations\n x-dcl-go-type: MembershipRolesRestrictionEvaluations\n description: Evaluations of restrictions applied to parent group on\n this membership.\n properties:\n memberRestrictionEvaluation:\n type: object\n x-dcl-go-name: MemberRestrictionEvaluation\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluation\n description: Evaluation of the member restriction applied to this\n membership. Empty if the user lacks permission to view the restriction\n evaluation.\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluationStateEnum\n readOnly: true\n description: 'Output only. The current state of the restriction\n Possible values: ENCRYPTION_STATE_UNSPECIFIED, UNSUPPORTED_BY_DEVICE,\n ENCRYPTED, NOT_ENCRYPTED'\n enum:\n - ENCRYPTION_STATE_UNSPECIFIED\n - UNSUPPORTED_BY_DEVICE\n - ENCRYPTED\n - NOT_ENCRYPTED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: MembershipTypeEnum\n readOnly: true\n description: 'Output only. The type of the membership. Possible values:\n OWNER_TYPE_UNSPECIFIED, OWNER_TYPE_CUSTOMER, OWNER_TYPE_PARTNER'\n x-kubernetes-immutable: true\n enum:\n - OWNER_TYPE_UNSPECIFIED\n - OWNER_TYPE_CUSTOMER\n - OWNER_TYPE_PARTNER\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Membership` was last updated.\n x-kubernetes-immutable: true\n") +var YAML_membership = []byte("info:\n title: Cloudidentity/Membership\n description: The Cloudidentity Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: group\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: groups/{{group}}/memberships/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - preferredMemberKey\n - roles\n - group\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Membership` was created.\n x-kubernetes-immutable: true\n deliverySetting:\n type: string\n x-dcl-go-name: DeliverySetting\n x-dcl-go-type: MembershipDeliverySettingEnum\n readOnly: true\n description: 'Output only. Delivery setting associated with the membership.\n Possible values: DELIVERY_SETTING_UNSPECIFIED, ALL_MAIL, DIGEST, DAILY,\n NONE, DISABLED'\n x-kubernetes-immutable: true\n enum:\n - DELIVERY_SETTING_UNSPECIFIED\n - ALL_MAIL\n - DIGEST\n - DAILY\n - NONE\n - DISABLED\n displayName:\n type: object\n x-dcl-go-name: DisplayName\n x-dcl-go-type: MembershipDisplayName\n readOnly: true\n description: Output only. The display name of this member, if available\n x-kubernetes-immutable: true\n properties:\n familyName:\n type: string\n x-dcl-go-name: FamilyName\n readOnly: true\n description: Output only. Member's family name\n x-kubernetes-immutable: true\n fullName:\n type: string\n x-dcl-go-name: FullName\n readOnly: true\n description: Output only. Localized UTF-16 full name for the member.\n Localization is done based on the language in the request and the\n language of the stored display name.\n x-kubernetes-immutable: true\n givenName:\n type: string\n x-dcl-go-name: GivenName\n readOnly: true\n description: Output only. Member's given name\n x-kubernetes-immutable: true\n group:\n type: string\n x-dcl-go-name: Group\n description: The group for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudidentity/Group\n field: name\n parent: true\n memberKey:\n type: object\n x-dcl-go-name: MemberKey\n x-dcl-go-type: MembershipMemberKey\n description: Immutable. The `EntityKey` of the member. Either `member_key`\n or `preferred_member_key` must be set when calling MembershipsService.CreateMembership\n but not both; both shall be set when returned.\n x-dcl-server-default: true\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of an existing group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Membership`. Shall be of the form `groups/{group}/memberships/{membership}`.\n x-dcl-server-generated-parameter: true\n preferredMemberKey:\n type: object\n x-dcl-go-name: PreferredMemberKey\n x-dcl-go-type: MembershipPreferredMemberKey\n description: Required. Immutable. The `EntityKey` of the member.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n roles:\n type: array\n x-dcl-go-name: Roles\n description: The `MembershipRole`s that apply to the `Membership`. If unspecified,\n defaults to a single `MembershipRole` with `name` `MEMBER`. Must not contain\n duplicate `MembershipRole`s with the same `name`.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: MembershipRoles\n required:\n - name\n properties:\n expiryDetail:\n type: object\n x-dcl-go-name: ExpiryDetail\n x-dcl-go-type: MembershipRolesExpiryDetail\n description: The expiry details of the `MembershipRole`. Expiry details\n are only supported for `MEMBER` `MembershipRoles`. May be set if\n `name` is `MEMBER`. Must not be set if `name` is any other value.\n x-dcl-send-empty: true\n properties:\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n description: The time at which the `MembershipRole` will expire.\n name:\n type: string\n x-dcl-go-name: Name\n restrictionEvaluations:\n type: object\n x-dcl-go-name: RestrictionEvaluations\n x-dcl-go-type: MembershipRolesRestrictionEvaluations\n description: Evaluations of restrictions applied to parent group on\n this membership.\n properties:\n memberRestrictionEvaluation:\n type: object\n x-dcl-go-name: MemberRestrictionEvaluation\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluation\n description: Evaluation of the member restriction applied to this\n membership. Empty if the user lacks permission to view the restriction\n evaluation.\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: MembershipRolesRestrictionEvaluationsMemberRestrictionEvaluationStateEnum\n readOnly: true\n description: 'Output only. The current state of the restriction\n Possible values: ENCRYPTION_STATE_UNSPECIFIED, UNSUPPORTED_BY_DEVICE,\n ENCRYPTED, NOT_ENCRYPTED'\n enum:\n - ENCRYPTION_STATE_UNSPECIFIED\n - UNSUPPORTED_BY_DEVICE\n - ENCRYPTED\n - NOT_ENCRYPTED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: MembershipTypeEnum\n readOnly: true\n description: 'Output only. The type of the membership. Possible values:\n OWNER_TYPE_UNSPECIFIED, OWNER_TYPE_CUSTOMER, OWNER_TYPE_PARTNER'\n x-kubernetes-immutable: true\n enum:\n - OWNER_TYPE_UNSPECIFIED\n - OWNER_TYPE_CUSTOMER\n - OWNER_TYPE_PARTNER\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Membership` was last updated.\n x-kubernetes-immutable: true\n") -// 10270 bytes -// MD5: 6b7b619405323348b3a6e5eb77b3ebde +// 10307 bytes +// MD5: 7d8c881bebbbb673d9b8d9a7b2a3f5db diff --git a/services/google/cloudidentity/beta/membership_schema.go b/services/google/cloudidentity/beta/membership_schema.go index b797ce9252..c466083f65 100755 --- a/services/google/cloudidentity/beta/membership_schema.go +++ b/services/google/cloudidentity/beta/membership_schema.go @@ -163,10 +163,11 @@ func DCLMembershipSchema() *dcl.Schema { }, }, "memberKey": &dcl.Property{ - Type: "object", - GoName: "MemberKey", - GoType: "MembershipMemberKey", - Description: "Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned.", + Type: "object", + GoName: "MemberKey", + GoType: "MembershipMemberKey", + Description: "Immutable. The `EntityKey` of the member. Either `member_key` or `preferred_member_key` must be set when calling MembershipsService.CreateMembership but not both; both shall be set when returned.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "id": &dcl.Property{ Type: "string", diff --git a/services/google/cloudidentity/group.yaml b/services/google/cloudidentity/group.yaml index 65bb5b6bce..7663cc0006 100755 --- a/services/google/cloudidentity/group.yaml +++ b/services/google/cloudidentity/group.yaml @@ -177,6 +177,7 @@ components: type: string x-dcl-go-name: DisplayName description: The display name of the `Group`. + x-dcl-server-default: true dynamicGroupMetadata: type: object x-dcl-go-name: DynamicGroupMetadata diff --git a/services/google/cloudidentity/group_schema.go b/services/google/cloudidentity/group_schema.go index 34264f2175..06f6d16d9a 100755 --- a/services/google/cloudidentity/group_schema.go +++ b/services/google/cloudidentity/group_schema.go @@ -202,9 +202,10 @@ func DCLGroupSchema() *dcl.Schema { }, }, "displayName": &dcl.Property{ - Type: "string", - GoName: "DisplayName", - Description: "The display name of the `Group`.", + Type: "string", + GoName: "DisplayName", + Description: "The display name of the `Group`.", + ServerDefault: true, }, "dynamicGroupMetadata": &dcl.Property{ Type: "object", diff --git a/services/google/cloudidentity/group_yaml_embed.go b/services/google/cloudidentity/group_yaml_embed.go index 1e3233a529..3664d223b9 100755 --- a/services/google/cloudidentity/group_yaml_embed.go +++ b/services/google/cloudidentity/group_yaml_embed.go @@ -17,7 +17,7 @@ package cloudidentity // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudidentity/group.yaml -var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") +var YAML_group = []byte("info:\n title: Cloudidentity/Group\n description: The Cloudidentity Group resource\n x-dcl-struct-name: Group\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n apply:\n description: The function used to apply information about a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n delete:\n description: The function used to delete a Group\n parameters:\n - name: Group\n required: true\n description: A full instance of a Group\n deleteAll:\n description: The function used to delete all Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Group\n parameters:\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Group:\n title: Group\n x-dcl-id: groups/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - groupKey\n - parent\n - labels\n properties:\n additionalGroupKeys:\n type: array\n x-dcl-go-name: AdditionalGroupKeys\n description: Optional. Additional entity key aliases for a Group.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupAdditionalGroupKeys\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the `Group` was created.\n x-kubernetes-immutable: true\n derivedAliases:\n type: array\n x-dcl-go-name: DerivedAliases\n readOnly: true\n description: Output only. Aliases for groups derived from domain aliases.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDerivedAliases\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents\n an external-identity-mapped group. The namespace must correspond\n to an identity source created in Admin Console and must be in the\n form of `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An extended description to help users determine the purpose\n of a `Group`. Must not be longer than 4,096 characters.\n directMemberCount:\n type: integer\n format: int64\n x-dcl-go-name: DirectMemberCount\n readOnly: true\n description: 'Output only. The number of all direct members. Including groups\n and users, The special member: all-user-in-domain will be counted as one\n member. Output only.'\n x-kubernetes-immutable: true\n directMemberCountPerType:\n type: object\n x-dcl-go-name: DirectMemberCountPerType\n x-dcl-go-type: GroupDirectMemberCountPerType\n readOnly: true\n description: Output only. Direct membership counts grouped by user/group\n type\n x-kubernetes-immutable: true\n properties:\n groupCount:\n type: integer\n format: int64\n x-dcl-go-name: GroupCount\n readOnly: true\n description: Output only. Direct group type membership count\n x-kubernetes-immutable: true\n userCount:\n type: integer\n format: int64\n x-dcl-go-name: UserCount\n readOnly: true\n description: Output only. Direct user type membership count\n x-kubernetes-immutable: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The display name of the `Group`.\n x-dcl-server-default: true\n dynamicGroupMetadata:\n type: object\n x-dcl-go-name: DynamicGroupMetadata\n x-dcl-go-type: GroupDynamicGroupMetadata\n description: Optional. Dynamic group metadata like queries and status.\n properties:\n queries:\n type: array\n x-dcl-go-name: Queries\n description: Only one entry is supported for now. Memberships will be\n the union of all queries. Customers can create up to 100 dynamic groups.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: GroupDynamicGroupMetadataQueries\n properties:\n query:\n type: string\n x-dcl-go-name: Query\n description: Query that determines the memberships of the dynamic\n group.\n resourceType:\n type: string\n x-dcl-go-name: ResourceType\n x-dcl-go-type: GroupDynamicGroupMetadataQueriesResourceTypeEnum\n description: ' Possible values: RESOURCE_TYPE_UNSPECIFIED, USER'\n enum:\n - RESOURCE_TYPE_UNSPECIFIED\n - USER\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatus\n readOnly: true\n description: Status of the dynamic group. Output only.\n properties:\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: GroupDynamicGroupMetadataStatusStatusEnum\n description: 'Status of the dynamic group. Possible values: STATUS_UNSPECIFIED,\n UP_TO_DATE, UPDATING_MEMBERSHIPS, INVALID_QUERY'\n enum:\n - STATUS_UNSPECIFIED\n - UP_TO_DATE\n - UPDATING_MEMBERSHIPS\n - INVALID_QUERY\n statusTime:\n type: string\n format: date-time\n x-dcl-go-name: StatusTime\n description: 'The latest time at which the dynamic group is guaranteed\n to be in the given status. For example, if status is: UP_TO_DATE\n - The latest time at which this dynamic group was confirmed to\n be up to date. UPDATING_MEMBERSHIPS - The time at which dynamic\n group was created.'\n groupKey:\n type: object\n x-dcl-go-name: GroupKey\n x-dcl-go-type: GroupGroupKey\n description: Required. Immutable. The `EntityKey` of the `Group`.\n x-kubernetes-immutable: true\n required:\n - id\n properties:\n id:\n type: string\n x-dcl-go-name: Id\n description: The ID of the entity. For Google-managed entities, the\n `id` must be the email address of a group or user. For external-identity-mapped\n entities, the `id` must be a string conforming to the Identity Source's\n requirements. Must be unique within a `namespace`.\n x-kubernetes-immutable: true\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: The namespace in which the entity exists. If not specified,\n the `EntityKey` represents a Google-managed entity such as a Google\n user or a Google Group. If specified, the `EntityKey` represents an\n external-identity-mapped group. The namespace must correspond to an\n identity source created in Admin Console and must be in the form of\n `identitysources/{identity_source_id}`.\n x-kubernetes-immutable: true\n initialGroupConfig:\n type: string\n x-dcl-go-name: InitialGroupConfig\n x-dcl-go-type: GroupInitialGroupConfigEnum\n description: 'The initial configuration option for the `Group`. Possible\n values: INITIAL_GROUP_CONFIG_UNSPECIFIED, WITH_INITIAL_OWNER, EMPTY'\n x-kubernetes-immutable: true\n enum:\n - INITIAL_GROUP_CONFIG_UNSPECIFIED\n - WITH_INITIAL_OWNER\n - EMPTY\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Required. One or more label entries that apply to the Group.\n Currently supported labels contain a key with an empty value. Google Groups\n are the default type of group and have a label with a key of `cloudidentity.googleapis.com/groups.discussion_forum`\n and an empty value. Existing Google Groups can have an additional label\n with a key of `cloudidentity.googleapis.com/groups.security` and an empty\n value added to them. **This is an immutable change and the security label\n cannot be removed once added.** Dynamic groups have a label with a key\n of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped groups\n for Cloud Search have a label with a key of `system/groups/external` and\n an empty value.\n name:\n type: string\n x-dcl-go-name: Name\n description: Output only. The [resource name](https://cloud.google.com/apis/design/resource_names)\n of the `Group`. Shall be of the form `groups/{group}`.\n x-dcl-server-generated-parameter: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: Required. Immutable. The resource name of the entity under\n which this `Group` resides in the Cloud Identity resource hierarchy. Must\n be of the form `identitysources/{identity_source}` for external- identity-mapped\n groups or `customers/{customer}` for Google Groups. The `customer` must\n begin with \"C\" (for example, 'C046psxkn').\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the `Group` was last updated.\n x-kubernetes-immutable: true\n") -// 12766 bytes -// MD5: 5cee6b5772ca99d5e7aede88c8139c8b +// 12803 bytes +// MD5: dabf30ba44163fb8d1ccb1bb7520abac diff --git a/services/google/cloudscheduler/alpha/job.yaml b/services/google/cloudscheduler/alpha/job.yaml index bfbfaf0f99..afe2709dda 100755 --- a/services/google/cloudscheduler/alpha/job.yaml +++ b/services/google/cloudscheduler/alpha/job.yaml @@ -531,6 +531,7 @@ components: The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT). + x-dcl-server-default: true userUpdateTime: type: string format: date-time diff --git a/services/google/cloudscheduler/alpha/job_alpha_yaml_embed.go b/services/google/cloudscheduler/alpha/job_alpha_yaml_embed.go index 81c1c03e9f..1666653e90 100755 --- a/services/google/cloudscheduler/alpha/job_alpha_yaml_embed.go +++ b/services/google/cloudscheduler/alpha/job_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudscheduler/alpha/job.yaml -var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") +var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n x-dcl-server-default: true\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") -// 27326 bytes -// MD5: e7c691020e1d5b76a185cb5fa3c0e102 +// 27363 bytes +// MD5: 2d85a9ac15124887f686d9ddf8c3cb3a diff --git a/services/google/cloudscheduler/alpha/job_schema.go b/services/google/cloudscheduler/alpha/job_schema.go index 3efa81728d..4d92c5526f 100755 --- a/services/google/cloudscheduler/alpha/job_schema.go +++ b/services/google/cloudscheduler/alpha/job_schema.go @@ -463,9 +463,10 @@ func DCLJobSchema() *dcl.Schema { }, }, "timeZone": &dcl.Property{ - Type: "string", - GoName: "TimeZone", - Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + Type: "string", + GoName: "TimeZone", + Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + ServerDefault: true, }, "userUpdateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudscheduler/beta/job.yaml b/services/google/cloudscheduler/beta/job.yaml index bfbfaf0f99..afe2709dda 100755 --- a/services/google/cloudscheduler/beta/job.yaml +++ b/services/google/cloudscheduler/beta/job.yaml @@ -531,6 +531,7 @@ components: The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT). + x-dcl-server-default: true userUpdateTime: type: string format: date-time diff --git a/services/google/cloudscheduler/beta/job_beta_yaml_embed.go b/services/google/cloudscheduler/beta/job_beta_yaml_embed.go index defba49a05..4d44bb307b 100755 --- a/services/google/cloudscheduler/beta/job_beta_yaml_embed.go +++ b/services/google/cloudscheduler/beta/job_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudscheduler/beta/job.yaml -var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") +var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n x-dcl-server-default: true\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") -// 27326 bytes -// MD5: e7c691020e1d5b76a185cb5fa3c0e102 +// 27363 bytes +// MD5: 2d85a9ac15124887f686d9ddf8c3cb3a diff --git a/services/google/cloudscheduler/beta/job_schema.go b/services/google/cloudscheduler/beta/job_schema.go index 7fdab946c9..395d0a8f53 100755 --- a/services/google/cloudscheduler/beta/job_schema.go +++ b/services/google/cloudscheduler/beta/job_schema.go @@ -463,9 +463,10 @@ func DCLJobSchema() *dcl.Schema { }, }, "timeZone": &dcl.Property{ - Type: "string", - GoName: "TimeZone", - Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + Type: "string", + GoName: "TimeZone", + Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + ServerDefault: true, }, "userUpdateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudscheduler/job.yaml b/services/google/cloudscheduler/job.yaml index bfbfaf0f99..afe2709dda 100755 --- a/services/google/cloudscheduler/job.yaml +++ b/services/google/cloudscheduler/job.yaml @@ -531,6 +531,7 @@ components: The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT). + x-dcl-server-default: true userUpdateTime: type: string format: date-time diff --git a/services/google/cloudscheduler/job_schema.go b/services/google/cloudscheduler/job_schema.go index 80d81eb593..a64e49c1b5 100755 --- a/services/google/cloudscheduler/job_schema.go +++ b/services/google/cloudscheduler/job_schema.go @@ -463,9 +463,10 @@ func DCLJobSchema() *dcl.Schema { }, }, "timeZone": &dcl.Property{ - Type: "string", - GoName: "TimeZone", - Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + Type: "string", + GoName: "TimeZone", + Description: "Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database). Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).", + ServerDefault: true, }, "userUpdateTime": &dcl.Property{ Type: "string", diff --git a/services/google/cloudscheduler/job_yaml_embed.go b/services/google/cloudscheduler/job_yaml_embed.go index 470529e960..eb62019236 100755 --- a/services/google/cloudscheduler/job_yaml_embed.go +++ b/services/google/cloudscheduler/job_yaml_embed.go @@ -17,7 +17,7 @@ package cloudscheduler // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/cloudscheduler/job.yaml -var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") +var YAML_job = []byte("info:\n title: CloudScheduler/Job\n description: The CloudScheduler Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n appEngineHttpTarget:\n type: object\n x-dcl-go-name: AppEngineHttpTarget\n x-dcl-go-type: JobAppEngineHttpTarget\n description: App Engine HTTP target.\n properties:\n appEngineRouting:\n type: object\n x-dcl-go-name: AppEngineRouting\n x-dcl-go-type: JobAppEngineHttpTargetAppEngineRouting\n description: App Engine Routing setting for the job.\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n readOnly: true\n description: 'Output only. The host that the job is sent to. For\n more information about how App Engine requests are routed, see\n [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).\n The host is constructed as: * `host = [application_domain_name]`\n `| [service] + ''.'' + [application_domain_name]` `| [version]\n + ''.'' + [application_domain_name]` `| [version_dot_service]+\n ''.'' + [application_domain_name]` `| [instance] + ''.'' + [application_domain_name]`\n `| [instance_dot_service] + ''.'' + [application_domain_name]`\n `| [instance_dot_version] + ''.'' + [application_domain_name]`\n `| [instance_dot_version_dot_service] + ''.'' + [application_domain_name]`\n * `application_domain_name` = The domain name of the app, for\n example .appspot.com, which is associated with the job''s project\n ID. * `service =` service * `version =` version * `version_dot_service\n =` version `+ ''.'' +` service * `instance =` instance * `instance_dot_service\n =` instance `+ ''.'' +` service * `instance_dot_version =` instance\n `+ ''.'' +` version * `instance_dot_version_dot_service =` instance\n `+ ''.'' +` version `+ ''.'' +` service If service is empty, then\n the job will be sent to the service which is the default service\n when the job is attempted. If version is empty, then the job will\n be sent to the version which is the default version when the job\n is attempted. If instance is empty, then the job will be sent\n to an instance which is available when the job is attempted. If\n service, version, or instance is invalid, then the job will be\n sent to the default version of the default service when the job\n is attempted.'\n instance:\n type: string\n x-dcl-go-name: Instance\n description: App instance. By default, the job is sent to an instance\n which is available when the job is attempted. Requests can only\n be sent to a specific instance if [manual scaling is used in App\n Engine Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).\n App Engine Flex does not support instances. For more information,\n see [App Engine Standard request routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)\n and [App Engine Flex request routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).\n service:\n type: string\n x-dcl-go-name: Service\n description: App service. By default, the job is sent to the service\n which is the default service when the job is attempted.\n version:\n type: string\n x-dcl-go-name: Version\n description: App version. By default, the job is sent to the version\n which is the default version when the job is attempted.\n body:\n type: string\n x-dcl-go-name: Body\n description: Body. HTTP request body. A request body is allowed only\n if the HTTP method is POST or PUT. It will result in invalid argument\n error to set a body on a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'HTTP request headers. This map contains the header field\n names and values. Headers can be set when the job is created. Cloud\n Scheduler sets some headers to default values: * `User-Agent`: By\n default, this header is `\"App Engine-Google; (+http://code.google.com/appengine)\"`.\n This header can be modified, but Cloud Scheduler will append `\"App\n Engine-Google; (+http://code.google.com/appengine)\"` to the modified\n `User-Agent`. * `X-CloudScheduler`: This header will be set to true.\n The headers below are output only. They cannot be set or overridden:\n * `X-Google-*`: For Google internal use only. * `X-App Engine-*`:\n For Google internal use only. In addition, some App Engine headers,\n which contain job-specific information, are also be sent to the job\n handler.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobAppEngineHttpTargetHttpMethodEnum\n description: 'The HTTP method to use for the request. PATCH and OPTIONS\n are not permitted. Possible values: HTTP_METHOD_UNSPECIFIED, POST,\n GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n relativeUri:\n type: string\n x-dcl-go-name: RelativeUri\n description: The relative URI. The relative URL must begin with \"/\"\n and must be a valid HTTP relative URL. It can contain a path, query\n string arguments, and `#` fragments. If the relative URL is empty,\n then the root path \"/\" will be used. No spaces are allowed, and the\n maximum length allowed is 2083 characters.\n attemptDeadline:\n type: string\n x-dcl-go-name: AttemptDeadline\n description: 'The deadline for job attempts. If the request handler does\n not respond by this deadline then the request is cancelled and the attempt\n is marked as a `DEADLINE_EXCEEDED` failure. The failed attempt can be\n viewed in execution logs. Cloud Scheduler will retry the job according\n to the RetryConfig. The allowed duration for this deadline is: * For HTTP\n targets, between 15 seconds and 30 minutes. * For App Engine HTTP targets,\n between 15 seconds and 24 hours.'\n description:\n type: string\n x-dcl-go-name: Description\n description: Optionally caller-specified in CreateJob or UpdateJob. A human-readable\n description for the job. This string must not contain more than 500 characters.\n httpTarget:\n type: object\n x-dcl-go-name: HttpTarget\n x-dcl-go-type: JobHttpTarget\n description: HTTP target.\n required:\n - uri\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: HTTP request body. A request body is allowed only if the\n HTTP method is POST, PUT, or PATCH. It is an error to set body on\n a job with an incompatible HttpMethod.\n headers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Headers\n description: 'The user can specify HTTP request headers to send with\n the job''s HTTP request. This map contains the header field names\n and values. Repeated headers are not supported, but a header value\n can contain commas. These headers represent a subset of the headers\n that will accompany the job''s HTTP request. Some HTTP request headers\n will be ignored or replaced. A partial list of headers that will be\n ignored or replaced is below: - Host: This will be computed by Cloud\n Scheduler and derived from uri. * `Content-Length`: This will be computed\n by Cloud Scheduler. * `User-Agent`: This will be set to `\"Google-Cloud-Scheduler\"`.\n * `X-Google-*`: Google internal use only. * `X-appengine-*`: Google\n internal use only. The total size of headers must be less than 80KB.'\n httpMethod:\n type: string\n x-dcl-go-name: HttpMethod\n x-dcl-go-type: JobHttpTargetHttpMethodEnum\n description: 'Which HTTP method to use for the request. Possible values:\n HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, PATCH, OPTIONS'\n enum:\n - HTTP_METHOD_UNSPECIFIED\n - POST\n - GET\n - HEAD\n - PUT\n - DELETE\n - PATCH\n - OPTIONS\n oauthToken:\n type: object\n x-dcl-go-name: OAuthToken\n x-dcl-go-type: JobHttpTargetOAuthToken\n description: If specified, an [OAuth token](https://developers.google.com/identity/protocols/OAuth2)\n will be generated and attached as an `Authorization` header in the\n HTTP request. This type of authorization should generally only be\n used when calling Google APIs hosted on *.googleapis.com.\n properties:\n scope:\n type: string\n x-dcl-go-name: Scope\n description: OAuth scope to be used for generating OAuth access\n token. If not specified, \"https://www.googleapis.com/auth/cloud-platform\"\n will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OAuth token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n oidcToken:\n type: object\n x-dcl-go-name: OidcToken\n x-dcl-go-type: JobHttpTargetOidcToken\n description: If specified, an [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)\n token will be generated and attached as an `Authorization` header\n in the HTTP request. This type of authorization can be used for many\n scenarios, including calling Cloud Run, or endpoints where you intend\n to validate the token yourself.\n properties:\n audience:\n type: string\n x-dcl-go-name: Audience\n description: Audience to be used when generating OIDC token. If\n not specified, the URI specified in target will be used.\n serviceAccountEmail:\n type: string\n x-dcl-go-name: ServiceAccountEmail\n description: '[Service account email](https://cloud.google.com/iam/docs/service-accounts)\n to be used for generating OIDC token. The service account must\n be within the same project as the job. The caller must have iam.serviceAccounts.actAs\n permission for the service account.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n uri:\n type: string\n x-dcl-go-name: Uri\n description: 'Required. The full URI path that the request will be sent\n to. This string must begin with either \"http://\" or \"https://\". Some\n examples of valid values for uri are: `http://acme.com` and `https://acme.com/sales:8080`.\n Cloud Scheduler will encode some characters for safety and compatibility.\n The maximum allowed URL length is 2083 characters after encoding.'\n lastAttemptTime:\n type: string\n format: date-time\n x-dcl-go-name: LastAttemptTime\n readOnly: true\n description: Output only. The time the last job attempt started.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Optionally caller-specified in CreateJob, after which it becomes\n output only. The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.\n * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens\n (-), colons (:), or periods (.). For more information, see [Identifying\n projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)\n * `LOCATION_ID` is the canonical ID for the job''s location. The list\n of available locations can be obtained by calling ListLocations. For more\n information, see https://cloud.google.com/about/locations/. * `JOB_ID`\n can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or\n underscores (_). The maximum length is 500 characters.'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pubsubTarget:\n type: object\n x-dcl-go-name: PubsubTarget\n x-dcl-go-type: JobPubsubTarget\n description: Pub/Sub target.\n required:\n - topicName\n properties:\n attributes:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Attributes\n description: Attributes for PubsubMessage. Pubsub message must contain\n either non-empty data, or at least one attribute.\n data:\n type: string\n x-dcl-go-name: Data\n description: The message payload for PubsubMessage. Pubsub message must\n contain either non-empty data, or at least one attribute.\n topicName:\n type: string\n x-dcl-go-name: TopicName\n description: Required. The name of the Cloud Pub/Sub topic to which\n messages will be published when a job is delivered. The topic name\n must be in the same format as required by Pub/Sub's [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),\n for example `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must\n be in the same project as the Cloud Scheduler job.\n x-dcl-references:\n - resource: Pubsub/Topic\n field: name\n retryConfig:\n type: object\n x-dcl-go-name: RetryConfig\n x-dcl-go-type: JobRetryConfig\n description: Settings that determine the retry behavior.\n properties:\n maxBackoffDuration:\n type: string\n x-dcl-go-name: MaxBackoffDuration\n description: The maximum amount of time to wait before retrying a job\n after it fails. The default value of this field is 1 hour.\n maxDoublings:\n type: integer\n format: int64\n x-dcl-go-name: MaxDoublings\n description: The time between retries will double `max_doublings` times.\n A job's retry interval starts at min_backoff_duration, then doubles\n `max_doublings` times, then increases linearly, and finally retries\n at intervals of max_backoff_duration up to retry_count times. For\n example, if min_backoff_duration is 10s, max_backoff_duration is 300s,\n and `max_doublings` is 3, then the a job will first be retried in\n 10s. The retry interval will double three times, and then increase\n linearly by 2^3 * 10s. Finally, the job will retry at intervals of\n max_backoff_duration until the job has been attempted retry_count\n times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,\n 240s, 300s, 300s, .... The default value of this field is 5.\n maxRetryDuration:\n type: string\n x-dcl-go-name: MaxRetryDuration\n description: The time limit for retrying a failed job, measured from\n time when an execution was first attempted. If specified with retry_count,\n the job will be retried until both limits are reached. The default\n value for max_retry_duration is zero, which means retry duration is\n unlimited.\n minBackoffDuration:\n type: string\n x-dcl-go-name: MinBackoffDuration\n description: The minimum amount of time to wait before retrying a job\n after it fails. The default value of this field is 5 seconds.\n retryCount:\n type: integer\n format: int64\n x-dcl-go-name: RetryCount\n description: The number of attempts that the system will make to run\n a job using the exponential backoff procedure described by max_doublings.\n The default value of retry_count is zero. If retry_count is zero,\n a job attempt will *not* be retried if it fails. Instead the Cloud\n Scheduler system will wait for the next scheduled execution time.\n If retry_count is set to a non-zero number then Cloud Scheduler will\n retry failed attempts, using exponential backoff, retry_count times,\n or until the next scheduled execution time, whichever comes first.\n Values greater than 5 and negative values are not allowed.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Required, except when used with UpdateJob. Describes the schedule\n on which the job will be executed. The schedule can be either of the following\n types: * [Crontab](http://en.wikipedia.org/wiki/Cron#Overview) * English-like\n [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules)\n As a general rule, execution `n + 1` of a job will not begin until execution\n `n` has finished. Cloud Scheduler will never allow two simultaneously\n outstanding executions. For example, this implies that if the `n+1`th\n execution is scheduled to run at 16:00 but the `n`th execution takes until\n 16:15, the `n+1`th execution will not start until `16:15`. A scheduled\n start time will be delayed if the previous execution has not ended when\n its scheduled time occurs. If retry_count > 0 and a job attempt fails,\n the job will be tried a total of retry_count times, with exponential backoff,\n until the next scheduled start time.'\n scheduleTime:\n type: string\n format: date-time\n x-dcl-go-name: ScheduleTime\n readOnly: true\n description: Output only. The next time the job is scheduled. Note that\n this may be a retry of a previously failed attempt or the next execution\n time according to the schedule.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobStateEnum\n readOnly: true\n description: 'Output only. State of the job. Possible values: STATE_UNSPECIFIED,\n ENABLED, PAUSED, DISABLED, UPDATE_FAILED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ENABLED\n - PAUSED\n - DISABLED\n - UPDATE_FAILED\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: JobStatus\n readOnly: true\n description: Output only. The response from the target for the last attempted\n execution.\n x-kubernetes-immutable: true\n properties:\n code:\n type: integer\n format: int64\n x-dcl-go-name: Code\n description: The status code, which should be an enum value of google.rpc.Code.\n x-kubernetes-immutable: true\n details:\n type: array\n x-dcl-go-name: Details\n description: A list of messages that carry the error details. There\n is a common set of message types for APIs to use.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobStatusDetails\n properties:\n typeUrl:\n type: string\n x-dcl-go-name: TypeUrl\n description: 'A URL/resource name that uniquely identifies the\n type of the serialized protocol buffer message. This string\n must contain at least one \"/\" character. The last segment of\n the URL''s path must represent the fully qualified name of the\n type (as in `path/google.protobuf.Duration`). The name should\n be in a canonical form (e.g., leading \".\" is not accepted).\n In practice, teams usually precompile into the binary all types\n that they expect it to use in the context of Any. However, for\n URLs which use the scheme `http`, `https`, or no scheme, one\n can optionally set up a type server that maps type URLs to message\n definitions as follows: * If no scheme is provided, `https`\n is assumed. * An HTTP GET on the URL must yield a google.protobuf.Type\n value in binary format, or produce an error. * Applications\n are allowed to cache lookup results based on the URL, or have\n them precompiled into a binary to avoid any lookup. Therefore,\n binary compatibility needs to be preserved on changes to types.\n (Use versioned type names to manage breaking changes.) Note:\n this functionality is not currently available in the official\n protobuf release, and it is not used for type URLs beginning\n with type.googleapis.com. Schemes other than `http`, `https`\n (or the empty scheme) might be used with implementation specific\n semantics.'\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: Must be a valid serialized protocol buffer of the\n above specified type.\n x-kubernetes-immutable: true\n message:\n type: string\n x-dcl-go-name: Message\n description: A developer-facing error message, which should be in English.\n Any user-facing error message should be localized and sent in the\n google.rpc.Status.details field, or localized by the client.\n x-kubernetes-immutable: true\n timeZone:\n type: string\n x-dcl-go-name: TimeZone\n description: Specifies the time zone to be used in interpreting schedule.\n The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/Tz_database).\n Note that some time zones include a provision for daylight savings time.\n The rules for daylight saving time are determined by the chosen tz. For\n UTC use the string \"utc\". If a time zone is not specified, the default\n will be in UTC (also known as GMT).\n x-dcl-server-default: true\n userUpdateTime:\n type: string\n format: date-time\n x-dcl-go-name: UserUpdateTime\n readOnly: true\n description: Output only. The creation time of the job.\n x-kubernetes-immutable: true\n") -// 27326 bytes -// MD5: e7c691020e1d5b76a185cb5fa3c0e102 +// 27363 bytes +// MD5: 2d85a9ac15124887f686d9ddf8c3cb3a diff --git a/services/google/compute/alpha/forwarding_rule.yaml b/services/google/compute/alpha/forwarding_rule.yaml index 952922eb7c..186a165dcf 100755 --- a/services/google/compute/alpha/forwarding_rule.yaml +++ b/services/google/compute/alpha/forwarding_rule.yaml @@ -206,6 +206,7 @@ components: Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED" x-kubernetes-immutable: true + x-dcl-server-default: true enum: - INVALID - INTERNAL @@ -388,6 +389,7 @@ components: region: type: string x-dcl-go-name: Region + readOnly: true description: '[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not diff --git a/services/google/compute/alpha/forwarding_rule_alpha_yaml_embed.go b/services/google/compute/alpha/forwarding_rule_alpha_yaml_embed.go index 80d473b057..63cad01eff 100755 --- a/services/google/compute/alpha/forwarding_rule_alpha_yaml_embed.go +++ b/services/google/compute/alpha/forwarding_rule_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/alpha/forwarding_rule.yaml -var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") +var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") -// 22421 bytes -// MD5: e0b0f2cea34ce541c679e4d1ddb54423 +// 22483 bytes +// MD5: e558e7db78d214f65458883df3843c6b diff --git a/services/google/compute/alpha/forwarding_rule_internal.go b/services/google/compute/alpha/forwarding_rule_internal.go index 1aa02aa9b7..cd7e88b500 100755 --- a/services/google/compute/alpha/forwarding_rule_internal.go +++ b/services/google/compute/alpha/forwarding_rule_internal.go @@ -705,11 +705,6 @@ func canonicalizeForwardingRuleDesiredState(rawDesired, rawInitial *ForwardingRu } else { canonicalDesired.Ports = rawDesired.Ports } - if dcl.StringCanonicalize(rawDesired.Region, rawInitial.Region) { - canonicalDesired.Region = rawInitial.Region - } else { - canonicalDesired.Region = rawDesired.Region - } if dcl.StringCanonicalize(rawDesired.ServiceLabel, rawInitial.ServiceLabel) { canonicalDesired.ServiceLabel = rawInitial.ServiceLabel } else { @@ -1452,7 +1447,7 @@ func diffForwardingRule(c *Client, desired, actual *ForwardingRule, opts ...dcl. newDiffs = append(newDiffs, ds...) } - if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OutputOnly: true, OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { if err != nil { return nil, err } @@ -1802,9 +1797,6 @@ func expandForwardingRule(c *Client, f *ForwardingRule) (map[string]interface{}, if v := f.Ports; v != nil { m["ports"] = v } - if v := f.Region; dcl.ValueShouldBeSent(v) { - m["region"] = v - } if v := f.ServiceLabel; dcl.ValueShouldBeSent(v) { m["serviceLabel"] = v } diff --git a/services/google/compute/alpha/forwarding_rule_schema.go b/services/google/compute/alpha/forwarding_rule_schema.go index cc2eb346a3..ef61e740e0 100755 --- a/services/google/compute/alpha/forwarding_rule_schema.go +++ b/services/google/compute/alpha/forwarding_rule_schema.go @@ -201,11 +201,12 @@ func DCLForwardingRuleSchema() *dcl.Schema { Description: "Labels to apply to this rule.", }, "loadBalancingScheme": &dcl.Property{ - Type: "string", - GoName: "LoadBalancingScheme", - GoType: "ForwardingRuleLoadBalancingSchemeEnum", - Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", - Immutable: true, + Type: "string", + GoName: "LoadBalancingScheme", + GoType: "ForwardingRuleLoadBalancingSchemeEnum", + Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", + Immutable: true, + ServerDefault: true, Enum: []string{ "INVALID", "INTERNAL", @@ -362,6 +363,7 @@ func DCLForwardingRuleSchema() *dcl.Schema { "region": &dcl.Property{ Type: "string", GoName: "Region", + ReadOnly: true, Description: "[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", Immutable: true, }, diff --git a/services/google/compute/alpha/instance.yaml b/services/google/compute/alpha/instance.yaml index 452e910c33..4fdb125bb1 100755 --- a/services/google/compute/alpha/instance.yaml +++ b/services/google/compute/alpha/instance.yaml @@ -433,6 +433,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -449,6 +450,7 @@ components: of the networkTier associated with the Address resource owning that IP.' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PREMIUM - STANDARD @@ -555,6 +557,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -612,6 +615,7 @@ components: is not specified but the subnetwork is specified, the network is inferred. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: name @@ -622,6 +626,7 @@ components: for this network interface. If not specified by the user, an unused internal IP is assigned by the system. x-kubernetes-immutable: true + x-dcl-server-default: true subnetwork: type: string x-dcl-go-name: Subnetwork @@ -630,6 +635,7 @@ components: in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Subnetwork field: name @@ -648,6 +654,7 @@ components: x-dcl-go-type: InstanceScheduling description: Sets the scheduling options for this instance. x-kubernetes-immutable: true + x-dcl-server-default: true properties: automaticRestart: type: boolean @@ -711,6 +718,7 @@ components: x-dcl-go-name: ShieldedInstanceConfig x-dcl-go-type: InstanceShieldedInstanceConfig description: Configuration for various parameters related to shielded instances. + x-dcl-server-default: true properties: enableIntegrityMonitoring: type: boolean @@ -733,6 +741,7 @@ components: a user, use RUNNING to keep a machine "on" and TERMINATED to turn a machine off' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PROVISIONING - STAGING diff --git a/services/google/compute/alpha/instance_alpha_yaml_embed.go b/services/google/compute/alpha/instance_alpha_yaml_embed.go index fec80415bc..a1bd13dc59 100755 --- a/services/google/compute/alpha/instance_alpha_yaml_embed.go +++ b/services/google/compute/alpha/instance_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/alpha/instance.yaml -var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") +var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n x-dcl-server-default: true\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") -// 35585 bytes -// MD5: 1315ea25d5452512ef200b3ce545550b +// 35972 bytes +// MD5: 5a5c981442631f36c7e0f11fcccdcb29 diff --git a/services/google/compute/alpha/instance_group_manager.yaml b/services/google/compute/alpha/instance_group_manager.yaml index cb4a0dcee4..897bc2947b 100755 --- a/services/google/compute/alpha/instance_group_manager.yaml +++ b/services/google/compute/alpha/instance_group_manager.yaml @@ -112,6 +112,7 @@ components: The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + x-dcl-server-default: true creationTimestamp: type: string x-dcl-go-name: CreationTimestamp @@ -225,6 +226,7 @@ components: x-dcl-go-type: InstanceGroupManagerDistributionPolicy description: Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. + x-dcl-server-default: true properties: targetShape: type: string @@ -573,6 +575,7 @@ components: x-dcl-go-name: UpdatePolicy x-dcl-go-type: InstanceGroupManagerUpdatePolicy description: The update policy for this managed instance group. + x-dcl-server-default: true properties: instanceRedistributionType: type: string diff --git a/services/google/compute/alpha/instance_group_manager_alpha_yaml_embed.go b/services/google/compute/alpha/instance_group_manager_alpha_yaml_embed.go index 844d881709..5362abf3a7 100755 --- a/services/google/compute/alpha/instance_group_manager_alpha_yaml_embed.go +++ b/services/google/compute/alpha/instance_group_manager_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/alpha/instance_group_manager.yaml -var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n failoverAction:\n type: string\n x-dcl-go-name: FailoverAction\n x-dcl-go-type: InstanceGroupManagerFailoverActionEnum\n description: 'The action to perform in case of zone failure. Only one value\n is supported, `NO_FAILOVER`. The default is `NO_FAILOVER`. Possible values:\n UNKNOWN, NO_FAILOVER'\n enum:\n - UNKNOWN\n - NO_FAILOVER\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: 'The service account to be used as credentials for all operations\n performed by the managed instance group on instances. The service accounts\n needs all permissions required to create and delete instances. By default,\n the service account: {projectNumber}@cloudservices.gserviceaccount.com\n is used.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n externalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: ExternalIps\n description: External network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n internalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: InternalIps\n description: Internal network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n isStateful:\n type: boolean\n x-dcl-go-name: IsStateful\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions. This field is deprecated in favor of has_stateful_config.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minReadySec:\n type: integer\n format: int64\n x-dcl-go-name: MinReadySec\n description: Minimum number of seconds to wait for after a newly created\n instance becomes available. This value must be from range [0, 3600].\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n mostDisruptiveAllowedAction:\n type: string\n x-dcl-go-name: MostDisruptiveAllowedAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMostDisruptiveAllowedActionEnum\n description: Most disruptive action that is allowed to be taken on an\n instance. You can specify either `NONE` to forbid any actions, `REFRESH`\n to allow actions that do not need instance restart, `RESTART` to allow\n actions that can be applied without instance replacing or `REPLACE`\n to allow all possible actions. If the Updater determines that the\n minimal update action needed is more disruptive than most disruptive\n allowed action you specify it will not perform the update at all.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") +var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-dcl-server-default: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n x-dcl-server-default: true\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n failoverAction:\n type: string\n x-dcl-go-name: FailoverAction\n x-dcl-go-type: InstanceGroupManagerFailoverActionEnum\n description: 'The action to perform in case of zone failure. Only one value\n is supported, `NO_FAILOVER`. The default is `NO_FAILOVER`. Possible values:\n UNKNOWN, NO_FAILOVER'\n enum:\n - UNKNOWN\n - NO_FAILOVER\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: 'The service account to be used as credentials for all operations\n performed by the managed instance group on instances. The service accounts\n needs all permissions required to create and delete instances. By default,\n the service account: {projectNumber}@cloudservices.gserviceaccount.com\n is used.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n externalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: ExternalIps\n description: External network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n internalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: InternalIps\n description: Internal network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n isStateful:\n type: boolean\n x-dcl-go-name: IsStateful\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions. This field is deprecated in favor of has_stateful_config.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n x-dcl-server-default: true\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minReadySec:\n type: integer\n format: int64\n x-dcl-go-name: MinReadySec\n description: Minimum number of seconds to wait for after a newly created\n instance becomes available. This value must be from range [0, 3600].\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n mostDisruptiveAllowedAction:\n type: string\n x-dcl-go-name: MostDisruptiveAllowedAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMostDisruptiveAllowedActionEnum\n description: Most disruptive action that is allowed to be taken on an\n instance. You can specify either `NONE` to forbid any actions, `REFRESH`\n to allow actions that do not need instance restart, `RESTART` to allow\n actions that can be applied without instance replacing or `REPLACE`\n to allow all possible actions. If the Updater determines that the\n minimal update action needed is more disruptive than most disruptive\n allowed action you specify it will not perform the update at all.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") -// 40804 bytes -// MD5: 8dbe43aa894395dcf08cecf0585dbca6 +// 40915 bytes +// MD5: 92d47abe3065a32da63cc3a95fcc651a diff --git a/services/google/compute/alpha/instance_group_manager_schema.go b/services/google/compute/alpha/instance_group_manager_schema.go index 4b3f756b26..8073a31a91 100755 --- a/services/google/compute/alpha/instance_group_manager_schema.go +++ b/services/google/compute/alpha/instance_group_manager_schema.go @@ -143,9 +143,10 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { }, }, "baseInstanceName": &dcl.Property{ - Type: "string", - GoName: "BaseInstanceName", - Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + Type: "string", + GoName: "BaseInstanceName", + Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + ServerDefault: true, }, "creationTimestamp": &dcl.Property{ Type: "string", @@ -243,10 +244,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Immutable: true, }, "distributionPolicy": &dcl.Property{ - Type: "object", - GoName: "DistributionPolicy", - GoType: "InstanceGroupManagerDistributionPolicy", - Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + Type: "object", + GoName: "DistributionPolicy", + GoType: "InstanceGroupManagerDistributionPolicy", + Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "targetShape": &dcl.Property{ Type: "string", @@ -590,10 +592,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Description: "The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.", }, "updatePolicy": &dcl.Property{ - Type: "object", - GoName: "UpdatePolicy", - GoType: "InstanceGroupManagerUpdatePolicy", - Description: "The update policy for this managed instance group.", + Type: "object", + GoName: "UpdatePolicy", + GoType: "InstanceGroupManagerUpdatePolicy", + Description: "The update policy for this managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "instanceRedistributionType": &dcl.Property{ Type: "string", diff --git a/services/google/compute/alpha/instance_schema.go b/services/google/compute/alpha/instance_schema.go index fc092ea89c..793278fcbb 100755 --- a/services/google/compute/alpha/instance_schema.go +++ b/services/google/compute/alpha/instance_schema.go @@ -449,10 +449,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -461,11 +462,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkTier": &dcl.Property{ - Type: "string", - GoName: "NetworkTier", - GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", - Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", - Immutable: true, + Type: "string", + GoName: "NetworkTier", + GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", + Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", + Immutable: true, + ServerDefault: true, Enum: []string{ "PREMIUM", "STANDARD", @@ -558,10 +560,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -613,10 +616,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -625,16 +629,18 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkIP": &dcl.Property{ - Type: "string", - GoName: "NetworkIP", - Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", - Immutable: true, + Type: "string", + GoName: "NetworkIP", + Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", + Immutable: true, + ServerDefault: true, }, "subnetwork": &dcl.Property{ - Type: "string", - GoName: "Subnetwork", - Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", - Immutable: true, + Type: "string", + GoName: "Subnetwork", + Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Subnetwork", @@ -659,11 +665,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "scheduling": &dcl.Property{ - Type: "object", - GoName: "Scheduling", - GoType: "InstanceScheduling", - Description: "Sets the scheduling options for this instance.", - Immutable: true, + Type: "object", + GoName: "Scheduling", + GoType: "InstanceScheduling", + Description: "Sets the scheduling options for this instance.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "automaticRestart": &dcl.Property{ Type: "boolean", @@ -725,10 +732,11 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "shieldedInstanceConfig": &dcl.Property{ - Type: "object", - GoName: "ShieldedInstanceConfig", - GoType: "InstanceShieldedInstanceConfig", - Description: "Configuration for various parameters related to shielded instances.", + Type: "object", + GoName: "ShieldedInstanceConfig", + GoType: "InstanceShieldedInstanceConfig", + Description: "Configuration for various parameters related to shielded instances.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableIntegrityMonitoring": &dcl.Property{ Type: "boolean", @@ -748,11 +756,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "status": &dcl.Property{ - Type: "string", - GoName: "Status", - GoType: "InstanceStatusEnum", - Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", - Immutable: true, + Type: "string", + GoName: "Status", + GoType: "InstanceStatusEnum", + Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", + Immutable: true, + ServerDefault: true, Enum: []string{ "PROVISIONING", "STAGING", diff --git a/services/google/compute/alpha/network.yaml b/services/google/compute/alpha/network.yaml index 8612f44f5d..d077cd1065 100755 --- a/services/google/compute/alpha/network.yaml +++ b/services/google/compute/alpha/network.yaml @@ -77,6 +77,7 @@ components: resources. ' x-kubernetes-immutable: true default: true + x-dcl-server-default: true x-dcl-send-empty: true description: type: string @@ -124,6 +125,7 @@ components: description: 'The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ' + x-dcl-server-default: true properties: routingMode: type: string diff --git a/services/google/compute/alpha/network_alpha_yaml_embed.go b/services/google/compute/alpha/network_alpha_yaml_embed.go index 792e337935..9ed3fbd938 100755 --- a/services/google/compute/alpha/network_alpha_yaml_embed.go +++ b/services/google/compute/alpha/network_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/alpha/network.yaml -var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") +var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n x-dcl-server-default: true\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") -// 5161 bytes -// MD5: a8413935798ad66cdf66c6d245fe77ab +// 5235 bytes +// MD5: d60f19dc7773fa87ed18693848b07f74 diff --git a/services/google/compute/alpha/network_schema.go b/services/google/compute/alpha/network_schema.go index e75df8137a..21ff667c17 100755 --- a/services/google/compute/alpha/network_schema.go +++ b/services/google/compute/alpha/network_schema.go @@ -98,12 +98,13 @@ func DCLNetworkSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "autoCreateSubnetworks": &dcl.Property{ - Type: "boolean", - GoName: "AutoCreateSubnetworks", - Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", - Immutable: true, - Default: true, - SendEmpty: true, + Type: "boolean", + GoName: "AutoCreateSubnetworks", + Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", + Immutable: true, + Default: true, + ServerDefault: true, + SendEmpty: true, }, "description": &dcl.Property{ Type: "string", @@ -144,10 +145,11 @@ func DCLNetworkSchema() *dcl.Schema { }, }, "routingConfig": &dcl.Property{ - Type: "object", - GoName: "RoutingConfig", - GoType: "NetworkRoutingConfig", - Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + Type: "object", + GoName: "RoutingConfig", + GoType: "NetworkRoutingConfig", + Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + ServerDefault: true, Properties: map[string]*dcl.Property{ "routingMode": &dcl.Property{ Type: "string", diff --git a/services/google/compute/alpha/packet_mirroring.yaml b/services/google/compute/alpha/packet_mirroring.yaml index 1396a77d33..dc95e03667 100755 --- a/services/google/compute/alpha/packet_mirroring.yaml +++ b/services/google/compute/alpha/packet_mirroring.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: PacketMirroringFilter description: Filter for mirrored traffic. If unspecified, all traffic is mirrored. + x-dcl-server-default: true properties: cidrRanges: type: array diff --git a/services/google/compute/alpha/packet_mirroring_alpha_yaml_embed.go b/services/google/compute/alpha/packet_mirroring_alpha_yaml_embed.go index 70c75433de..85fa52c8ca 100755 --- a/services/google/compute/alpha/packet_mirroring_alpha_yaml_embed.go +++ b/services/google/compute/alpha/packet_mirroring_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/alpha/packet_mirroring.yaml -var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") +var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n x-dcl-server-default: true\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") -// 12520 bytes -// MD5: 83ddf512456e39ad730a446470e11941 +// 12557 bytes +// MD5: 98969f407e80ef1a5ce0869d994797c4 diff --git a/services/google/compute/alpha/packet_mirroring_schema.go b/services/google/compute/alpha/packet_mirroring_schema.go index 32c3159d11..271d418961 100755 --- a/services/google/compute/alpha/packet_mirroring_schema.go +++ b/services/google/compute/alpha/packet_mirroring_schema.go @@ -170,10 +170,11 @@ func DCLPacketMirroringSchema() *dcl.Schema { }, }, "filter": &dcl.Property{ - Type: "object", - GoName: "Filter", - GoType: "PacketMirroringFilter", - Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + Type: "object", + GoName: "Filter", + GoType: "PacketMirroringFilter", + Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "cidrRanges": &dcl.Property{ Type: "array", diff --git a/services/google/compute/beta/forwarding_rule.yaml b/services/google/compute/beta/forwarding_rule.yaml index 952922eb7c..186a165dcf 100755 --- a/services/google/compute/beta/forwarding_rule.yaml +++ b/services/google/compute/beta/forwarding_rule.yaml @@ -206,6 +206,7 @@ components: Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED" x-kubernetes-immutable: true + x-dcl-server-default: true enum: - INVALID - INTERNAL @@ -388,6 +389,7 @@ components: region: type: string x-dcl-go-name: Region + readOnly: true description: '[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not diff --git a/services/google/compute/beta/forwarding_rule_beta_yaml_embed.go b/services/google/compute/beta/forwarding_rule_beta_yaml_embed.go index 14f52b95b8..970f31a628 100755 --- a/services/google/compute/beta/forwarding_rule_beta_yaml_embed.go +++ b/services/google/compute/beta/forwarding_rule_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/beta/forwarding_rule.yaml -var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") +var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") -// 22421 bytes -// MD5: e0b0f2cea34ce541c679e4d1ddb54423 +// 22483 bytes +// MD5: e558e7db78d214f65458883df3843c6b diff --git a/services/google/compute/beta/forwarding_rule_internal.go b/services/google/compute/beta/forwarding_rule_internal.go index 932bb5d088..d660c66c54 100755 --- a/services/google/compute/beta/forwarding_rule_internal.go +++ b/services/google/compute/beta/forwarding_rule_internal.go @@ -705,11 +705,6 @@ func canonicalizeForwardingRuleDesiredState(rawDesired, rawInitial *ForwardingRu } else { canonicalDesired.Ports = rawDesired.Ports } - if dcl.StringCanonicalize(rawDesired.Region, rawInitial.Region) { - canonicalDesired.Region = rawInitial.Region - } else { - canonicalDesired.Region = rawDesired.Region - } if dcl.StringCanonicalize(rawDesired.ServiceLabel, rawInitial.ServiceLabel) { canonicalDesired.ServiceLabel = rawInitial.ServiceLabel } else { @@ -1452,7 +1447,7 @@ func diffForwardingRule(c *Client, desired, actual *ForwardingRule, opts ...dcl. newDiffs = append(newDiffs, ds...) } - if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OutputOnly: true, OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { if err != nil { return nil, err } @@ -1802,9 +1797,6 @@ func expandForwardingRule(c *Client, f *ForwardingRule) (map[string]interface{}, if v := f.Ports; v != nil { m["ports"] = v } - if v := f.Region; dcl.ValueShouldBeSent(v) { - m["region"] = v - } if v := f.ServiceLabel; dcl.ValueShouldBeSent(v) { m["serviceLabel"] = v } diff --git a/services/google/compute/beta/forwarding_rule_schema.go b/services/google/compute/beta/forwarding_rule_schema.go index 7130348566..7cc5f2354d 100755 --- a/services/google/compute/beta/forwarding_rule_schema.go +++ b/services/google/compute/beta/forwarding_rule_schema.go @@ -201,11 +201,12 @@ func DCLForwardingRuleSchema() *dcl.Schema { Description: "Labels to apply to this rule.", }, "loadBalancingScheme": &dcl.Property{ - Type: "string", - GoName: "LoadBalancingScheme", - GoType: "ForwardingRuleLoadBalancingSchemeEnum", - Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", - Immutable: true, + Type: "string", + GoName: "LoadBalancingScheme", + GoType: "ForwardingRuleLoadBalancingSchemeEnum", + Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", + Immutable: true, + ServerDefault: true, Enum: []string{ "INVALID", "INTERNAL", @@ -362,6 +363,7 @@ func DCLForwardingRuleSchema() *dcl.Schema { "region": &dcl.Property{ Type: "string", GoName: "Region", + ReadOnly: true, Description: "[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", Immutable: true, }, diff --git a/services/google/compute/beta/instance.yaml b/services/google/compute/beta/instance.yaml index 452e910c33..4fdb125bb1 100755 --- a/services/google/compute/beta/instance.yaml +++ b/services/google/compute/beta/instance.yaml @@ -433,6 +433,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -449,6 +450,7 @@ components: of the networkTier associated with the Address resource owning that IP.' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PREMIUM - STANDARD @@ -555,6 +557,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -612,6 +615,7 @@ components: is not specified but the subnetwork is specified, the network is inferred. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: name @@ -622,6 +626,7 @@ components: for this network interface. If not specified by the user, an unused internal IP is assigned by the system. x-kubernetes-immutable: true + x-dcl-server-default: true subnetwork: type: string x-dcl-go-name: Subnetwork @@ -630,6 +635,7 @@ components: in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Subnetwork field: name @@ -648,6 +654,7 @@ components: x-dcl-go-type: InstanceScheduling description: Sets the scheduling options for this instance. x-kubernetes-immutable: true + x-dcl-server-default: true properties: automaticRestart: type: boolean @@ -711,6 +718,7 @@ components: x-dcl-go-name: ShieldedInstanceConfig x-dcl-go-type: InstanceShieldedInstanceConfig description: Configuration for various parameters related to shielded instances. + x-dcl-server-default: true properties: enableIntegrityMonitoring: type: boolean @@ -733,6 +741,7 @@ components: a user, use RUNNING to keep a machine "on" and TERMINATED to turn a machine off' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PROVISIONING - STAGING diff --git a/services/google/compute/beta/instance_beta_yaml_embed.go b/services/google/compute/beta/instance_beta_yaml_embed.go index 5da8f5904e..6b4f9d2d48 100755 --- a/services/google/compute/beta/instance_beta_yaml_embed.go +++ b/services/google/compute/beta/instance_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/beta/instance.yaml -var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") +var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n x-dcl-server-default: true\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") -// 35585 bytes -// MD5: 1315ea25d5452512ef200b3ce545550b +// 35972 bytes +// MD5: 5a5c981442631f36c7e0f11fcccdcb29 diff --git a/services/google/compute/beta/instance_group_manager.yaml b/services/google/compute/beta/instance_group_manager.yaml index cb4a0dcee4..897bc2947b 100755 --- a/services/google/compute/beta/instance_group_manager.yaml +++ b/services/google/compute/beta/instance_group_manager.yaml @@ -112,6 +112,7 @@ components: The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + x-dcl-server-default: true creationTimestamp: type: string x-dcl-go-name: CreationTimestamp @@ -225,6 +226,7 @@ components: x-dcl-go-type: InstanceGroupManagerDistributionPolicy description: Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. + x-dcl-server-default: true properties: targetShape: type: string @@ -573,6 +575,7 @@ components: x-dcl-go-name: UpdatePolicy x-dcl-go-type: InstanceGroupManagerUpdatePolicy description: The update policy for this managed instance group. + x-dcl-server-default: true properties: instanceRedistributionType: type: string diff --git a/services/google/compute/beta/instance_group_manager_beta_yaml_embed.go b/services/google/compute/beta/instance_group_manager_beta_yaml_embed.go index 15a88fdf90..7dce9fec41 100755 --- a/services/google/compute/beta/instance_group_manager_beta_yaml_embed.go +++ b/services/google/compute/beta/instance_group_manager_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/beta/instance_group_manager.yaml -var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n failoverAction:\n type: string\n x-dcl-go-name: FailoverAction\n x-dcl-go-type: InstanceGroupManagerFailoverActionEnum\n description: 'The action to perform in case of zone failure. Only one value\n is supported, `NO_FAILOVER`. The default is `NO_FAILOVER`. Possible values:\n UNKNOWN, NO_FAILOVER'\n enum:\n - UNKNOWN\n - NO_FAILOVER\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: 'The service account to be used as credentials for all operations\n performed by the managed instance group on instances. The service accounts\n needs all permissions required to create and delete instances. By default,\n the service account: {projectNumber}@cloudservices.gserviceaccount.com\n is used.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n externalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: ExternalIps\n description: External network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n internalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: InternalIps\n description: Internal network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n isStateful:\n type: boolean\n x-dcl-go-name: IsStateful\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions. This field is deprecated in favor of has_stateful_config.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minReadySec:\n type: integer\n format: int64\n x-dcl-go-name: MinReadySec\n description: Minimum number of seconds to wait for after a newly created\n instance becomes available. This value must be from range [0, 3600].\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n mostDisruptiveAllowedAction:\n type: string\n x-dcl-go-name: MostDisruptiveAllowedAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMostDisruptiveAllowedActionEnum\n description: Most disruptive action that is allowed to be taken on an\n instance. You can specify either `NONE` to forbid any actions, `REFRESH`\n to allow actions that do not need instance restart, `RESTART` to allow\n actions that can be applied without instance replacing or `REPLACE`\n to allow all possible actions. If the Updater determines that the\n minimal update action needed is more disruptive than most disruptive\n allowed action you specify it will not perform the update at all.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") +var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-dcl-server-default: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n x-dcl-server-default: true\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n failoverAction:\n type: string\n x-dcl-go-name: FailoverAction\n x-dcl-go-type: InstanceGroupManagerFailoverActionEnum\n description: 'The action to perform in case of zone failure. Only one value\n is supported, `NO_FAILOVER`. The default is `NO_FAILOVER`. Possible values:\n UNKNOWN, NO_FAILOVER'\n enum:\n - UNKNOWN\n - NO_FAILOVER\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: 'The service account to be used as credentials for all operations\n performed by the managed instance group on instances. The service accounts\n needs all permissions required to create and delete instances. By default,\n the service account: {projectNumber}@cloudservices.gserviceaccount.com\n is used.'\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n externalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateExternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: ExternalIps\n description: External network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n internalIps:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIps\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateInternalIpsAutoDeleteEnum\n description: 'These stateful IPs will never be released during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the IP reservation should\n be deleted after it is no longer used by the group, e.g.\n when the given instance or the whole group is deleted. Possible\n values: NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: InternalIps\n description: Internal network IPs assigned to the instances that\n will be preserved on instance delete, update, etc. This map is\n keyed with the network interface name.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n isStateful:\n type: boolean\n x-dcl-go-name: IsStateful\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions. This field is deprecated in favor of has_stateful_config.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n x-dcl-server-default: true\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minReadySec:\n type: integer\n format: int64\n x-dcl-go-name: MinReadySec\n description: Minimum number of seconds to wait for after a newly created\n instance becomes available. This value must be from range [0, 3600].\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n mostDisruptiveAllowedAction:\n type: string\n x-dcl-go-name: MostDisruptiveAllowedAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMostDisruptiveAllowedActionEnum\n description: Most disruptive action that is allowed to be taken on an\n instance. You can specify either `NONE` to forbid any actions, `REFRESH`\n to allow actions that do not need instance restart, `RESTART` to allow\n actions that can be applied without instance replacing or `REPLACE`\n to allow all possible actions. If the Updater determines that the\n minimal update action needed is more disruptive than most disruptive\n allowed action you specify it will not perform the update at all.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") -// 40804 bytes -// MD5: 8dbe43aa894395dcf08cecf0585dbca6 +// 40915 bytes +// MD5: 92d47abe3065a32da63cc3a95fcc651a diff --git a/services/google/compute/beta/instance_group_manager_schema.go b/services/google/compute/beta/instance_group_manager_schema.go index d6fdb84593..17abeef2b0 100755 --- a/services/google/compute/beta/instance_group_manager_schema.go +++ b/services/google/compute/beta/instance_group_manager_schema.go @@ -143,9 +143,10 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { }, }, "baseInstanceName": &dcl.Property{ - Type: "string", - GoName: "BaseInstanceName", - Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + Type: "string", + GoName: "BaseInstanceName", + Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + ServerDefault: true, }, "creationTimestamp": &dcl.Property{ Type: "string", @@ -243,10 +244,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Immutable: true, }, "distributionPolicy": &dcl.Property{ - Type: "object", - GoName: "DistributionPolicy", - GoType: "InstanceGroupManagerDistributionPolicy", - Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + Type: "object", + GoName: "DistributionPolicy", + GoType: "InstanceGroupManagerDistributionPolicy", + Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "targetShape": &dcl.Property{ Type: "string", @@ -590,10 +592,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Description: "The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.", }, "updatePolicy": &dcl.Property{ - Type: "object", - GoName: "UpdatePolicy", - GoType: "InstanceGroupManagerUpdatePolicy", - Description: "The update policy for this managed instance group.", + Type: "object", + GoName: "UpdatePolicy", + GoType: "InstanceGroupManagerUpdatePolicy", + Description: "The update policy for this managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "instanceRedistributionType": &dcl.Property{ Type: "string", diff --git a/services/google/compute/beta/instance_schema.go b/services/google/compute/beta/instance_schema.go index 8f1e599cb9..ebc8883b06 100755 --- a/services/google/compute/beta/instance_schema.go +++ b/services/google/compute/beta/instance_schema.go @@ -449,10 +449,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -461,11 +462,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkTier": &dcl.Property{ - Type: "string", - GoName: "NetworkTier", - GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", - Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", - Immutable: true, + Type: "string", + GoName: "NetworkTier", + GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", + Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", + Immutable: true, + ServerDefault: true, Enum: []string{ "PREMIUM", "STANDARD", @@ -558,10 +560,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -613,10 +616,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -625,16 +629,18 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkIP": &dcl.Property{ - Type: "string", - GoName: "NetworkIP", - Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", - Immutable: true, + Type: "string", + GoName: "NetworkIP", + Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", + Immutable: true, + ServerDefault: true, }, "subnetwork": &dcl.Property{ - Type: "string", - GoName: "Subnetwork", - Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", - Immutable: true, + Type: "string", + GoName: "Subnetwork", + Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Subnetwork", @@ -659,11 +665,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "scheduling": &dcl.Property{ - Type: "object", - GoName: "Scheduling", - GoType: "InstanceScheduling", - Description: "Sets the scheduling options for this instance.", - Immutable: true, + Type: "object", + GoName: "Scheduling", + GoType: "InstanceScheduling", + Description: "Sets the scheduling options for this instance.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "automaticRestart": &dcl.Property{ Type: "boolean", @@ -725,10 +732,11 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "shieldedInstanceConfig": &dcl.Property{ - Type: "object", - GoName: "ShieldedInstanceConfig", - GoType: "InstanceShieldedInstanceConfig", - Description: "Configuration for various parameters related to shielded instances.", + Type: "object", + GoName: "ShieldedInstanceConfig", + GoType: "InstanceShieldedInstanceConfig", + Description: "Configuration for various parameters related to shielded instances.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableIntegrityMonitoring": &dcl.Property{ Type: "boolean", @@ -748,11 +756,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "status": &dcl.Property{ - Type: "string", - GoName: "Status", - GoType: "InstanceStatusEnum", - Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", - Immutable: true, + Type: "string", + GoName: "Status", + GoType: "InstanceStatusEnum", + Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", + Immutable: true, + ServerDefault: true, Enum: []string{ "PROVISIONING", "STAGING", diff --git a/services/google/compute/beta/network.yaml b/services/google/compute/beta/network.yaml index 8612f44f5d..d077cd1065 100755 --- a/services/google/compute/beta/network.yaml +++ b/services/google/compute/beta/network.yaml @@ -77,6 +77,7 @@ components: resources. ' x-kubernetes-immutable: true default: true + x-dcl-server-default: true x-dcl-send-empty: true description: type: string @@ -124,6 +125,7 @@ components: description: 'The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ' + x-dcl-server-default: true properties: routingMode: type: string diff --git a/services/google/compute/beta/network_beta_yaml_embed.go b/services/google/compute/beta/network_beta_yaml_embed.go index 0c6d95011d..23daafbc80 100755 --- a/services/google/compute/beta/network_beta_yaml_embed.go +++ b/services/google/compute/beta/network_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/beta/network.yaml -var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") +var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n x-dcl-server-default: true\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") -// 5161 bytes -// MD5: a8413935798ad66cdf66c6d245fe77ab +// 5235 bytes +// MD5: d60f19dc7773fa87ed18693848b07f74 diff --git a/services/google/compute/beta/network_schema.go b/services/google/compute/beta/network_schema.go index 16e4d1c52d..ab900bdf21 100755 --- a/services/google/compute/beta/network_schema.go +++ b/services/google/compute/beta/network_schema.go @@ -98,12 +98,13 @@ func DCLNetworkSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "autoCreateSubnetworks": &dcl.Property{ - Type: "boolean", - GoName: "AutoCreateSubnetworks", - Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", - Immutable: true, - Default: true, - SendEmpty: true, + Type: "boolean", + GoName: "AutoCreateSubnetworks", + Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", + Immutable: true, + Default: true, + ServerDefault: true, + SendEmpty: true, }, "description": &dcl.Property{ Type: "string", @@ -144,10 +145,11 @@ func DCLNetworkSchema() *dcl.Schema { }, }, "routingConfig": &dcl.Property{ - Type: "object", - GoName: "RoutingConfig", - GoType: "NetworkRoutingConfig", - Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + Type: "object", + GoName: "RoutingConfig", + GoType: "NetworkRoutingConfig", + Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + ServerDefault: true, Properties: map[string]*dcl.Property{ "routingMode": &dcl.Property{ Type: "string", diff --git a/services/google/compute/beta/packet_mirroring.yaml b/services/google/compute/beta/packet_mirroring.yaml index 1396a77d33..dc95e03667 100755 --- a/services/google/compute/beta/packet_mirroring.yaml +++ b/services/google/compute/beta/packet_mirroring.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: PacketMirroringFilter description: Filter for mirrored traffic. If unspecified, all traffic is mirrored. + x-dcl-server-default: true properties: cidrRanges: type: array diff --git a/services/google/compute/beta/packet_mirroring_beta_yaml_embed.go b/services/google/compute/beta/packet_mirroring_beta_yaml_embed.go index a374a44b96..5ff59058b7 100755 --- a/services/google/compute/beta/packet_mirroring_beta_yaml_embed.go +++ b/services/google/compute/beta/packet_mirroring_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/beta/packet_mirroring.yaml -var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") +var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n x-dcl-server-default: true\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") -// 12520 bytes -// MD5: 83ddf512456e39ad730a446470e11941 +// 12557 bytes +// MD5: 98969f407e80ef1a5ce0869d994797c4 diff --git a/services/google/compute/beta/packet_mirroring_schema.go b/services/google/compute/beta/packet_mirroring_schema.go index 18d3b64426..6b31c4d584 100755 --- a/services/google/compute/beta/packet_mirroring_schema.go +++ b/services/google/compute/beta/packet_mirroring_schema.go @@ -170,10 +170,11 @@ func DCLPacketMirroringSchema() *dcl.Schema { }, }, "filter": &dcl.Property{ - Type: "object", - GoName: "Filter", - GoType: "PacketMirroringFilter", - Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + Type: "object", + GoName: "Filter", + GoType: "PacketMirroringFilter", + Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "cidrRanges": &dcl.Property{ Type: "array", diff --git a/services/google/compute/forwarding_rule.yaml b/services/google/compute/forwarding_rule.yaml index 952922eb7c..186a165dcf 100755 --- a/services/google/compute/forwarding_rule.yaml +++ b/services/google/compute/forwarding_rule.yaml @@ -206,6 +206,7 @@ components: Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED" x-kubernetes-immutable: true + x-dcl-server-default: true enum: - INVALID - INTERNAL @@ -388,6 +389,7 @@ components: region: type: string x-dcl-go-name: Region + readOnly: true description: '[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not diff --git a/services/google/compute/forwarding_rule_internal.go b/services/google/compute/forwarding_rule_internal.go index 20d6870545..5257371f5e 100755 --- a/services/google/compute/forwarding_rule_internal.go +++ b/services/google/compute/forwarding_rule_internal.go @@ -705,11 +705,6 @@ func canonicalizeForwardingRuleDesiredState(rawDesired, rawInitial *ForwardingRu } else { canonicalDesired.Ports = rawDesired.Ports } - if dcl.StringCanonicalize(rawDesired.Region, rawInitial.Region) { - canonicalDesired.Region = rawInitial.Region - } else { - canonicalDesired.Region = rawDesired.Region - } if dcl.StringCanonicalize(rawDesired.ServiceLabel, rawInitial.ServiceLabel) { canonicalDesired.ServiceLabel = rawInitial.ServiceLabel } else { @@ -1452,7 +1447,7 @@ func diffForwardingRule(c *Client, desired, actual *ForwardingRule, opts ...dcl. newDiffs = append(newDiffs, ds...) } - if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Region, actual.Region, dcl.DiffInfo{OutputOnly: true, OperationSelector: dcl.RequiresRecreate()}, fn.AddNest("Region")); len(ds) != 0 || err != nil { if err != nil { return nil, err } @@ -1802,9 +1797,6 @@ func expandForwardingRule(c *Client, f *ForwardingRule) (map[string]interface{}, if v := f.Ports; v != nil { m["ports"] = v } - if v := f.Region; dcl.ValueShouldBeSent(v) { - m["region"] = v - } if v := f.ServiceLabel; dcl.ValueShouldBeSent(v) { m["serviceLabel"] = v } diff --git a/services/google/compute/forwarding_rule_schema.go b/services/google/compute/forwarding_rule_schema.go index 23072d2ed6..6f5233e707 100755 --- a/services/google/compute/forwarding_rule_schema.go +++ b/services/google/compute/forwarding_rule_schema.go @@ -201,11 +201,12 @@ func DCLForwardingRuleSchema() *dcl.Schema { Description: "Labels to apply to this rule.", }, "loadBalancingScheme": &dcl.Property{ - Type: "string", - GoName: "LoadBalancingScheme", - GoType: "ForwardingRuleLoadBalancingSchemeEnum", - Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", - Immutable: true, + Type: "string", + GoName: "LoadBalancingScheme", + GoType: "ForwardingRuleLoadBalancingSchemeEnum", + Description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used for:\n * Classic Cloud VPN gateways\n * Protocol forwarding to VMs from an external IP address\n * The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is used for:\n * Protocol forwarding to VMs from an internal IP address\n * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED` is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used for:\n * Global external HTTP(S) load balancers \n\nFor more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL, EXTERNAL_MANAGED", + Immutable: true, + ServerDefault: true, Enum: []string{ "INVALID", "INTERNAL", @@ -362,6 +363,7 @@ func DCLForwardingRuleSchema() *dcl.Schema { "region": &dcl.Property{ Type: "string", GoName: "Region", + ReadOnly: true, Description: "[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", Immutable: true, }, diff --git a/services/google/compute/forwarding_rule_yaml_embed.go b/services/google/compute/forwarding_rule_yaml_embed.go index 61ba69cc50..faf9a05178 100755 --- a/services/google/compute/forwarding_rule_yaml_embed.go +++ b/services/google/compute/forwarding_rule_yaml_embed.go @@ -17,7 +17,7 @@ package compute // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/forwarding_rule.yaml -var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") +var YAML_forwarding_rule = []byte("info:\n title: Compute/ForwardingRule\n description: The Compute ForwardingRule resource\n x-dcl-struct-name: ForwardingRule\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n apply:\n description: The function used to apply information about a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n delete:\n description: The function used to delete a ForwardingRule\n parameters:\n - name: ForwardingRule\n required: true\n description: A full instance of a ForwardingRule\n deleteAll:\n description: The function used to delete all ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many ForwardingRule\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n ForwardingRule:\n title: ForwardingRule\n x-dcl-id: projects/{{project}}/global/forwardingRules/{{name}}\n x-dcl-locations:\n - region\n - global\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n allPorts:\n type: boolean\n x-dcl-go-name: AllPorts\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n This field cannot be used with `port` or `portRange` fields. When the\n load balancing scheme is `INTERNAL` and protocol is TCP/UDP, specify this\n field to allow packets addressed to any ports will be forwarded to the\n backends configured with this forwarding rule.\n x-kubernetes-immutable: true\n allowGlobalAccess:\n type: boolean\n x-dcl-go-name: AllowGlobalAccess\n description: This field is used along with the `backend_service` field for\n internal load balancing or with the `target` field for internal TargetInstance.\n If the field is set to `TRUE`, clients can access ILB from all regions.\n Otherwise only allows access from clients in the same region as the internal\n load balancer.\n backendService:\n type: string\n x-dcl-go-name: BackendService\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the BackendService resource\n to receive the matched traffic.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: '[Output Only] Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)\n text format.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n x-kubernetes-immutable: true\n ipAddress:\n type: string\n x-dcl-go-name: IPAddress\n description: 'IP address that this forwarding rule serves. When a client\n sends traffic to this IP address, the forwarding rule directs the traffic\n to the target that you specify in the forwarding rule. If you don''t specify\n a reserved IP address, an ephemeral IP address is assigned. Methods for\n specifying an IP address: * IPv4 dotted decimal, as in `100.1.2.3` * Full\n URL, as in `https://www.googleapis.com/compute/v1/projects/project_id/regions/region/addresses/address-name`\n * Partial URL or by name, as in: * `projects/project_id/regions/region/addresses/address-name`\n * `regions/region/addresses/address-name` * `global/addresses/address-name`\n * `address-name` The loadBalancingScheme and the forwarding rule''s target\n determine the type of IP address that you can use. For detailed information,\n refer to [IP address specifications](/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n ipProtocol:\n type: string\n x-dcl-go-name: IPProtocol\n x-dcl-go-type: ForwardingRuleIPProtocolEnum\n description: The IP protocol to which this rule applies. For protocol forwarding,\n valid options are `TCP`, `UDP`, `ESP`, `AH`, `SCTP` or `ICMP`. For Internal\n TCP/UDP Load Balancing, the load balancing scheme is `INTERNAL`, and one\n of `TCP` or `UDP` are valid. For Traffic Director, the load balancing\n scheme is `INTERNAL_SELF_MANAGED`, and only `TCP`is valid. For Internal\n HTTP(S) Load Balancing, the load balancing scheme is `INTERNAL_MANAGED`,\n and only `TCP` is valid. For HTTP(S), SSL Proxy, and TCP Proxy Load Balancing,\n the load balancing scheme is `EXTERNAL` and only `TCP` is valid. For Network\n TCP/UDP Load Balancing, the load balancing scheme is `EXTERNAL`, and one\n of `TCP` or `UDP` is valid.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - TCP\n - UDP\n - ESP\n - AH\n - SCTP\n - ICMP\n - L3_DEFAULT\n ipVersion:\n type: string\n x-dcl-go-name: IPVersion\n x-dcl-go-type: ForwardingRuleIPVersionEnum\n description: 'The IP Version that will be used by this forwarding rule.\n Valid options are `IPV4` or `IPV6`. This can only be specified for an\n external global forwarding rule. Possible values: UNSPECIFIED_VERSION,\n IPV4, IPV6'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED_VERSION\n - IPV4\n - IPV6\n isMirroringCollector:\n type: boolean\n x-dcl-go-name: IsMirroringCollector\n description: Indicates whether or not this load balancer can be used as\n a collector for packet mirroring. To prevent mirroring loops, instances\n behind this load balancer will not have their traffic mirrored even if\n a `PacketMirroring` rule applies to them. This can only be set to true\n for load balancers that have their `loadBalancingScheme` set to `INTERNAL`.\n x-kubernetes-immutable: true\n labelFingerprint:\n type: string\n x-dcl-go-name: LabelFingerprint\n readOnly: true\n description: Used internally during label updates.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this rule.\n loadBalancingScheme:\n type: string\n x-dcl-go-name: LoadBalancingScheme\n x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum\n description: \"Specifies the forwarding rule type.\\n\\n* `EXTERNAL` is used\n for:\\n * Classic Cloud VPN gateways\\n * Protocol forwarding\n to VMs from an external IP address\\n * The following load balancers:\n HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\\n* `INTERNAL` is\n used for:\\n * Protocol forwarding to VMs from an internal IP address\\n\n \\ * Internal TCP/UDP load balancers\\n* `INTERNAL_MANAGED` is used\n for:\\n * Internal HTTP(S) load balancers\\n* `INTERNAL_SELF_MANAGED`\n is used for:\\n * Traffic Director\\n* `EXTERNAL_MANAGED` is used\n for:\\n * Global external HTTP(S) load balancers \\n\\nFor more information\n about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).\n Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,\n EXTERNAL, EXTERNAL_MANAGED\"\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - INVALID\n - INTERNAL\n - INTERNAL_MANAGED\n - INTERNAL_SELF_MANAGED\n - EXTERNAL\n - EXTERNAL_MANAGED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n metadataFilter:\n type: array\n x-dcl-go-name: MetadataFilter\n description: |-\n Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of [xDS](https://github.com/envoyproxy/data-plane-api/blob/master/XDS_PROTOCOL.md) compliant clients. In their xDS requests to Loadbalancer, xDS clients present [node metadata](https://github.com/envoyproxy/data-plane-api/search?q=%22message+Node%22+in%3A%2Fenvoy%2Fapi%2Fv2%2Fcore%2Fbase.proto&). If a match takes place, the relevant configuration is made available to those proxies. Otherwise, all the resources (e.g. `TargetHttpProxy`, `UrlMap`) referenced by the `ForwardingRule` will not be visible to those proxies.\n\n For each `metadataFilter` in this list, if its `filterMatchCriteria` is set to MATCH_ANY, at least one of the `filterLabel`s must match the corresponding label provided in the metadata. If its `filterMatchCriteria` is set to MATCH_ALL, then all of its `filterLabel`s must match with corresponding labels provided in the metadata.\n\n `metadataFilters` specified here will be applifed before those specified in the `UrlMap` that this `ForwardingRule` references.\n\n `metadataFilters` only applies to Loadbalancers that have their loadBalancingScheme set to `INTERNAL_SELF_MANAGED`.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilter\n required:\n - filterMatchCriteria\n - filterLabel\n properties:\n filterLabel:\n type: array\n x-dcl-go-name: FilterLabel\n description: |-\n The list of label value pairs that must match labels in the provided metadata based on `filterMatchCriteria`\n\n This list must not be empty and can have at the most 64 entries.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterLabel\n required:\n - name\n - value\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: |-\n Name of metadata label.\n\n The name can have a maximum length of 1024 characters and must be at least 1 character long.\n x-kubernetes-immutable: true\n value:\n type: string\n x-dcl-go-name: Value\n description: |-\n The value of the label must match the specified value.\n\n value can have a maximum length of 1024 characters.\n x-kubernetes-immutable: true\n filterMatchCriteria:\n type: string\n x-dcl-go-name: FilterMatchCriteria\n x-dcl-go-type: ForwardingRuleMetadataFilterFilterMatchCriteriaEnum\n description: |-\n Specifies how individual `filterLabel` matches within the list of `filterLabel`s contribute towards the overall `metadataFilter` match.\n\n Supported values are:\n\n * MATCH_ANY: At least one of the `filterLabels` must have a matching label in the provided metadata.\n * MATCH_ALL: All `filterLabels` must have matching labels in the provided metadata. Possible values: NOT_SET, MATCH_ALL, MATCH_ANY\n x-kubernetes-immutable: true\n enum:\n - NOT_SET\n - MATCH_ALL\n - MATCH_ANY\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: This field is not used for external load balancing. For `INTERNAL`\n and `INTERNAL_SELF_MANAGED` load balancing, this field identifies the\n network that the load balanced IP should belong to for this Forwarding\n Rule. If this field is not specified, the default network will be used.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: ForwardingRuleNetworkTierEnum\n description: 'This signifies the networking tier used for configuring this\n load balancer and can only take the following values: `PREMIUM`, `STANDARD`.\n For regional ForwardingRule, the valid values are `PREMIUM` and `STANDARD`.\n For GlobalForwardingRule, the valid value is `PREMIUM`. If this field\n is not specified, it is assumed to be `PREMIUM`. If `IPAddress` is specified,\n this value must be equal to the networkTier of the Address.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n portRange:\n type: string\n x-dcl-go-name: PortRange\n description: |-\n When the load balancing scheme is `EXTERNAL`, `INTERNAL_SELF_MANAGED` and `INTERNAL_MANAGED`, you can specify a `port_range`. Use with a forwarding rule that points to a target proxy or a target pool. Do not use with a forwarding rule that points to a backend service. This field is used along with the `target` field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. Applicable only when `IPProtocol` is `TCP`, `UDP`, or `SCTP`, only packets addressed to ports in the specified range will be forwarded to `target`. Forwarding rules with the same `[IPAddress, IPProtocol]` pair must have disjoint port ranges. Some types of forwarding target have constraints on the acceptable ports:\n\n * TargetHttpProxy: 80, 8080\n * TargetHttpsProxy: 443\n * TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222\n * TargetVpnGateway: 500, 4500\n\n @pattern: d+(?:-d+)?\n x-kubernetes-immutable: true\n ports:\n type: array\n x-dcl-go-name: Ports\n description: 'This field is used along with the `backend_service` field\n for internal load balancing. When the load balancing scheme is `INTERNAL`,\n a list of ports can be configured, for example, [''80''], [''8000'',''9000''].\n Only packets addressed to these ports are forwarded to the backends configured\n with the forwarding rule. If the forwarding rule''s loadBalancingScheme\n is INTERNAL, you can specify ports in one of the following ways: * A list\n of up to five ports, which can be non-contiguous * Keyword `ALL`, which\n causes the forwarding rule to forward traffic on any port of the forwarding\n rule''s protocol. @pattern: d+(?:-d+)? For more information, refer to\n [Port specifications](/load-balancing/docs/forwarding-rule-concepts#port_specifications).'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n project:\n type: string\n x-dcl-go-name: Project\n description: The project this resource belongs in.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n pscConnectionId:\n type: string\n x-dcl-go-name: PscConnectionId\n readOnly: true\n description: The PSC connection id of the PSC Forwarding Rule.\n x-kubernetes-immutable: true\n pscConnectionStatus:\n type: string\n x-dcl-go-name: PscConnectionStatus\n x-dcl-go-type: ForwardingRulePscConnectionStatusEnum\n readOnly: true\n description: 'The PSC connection status of the PSC Forwarding Rule. Possible\n values: STATUS_UNSPECIFIED, PENDING, ACCEPTED, REJECTED, CLOSED'\n x-kubernetes-immutable: true\n enum:\n - STATUS_UNSPECIFIED\n - PENDING\n - ACCEPTED\n - REJECTED\n - CLOSED\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] URL of the region where the regional forwarding\n rule resides. This field is not applicable to global forwarding rules.\n You must specify this field as part of the HTTP request URL. It is not\n settable as a field in the request body.'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] Server-defined URL for the resource.'\n x-kubernetes-immutable: true\n serviceDirectoryRegistrations:\n type: array\n x-dcl-go-name: ServiceDirectoryRegistrations\n description: Service Directory resources to register this forwarding rule\n with. Currently, only supports a single Service Directory resource.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ForwardingRuleServiceDirectoryRegistrations\n properties:\n namespace:\n type: string\n x-dcl-go-name: Namespace\n description: Service Directory namespace to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n service:\n type: string\n x-dcl-go-name: Service\n description: Service Directory service to register the forwarding\n rule under.\n x-kubernetes-immutable: true\n serviceLabel:\n type: string\n x-dcl-go-name: ServiceLabel\n description: An optional prefix to the service name for this Forwarding\n Rule. If specified, the prefix is the first label of the fully qualified\n service name. The label must be 1-63 characters long, and comply with\n [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, the label\n must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`\n which means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash. This field is only used for internal\n load balancing.\n x-kubernetes-immutable: true\n serviceName:\n type: string\n x-dcl-go-name: ServiceName\n readOnly: true\n description: '[Output Only] The internal fully qualified service name for\n this Forwarding Rule. This field is only used for internal load balancing.'\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: This field is only used for `INTERNAL` load balancing. For\n internal load balancing, this field identifies the subnetwork that the\n load balanced IP should belong to for this Forwarding Rule. If the network\n specified is in auto subnet mode, this field is optional. However, if\n the network is in custom subnet mode, a subnetwork must be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n target:\n type: string\n x-dcl-go-name: Target\n description: The URL of the target resource to receive the matched traffic.\n For regional forwarding rules, this target must live in the same region\n as the forwarding rule. For global forwarding rules, this target must\n be a global load balancing resource. The forwarded traffic must be of\n a type appropriate to the target object. For `INTERNAL_SELF_MANAGED` load\n balancing, only `targetHttpProxy` is valid, not `targetHttpsProxy`.\n") -// 22421 bytes -// MD5: e0b0f2cea34ce541c679e4d1ddb54423 +// 22483 bytes +// MD5: e558e7db78d214f65458883df3843c6b diff --git a/services/google/compute/instance.yaml b/services/google/compute/instance.yaml index 452e910c33..4fdb125bb1 100755 --- a/services/google/compute/instance.yaml +++ b/services/google/compute/instance.yaml @@ -433,6 +433,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -449,6 +450,7 @@ components: of the networkTier associated with the Address resource owning that IP.' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PREMIUM - STANDARD @@ -555,6 +557,7 @@ components: specify a static external IP address, it must live in the same region as the zone of the instance. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Address field: selfLink @@ -612,6 +615,7 @@ components: is not specified but the subnetwork is specified, the network is inferred. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: name @@ -622,6 +626,7 @@ components: for this network interface. If not specified by the user, an unused internal IP is assigned by the system. x-kubernetes-immutable: true + x-dcl-server-default: true subnetwork: type: string x-dcl-go-name: Subnetwork @@ -630,6 +635,7 @@ components: in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified. x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Subnetwork field: name @@ -648,6 +654,7 @@ components: x-dcl-go-type: InstanceScheduling description: Sets the scheduling options for this instance. x-kubernetes-immutable: true + x-dcl-server-default: true properties: automaticRestart: type: boolean @@ -711,6 +718,7 @@ components: x-dcl-go-name: ShieldedInstanceConfig x-dcl-go-type: InstanceShieldedInstanceConfig description: Configuration for various parameters related to shielded instances. + x-dcl-server-default: true properties: enableIntegrityMonitoring: type: boolean @@ -733,6 +741,7 @@ components: a user, use RUNNING to keep a machine "on" and TERMINATED to turn a machine off' x-kubernetes-immutable: true + x-dcl-server-default: true enum: - PROVISIONING - STAGING diff --git a/services/google/compute/instance_group_manager.yaml b/services/google/compute/instance_group_manager.yaml index 3a18c147c9..eb9a028fbd 100755 --- a/services/google/compute/instance_group_manager.yaml +++ b/services/google/compute/instance_group_manager.yaml @@ -112,6 +112,7 @@ components: The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). + x-dcl-server-default: true creationTimestamp: type: string x-dcl-go-name: CreationTimestamp @@ -225,6 +226,7 @@ components: x-dcl-go-type: InstanceGroupManagerDistributionPolicy description: Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. + x-dcl-server-default: true properties: targetShape: type: string @@ -494,6 +496,7 @@ components: x-dcl-go-name: UpdatePolicy x-dcl-go-type: InstanceGroupManagerUpdatePolicy description: The update policy for this managed instance group. + x-dcl-server-default: true properties: instanceRedistributionType: type: string diff --git a/services/google/compute/instance_group_manager_schema.go b/services/google/compute/instance_group_manager_schema.go index 93e96f0299..5b3d7ac080 100755 --- a/services/google/compute/instance_group_manager_schema.go +++ b/services/google/compute/instance_group_manager_schema.go @@ -143,9 +143,10 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { }, }, "baseInstanceName": &dcl.Property{ - Type: "string", - GoName: "BaseInstanceName", - Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + Type: "string", + GoName: "BaseInstanceName", + Description: "The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).", + ServerDefault: true, }, "creationTimestamp": &dcl.Property{ Type: "string", @@ -243,10 +244,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Immutable: true, }, "distributionPolicy": &dcl.Property{ - Type: "object", - GoName: "DistributionPolicy", - GoType: "InstanceGroupManagerDistributionPolicy", - Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + Type: "object", + GoName: "DistributionPolicy", + GoType: "InstanceGroupManagerDistributionPolicy", + Description: "Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "targetShape": &dcl.Property{ Type: "string", @@ -520,10 +522,11 @@ func DCLInstanceGroupManagerSchema() *dcl.Schema { Description: "The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number.", }, "updatePolicy": &dcl.Property{ - Type: "object", - GoName: "UpdatePolicy", - GoType: "InstanceGroupManagerUpdatePolicy", - Description: "The update policy for this managed instance group.", + Type: "object", + GoName: "UpdatePolicy", + GoType: "InstanceGroupManagerUpdatePolicy", + Description: "The update policy for this managed instance group.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "instanceRedistributionType": &dcl.Property{ Type: "string", diff --git a/services/google/compute/instance_group_manager_yaml_embed.go b/services/google/compute/instance_group_manager_yaml_embed.go index cda7435c22..6c70f814b8 100755 --- a/services/google/compute/instance_group_manager_yaml_embed.go +++ b/services/google/compute/instance_group_manager_yaml_embed.go @@ -17,7 +17,7 @@ package compute // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/instance_group_manager.yaml -var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") +var YAML_instance_group_manager = []byte("info:\n title: Compute/InstanceGroupManager\n description: The Compute InstanceGroupManager resource\n x-dcl-struct-name: InstanceGroupManager\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n apply:\n description: The function used to apply information about a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n delete:\n description: The function used to delete a InstanceGroupManager\n parameters:\n - name: InstanceGroupManager\n required: true\n description: A full instance of a InstanceGroupManager\n deleteAll:\n description: The function used to delete all InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many InstanceGroupManager\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n InstanceGroupManager:\n title: InstanceGroupManager\n x-dcl-locations:\n - zone\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - targetSize\n - project\n properties:\n autoHealingPolicies:\n type: array\n x-dcl-go-name: AutoHealingPolicies\n description: The autohealing policy for this managed instance group. You\n can specify only one value.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerAutoHealingPolicies\n properties:\n healthCheck:\n type: string\n x-dcl-go-name: HealthCheck\n description: The URL for the health check that signals autohealing.\n x-dcl-references:\n - resource: Compute/HealthCheck\n field: selfLink\n initialDelaySec:\n type: integer\n format: int64\n x-dcl-go-name: InitialDelaySec\n description: The number of seconds that the managed instance group\n waits before it applies autohealing policies to new instances or\n recently recreated instances. This initial delay allows instances\n to initialize and run their startup scripts before the instance\n group determines that they are UNHEALTHY. This prevents the managed\n instance group from recreating its instances prematurely. This value\n must be from range [0, 3600].\n baseInstanceName:\n type: string\n x-dcl-go-name: BaseInstanceName\n description: The base instance name to use for instances in this group.\n The value must be 1-58 characters long. Instances are named by appending\n a hyphen and a random four-character string to the base instance name.\n The base instance name must comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-dcl-server-default: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: The creation timestamp for this managed instance group in \\[RFC3339\\](https://www.ietf.org/rfc/rfc3339.txt)\n text format.\n x-kubernetes-immutable: true\n currentActions:\n type: object\n x-dcl-go-name: CurrentActions\n x-dcl-go-type: InstanceGroupManagerCurrentActions\n readOnly: true\n description: '[Output Only] The list of instance actions and the number\n of instances in this managed instance group that are scheduled for each\n of those actions.'\n x-kubernetes-immutable: true\n properties:\n abandoning:\n type: integer\n format: int64\n x-dcl-go-name: Abandoning\n readOnly: true\n description: '[Output Only] The total number of instances in the managed\n instance group that are scheduled to be abandoned. Abandoning an instance\n removes it from the managed instance group without deleting it.'\n x-kubernetes-immutable: true\n creating:\n type: integer\n format: int64\n x-dcl-go-name: Creating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be created or are currently being created.\n If the group fails to create any of these instances, it tries again\n until it creates the instance successfully. If you have disabled creation\n retries, this field will not be populated; instead, the `creatingWithoutRetries`\n field will be populated.'\n x-kubernetes-immutable: true\n creatingWithoutRetries:\n type: integer\n format: int64\n x-dcl-go-name: CreatingWithoutRetries\n readOnly: true\n description: '[Output Only] The number of instances that the managed\n instance group will attempt to create. The group attempts to create\n each instance only once. If the group fails to create any of these\n instances, it decreases the group''s `targetSize` value accordingly.'\n x-kubernetes-immutable: true\n deleting:\n type: integer\n format: int64\n x-dcl-go-name: Deleting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be deleted or are currently being deleted.'\n x-kubernetes-immutable: true\n none:\n type: integer\n format: int64\n x-dcl-go-name: None\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are running and have no scheduled actions.'\n x-kubernetes-immutable: true\n recreating:\n type: integer\n format: int64\n x-dcl-go-name: Recreating\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be recreated or are currently being being\n recreated. Recreating an instance deletes the existing root persistent\n disk and creates a new disk from the image that is defined in the\n instance template.'\n x-kubernetes-immutable: true\n refreshing:\n type: integer\n format: int64\n x-dcl-go-name: Refreshing\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being reconfigured with properties that do not require\n a restart or a recreate action. For example, setting or removing target\n pools for the instance.'\n x-kubernetes-immutable: true\n restarting:\n type: integer\n format: int64\n x-dcl-go-name: Restarting\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are scheduled to be restarted or are currently being restarted.'\n x-kubernetes-immutable: true\n verifying:\n type: integer\n format: int64\n x-dcl-go-name: Verifying\n readOnly: true\n description: '[Output Only] The number of instances in the managed instance\n group that are being verified. See the `managedInstances[].currentAction`\n property in the `listManagedInstances` method documentation.'\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n distributionPolicy:\n type: object\n x-dcl-go-name: DistributionPolicy\n x-dcl-go-type: InstanceGroupManagerDistributionPolicy\n description: Policy specifying the intended distribution of managed instances\n across zones in a regional managed instance group.\n x-dcl-server-default: true\n properties:\n targetShape:\n type: string\n x-dcl-go-name: TargetShape\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyTargetShapeEnum\n description: 'The distribution shape to which the group converges either\n proactively or on resize events (depending on the value set in `updatePolicy.instanceRedistributionType`).\n Possible values: TARGET_SHAPE_UNSPECIFIED, ANY, BALANCED, ANY_SINGLE_ZONE'\n enum:\n - TARGET_SHAPE_UNSPECIFIED\n - ANY\n - BALANCED\n - ANY_SINGLE_ZONE\n zones:\n type: array\n x-dcl-go-name: Zones\n description: Zones where the regional managed instance group will create\n and manage its instances.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerDistributionPolicyZones\n properties:\n zone:\n type: string\n x-dcl-go-name: Zone\n description: The URL of the [zone](/compute/docs/regions-zones/#available).\n The zone must exist in the region where the managed instance\n group is located.\n x-kubernetes-immutable: true\n fingerprint:\n type: string\n x-dcl-go-name: Fingerprint\n readOnly: true\n description: Fingerprint of this resource. This field may be used in optimistic\n locking. It will be ignored when inserting an InstanceGroupManager. An\n up-to-date fingerprint must be provided in order to update the InstanceGroupManager,\n otherwise the request will fail with error `412 conditionNotMet`. To see\n the latest fingerprint, make a `get()` request to retrieve an InstanceGroupManager.\n x-kubernetes-immutable: true\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: '[Output Only] A unique identifier for this resource type.\n The server generates this identifier.'\n x-kubernetes-immutable: true\n instanceGroup:\n type: string\n x-dcl-go-name: InstanceGroup\n readOnly: true\n description: '[Output Only] The URL of the Instance Group resource.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/InstanceGroup\n field: selfLink\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for this\n managed instance group. The group uses this template to create all new\n instances in the managed instance group. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run `applyUpdatesToInstances`,\n or set the group's `updatePolicy.type` to `PROACTIVE`.\n x-dcl-conflicts:\n - versions\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n location:\n type: string\n x-dcl-go-name: Location\n description: The location of this resource.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the managed instance group. The name must be 1-63\n characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n namedPorts:\n type: array\n x-dcl-go-name: NamedPorts\n description: Named ports configured for the Instance Groups complementary\n to this Instance Group Manager.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerNamedPorts\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: The name for this named port. The name must be 1-63 characters\n long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n x-kubernetes-immutable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: The port number, which can be a value between 1 and 65535.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: '[Output Only] The URL of the [region](/compute/docs/regions-zones/#available)\n where the managed instance group resides (for regional resources).'\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: '[Output Only] The URL for this managed instance group. The\n server defines this URL.'\n x-kubernetes-immutable: true\n statefulPolicy:\n type: object\n x-dcl-go-name: StatefulPolicy\n x-dcl-go-type: InstanceGroupManagerStatefulPolicy\n description: Stateful configuration for this Instanced Group Manager\n properties:\n preservedState:\n type: object\n x-dcl-go-name: PreservedState\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedState\n properties:\n disks:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisks\n properties:\n autoDelete:\n type: string\n x-dcl-go-name: AutoDelete\n x-dcl-go-type: InstanceGroupManagerStatefulPolicyPreservedStateDisksAutoDeleteEnum\n description: 'These stateful disks will never be deleted during\n autohealing, update or VM instance recreate operations.\n This flag is used to configure if the disk should be deleted\n after it is no longer used by the group, e.g. when the given\n instance or the whole group is deleted. Note: disks attached\n in READ_ONLY mode cannot be auto-deleted. Possible values:\n NEVER, ON_PERMANENT_INSTANCE_DELETION'\n enum:\n - NEVER\n - ON_PERMANENT_INSTANCE_DELETION\n x-dcl-go-name: Disks\n description: Disks created on the instances that will be preserved\n on instance delete, update, etc. This map is keyed with the device\n names of the disks.\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceGroupManagerStatus\n readOnly: true\n description: '[Output Only] The status of this managed instance group.'\n properties:\n autoscaler:\n type: string\n x-dcl-go-name: Autoscaler\n readOnly: true\n description: '[Output Only] The URL of the [Autoscaler](/compute/docs/autoscaler/)\n that targets this instance group manager.'\n x-kubernetes-immutable: true\n isStable:\n type: boolean\n x-dcl-go-name: IsStable\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed instance\n group is in a stable state. A stable state means that: none of the\n instances in the managed instance group is currently undergoing any\n type of change (for example, creation, restart, or deletion); no future\n changes are scheduled for instances in the managed instance group;\n and the managed instance group itself is not being modified.'\n x-kubernetes-immutable: true\n stateful:\n type: object\n x-dcl-go-name: Stateful\n x-dcl-go-type: InstanceGroupManagerStatusStateful\n readOnly: true\n description: '[Output Only] Stateful status of the given Instance Group\n Manager.'\n properties:\n hasStatefulConfig:\n type: boolean\n x-dcl-go-name: HasStatefulConfig\n readOnly: true\n description: '[Output Only] A bit indicating whether the managed\n instance group has stateful configuration, that is, if you have\n configured any items in a stateful policy or in per-instance configs.\n The group might report that it has no stateful config even when\n there is still some preserved state on a managed instance, for\n example, if you have deleted all PICs but not yet applied those\n deletions.'\n x-kubernetes-immutable: true\n perInstanceConfigs:\n type: object\n x-dcl-go-name: PerInstanceConfigs\n x-dcl-go-type: InstanceGroupManagerStatusStatefulPerInstanceConfigs\n readOnly: true\n description: '[Output Only] Status of per-instance configs on the\n instance.'\n properties:\n allEffective:\n type: boolean\n x-dcl-go-name: AllEffective\n description: A bit indicating if all of the group's per-instance\n configs (listed in the output of a listPerInstanceConfigs\n API call) have status `EFFECTIVE` or there are no per-instance-configs.\n versionTarget:\n type: object\n x-dcl-go-name: VersionTarget\n x-dcl-go-type: InstanceGroupManagerStatusVersionTarget\n readOnly: true\n description: '[Output Only] A status of consistency of Instances'' versions\n with their target version specified by `version` field on Instance\n Group Manager.'\n x-kubernetes-immutable: true\n properties:\n isReached:\n type: boolean\n x-dcl-go-name: IsReached\n readOnly: true\n description: '[Output Only] A bit indicating whether version target\n has been reached in this managed instance group, i.e. all instances\n are in their target version. Instances'' target version are specified\n by `version` field on Instance Group Manager.'\n x-kubernetes-immutable: true\n targetPools:\n type: array\n x-dcl-go-name: TargetPools\n description: The URLs for all TargetPool resources to which instances in\n the `instanceGroup` field are added. The target pools automatically apply\n to all of the instances in the managed instance group.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/TargetPool\n field: selfLink\n targetSize:\n type: integer\n format: int64\n x-dcl-go-name: TargetSize\n description: The target number of running instances for this managed instance\n group. You can reduce this number by using the instanceGroupManager deleteInstances\n or abandonInstances methods. Resizing the group also changes this number.\n updatePolicy:\n type: object\n x-dcl-go-name: UpdatePolicy\n x-dcl-go-type: InstanceGroupManagerUpdatePolicy\n description: The update policy for this managed instance group.\n x-dcl-server-default: true\n properties:\n instanceRedistributionType:\n type: string\n x-dcl-go-name: InstanceRedistributionType\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyInstanceRedistributionTypeEnum\n description: 'The [instance redistribution policy](/compute/docs/instance-groups/regional-migs#proactive_instance_redistribution)\n for regional managed instance groups. Valid values are: - `PROACTIVE`\n (default): The group attempts to maintain an even distribution of\n VM instances across zones in the region. - `NONE`: For non-autoscaled\n groups, proactive redistribution is disabled.'\n enum:\n - NONE\n - PROACTIVE\n maxSurge:\n type: object\n x-dcl-go-name: MaxSurge\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxSurge\n description: The maximum number of instances that can be created above\n the specified `targetSize` during the update process. This value can\n be either a fixed number or, if the group has 10 or more instances,\n a percentage. If you set a percentage, the number of instances is\n rounded if necessary. The default value for `maxSurge` is a fixed\n value equal to the number of zones in which the managed instance group\n operates. At least one of either `maxSurge` or `maxUnavailable` must\n be greater than 0. Learn more about [`maxSurge`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_surge).\n x-dcl-send-empty: true\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n maxUnavailable:\n type: object\n x-dcl-go-name: MaxUnavailable\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMaxUnavailable\n description: 'The maximum number of instances that can be unavailable\n during the update process. An instance is considered available if\n all of the following conditions are satisfied: - The instance''s [status](/compute/docs/instances/checking-instance-status)\n is `RUNNING`. - If there is a [health check](/compute/docs/instance-groups/autohealing-instances-in-migs)\n on the instance group, the instance''s health check status must be\n `HEALTHY` at least once. If there is no health check on the group,\n then the instance only needs to have a status of `RUNNING` to be considered\n available. This value can be either a fixed number or, if the group\n has 10 or more instances, a percentage. If you set a percentage, the\n number of instances is rounded if necessary. The default value for\n `maxUnavailable` is a fixed value equal to the number of zones in\n which the managed instance group operates. At least one of either\n `maxSurge` or `maxUnavailable` must be greater than 0. Learn more\n about [`maxUnavailable`](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable).'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then the\n `calculated` value is equal to the `fixed` value. - If the value\n is a `percent`, then the `calculated` value is `percent`/100 *\n `targetSize`. For example, the `calculated` value of a 80% of\n a managed instance group with 150 instances would be (80/100 *\n 150) = 120 VM instances. If there is a remainder, the number is\n rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to 100%,\n inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n minimalAction:\n type: string\n x-dcl-go-name: MinimalAction\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyMinimalActionEnum\n description: Minimal action to be taken on an instance. You can specify\n either `RESTART` to restart existing instances or `REPLACE` to delete\n and create new instances from the target template. If you specify\n a `RESTART`, the Updater will attempt to perform that action only.\n However, if the Updater determines that the minimal action you specify\n is not enough to perform the update, it might perform a more disruptive\n action.\n enum:\n - REPLACE\n - RESTART\n - REFRESH\n - NONE\n replacementMethod:\n type: string\n x-dcl-go-name: ReplacementMethod\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyReplacementMethodEnum\n description: 'What action should be used to replace instances. See minimal_action.REPLACE\n Possible values: SUBSTITUTE, RECREATE'\n enum:\n - SUBSTITUTE\n - RECREATE\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceGroupManagerUpdatePolicyTypeEnum\n description: The type of update process. You can specify either `PROACTIVE`\n so that the instance group manager proactively executes actions in\n order to bring instances to their target versions or `OPPORTUNISTIC`\n so that no action is proactively executed but the update will be performed\n as part of other actions (for example, resizes or `recreateInstances`\n calls).\n enum:\n - OPPORTUNISTIC\n - PROACTIVE\n versions:\n type: array\n x-dcl-go-name: Versions\n description: Specifies the instance templates used by this managed instance\n group to create instances. Each version is defined by an `instanceTemplate`\n and a `name`. Every version can appear at most once per instance group.\n This field overrides the top-level `instanceTemplate` field. Read more\n about the [relationships between these fields](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#relationship_between_versions_and_instancetemplate_properties_for_a_managed_instance_group).\n Exactly one `version` must leave the `targetSize` field unset. That version\n will be applied to all remaining instances. For more information, read\n about [canary updates](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update).\n x-dcl-conflicts:\n - instanceTemplate\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGroupManagerVersions\n properties:\n instanceTemplate:\n type: string\n x-dcl-go-name: InstanceTemplate\n description: The URL of the instance template that is specified for\n this managed instance group. The group uses this template to create\n new instances in the managed instance group until the `targetSize`\n for this version is reached. The templates for existing instances\n in the group do not change unless you run `recreateInstances`, run\n `applyUpdatesToInstances`, or set the group's `updatePolicy.type`\n to `PROACTIVE`; in those cases, existing instances are updated until\n the `targetSize` for this version is reached.\n x-dcl-references:\n - resource: Compute/InstanceTemplate\n field: selfLink\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the version. Unique among all versions in the\n scope of this managed instance group.\n targetSize:\n type: object\n x-dcl-go-name: TargetSize\n x-dcl-go-type: InstanceGroupManagerVersionsTargetSize\n description: 'Specifies the intended number of instances to be created\n from the `instanceTemplate`. The final number of instances created\n from the template will be equal to: - If expressed as a fixed number,\n the minimum of either `targetSize.fixed` or `instanceGroupManager.targetSize`\n is used. - if expressed as a `percent`, the `targetSize` would be\n `(targetSize.percent/100 * InstanceGroupManager.targetSize)` If\n there is a remainder, the number is rounded. If unset, this version\n will update any remaining instances not updated by another `version`.\n Read [Starting a canary update](/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#starting_a_canary_update)\n for more information.'\n properties:\n calculated:\n type: integer\n format: int64\n x-dcl-go-name: Calculated\n readOnly: true\n description: '[Output Only] Absolute value of VM instances calculated\n based on the specific mode. - If the value is `fixed`, then\n the `calculated` value is equal to the `fixed` value. - If the\n value is a `percent`, then the `calculated` value is `percent`/100\n * `targetSize`. For example, the `calculated` value of a 80%\n of a managed instance group with 150 instances would be (80/100\n * 150) = 120 VM instances. If there is a remainder, the number\n is rounded.'\n fixed:\n type: integer\n format: int64\n x-dcl-go-name: Fixed\n description: Specifies a fixed number of VM instances. This must\n be a positive integer.\n x-dcl-send-empty: true\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies a percentage of instances between 0 to\n 100%, inclusive. For example, specify `80` for 80%.\n x-dcl-send-empty: true\n zone:\n type: string\n x-dcl-go-name: Zone\n readOnly: true\n description: '[Output Only] The URL of a [zone](/compute/docs/regions-zones/#available)\n where the managed instance group is located (for zonal resources).'\n x-kubernetes-immutable: true\n") -// 35068 bytes -// MD5: 73b41d0882126f3f7fecf81fc1323e04 +// 35179 bytes +// MD5: ca551bc6d87bf8c2484e1ab99235863f diff --git a/services/google/compute/instance_schema.go b/services/google/compute/instance_schema.go index f034731ff5..2275519a0a 100755 --- a/services/google/compute/instance_schema.go +++ b/services/google/compute/instance_schema.go @@ -449,10 +449,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -461,11 +462,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkTier": &dcl.Property{ - Type: "string", - GoName: "NetworkTier", - GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", - Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", - Immutable: true, + Type: "string", + GoName: "NetworkTier", + GoType: "InstanceNetworkInterfacesAccessConfigsNetworkTierEnum", + Description: "This signifies the networking tier used for configuring this access configuration and can only take the following values: PREMIUM, STANDARD. If an AccessConfig is specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If an AccessConfig with a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.", + Immutable: true, + ServerDefault: true, Enum: []string{ "PREMIUM", "STANDARD", @@ -558,10 +560,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "natIP": &dcl.Property{ - Type: "string", - GoName: "NatIP", - Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", - Immutable: true, + Type: "string", + GoName: "NatIP", + Description: "Reference to an address. An external IP address associated with this instance. Specify an unused static external IP address available to the project or leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Address", @@ -613,10 +616,11 @@ func DCLInstanceSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Specifies the title of an existing network. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -625,16 +629,18 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "networkIP": &dcl.Property{ - Type: "string", - GoName: "NetworkIP", - Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", - Immutable: true, + Type: "string", + GoName: "NetworkIP", + Description: "An IPv4 internal network address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.", + Immutable: true, + ServerDefault: true, }, "subnetwork": &dcl.Property{ - Type: "string", - GoName: "Subnetwork", - Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", - Immutable: true, + Type: "string", + GoName: "Subnetwork", + Description: "Reference to a VPC network. If the network resource is in legacy mode, do not provide this property. If the network is in auto subnet mode, providing the subnetwork is optional. If the network is in custom subnet mode, then this field should be specified.", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Subnetwork", @@ -659,11 +665,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "scheduling": &dcl.Property{ - Type: "object", - GoName: "Scheduling", - GoType: "InstanceScheduling", - Description: "Sets the scheduling options for this instance.", - Immutable: true, + Type: "object", + GoName: "Scheduling", + GoType: "InstanceScheduling", + Description: "Sets the scheduling options for this instance.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "automaticRestart": &dcl.Property{ Type: "boolean", @@ -725,10 +732,11 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "shieldedInstanceConfig": &dcl.Property{ - Type: "object", - GoName: "ShieldedInstanceConfig", - GoType: "InstanceShieldedInstanceConfig", - Description: "Configuration for various parameters related to shielded instances.", + Type: "object", + GoName: "ShieldedInstanceConfig", + GoType: "InstanceShieldedInstanceConfig", + Description: "Configuration for various parameters related to shielded instances.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableIntegrityMonitoring": &dcl.Property{ Type: "boolean", @@ -748,11 +756,12 @@ func DCLInstanceSchema() *dcl.Schema { }, }, "status": &dcl.Property{ - Type: "string", - GoName: "Status", - GoType: "InstanceStatusEnum", - Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", - Immutable: true, + Type: "string", + GoName: "Status", + GoType: "InstanceStatusEnum", + Description: "The status of the instance. One of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine off", + Immutable: true, + ServerDefault: true, Enum: []string{ "PROVISIONING", "STAGING", diff --git a/services/google/compute/instance_yaml_embed.go b/services/google/compute/instance_yaml_embed.go index 17340ead0d..60a5e75ebd 100755 --- a/services/google/compute/instance_yaml_embed.go +++ b/services/google/compute/instance_yaml_embed.go @@ -17,7 +17,7 @@ package compute // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/instance.yaml -var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") +var YAML_instance = []byte("info:\n title: Compute/Instance\n description: The Compute Instance resource\n x-dcl-struct-name: Instance\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n apply:\n description: The function used to apply information about a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n delete:\n description: The function used to delete a Instance\n parameters:\n - name: Instance\n required: true\n description: A full instance of a Instance\n deleteAll:\n description: The function used to delete all Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Instance\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: zone\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Instance:\n title: Instance\n x-dcl-id: projects/{{project}}/zones/{{zone}}/instances/{{name}}\n x-dcl-locations:\n - zone\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - zone\n - project\n properties:\n canIPForward:\n type: boolean\n x-dcl-go-name: CanIPForward\n description: Allows this instance to send and receive packets with non-matching\n destination or source IPs. This is required if you plan to use this instance\n to forward routes.\n x-kubernetes-immutable: true\n cpuPlatform:\n type: string\n x-dcl-go-name: CpuPlatform\n readOnly: true\n description: The CPU platform used by this instance.\n x-kubernetes-immutable: true\n creationTimestamp:\n type: string\n x-dcl-go-name: CreationTimestamp\n readOnly: true\n description: Creation timestamp in RFC3339 text format.\n x-kubernetes-immutable: true\n deletionProtection:\n type: boolean\n x-dcl-go-name: DeletionProtection\n description: Whether the resource should be protected against deletion.\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource.\n x-kubernetes-immutable: true\n disks:\n type: array\n x-dcl-go-name: Disks\n description: An array of disks that are associated with the instances that\n are created from this template.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceDisks\n properties:\n autoDelete:\n type: boolean\n x-dcl-go-name: AutoDelete\n description: 'Specifies whether the disk will be auto-deleted when\n the instance is deleted (but not when the disk is detached from\n the instance). Tip: Disks should be set to autoDelete=true so that\n leftover disks are not left behind on machine deletion.'\n x-kubernetes-immutable: true\n boot:\n type: boolean\n x-dcl-go-name: Boot\n description: Indicates that this is a boot disk. The virtual machine\n will use the first partition of the disk for its root filesystem.\n x-kubernetes-immutable: true\n deviceName:\n type: string\n x-dcl-go-name: DeviceName\n description: Specifies a unique device name of your choice that is\n reflected into the /dev/disk/by-id/google-* tree of a Linux operating\n system running within the instance. This name can be used to reference\n the device for mounting, resizing, and so on, from within the instance.\n x-kubernetes-immutable: true\n diskEncryptionKey:\n type: object\n x-dcl-go-name: DiskEncryptionKey\n x-dcl-go-type: InstanceDisksDiskEncryptionKey\n description: Encrypts or decrypts a disk using a customer-supplied\n encryption key.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n rsaEncryptedKey:\n type: string\n x-dcl-go-name: RsaEncryptedKey\n description: Specifies an RFC 4648 base64 encoded, RSA-wrapped\n 2048-bit customer-supplied encryption key to either encrypt\n or decrypt this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied\n encryption key that protects this resource.\n x-kubernetes-immutable: true\n index:\n type: integer\n format: int64\n x-dcl-go-name: Index\n description: Assigns a zero-based index to this disk, where 0 is reserved\n for the boot disk. For example, if you have many disks attached\n to an instance, each disk would have a unique index number. If not\n specified, the server will choose an appropriate value.\n x-kubernetes-immutable: true\n initializeParams:\n type: object\n x-dcl-go-name: InitializeParams\n x-dcl-go-type: InstanceDisksInitializeParams\n description: Specifies the parameters for a new disk that will be\n created alongside the new instance. Use initialization parameters\n to create boot disks or local SSDs attached to the new instance.\n x-kubernetes-immutable: true\n x-dcl-mutable-unreadable: true\n properties:\n diskName:\n type: string\n x-dcl-go-name: DiskName\n description: Specifies the disk name. If not specified, the default\n is to use the name of the instance.\n x-kubernetes-immutable: true\n diskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: DiskSizeGb\n description: Specifies the size of the disk in base-2 GB.\n x-kubernetes-immutable: true\n diskType:\n type: string\n x-dcl-go-name: DiskType\n description: Reference to a disk type. Specifies the disk type\n to use to create the instance. If not specified, the default\n is pd-standard.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/DiskType\n field: name\n sourceImage:\n type: string\n x-dcl-go-name: SourceImage\n description: The source image to create this disk. When creating\n a new instance, one of initializeParams.sourceImage or disks.source\n is required. To create a disk with one of the public operating\n system images, specify the image by its family name.\n x-kubernetes-immutable: true\n sourceImageEncryptionKey:\n type: object\n x-dcl-go-name: SourceImageEncryptionKey\n x-dcl-go-type: InstanceDisksInitializeParamsSourceImageEncryptionKey\n description: The customer-supplied encryption key of the source\n image. Required if the source image is protected by a customer-supplied\n encryption key. Instance templates do not store customer-supplied\n encryption keys, so you cannot create disks for instances in\n a managed instance group if the source images are encrypted\n with your own keys.\n x-kubernetes-immutable: true\n properties:\n rawKey:\n type: string\n x-dcl-go-name: RawKey\n description: Specifies a 256-bit customer-supplied encryption\n key, encoded in RFC 4648 base64 to either encrypt or decrypt\n this resource.\n x-kubernetes-immutable: true\n sha256:\n type: string\n x-dcl-go-name: Sha256\n readOnly: true\n description: The RFC 4648 base64 encoded SHA-256 hash of the\n customer-supplied encryption key that protects this resource.\n x-kubernetes-immutable: true\n interface:\n type: string\n x-dcl-go-name: Interface\n x-dcl-go-type: InstanceDisksInterfaceEnum\n description: Specifies the disk interface to use for attaching this\n disk, which is either SCSI or NVME. The default is SCSI. Persistent\n disks must always use SCSI and the request will fail if you attempt\n to attach a persistent disk in any other format than SCSI.\n x-kubernetes-immutable: true\n enum:\n - SCSI\n - NVME\n mode:\n type: string\n x-dcl-go-name: Mode\n x-dcl-go-type: InstanceDisksModeEnum\n description: The mode in which to attach this disk, either READ_WRITE\n or READ_ONLY. If not specified, the default is to attach the disk\n in READ_WRITE mode.\n x-kubernetes-immutable: true\n enum:\n - READ_WRITE\n - READ_ONLY\n source:\n type: string\n x-dcl-go-name: Source\n description: Reference to a disk. When creating a new instance, one\n of initializeParams.sourceImage or disks.source is required. If\n desired, you can also attach existing non-root persistent disks\n using this property. This field is only applicable for persistent\n disks.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Disk\n field: selfLink\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceDisksTypeEnum\n description: Specifies the type of the disk, either SCRATCH or PERSISTENT.\n If not specified, the default is PERSISTENT.\n x-kubernetes-immutable: true\n enum:\n - SCRATCH\n - PERSISTENT\n x-dcl-mutable-unreadable: true\n guestAccelerators:\n type: array\n x-dcl-go-name: GuestAccelerators\n description: List of the type and count of accelerator cards attached to\n the instance\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceGuestAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the guest accelerator cards exposed to\n this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: Full or partial URL of the accelerator type resource\n to expose to this instance.\n x-kubernetes-immutable: true\n hostname:\n type: string\n x-dcl-go-name: Hostname\n description: The hostname of the instance to be created. The specified hostname\n must be RFC1035 compliant. If hostname is not specified, the default hostname\n is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS,\n and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.\n x-kubernetes-immutable: true\n id:\n type: string\n x-dcl-go-name: Id\n readOnly: true\n description: The unique identifier for the resource. This identifier is\n defined by the server.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Labels to apply to this instance. A list of key->value pairs.\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: A reference to a machine type which defines VM kind.\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Compute/MachineType\n field: name\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The metadata key/value pairs to assign to instances that are\n created from this template. These pairs can consist of custom metadata\n or predefined keys.\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Specifies a minimum CPU platform for the VM instance. Applicable\n values are the friendly names of CPU platforms\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the resource, provided by the client when initially\n creating the resource. The resource name must be 1-63 characters long,\n and comply with RFC1035. Specifically, the name must be 1-63 characters\n long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which\n means the first character must be a lowercase letter, and all following\n characters must be a dash, lowercase letter, or digit, except the last\n character, which cannot be a dash.\n x-kubernetes-immutable: true\n networkInterfaces:\n type: array\n x-dcl-go-name: NetworkInterfaces\n description: An array of configurations for this interface. This specifies\n how this interface is configured to interact with other network services,\n such as connecting to the internet. Only one network interface is supported\n per instance.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfaces\n properties:\n accessConfigs:\n type: array\n x-dcl-go-name: AccessConfigs\n description: An array of configurations for this interface. Currently,\n only one access config, ONE_TO_ONE_NAT, is supported. If there are\n no accessConfigs specified, then this instance will have no external\n internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesAccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n aliasIPRanges:\n type: array\n x-dcl-go-name: AliasIPRanges\n description: An array of alias IP ranges for this network interface.\n Can only be specified for network interfaces on subnet-mode networks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesAliasIPRanges\n properties:\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: The IP CIDR range represented by this alias IP\n range. This IP CIDR range must belong to the specified subnetwork\n and cannot contain IP addresses reserved by system or used\n by other network interfaces. This range may be a single IP\n address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format\n string (e.g. 10.1.2.0/24).\n x-kubernetes-immutable: true\n subnetworkRangeName:\n type: string\n x-dcl-go-name: SubnetworkRangeName\n description: Optional subnetwork secondary range name specifying\n the secondary range from which to allocate the IP CIDR range\n for this alias IP range. If left unspecified, the primary\n range of the subnetwork will be used.\n x-kubernetes-immutable: true\n ipv6AccessConfigs:\n type: array\n x-dcl-go-name: IPv6AccessConfigs\n description: An array of IPv6 access configurations for this interface.\n Currently, only one IPv6 access config, DIRECT_IPV6, is supported.\n If there is no ipv6AccessConfig specified, then this instance will\n have no external IPv6 Internet access.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigs\n required:\n - name\n - type\n properties:\n externalIPv6:\n type: string\n x-dcl-go-name: ExternalIPv6\n readOnly: true\n description: The first IPv6 address of the external IPv6 range\n associated with this instance, prefix length is stored in\n externalIpv6PrefixLength in ipv6AccessConfig. The field is\n output only, an IPv6 address from a subnetwork associated\n with the instance will be allocated dynamically.\n x-kubernetes-immutable: true\n externalIPv6PrefixLength:\n type: string\n x-dcl-go-name: ExternalIPv6PrefixLength\n readOnly: true\n description: The prefix length of the external IPv6 range.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of this access configuration. The default\n and recommended name is External NAT but you can use any arbitrary\n string you would like. For example, My external IP or Network\n Access.\n x-kubernetes-immutable: true\n natIP:\n type: string\n x-dcl-go-name: NatIP\n description: Reference to an address. An external IP address\n associated with this instance. Specify an unused static external\n IP address available to the project or leave this field undefined\n to use an IP from a shared ephemeral IP address pool. If you\n specify a static external IP address, it must live in the\n same region as the zone of the instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Address\n field: selfLink\n networkTier:\n type: string\n x-dcl-go-name: NetworkTier\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsNetworkTierEnum\n description: 'This signifies the networking tier used for configuring\n this access configuration and can only take the following\n values: PREMIUM, STANDARD. If an AccessConfig is specified\n without a valid external IP address, an ephemeral IP will\n be created with this networkTier. If an AccessConfig with\n a valid external IP address is specified, it must match that\n of the networkTier associated with the Address resource owning\n that IP.'\n x-kubernetes-immutable: true\n enum:\n - PREMIUM\n - STANDARD\n publicPtrDomainName:\n type: string\n x-dcl-go-name: PublicPtrDomainName\n description: The DNS domain name for the public PTR record.\n You can set this field only if the setPublicPtr field is enabled.\n x-kubernetes-immutable: true\n setPublicPtr:\n type: boolean\n x-dcl-go-name: SetPublicPtr\n description: Specifies whether a public DNS 'PTR' record should\n be created to map the external IP address of the instance\n to a DNS domain name.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: InstanceNetworkInterfacesIPv6AccessConfigsTypeEnum\n description: The type of configuration. The default and only\n option is ONE_TO_ONE_NAT.\n x-kubernetes-immutable: true\n enum:\n - ONE_TO_ONE_NAT\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The name of the network interface, generated by the server.\n For network devices, these are eth0, eth1, etc\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Specifies the title of an existing network. When creating\n an instance, if neither the network nor the subnetwork is specified,\n the default network global/networks/default is used; if the network\n is not specified but the subnetwork is specified, the network is\n inferred.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n networkIP:\n type: string\n x-dcl-go-name: NetworkIP\n description: An IPv4 internal network address to assign to the instance\n for this network interface. If not specified by the user, an unused\n internal IP is assigned by the system.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: Reference to a VPC network. If the network resource is\n in legacy mode, do not provide this property. If the network is\n in auto subnet mode, providing the subnetwork is optional. If the\n network is in custom subnet mode, then this field should be specified.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n scheduling:\n type: object\n x-dcl-go-name: Scheduling\n x-dcl-go-type: InstanceScheduling\n description: Sets the scheduling options for this instance.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n automaticRestart:\n type: boolean\n x-dcl-go-name: AutomaticRestart\n description: Specifies whether the instance should be automatically\n restarted if it is terminated by Compute Engine (not terminated by\n a user). You can only set the automatic restart option for standard\n instances. Preemptible instances cannot be automatically restarted.\n x-kubernetes-immutable: true\n onHostMaintenance:\n type: string\n x-dcl-go-name: OnHostMaintenance\n description: Defines the maintenance behavior for this instance. For\n standard instances, the default behavior is MIGRATE. For preemptible\n instances, the default and only possible behavior is TERMINATE. For\n more information, see Setting Instance Scheduling Options.\n x-kubernetes-immutable: true\n preemptible:\n type: boolean\n x-dcl-go-name: Preemptible\n description: Defines whether the instance is preemptible. This can only\n be set during instance creation, it cannot be set or changed after\n the instance has been created.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: The self link of the instance\n x-kubernetes-immutable: true\n serviceAccounts:\n type: array\n x-dcl-go-name: ServiceAccounts\n description: A list of service accounts, with their specified scopes, authorized\n for this instance. Only one service account per VM instance is supported.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: InstanceServiceAccounts\n properties:\n email:\n type: string\n x-dcl-go-name: Email\n description: Email address of the service account.\n x-kubernetes-immutable: true\n scopes:\n type: array\n x-dcl-go-name: Scopes\n description: The list of scopes to be made available for this service\n account.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n shieldedInstanceConfig:\n type: object\n x-dcl-go-name: ShieldedInstanceConfig\n x-dcl-go-type: InstanceShieldedInstanceConfig\n description: Configuration for various parameters related to shielded instances.\n x-dcl-server-default: true\n properties:\n enableIntegrityMonitoring:\n type: boolean\n x-dcl-go-name: EnableIntegrityMonitoring\n description: Defines whether the instance has integrity monitoring enabled.\n enableSecureBoot:\n type: boolean\n x-dcl-go-name: EnableSecureBoot\n description: Defines whether the instance has Secure Boot enabled.\n enableVtpm:\n type: boolean\n x-dcl-go-name: EnableVtpm\n description: Defines whether the instance has the vTPM enabled\n status:\n type: string\n x-dcl-go-name: Status\n x-dcl-go-type: InstanceStatusEnum\n description: 'The status of the instance. One of the following values: PROVISIONING,\n STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and TERMINATED. As\n a user, use RUNNING to keep a machine \"on\" and TERMINATED to turn a machine\n off'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n enum:\n - PROVISIONING\n - STAGING\n - RUNNING\n - STOPPING\n - SUSPENDING\n - SUSPENDED\n - TERMINATED\n statusMessage:\n type: string\n x-dcl-go-name: StatusMessage\n readOnly: true\n description: An optional, human-readable explanation of the status.\n x-kubernetes-immutable: true\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A list of tags to apply to this instance. Tags are used to\n identify valid sources or targets for network firewalls and are specified\n by the client during instance creation. Each tag within the list must\n comply with RFC1035.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: A reference to the zone where the machine resides.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Zone\n field: name\n parent: true\n") -// 35585 bytes -// MD5: 1315ea25d5452512ef200b3ce545550b +// 35972 bytes +// MD5: 5a5c981442631f36c7e0f11fcccdcb29 diff --git a/services/google/compute/network.yaml b/services/google/compute/network.yaml index 8612f44f5d..d077cd1065 100755 --- a/services/google/compute/network.yaml +++ b/services/google/compute/network.yaml @@ -77,6 +77,7 @@ components: resources. ' x-kubernetes-immutable: true default: true + x-dcl-server-default: true x-dcl-send-empty: true description: type: string @@ -124,6 +125,7 @@ components: description: 'The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ' + x-dcl-server-default: true properties: routingMode: type: string diff --git a/services/google/compute/network_schema.go b/services/google/compute/network_schema.go index 26f309a03f..d1d71e1c36 100755 --- a/services/google/compute/network_schema.go +++ b/services/google/compute/network_schema.go @@ -98,12 +98,13 @@ func DCLNetworkSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "autoCreateSubnetworks": &dcl.Property{ - Type: "boolean", - GoName: "AutoCreateSubnetworks", - Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", - Immutable: true, - Default: true, - SendEmpty: true, + Type: "boolean", + GoName: "AutoCreateSubnetworks", + Description: "When set to `true`, the network is created in \"auto subnet mode\" and it will create a subnet for each region automatically across the `10.128.0.0/9` address range. When set to `false`, the network is created in \"custom subnet mode\" so the user can explicitly connect subnetwork resources. ", + Immutable: true, + Default: true, + ServerDefault: true, + SendEmpty: true, }, "description": &dcl.Property{ Type: "string", @@ -144,10 +145,11 @@ func DCLNetworkSchema() *dcl.Schema { }, }, "routingConfig": &dcl.Property{ - Type: "object", - GoName: "RoutingConfig", - GoType: "NetworkRoutingConfig", - Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + Type: "object", + GoName: "RoutingConfig", + GoType: "NetworkRoutingConfig", + Description: "The network-level routing configuration for this network. Used by Cloud Router to determine what type of network-wide routing behavior to enforce. ", + ServerDefault: true, Properties: map[string]*dcl.Property{ "routingMode": &dcl.Property{ Type: "string", diff --git a/services/google/compute/network_yaml_embed.go b/services/google/compute/network_yaml_embed.go index 014e618202..7e48496f73 100755 --- a/services/google/compute/network_yaml_embed.go +++ b/services/google/compute/network_yaml_embed.go @@ -17,7 +17,7 @@ package compute // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/network.yaml -var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") +var YAML_network = []byte("info:\n title: Compute/Network\n description: The Compute Network resource\n x-dcl-struct-name: Network\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n apply:\n description: The function used to apply information about a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n delete:\n description: The function used to delete a Network\n parameters:\n - name: Network\n required: true\n description: A full instance of a Network\n deleteAll:\n description: The function used to delete all Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Network\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Network:\n title: Network\n x-dcl-id: projects/{{project}}/global/networks/{{name}}\n x-dcl-locations:\n - global\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n properties:\n autoCreateSubnetworks:\n type: boolean\n x-dcl-go-name: AutoCreateSubnetworks\n description: 'When set to `true`, the network is created in \"auto subnet\n mode\" and it will create a subnet for each region automatically across\n the `10.128.0.0/9` address range. When set to `false`, the network is\n created in \"custom subnet mode\" so the user can explicitly connect subnetwork\n resources. '\n x-kubernetes-immutable: true\n default: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'An optional description of this resource. The resource must\n be recreated to modify this field. '\n x-kubernetes-immutable: true\n gatewayIPv4:\n type: string\n x-dcl-go-name: GatewayIPv4\n readOnly: true\n description: 'The gateway address for default routing out of the network.\n This value is selected by GCP. '\n x-kubernetes-immutable: true\n mtu:\n type: integer\n format: int64\n x-dcl-go-name: Mtu\n description: Maximum Transmission Unit in bytes. The minimum value for this\n field is 1460 and the maximum value is 1500 bytes.\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Name of the resource. Provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with RFC1035.\n Specifically, the name must be 1-63 characters long and match the regular\n expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character\n must be a lowercase letter, and all following characters must be a dash,\n lowercase letter, or digit, except the last character, which cannot be\n a dash. '\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project id of the resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n routingConfig:\n type: object\n x-dcl-go-name: RoutingConfig\n x-dcl-go-type: NetworkRoutingConfig\n description: 'The network-level routing configuration for this network.\n Used by Cloud Router to determine what type of network-wide routing behavior\n to enforce. '\n x-dcl-server-default: true\n properties:\n routingMode:\n type: string\n x-dcl-go-name: RoutingMode\n x-dcl-go-type: NetworkRoutingConfigRoutingModeEnum\n description: 'The network-wide routing mode to use. If set to `REGIONAL`,\n this network''s cloud routers will only advertise routes with subnetworks\n of this network in the same region as the router. If set to `GLOBAL`,\n this network''s cloud routers will advertise routes with all subnetworks\n of this network, across regions. '\n x-dcl-server-default: true\n enum:\n - REGIONAL\n - GLOBAL\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n selfLinkWithId:\n type: string\n x-dcl-go-name: SelfLinkWithId\n readOnly: true\n description: Server-defined URL for the resource containing the network\n ID.\n x-kubernetes-immutable: true\n") -// 5161 bytes -// MD5: a8413935798ad66cdf66c6d245fe77ab +// 5235 bytes +// MD5: d60f19dc7773fa87ed18693848b07f74 diff --git a/services/google/compute/packet_mirroring.yaml b/services/google/compute/packet_mirroring.yaml index 1396a77d33..dc95e03667 100755 --- a/services/google/compute/packet_mirroring.yaml +++ b/services/google/compute/packet_mirroring.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: PacketMirroringFilter description: Filter for mirrored traffic. If unspecified, all traffic is mirrored. + x-dcl-server-default: true properties: cidrRanges: type: array diff --git a/services/google/compute/packet_mirroring_schema.go b/services/google/compute/packet_mirroring_schema.go index fb99603d73..25cae7699d 100755 --- a/services/google/compute/packet_mirroring_schema.go +++ b/services/google/compute/packet_mirroring_schema.go @@ -170,10 +170,11 @@ func DCLPacketMirroringSchema() *dcl.Schema { }, }, "filter": &dcl.Property{ - Type: "object", - GoName: "Filter", - GoType: "PacketMirroringFilter", - Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + Type: "object", + GoName: "Filter", + GoType: "PacketMirroringFilter", + Description: "Filter for mirrored traffic. If unspecified, all traffic is mirrored.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "cidrRanges": &dcl.Property{ Type: "array", diff --git a/services/google/compute/packet_mirroring_yaml_embed.go b/services/google/compute/packet_mirroring_yaml_embed.go index f7fad8f912..903c35e5d6 100755 --- a/services/google/compute/packet_mirroring_yaml_embed.go +++ b/services/google/compute/packet_mirroring_yaml_embed.go @@ -17,7 +17,7 @@ package compute // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/compute/packet_mirroring.yaml -var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") +var YAML_packet_mirroring = []byte("info:\n title: Compute/PacketMirroring\n description: Packet Mirroring mirrors traffic to and from particular VM instances.\n You can use the collected traffic to help you detect security threats and monitor\n application performance.\n x-dcl-struct-name: PacketMirroring\n x-dcl-has-iam: false\n x-dcl-ref:\n text: API documentation\n url: https://cloud.google.com/compute/docs/reference/rest/beta/packetMirrorings\n x-dcl-guides:\n - text: Using Packet Mirroring\n url: https://cloud.google.com/vpc/docs/using-packet-mirroring\npaths:\n get:\n description: The function used to get information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n apply:\n description: The function used to apply information about a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n delete:\n description: The function used to delete a PacketMirroring\n parameters:\n - name: PacketMirroring\n required: true\n description: A full instance of a PacketMirroring\n deleteAll:\n description: The function used to delete all PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many PacketMirroring\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n PacketMirroring:\n title: PacketMirroring\n x-dcl-id: projects/{{project}}/regions/{{location}}/packetMirrorings/{{name}}\n x-dcl-locations:\n - region\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - network\n - collectorIlb\n - mirroredResources\n - project\n - location\n properties:\n collectorIlb:\n type: object\n x-dcl-go-name: CollectorIlb\n x-dcl-go-type: PacketMirroringCollectorIlb\n description: The Forwarding Rule resource of type `loadBalancingScheme=INTERNAL`\n that will be used as collector for mirrored traffic. The specified forwarding\n rule must have `isMirroringCollector` set to true.\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the forwarding rule;\n defined by the server.\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the forwarding rule representing the ILB\n configured as destination of the mirrored traffic.\n x-dcl-references:\n - resource: Compute/ForwardingRule\n field: selfLink\n description:\n type: string\n x-dcl-go-name: Description\n description: An optional description of this resource. Provide this property\n when you create the resource.\n enable:\n type: string\n x-dcl-go-name: Enable\n x-dcl-go-type: PacketMirroringEnableEnum\n description: Indicates whether or not this packet mirroring takes effect.\n If set to FALSE, this packet mirroring policy will not be enforced on\n the network. The default is TRUE.\n x-dcl-server-default: true\n enum:\n - \"TRUE\"\n - \"FALSE\"\n filter:\n type: object\n x-dcl-go-name: Filter\n x-dcl-go-type: PacketMirroringFilter\n description: Filter for mirrored traffic. If unspecified, all traffic is\n mirrored.\n x-dcl-server-default: true\n properties:\n cidrRanges:\n type: array\n x-dcl-go-name: CidrRanges\n description: IP CIDR ranges that apply as filter on the source (ingress)\n or destination (egress) IP in the IP header. Only IPv4 is supported.\n If no ranges are specified, all traffic that matches the specified\n IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n direction:\n type: string\n x-dcl-go-name: Direction\n x-dcl-go-type: PacketMirroringFilterDirectionEnum\n description: Direction of traffic to mirror, either INGRESS, EGRESS,\n or BOTH. The default is BOTH.\n enum:\n - INGRESS\n - EGRESS\n ipProtocols:\n type: array\n x-dcl-go-name: IPProtocols\n description: Protocols that apply as filter on mirrored traffic. If\n no protocols are specified, all traffic that matches the specified\n CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is\n specified, all traffic is mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n id:\n type: integer\n format: int64\n x-dcl-go-name: Id\n readOnly: true\n description: Output only. The unique identifier for the resource. This identifier\n is defined by the server.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n mirroredResources:\n type: object\n x-dcl-go-name: MirroredResources\n x-dcl-go-type: PacketMirroringMirroredResources\n description: PacketMirroring mirroredResourceInfos. MirroredResourceInfo\n specifies a set of mirrored VM instances, subnetworks and/or tags for\n which traffic from/to all VM instances will be mirrored.\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: A set of virtual machine instances that are being mirrored.\n They must live in zones contained in the same region as this packetMirroring.\n Note that this config will apply only to those network interfaces\n of the Instances that belong to the network specified in this packetMirroring.\n You may specify a maximum of 50 Instances.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesInstances\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the instance;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the virtual machine instance which\n is being mirrored.\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n subnetworks:\n type: array\n x-dcl-go-name: Subnetworks\n description: A set of subnetworks for which traffic from/to all VM instances\n will be mirrored. They must live in the same region as this packetMirroring.\n You may specify a maximum of 5 subnetworks.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: PacketMirroringMirroredResourcesSubnetworks\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the subnetwork;\n defined by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: Resource URL to the subnetwork for which traffic\n from/to all VM instances will be mirrored.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: A set of mirrored tags. Traffic from/to all VM instances\n that have one or more of these tags will be mirrored.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the resource; provided by the client when the resource\n is created. The name must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).\n Specifically, the name must be 1-63 characters long and match the regular\n expression `)?` which means the first character must be a lowercase letter,\n and all following characters must be a dash, lowercase letter, or digit,\n except the last character, which cannot be a dash.\n x-kubernetes-immutable: true\n network:\n type: object\n x-dcl-go-name: Network\n x-dcl-go-type: PacketMirroringNetwork\n description: Specifies the mirrored VPC network. Only packets in this network\n will be mirrored. All mirrored VMs should have a NIC in the given network.\n All mirrored subnetworks should belong to the given network.\n x-kubernetes-immutable: true\n required:\n - url\n properties:\n canonicalUrl:\n type: string\n x-dcl-go-name: CanonicalUrl\n readOnly: true\n description: Output only. Unique identifier for the network; defined\n by the server.\n x-kubernetes-immutable: true\n url:\n type: string\n x-dcl-go-name: Url\n description: URL of the network resource.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n priority:\n type: integer\n format: int64\n x-dcl-go-name: Priority\n description: The priority of applying this configuration. Priority is used\n to break ties in cases where there is more than one matching rule. In\n the case of two rules that apply for a given Instance, the one with the\n lowest-numbered priority value wins. Default value is 1000. Valid range\n is 0 through 65535.\n x-dcl-server-default: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n region:\n type: string\n x-dcl-go-name: Region\n readOnly: true\n description: URI of the region where the packetMirroring resides.\n x-kubernetes-immutable: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: Server-defined URL for the resource.\n x-kubernetes-immutable: true\n") -// 12520 bytes -// MD5: 83ddf512456e39ad730a446470e11941 +// 12557 bytes +// MD5: 98969f407e80ef1a5ce0869d994797c4 diff --git a/services/google/dataplex/alpha/asset.yaml b/services/google/dataplex/alpha/asset.yaml index 18654bb7be..bd23e28d5e 100755 --- a/services/google/dataplex/alpha/asset.yaml +++ b/services/google/dataplex/alpha/asset.yaml @@ -125,6 +125,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: AssetDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -182,6 +183,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: AssetDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean @@ -295,10 +297,6 @@ components: type: string x-dcl-go-name: Name description: The name of the asset. - x-dcl-references: - - resource: Dataplex/Asset - field: selfLink - parent: true project: type: string x-dcl-go-name: Project diff --git a/services/google/dataplex/alpha/asset_alpha_yaml_embed.go b/services/google/dataplex/alpha/asset_alpha_yaml_embed.go index 354f7fff29..1286062759 100755 --- a/services/google/dataplex/alpha/asset_alpha_yaml_embed.go +++ b/services/google/dataplex/alpha/asset_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/alpha/asset.yaml -var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n x-dcl-references:\n - resource: Dataplex/Asset\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") +var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") -// 15321 bytes -// MD5: 229f226d4f56fbfbca391a6bf4942b9a +// 15285 bytes +// MD5: a2bbd81aae912692aa07e036dcae6f58 diff --git a/services/google/dataplex/alpha/asset_internal.go b/services/google/dataplex/alpha/asset_internal.go index 4859f899a4..4159cdcd85 100755 --- a/services/google/dataplex/alpha/asset_internal.go +++ b/services/google/dataplex/alpha/asset_internal.go @@ -1794,7 +1794,7 @@ func diffAsset(c *Client, desired, actual *Asset, opts ...dcl.ApplyOption) ([]*d var fn dcl.FieldName var newDiffs []*dcl.FieldDiff // New style diffs. - if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{Type: "ReferenceType", OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { if err != nil { return nil, err } diff --git a/services/google/dataplex/alpha/asset_schema.go b/services/google/dataplex/alpha/asset_schema.go index 1f48b888d6..b17857c4cb 100755 --- a/services/google/dataplex/alpha/asset_schema.go +++ b/services/google/dataplex/alpha/asset_schema.go @@ -170,10 +170,11 @@ func DCLAssetSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "AssetDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "AssetDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -226,10 +227,11 @@ func DCLAssetSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "AssetDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "AssetDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", @@ -355,13 +357,6 @@ func DCLAssetSchema() *dcl.Schema { Type: "string", GoName: "Name", Description: "The name of the asset.", - ResourceReferences: []*dcl.PropertyResourceReference{ - &dcl.PropertyResourceReference{ - Resource: "Dataplex/Asset", - Field: "selfLink", - Parent: true, - }, - }, }, "project": &dcl.Property{ Type: "string", diff --git a/services/google/dataplex/alpha/zone.yaml b/services/google/dataplex/alpha/zone.yaml index ea21fb5930..4b9249a18d 100755 --- a/services/google/dataplex/alpha/zone.yaml +++ b/services/google/dataplex/alpha/zone.yaml @@ -135,6 +135,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: ZoneDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -192,6 +193,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: ZoneDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean diff --git a/services/google/dataplex/alpha/zone_alpha_yaml_embed.go b/services/google/dataplex/alpha/zone_alpha_yaml_embed.go index 4cbdce5f12..bd2081cc98 100755 --- a/services/google/dataplex/alpha/zone_alpha_yaml_embed.go +++ b/services/google/dataplex/alpha/zone_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/alpha/zone.yaml -var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") +var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") -// 11219 bytes -// MD5: e48405e53bf5e1234a59ef14c94298d2 +// 11301 bytes +// MD5: 349c8a4b927970a719de138ae5f4844c diff --git a/services/google/dataplex/alpha/zone_schema.go b/services/google/dataplex/alpha/zone_schema.go index 72ab9aa0b6..1df148cd1c 100755 --- a/services/google/dataplex/alpha/zone_schema.go +++ b/services/google/dataplex/alpha/zone_schema.go @@ -177,10 +177,11 @@ func DCLZoneSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "ZoneDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "ZoneDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -233,10 +234,11 @@ func DCLZoneSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "ZoneDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "ZoneDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", diff --git a/services/google/dataplex/asset.yaml b/services/google/dataplex/asset.yaml index 18654bb7be..bd23e28d5e 100755 --- a/services/google/dataplex/asset.yaml +++ b/services/google/dataplex/asset.yaml @@ -125,6 +125,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: AssetDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -182,6 +183,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: AssetDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean @@ -295,10 +297,6 @@ components: type: string x-dcl-go-name: Name description: The name of the asset. - x-dcl-references: - - resource: Dataplex/Asset - field: selfLink - parent: true project: type: string x-dcl-go-name: Project diff --git a/services/google/dataplex/asset_internal.go b/services/google/dataplex/asset_internal.go index ae981fe78c..dd3e72deb6 100755 --- a/services/google/dataplex/asset_internal.go +++ b/services/google/dataplex/asset_internal.go @@ -1794,7 +1794,7 @@ func diffAsset(c *Client, desired, actual *Asset, opts ...dcl.ApplyOption) ([]*d var fn dcl.FieldName var newDiffs []*dcl.FieldDiff // New style diffs. - if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{Type: "ReferenceType", OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { if err != nil { return nil, err } diff --git a/services/google/dataplex/asset_schema.go b/services/google/dataplex/asset_schema.go index b02fa47ae8..2a8c62b3c8 100755 --- a/services/google/dataplex/asset_schema.go +++ b/services/google/dataplex/asset_schema.go @@ -170,10 +170,11 @@ func DCLAssetSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "AssetDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "AssetDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -226,10 +227,11 @@ func DCLAssetSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "AssetDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "AssetDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", @@ -355,13 +357,6 @@ func DCLAssetSchema() *dcl.Schema { Type: "string", GoName: "Name", Description: "The name of the asset.", - ResourceReferences: []*dcl.PropertyResourceReference{ - &dcl.PropertyResourceReference{ - Resource: "Dataplex/Asset", - Field: "selfLink", - Parent: true, - }, - }, }, "project": &dcl.Property{ Type: "string", diff --git a/services/google/dataplex/asset_yaml_embed.go b/services/google/dataplex/asset_yaml_embed.go index 9b9ef1670a..3b0033a40e 100755 --- a/services/google/dataplex/asset_yaml_embed.go +++ b/services/google/dataplex/asset_yaml_embed.go @@ -17,7 +17,7 @@ package dataplex // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/asset.yaml -var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n x-dcl-references:\n - resource: Dataplex/Asset\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") +var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") -// 15321 bytes -// MD5: 229f226d4f56fbfbca391a6bf4942b9a +// 15285 bytes +// MD5: a2bbd81aae912692aa07e036dcae6f58 diff --git a/services/google/dataplex/beta/asset.yaml b/services/google/dataplex/beta/asset.yaml index 18654bb7be..bd23e28d5e 100755 --- a/services/google/dataplex/beta/asset.yaml +++ b/services/google/dataplex/beta/asset.yaml @@ -125,6 +125,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: AssetDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -182,6 +183,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: AssetDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean @@ -295,10 +297,6 @@ components: type: string x-dcl-go-name: Name description: The name of the asset. - x-dcl-references: - - resource: Dataplex/Asset - field: selfLink - parent: true project: type: string x-dcl-go-name: Project diff --git a/services/google/dataplex/beta/asset_beta_yaml_embed.go b/services/google/dataplex/beta/asset_beta_yaml_embed.go index d69c40141a..889216f39e 100755 --- a/services/google/dataplex/beta/asset_beta_yaml_embed.go +++ b/services/google/dataplex/beta/asset_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/beta/asset.yaml -var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n x-dcl-references:\n - resource: Dataplex/Asset\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") +var YAML_asset = []byte("info:\n title: Dataplex/Asset\n description: The Dataplex Asset resource\n x-dcl-struct-name: Asset\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n apply:\n description: The function used to apply information about a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n delete:\n description: The function used to delete a Asset\n parameters:\n - name: Asset\n required: true\n description: A full instance of a Asset\n deleteAll:\n description: The function used to delete all Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Asset\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: dataplexzone\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Asset:\n title: Asset\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - resourceSpec\n - discoverySpec\n - project\n - location\n - lake\n - dataplexZone\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the asset was created.\n x-kubernetes-immutable: true\n dataplexZone:\n type: string\n x-dcl-go-name: DataplexZone\n description: The zone for the resource\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the asset.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: AssetDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data referenced by this asset. When this spec is left unset, the asset\n will use the spec set on the parent zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: AssetDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: AssetDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n discoveryStatus:\n type: object\n x-dcl-go-name: DiscoveryStatus\n x-dcl-go-type: AssetDiscoveryStatus\n readOnly: true\n description: Output only. Status of the discovery feature applied to data\n referenced by this asset.\n properties:\n lastRunDuration:\n type: string\n x-dcl-go-name: LastRunDuration\n description: The duration of the last discovery run.\n lastRunTime:\n type: string\n format: date-time\n x-dcl-go-name: LastRunTime\n description: The start time of the last discovery run.\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetDiscoveryStatusStateEnum\n description: 'The current status of the discovery feature. Possible\n values: STATE_UNSPECIFIED, SCHEDULED, IN_PROGRESS, PAUSED, DISABLED'\n enum:\n - STATE_UNSPECIFIED\n - SCHEDULED\n - IN_PROGRESS\n - PAUSED\n - DISABLED\n stats:\n type: object\n x-dcl-go-name: Stats\n x-dcl-go-type: AssetDiscoveryStatusStats\n description: Data Stats of the asset reported by discovery.\n properties:\n dataItems:\n type: integer\n format: int64\n x-dcl-go-name: DataItems\n description: The count of data items within the referenced resource.\n dataSize:\n type: integer\n format: int64\n x-dcl-go-name: DataSize\n description: The number of stored data bytes within the referenced\n resource.\n filesets:\n type: integer\n format: int64\n x-dcl-go-name: Filesets\n description: The count of fileset entities within the referenced\n resource.\n tables:\n type: integer\n format: int64\n x-dcl-go-name: Tables\n description: The count of table entities within the referenced resource.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the asset.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the asset.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: AssetResourceSpec\n description: Required. Immutable. Specification of the resource that is\n referenced by this asset.\n x-kubernetes-immutable: true\n required:\n - type\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Immutable. Relative name of the cloud resource that contains\n the data that is being managed within a lake. For example: `projects/{project_number}/buckets/{bucket_id}`\n `projects/{project_number}/datasets/{dataset_id}`'\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: AssetResourceSpecTypeEnum\n description: 'Required. Immutable. Type of resource. Possible values:\n STORAGE_BUCKET, BIGQUERY_DATASET'\n x-kubernetes-immutable: true\n enum:\n - STORAGE_BUCKET\n - BIGQUERY_DATASET\n resourceStatus:\n type: object\n x-dcl-go-name: ResourceStatus\n x-dcl-go-type: AssetResourceStatus\n readOnly: true\n description: Output only. Status of the resource referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetResourceStatusStateEnum\n description: 'The current state of the managed resource. Possible values:\n STATE_UNSPECIFIED, READY, ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n securityStatus:\n type: object\n x-dcl-go-name: SecurityStatus\n x-dcl-go-type: AssetSecurityStatus\n readOnly: true\n description: Output only. Status of the security policy applied to resource\n referenced by this asset.\n properties:\n message:\n type: string\n x-dcl-go-name: Message\n description: Additional information about the current state.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetSecurityStatusStateEnum\n description: 'The current state of the security policy applied to the\n attached resource. Possible values: STATE_UNSPECIFIED, READY, APPLYING,\n ERROR'\n enum:\n - STATE_UNSPECIFIED\n - READY\n - APPLYING\n - ERROR\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: AssetStateEnum\n readOnly: true\n description: 'Output only. Current state of the asset. Possible values:\n STATE_UNSPECIFIED, ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the asset.\n This ID will be different if the asset is deleted and re-created with\n the same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the asset was last updated.\n x-kubernetes-immutable: true\n") -// 15321 bytes -// MD5: 229f226d4f56fbfbca391a6bf4942b9a +// 15285 bytes +// MD5: a2bbd81aae912692aa07e036dcae6f58 diff --git a/services/google/dataplex/beta/asset_internal.go b/services/google/dataplex/beta/asset_internal.go index 1fe209d535..3707f1b549 100755 --- a/services/google/dataplex/beta/asset_internal.go +++ b/services/google/dataplex/beta/asset_internal.go @@ -1794,7 +1794,7 @@ func diffAsset(c *Client, desired, actual *Asset, opts ...dcl.ApplyOption) ([]*d var fn dcl.FieldName var newDiffs []*dcl.FieldDiff // New style diffs. - if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{Type: "ReferenceType", OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { + if ds, err := dcl.Diff(desired.Name, actual.Name, dcl.DiffInfo{OperationSelector: dcl.TriggersOperation("updateAssetUpdateAssetOperation")}, fn.AddNest("Name")); len(ds) != 0 || err != nil { if err != nil { return nil, err } diff --git a/services/google/dataplex/beta/asset_schema.go b/services/google/dataplex/beta/asset_schema.go index 1d04dbf776..f143f95256 100755 --- a/services/google/dataplex/beta/asset_schema.go +++ b/services/google/dataplex/beta/asset_schema.go @@ -170,10 +170,11 @@ func DCLAssetSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "AssetDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "AssetDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -226,10 +227,11 @@ func DCLAssetSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "AssetDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "AssetDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", @@ -355,13 +357,6 @@ func DCLAssetSchema() *dcl.Schema { Type: "string", GoName: "Name", Description: "The name of the asset.", - ResourceReferences: []*dcl.PropertyResourceReference{ - &dcl.PropertyResourceReference{ - Resource: "Dataplex/Asset", - Field: "selfLink", - Parent: true, - }, - }, }, "project": &dcl.Property{ Type: "string", diff --git a/services/google/dataplex/beta/zone.yaml b/services/google/dataplex/beta/zone.yaml index ea21fb5930..4b9249a18d 100755 --- a/services/google/dataplex/beta/zone.yaml +++ b/services/google/dataplex/beta/zone.yaml @@ -135,6 +135,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: ZoneDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -192,6 +193,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: ZoneDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean diff --git a/services/google/dataplex/beta/zone_beta_yaml_embed.go b/services/google/dataplex/beta/zone_beta_yaml_embed.go index 52972ac97b..0853c1b8ed 100755 --- a/services/google/dataplex/beta/zone_beta_yaml_embed.go +++ b/services/google/dataplex/beta/zone_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/beta/zone.yaml -var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") +var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") -// 11219 bytes -// MD5: e48405e53bf5e1234a59ef14c94298d2 +// 11301 bytes +// MD5: 349c8a4b927970a719de138ae5f4844c diff --git a/services/google/dataplex/beta/zone_schema.go b/services/google/dataplex/beta/zone_schema.go index ae31ac138c..96eb31e101 100755 --- a/services/google/dataplex/beta/zone_schema.go +++ b/services/google/dataplex/beta/zone_schema.go @@ -177,10 +177,11 @@ func DCLZoneSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "ZoneDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "ZoneDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -233,10 +234,11 @@ func DCLZoneSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "ZoneDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "ZoneDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", diff --git a/services/google/dataplex/zone.yaml b/services/google/dataplex/zone.yaml index ea21fb5930..4b9249a18d 100755 --- a/services/google/dataplex/zone.yaml +++ b/services/google/dataplex/zone.yaml @@ -135,6 +135,7 @@ components: x-dcl-go-name: CsvOptions x-dcl-go-type: ZoneDiscoverySpecCsvOptions description: Optional. Configuration for CSV data. + x-dcl-server-default: true properties: delimiter: type: string @@ -192,6 +193,7 @@ components: x-dcl-go-name: JsonOptions x-dcl-go-type: ZoneDiscoverySpecJsonOptions description: Optional. Configuration for Json data. + x-dcl-server-default: true properties: disableTypeInference: type: boolean diff --git a/services/google/dataplex/zone_schema.go b/services/google/dataplex/zone_schema.go index 1623086547..87d8a86f4f 100755 --- a/services/google/dataplex/zone_schema.go +++ b/services/google/dataplex/zone_schema.go @@ -177,10 +177,11 @@ func DCLZoneSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "csvOptions": &dcl.Property{ - Type: "object", - GoName: "CsvOptions", - GoType: "ZoneDiscoverySpecCsvOptions", - Description: "Optional. Configuration for CSV data.", + Type: "object", + GoName: "CsvOptions", + GoType: "ZoneDiscoverySpecCsvOptions", + Description: "Optional. Configuration for CSV data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "delimiter": &dcl.Property{ Type: "string", @@ -233,10 +234,11 @@ func DCLZoneSchema() *dcl.Schema { }, }, "jsonOptions": &dcl.Property{ - Type: "object", - GoName: "JsonOptions", - GoType: "ZoneDiscoverySpecJsonOptions", - Description: "Optional. Configuration for Json data.", + Type: "object", + GoName: "JsonOptions", + GoType: "ZoneDiscoverySpecJsonOptions", + Description: "Optional. Configuration for Json data.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "disableTypeInference": &dcl.Property{ Type: "boolean", diff --git a/services/google/dataplex/zone_yaml_embed.go b/services/google/dataplex/zone_yaml_embed.go index 44cc6d24a3..09205b697b 100755 --- a/services/google/dataplex/zone_yaml_embed.go +++ b/services/google/dataplex/zone_yaml_embed.go @@ -17,7 +17,7 @@ package dataplex // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataplex/zone.yaml -var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") +var YAML_zone = []byte("info:\n title: Dataplex/Zone\n description: The Dataplex Zone resource\n x-dcl-struct-name: Zone\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n apply:\n description: The function used to apply information about a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n delete:\n description: The function used to delete a Zone\n parameters:\n - name: Zone\n required: true\n description: A full instance of a Zone\n deleteAll:\n description: The function used to delete all Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Zone\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n - name: lake\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Zone:\n title: Zone\n x-dcl-id: projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - type\n - discoverySpec\n - resourceSpec\n - project\n - location\n - lake\n properties:\n assetStatus:\n type: object\n x-dcl-go-name: AssetStatus\n x-dcl-go-type: ZoneAssetStatus\n readOnly: true\n description: Output only. Aggregated status of the underlying assets of\n the zone.\n properties:\n activeAssets:\n type: integer\n format: int64\n x-dcl-go-name: ActiveAssets\n description: Number of active assets.\n securityPolicyApplyingAssets:\n type: integer\n format: int64\n x-dcl-go-name: SecurityPolicyApplyingAssets\n description: Number of assets that are in process of updating the security\n policy on attached resources.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n description: Last update time of the status.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The time when the zone was created.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. Description of the zone.\n discoverySpec:\n type: object\n x-dcl-go-name: DiscoverySpec\n x-dcl-go-type: ZoneDiscoverySpec\n description: Required. Specification of the discovery feature applied to\n data in this zone.\n required:\n - enabled\n properties:\n csvOptions:\n type: object\n x-dcl-go-name: CsvOptions\n x-dcl-go-type: ZoneDiscoverySpecCsvOptions\n description: Optional. Configuration for CSV data.\n x-dcl-server-default: true\n properties:\n delimiter:\n type: string\n x-dcl-go-name: Delimiter\n description: Optional. The delimiter being used to separate values.\n This defaults to ','.\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for CSV data. If true, all columns will be registered as\n strings.\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n headerRows:\n type: integer\n format: int64\n x-dcl-go-name: HeaderRows\n description: Optional. The number of rows to interpret as header\n rows that should be skipped when reading data rows.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Required. Whether discovery is enabled.\n excludePatterns:\n type: array\n x-dcl-go-name: ExcludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to exclude during discovery. For Cloud Storage bucket assets, these\n are interpreted as glob patterns used to match object names. For BigQuery\n dataset assets, these are interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n includePatterns:\n type: array\n x-dcl-go-name: IncludePatterns\n description: Optional. The list of patterns to apply for selecting data\n to include during discovery if only a subset of the data should considered.\n For Cloud Storage bucket assets, these are interpreted as glob patterns\n used to match object names. For BigQuery dataset assets, these are\n interpreted as patterns to match table names.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n jsonOptions:\n type: object\n x-dcl-go-name: JsonOptions\n x-dcl-go-type: ZoneDiscoverySpecJsonOptions\n description: Optional. Configuration for Json data.\n x-dcl-server-default: true\n properties:\n disableTypeInference:\n type: boolean\n x-dcl-go-name: DisableTypeInference\n description: Optional. Whether to disable the inference of data\n type for Json data. If true, all columns will be registered as\n their primitive types (strings, number or boolean).\n encoding:\n type: string\n x-dcl-go-name: Encoding\n description: Optional. The character encoding of the data. The default\n is UTF-8.\n schedule:\n type: string\n x-dcl-go-name: Schedule\n description: 'Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron)\n for running discovery periodically. Successive discovery runs must\n be scheduled at least 60 minutes apart. The default value is to run\n discovery every 60 minutes. To explicitly set a timezone to the cron\n tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or\n TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string\n from IANA time zone database. For example, \"CRON_TZ=America/New_York\n 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".'\n x-dcl-server-default: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: Optional. User friendly display name.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. User defined labels for the zone.\n lake:\n type: string\n x-dcl-go-name: Lake\n description: The lake for the resource\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the zone.\n x-dcl-references:\n - resource: Dataplex/Zone\n field: selfLink\n parent: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n resourceSpec:\n type: object\n x-dcl-go-name: ResourceSpec\n x-dcl-go-type: ZoneResourceSpec\n description: Required. Immutable. Specification of the resources that are\n referenced by the assets within this zone.\n x-kubernetes-immutable: true\n required:\n - locationType\n properties:\n locationType:\n type: string\n x-dcl-go-name: LocationType\n x-dcl-go-type: ZoneResourceSpecLocationTypeEnum\n description: 'Required. Immutable. The location type of the resources\n that are allowed to be attached to the assets within this zone. Possible\n values: LOCATION_TYPE_UNSPECIFIED, SINGLE_REGION, MULTI_REGION'\n x-kubernetes-immutable: true\n enum:\n - LOCATION_TYPE_UNSPECIFIED\n - SINGLE_REGION\n - MULTI_REGION\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ZoneStateEnum\n readOnly: true\n description: 'Output only. Current state of the zone. Possible values: STATE_UNSPECIFIED,\n ACTIVE, CREATING, DELETING, ACTION_REQUIRED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - CREATING\n - DELETING\n - ACTION_REQUIRED\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ZoneTypeEnum\n description: 'Required. Immutable. The type of the zone. Possible values:\n TYPE_UNSPECIFIED, RAW, CURATED'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - RAW\n - CURATED\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. System generated globally unique ID for the zone.\n This ID will be different if the zone is deleted and re-created with the\n same name.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time when the zone was last updated.\n x-kubernetes-immutable: true\n") -// 11219 bytes -// MD5: e48405e53bf5e1234a59ef14c94298d2 +// 11301 bytes +// MD5: 349c8a4b927970a719de138ae5f4844c diff --git a/services/google/dataproc/alpha/autoscaling_policy.yaml b/services/google/dataproc/alpha/autoscaling_policy.yaml index 98648b1d79..71ce8969d5 100755 --- a/services/google/dataproc/alpha/autoscaling_policy.yaml +++ b/services/google/dataproc/alpha/autoscaling_policy.yaml @@ -89,6 +89,7 @@ components: description: 'Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.' + x-dcl-server-default: true yarnConfig: type: object x-dcl-go-name: YarnConfig @@ -210,6 +211,7 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true workerConfig: type: object x-dcl-go-name: WorkerConfig @@ -234,6 +236,7 @@ components: x-dcl-go-name: MinInstances description: 'Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.' + x-dcl-server-default: true weight: type: integer format: int64 @@ -253,3 +256,4 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true diff --git a/services/google/dataproc/alpha/autoscaling_policy_alpha_yaml_embed.go b/services/google/dataproc/alpha/autoscaling_policy_alpha_yaml_embed.go index 0ed7853e4d..e89d52abcc 100755 --- a/services/google/dataproc/alpha/autoscaling_policy_alpha_yaml_embed.go +++ b/services/google/dataproc/alpha/autoscaling_policy_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/alpha/autoscaling_policy.yaml -var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n") +var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n x-dcl-server-default: true\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n x-dcl-server-default: true\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n") -// 11806 bytes -// MD5: 0a5ff40f7667b52a5baca2577bc77221 +// 11970 bytes +// MD5: 4add856f4a887a328a3d0047fe5be109 diff --git a/services/google/dataproc/alpha/autoscaling_policy_schema.go b/services/google/dataproc/alpha/autoscaling_policy_schema.go index 5e306660ac..064710ef69 100755 --- a/services/google/dataproc/alpha/autoscaling_policy_schema.go +++ b/services/google/dataproc/alpha/autoscaling_policy_schema.go @@ -120,9 +120,10 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "cooldownPeriod": &dcl.Property{ - Type: "string", - GoName: "CooldownPeriod", - Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + Type: "string", + GoName: "CooldownPeriod", + Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + ServerDefault: true, }, "yarnConfig": &dcl.Property{ Type: "object", @@ -212,10 +213,11 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, @@ -235,16 +237,18 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.", }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + ServerDefault: true, }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, diff --git a/services/google/dataproc/alpha/cluster.yaml b/services/google/dataproc/alpha/cluster.yaml index d823a3e7b4..a82b5a1030 100755 --- a/services/google/dataproc/alpha/cluster.yaml +++ b/services/google/dataproc/alpha/cluster.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: ClusterConfigEndpointConfig description: Optional. Port/endpoint configuration for this cluster x-kubernetes-immutable: true + x-dcl-server-default: true properties: enableHttpPortAccess: type: boolean @@ -156,6 +157,7 @@ components: description: Optional. The shared Compute Engine config settings for all instances in a cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: internalIPOnly: type: boolean @@ -189,6 +191,7 @@ components: are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: selfLink @@ -289,6 +292,7 @@ components: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -949,6 +953,7 @@ components: x-dcl-go-type: ClusterConfigSoftwareConfig description: Optional. The config settings for software inside the cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: imageVersion: type: string @@ -1012,6 +1017,7 @@ components: **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name @@ -1028,6 +1034,7 @@ components: none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name diff --git a/services/google/dataproc/alpha/cluster_alpha_yaml_embed.go b/services/google/dataproc/alpha/cluster_alpha_yaml_embed.go index 6b707923c1..37ab586768 100755 --- a/services/google/dataproc/alpha/cluster_alpha_yaml_embed.go +++ b/services/google/dataproc/alpha/cluster_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/alpha/cluster.yaml -var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n gkeClusterConfig:\n type: object\n x-dcl-go-name: GkeClusterConfig\n x-dcl-go-type: ClusterConfigGkeClusterConfig\n description: Optional. BETA. The Kubernetes Engine config for Dataproc\n clusters deployed to Kubernetes. Setting this is considered mutually\n exclusive with Compute Engine-based options such as `gce_cluster_config`,\n `master_config`, `worker_config`, `secondary_worker_config`, and `autoscaling_config`.\n x-kubernetes-immutable: true\n properties:\n namespacedGkeDeploymentTarget:\n type: object\n x-dcl-go-name: NamespacedGkeDeploymentTarget\n x-dcl-go-type: ClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget\n description: Optional. A target for the deployment.\n x-kubernetes-immutable: true\n properties:\n clusterNamespace:\n type: string\n x-dcl-go-name: ClusterNamespace\n description: Optional. A namespace within the GKE cluster to\n deploy into.\n x-kubernetes-immutable: true\n targetGkeCluster:\n type: string\n x-dcl-go-name: TargetGkeCluster\n description: 'Optional. The target GKE cluster to deploy to.\n Format: ''projects/{project}/locations/{location}/clusters/{cluster_id}'''\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Container/Cluster\n field: name\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n metastoreConfig:\n type: object\n x-dcl-go-name: MetastoreConfig\n x-dcl-go-type: ClusterConfigMetastoreConfig\n description: Optional. Metastore configuration.\n x-kubernetes-immutable: true\n required:\n - dataprocMetastoreService\n properties:\n dataprocMetastoreService:\n type: string\n x-dcl-go-name: DataprocMetastoreService\n description: 'Required. Resource name of an existing Dataproc Metastore\n service. Example: * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Metastore/Service\n field: selfLink\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") +var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n gkeClusterConfig:\n type: object\n x-dcl-go-name: GkeClusterConfig\n x-dcl-go-type: ClusterConfigGkeClusterConfig\n description: Optional. BETA. The Kubernetes Engine config for Dataproc\n clusters deployed to Kubernetes. Setting this is considered mutually\n exclusive with Compute Engine-based options such as `gce_cluster_config`,\n `master_config`, `worker_config`, `secondary_worker_config`, and `autoscaling_config`.\n x-kubernetes-immutable: true\n properties:\n namespacedGkeDeploymentTarget:\n type: object\n x-dcl-go-name: NamespacedGkeDeploymentTarget\n x-dcl-go-type: ClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget\n description: Optional. A target for the deployment.\n x-kubernetes-immutable: true\n properties:\n clusterNamespace:\n type: string\n x-dcl-go-name: ClusterNamespace\n description: Optional. A namespace within the GKE cluster to\n deploy into.\n x-kubernetes-immutable: true\n targetGkeCluster:\n type: string\n x-dcl-go-name: TargetGkeCluster\n description: 'Optional. The target GKE cluster to deploy to.\n Format: ''projects/{project}/locations/{location}/clusters/{cluster_id}'''\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Container/Cluster\n field: name\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n metastoreConfig:\n type: object\n x-dcl-go-name: MetastoreConfig\n x-dcl-go-type: ClusterConfigMetastoreConfig\n description: Optional. Metastore configuration.\n x-kubernetes-immutable: true\n required:\n - dataprocMetastoreService\n properties:\n dataprocMetastoreService:\n type: string\n x-dcl-go-name: DataprocMetastoreService\n description: 'Required. Resource name of an existing Dataproc Metastore\n service. Example: * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Metastore/Service\n field: selfLink\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") -// 73064 bytes -// MD5: bedab0e4a25c04b7800ccc88d97dbf9e +// 73359 bytes +// MD5: 938a98b476e9b407fe867708daf3b5bc diff --git a/services/google/dataproc/alpha/cluster_schema.go b/services/google/dataproc/alpha/cluster_schema.go index 0c62dcf52f..f417224552 100755 --- a/services/google/dataproc/alpha/cluster_schema.go +++ b/services/google/dataproc/alpha/cluster_schema.go @@ -169,11 +169,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "endpointConfig": &dcl.Property{ - Type: "object", - GoName: "EndpointConfig", - GoType: "ClusterConfigEndpointConfig", - Description: "Optional. Port/endpoint configuration for this cluster", - Immutable: true, + Type: "object", + GoName: "EndpointConfig", + GoType: "ClusterConfigEndpointConfig", + Description: "Optional. Port/endpoint configuration for this cluster", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableHttpPortAccess": &dcl.Property{ Type: "boolean", @@ -194,11 +195,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "gceClusterConfig": &dcl.Property{ - Type: "object", - GoName: "GceClusterConfig", - GoType: "ClusterConfigGceClusterConfig", - Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", - Immutable: true, + Type: "object", + GoName: "GceClusterConfig", + GoType: "ClusterConfigGceClusterConfig", + Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "internalIPOnly": &dcl.Property{ Type: "boolean", @@ -217,10 +219,11 @@ func DCLClusterSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -318,12 +321,13 @@ func DCLClusterSchema() *dcl.Schema { }, }, "serviceAccountScopes": &dcl.Property{ - Type: "array", - GoName: "ServiceAccountScopes", - Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", - Immutable: true, - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "ServiceAccountScopes", + Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", + Immutable: true, + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", @@ -930,11 +934,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "softwareConfig": &dcl.Property{ - Type: "object", - GoName: "SoftwareConfig", - GoType: "ClusterConfigSoftwareConfig", - Description: "Optional. The config settings for software inside the cluster.", - Immutable: true, + Type: "object", + GoName: "SoftwareConfig", + GoType: "ClusterConfigSoftwareConfig", + Description: "Optional. The config settings for software inside the cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "imageVersion": &dcl.Property{ Type: "string", @@ -982,10 +987,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "stagingBucket": &dcl.Property{ - Type: "string", - GoName: "StagingBucket", - Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "StagingBucket", + Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", @@ -994,10 +1000,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "tempBucket": &dcl.Property{ - Type: "string", - GoName: "TempBucket", - Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "TempBucket", + Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", diff --git a/services/google/dataproc/autoscaling_policy.yaml b/services/google/dataproc/autoscaling_policy.yaml index 98648b1d79..71ce8969d5 100755 --- a/services/google/dataproc/autoscaling_policy.yaml +++ b/services/google/dataproc/autoscaling_policy.yaml @@ -89,6 +89,7 @@ components: description: 'Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.' + x-dcl-server-default: true yarnConfig: type: object x-dcl-go-name: YarnConfig @@ -210,6 +211,7 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true workerConfig: type: object x-dcl-go-name: WorkerConfig @@ -234,6 +236,7 @@ components: x-dcl-go-name: MinInstances description: 'Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.' + x-dcl-server-default: true weight: type: integer format: int64 @@ -253,3 +256,4 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true diff --git a/services/google/dataproc/autoscaling_policy_schema.go b/services/google/dataproc/autoscaling_policy_schema.go index 9daf5e9d14..eb46f839df 100755 --- a/services/google/dataproc/autoscaling_policy_schema.go +++ b/services/google/dataproc/autoscaling_policy_schema.go @@ -120,9 +120,10 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "cooldownPeriod": &dcl.Property{ - Type: "string", - GoName: "CooldownPeriod", - Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + Type: "string", + GoName: "CooldownPeriod", + Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + ServerDefault: true, }, "yarnConfig": &dcl.Property{ Type: "object", @@ -212,10 +213,11 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, @@ -235,16 +237,18 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.", }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + ServerDefault: true, }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, diff --git a/services/google/dataproc/autoscaling_policy_yaml_embed.go b/services/google/dataproc/autoscaling_policy_yaml_embed.go index ce5672e6c9..19a1087266 100755 --- a/services/google/dataproc/autoscaling_policy_yaml_embed.go +++ b/services/google/dataproc/autoscaling_policy_yaml_embed.go @@ -17,7 +17,7 @@ package dataproc // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/autoscaling_policy.yaml -var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n") +var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n x-dcl-server-default: true\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n x-dcl-server-default: true\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n") -// 11806 bytes -// MD5: 0a5ff40f7667b52a5baca2577bc77221 +// 11970 bytes +// MD5: 4add856f4a887a328a3d0047fe5be109 diff --git a/services/google/dataproc/beta/autoscaling_policy.yaml b/services/google/dataproc/beta/autoscaling_policy.yaml index 98648b1d79..71ce8969d5 100755 --- a/services/google/dataproc/beta/autoscaling_policy.yaml +++ b/services/google/dataproc/beta/autoscaling_policy.yaml @@ -89,6 +89,7 @@ components: description: 'Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.' + x-dcl-server-default: true yarnConfig: type: object x-dcl-go-name: YarnConfig @@ -210,6 +211,7 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true workerConfig: type: object x-dcl-go-name: WorkerConfig @@ -234,6 +236,7 @@ components: x-dcl-go-name: MinInstances description: 'Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.' + x-dcl-server-default: true weight: type: integer format: int64 @@ -253,3 +256,4 @@ components: is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.' + x-dcl-server-default: true diff --git a/services/google/dataproc/beta/autoscaling_policy_beta_yaml_embed.go b/services/google/dataproc/beta/autoscaling_policy_beta_yaml_embed.go index b3150a2ec0..4b0b98272a 100755 --- a/services/google/dataproc/beta/autoscaling_policy_beta_yaml_embed.go +++ b/services/google/dataproc/beta/autoscaling_policy_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/beta/autoscaling_policy.yaml -var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n") +var YAML_autoscaling_policy = []byte("info:\n title: Dataproc/AutoscalingPolicy\n description: The Dataproc AutoscalingPolicy resource\n x-dcl-struct-name: AutoscalingPolicy\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n apply:\n description: The function used to apply information about a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n delete:\n description: The function used to delete a AutoscalingPolicy\n parameters:\n - name: AutoscalingPolicy\n required: true\n description: A full instance of a AutoscalingPolicy\n deleteAll:\n description: The function used to delete all AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many AutoscalingPolicy\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n AutoscalingPolicy:\n title: AutoscalingPolicy\n x-dcl-id: projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - basicAlgorithm\n - workerConfig\n - project\n - location\n properties:\n basicAlgorithm:\n type: object\n x-dcl-go-name: BasicAlgorithm\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithm\n required:\n - yarnConfig\n properties:\n cooldownPeriod:\n type: string\n x-dcl-go-name: CooldownPeriod\n description: 'Optional. Duration between scaling events. A scaling period\n starts after the update operation from the previous event has completed.\n Bounds: . Default: 2m.'\n x-dcl-server-default: true\n yarnConfig:\n type: object\n x-dcl-go-name: YarnConfig\n x-dcl-go-type: AutoscalingPolicyBasicAlgorithmYarnConfig\n description: Required. YARN autoscaling configuration.\n required:\n - gracefulDecommissionTimeout\n - scaleUpFactor\n - scaleDownFactor\n properties:\n gracefulDecommissionTimeout:\n type: string\n x-dcl-go-name: GracefulDecommissionTimeout\n description: Required. Timeout for YARN graceful decommissioning\n of Node Managers. Specifies the duration to wait for jobs to complete\n before forcefully removing workers (and potentially interrupting\n jobs). Only applicable to downscaling operations.\n scaleDownFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleDownFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to remove workers. A scale-down\n factor of 1 will result in scaling down so that there is no available\n memory remaining after the update (more aggressive scaling). A\n scale-down factor of 0 disables removing workers, which can be\n beneficial for autoscaling a single job. See .\n scaleDownMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleDownMinWorkerFraction\n description: 'Optional. Minimum scale-down threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2 worker scale-down for the cluster to scale.\n A threshold of 0 means the autoscaler will scale down on any recommended\n change. Bounds: . Default: 0.0.'\n scaleUpFactor:\n type: number\n format: double\n x-dcl-go-name: ScaleUpFactor\n description: Required. Fraction of average YARN pending memory in\n the last cooldown period for which to add workers. A scale-up\n factor of 1.0 will result in scaling up so that there is no pending\n memory remaining after the update (more aggressive scaling). A\n scale-up factor closer to 0 will result in a smaller magnitude\n of scaling up (less aggressive scaling). See .\n scaleUpMinWorkerFraction:\n type: number\n format: double\n x-dcl-go-name: ScaleUpMinWorkerFraction\n description: 'Optional. Minimum scale-up threshold as a fraction\n of total cluster size before scaling occurs. For example, in a\n 20-worker cluster, a threshold of 0.1 means the autoscaler must\n recommend at least a 2-worker scale-up for the cluster to scale.\n A threshold of 0 means the autoscaler will scale up on any recommended\n change. Bounds: . Default: 0.0.'\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The \"resource name\" of the autoscaling policy, as described\n in https://cloud.google.com/apis/design/resource_names. * For `projects.regions.autoscalingPolicies`,\n the resource name of the policy has the following format: `projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`\n * For `projects.locations.autoscalingPolicies`, the resource name of the\n policy has the following format: `projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}`'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: AutoscalingPolicySecondaryWorkerConfig\n description: Optional. Describes how the autoscaler will operate for secondary\n workers.\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Optional. Maximum number of instances for this group.\n Note that by default, clusters will not use secondary workers. Required\n for secondary workers if the minimum secondary instances is set. Primary\n workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances,\n ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: AutoscalingPolicyWorkerConfig\n description: Required. Describes how the autoscaler will operate for primary\n workers.\n required:\n - maxInstances\n properties:\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: 'Required. Maximum number of instances for this group.\n Required for primary workers. Note that by default, clusters will\n not use secondary workers. Required for secondary workers if the minimum\n secondary instances is set. Primary workers - Bounds: [min_instances,\n ). Secondary workers - Bounds: [min_instances, ). Default: 0.'\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: 'Optional. Minimum number of instances for this group.\n Primary workers - Bounds: . Default: 0.'\n x-dcl-server-default: true\n weight:\n type: integer\n format: int64\n x-dcl-go-name: Weight\n description: 'Optional. Weight for the instance group, which is used\n to determine the fraction of total workers in the cluster from this\n instance group. For example, if primary workers have weight 2, and\n secondary workers have weight 1, the cluster will have approximately\n 2 primary workers for each secondary worker. The cluster may not reach\n the specified balance if constrained by min/max bounds or other autoscaling\n settings. For example, if `max_instances` for secondary workers is\n 0, then only primary workers will be added. The cluster can also be\n out of balance when created. If weight is not set on any instance\n group, the cluster will default to equal weight for all groups: the\n cluster will attempt to maintain an equal number of workers in each\n group within the configured size bounds for each group. If weight\n is set for one group only, the cluster will default to zero weight\n on the unset group. For example if weight is set only on primary workers,\n the cluster will use primary workers only and no secondary workers.'\n x-dcl-server-default: true\n") -// 11806 bytes -// MD5: 0a5ff40f7667b52a5baca2577bc77221 +// 11970 bytes +// MD5: 4add856f4a887a328a3d0047fe5be109 diff --git a/services/google/dataproc/beta/autoscaling_policy_schema.go b/services/google/dataproc/beta/autoscaling_policy_schema.go index 9e8e4187f9..87ff2b3ec9 100755 --- a/services/google/dataproc/beta/autoscaling_policy_schema.go +++ b/services/google/dataproc/beta/autoscaling_policy_schema.go @@ -120,9 +120,10 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "cooldownPeriod": &dcl.Property{ - Type: "string", - GoName: "CooldownPeriod", - Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + Type: "string", + GoName: "CooldownPeriod", + Description: "Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed. Bounds: . Default: 2m.", + ServerDefault: true, }, "yarnConfig": &dcl.Property{ Type: "object", @@ -212,10 +213,11 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, @@ -235,16 +237,18 @@ func DCLAutoscalingPolicySchema() *dcl.Schema { Description: "Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if the minimum secondary instances is set. Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [min_instances, ). Default: 0.", }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Optional. Minimum number of instances for this group. Primary workers - Bounds: . Default: 0.", + ServerDefault: true, }, "weight": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "Weight", - Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + Type: "integer", + Format: "int64", + GoName: "Weight", + Description: "Optional. Weight for the instance group, which is used to determine the fraction of total workers in the cluster from this instance group. For example, if primary workers have weight 2, and secondary workers have weight 1, the cluster will have approximately 2 primary workers for each secondary worker. The cluster may not reach the specified balance if constrained by min/max bounds or other autoscaling settings. For example, if `max_instances` for secondary workers is 0, then only primary workers will be added. The cluster can also be out of balance when created. If weight is not set on any instance group, the cluster will default to equal weight for all groups: the cluster will attempt to maintain an equal number of workers in each group within the configured size bounds for each group. If weight is set for one group only, the cluster will default to zero weight on the unset group. For example if weight is set only on primary workers, the cluster will use primary workers only and no secondary workers.", + ServerDefault: true, }, }, }, diff --git a/services/google/dataproc/beta/cluster.yaml b/services/google/dataproc/beta/cluster.yaml index d823a3e7b4..a82b5a1030 100755 --- a/services/google/dataproc/beta/cluster.yaml +++ b/services/google/dataproc/beta/cluster.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: ClusterConfigEndpointConfig description: Optional. Port/endpoint configuration for this cluster x-kubernetes-immutable: true + x-dcl-server-default: true properties: enableHttpPortAccess: type: boolean @@ -156,6 +157,7 @@ components: description: Optional. The shared Compute Engine config settings for all instances in a cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: internalIPOnly: type: boolean @@ -189,6 +191,7 @@ components: are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: selfLink @@ -289,6 +292,7 @@ components: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -949,6 +953,7 @@ components: x-dcl-go-type: ClusterConfigSoftwareConfig description: Optional. The config settings for software inside the cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: imageVersion: type: string @@ -1012,6 +1017,7 @@ components: **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name @@ -1028,6 +1034,7 @@ components: none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name diff --git a/services/google/dataproc/beta/cluster_beta_yaml_embed.go b/services/google/dataproc/beta/cluster_beta_yaml_embed.go index 1ffb00e407..5244fa3fed 100755 --- a/services/google/dataproc/beta/cluster_beta_yaml_embed.go +++ b/services/google/dataproc/beta/cluster_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/beta/cluster.yaml -var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n gkeClusterConfig:\n type: object\n x-dcl-go-name: GkeClusterConfig\n x-dcl-go-type: ClusterConfigGkeClusterConfig\n description: Optional. BETA. The Kubernetes Engine config for Dataproc\n clusters deployed to Kubernetes. Setting this is considered mutually\n exclusive with Compute Engine-based options such as `gce_cluster_config`,\n `master_config`, `worker_config`, `secondary_worker_config`, and `autoscaling_config`.\n x-kubernetes-immutable: true\n properties:\n namespacedGkeDeploymentTarget:\n type: object\n x-dcl-go-name: NamespacedGkeDeploymentTarget\n x-dcl-go-type: ClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget\n description: Optional. A target for the deployment.\n x-kubernetes-immutable: true\n properties:\n clusterNamespace:\n type: string\n x-dcl-go-name: ClusterNamespace\n description: Optional. A namespace within the GKE cluster to\n deploy into.\n x-kubernetes-immutable: true\n targetGkeCluster:\n type: string\n x-dcl-go-name: TargetGkeCluster\n description: 'Optional. The target GKE cluster to deploy to.\n Format: ''projects/{project}/locations/{location}/clusters/{cluster_id}'''\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Container/Cluster\n field: name\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n metastoreConfig:\n type: object\n x-dcl-go-name: MetastoreConfig\n x-dcl-go-type: ClusterConfigMetastoreConfig\n description: Optional. Metastore configuration.\n x-kubernetes-immutable: true\n required:\n - dataprocMetastoreService\n properties:\n dataprocMetastoreService:\n type: string\n x-dcl-go-name: DataprocMetastoreService\n description: 'Required. Resource name of an existing Dataproc Metastore\n service. Example: * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Metastore/Service\n field: selfLink\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") +var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n gkeClusterConfig:\n type: object\n x-dcl-go-name: GkeClusterConfig\n x-dcl-go-type: ClusterConfigGkeClusterConfig\n description: Optional. BETA. The Kubernetes Engine config for Dataproc\n clusters deployed to Kubernetes. Setting this is considered mutually\n exclusive with Compute Engine-based options such as `gce_cluster_config`,\n `master_config`, `worker_config`, `secondary_worker_config`, and `autoscaling_config`.\n x-kubernetes-immutable: true\n properties:\n namespacedGkeDeploymentTarget:\n type: object\n x-dcl-go-name: NamespacedGkeDeploymentTarget\n x-dcl-go-type: ClusterConfigGkeClusterConfigNamespacedGkeDeploymentTarget\n description: Optional. A target for the deployment.\n x-kubernetes-immutable: true\n properties:\n clusterNamespace:\n type: string\n x-dcl-go-name: ClusterNamespace\n description: Optional. A namespace within the GKE cluster to\n deploy into.\n x-kubernetes-immutable: true\n targetGkeCluster:\n type: string\n x-dcl-go-name: TargetGkeCluster\n description: 'Optional. The target GKE cluster to deploy to.\n Format: ''projects/{project}/locations/{location}/clusters/{cluster_id}'''\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Container/Cluster\n field: name\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n metastoreConfig:\n type: object\n x-dcl-go-name: MetastoreConfig\n x-dcl-go-type: ClusterConfigMetastoreConfig\n description: Optional. Metastore configuration.\n x-kubernetes-immutable: true\n required:\n - dataprocMetastoreService\n properties:\n dataprocMetastoreService:\n type: string\n x-dcl-go-name: DataprocMetastoreService\n description: 'Required. Resource name of an existing Dataproc Metastore\n service. Example: * `projects/[project_id]/locations/[dataproc_region]/services/[service-name]`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Metastore/Service\n field: selfLink\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") -// 73064 bytes -// MD5: bedab0e4a25c04b7800ccc88d97dbf9e +// 73359 bytes +// MD5: 938a98b476e9b407fe867708daf3b5bc diff --git a/services/google/dataproc/beta/cluster_schema.go b/services/google/dataproc/beta/cluster_schema.go index 863f6bbd02..0dcab0eaef 100755 --- a/services/google/dataproc/beta/cluster_schema.go +++ b/services/google/dataproc/beta/cluster_schema.go @@ -169,11 +169,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "endpointConfig": &dcl.Property{ - Type: "object", - GoName: "EndpointConfig", - GoType: "ClusterConfigEndpointConfig", - Description: "Optional. Port/endpoint configuration for this cluster", - Immutable: true, + Type: "object", + GoName: "EndpointConfig", + GoType: "ClusterConfigEndpointConfig", + Description: "Optional. Port/endpoint configuration for this cluster", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableHttpPortAccess": &dcl.Property{ Type: "boolean", @@ -194,11 +195,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "gceClusterConfig": &dcl.Property{ - Type: "object", - GoName: "GceClusterConfig", - GoType: "ClusterConfigGceClusterConfig", - Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", - Immutable: true, + Type: "object", + GoName: "GceClusterConfig", + GoType: "ClusterConfigGceClusterConfig", + Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "internalIPOnly": &dcl.Property{ Type: "boolean", @@ -217,10 +219,11 @@ func DCLClusterSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -318,12 +321,13 @@ func DCLClusterSchema() *dcl.Schema { }, }, "serviceAccountScopes": &dcl.Property{ - Type: "array", - GoName: "ServiceAccountScopes", - Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", - Immutable: true, - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "ServiceAccountScopes", + Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", + Immutable: true, + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", @@ -930,11 +934,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "softwareConfig": &dcl.Property{ - Type: "object", - GoName: "SoftwareConfig", - GoType: "ClusterConfigSoftwareConfig", - Description: "Optional. The config settings for software inside the cluster.", - Immutable: true, + Type: "object", + GoName: "SoftwareConfig", + GoType: "ClusterConfigSoftwareConfig", + Description: "Optional. The config settings for software inside the cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "imageVersion": &dcl.Property{ Type: "string", @@ -982,10 +987,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "stagingBucket": &dcl.Property{ - Type: "string", - GoName: "StagingBucket", - Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "StagingBucket", + Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", @@ -994,10 +1000,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "tempBucket": &dcl.Property{ - Type: "string", - GoName: "TempBucket", - Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "TempBucket", + Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", diff --git a/services/google/dataproc/cluster.yaml b/services/google/dataproc/cluster.yaml index 232e4fdecc..d6e7422f9f 100755 --- a/services/google/dataproc/cluster.yaml +++ b/services/google/dataproc/cluster.yaml @@ -133,6 +133,7 @@ components: x-dcl-go-type: ClusterConfigEndpointConfig description: Optional. Port/endpoint configuration for this cluster x-kubernetes-immutable: true + x-dcl-server-default: true properties: enableHttpPortAccess: type: boolean @@ -156,6 +157,7 @@ components: description: Optional. The shared Compute Engine config settings for all instances in a cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: internalIPOnly: type: boolean @@ -189,6 +191,7 @@ components: are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Compute/Network field: selfLink @@ -289,6 +292,7 @@ components: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control' x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -899,6 +903,7 @@ components: x-dcl-go-type: ClusterConfigSoftwareConfig description: Optional. The config settings for software inside the cluster. x-kubernetes-immutable: true + x-dcl-server-default: true properties: imageVersion: type: string @@ -962,6 +967,7 @@ components: **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name @@ -978,6 +984,7 @@ components: none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.** x-kubernetes-immutable: true + x-dcl-server-default: true x-dcl-references: - resource: Storage/Bucket field: name diff --git a/services/google/dataproc/cluster_schema.go b/services/google/dataproc/cluster_schema.go index 47bc27c780..8065c1b11f 100755 --- a/services/google/dataproc/cluster_schema.go +++ b/services/google/dataproc/cluster_schema.go @@ -169,11 +169,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "endpointConfig": &dcl.Property{ - Type: "object", - GoName: "EndpointConfig", - GoType: "ClusterConfigEndpointConfig", - Description: "Optional. Port/endpoint configuration for this cluster", - Immutable: true, + Type: "object", + GoName: "EndpointConfig", + GoType: "ClusterConfigEndpointConfig", + Description: "Optional. Port/endpoint configuration for this cluster", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "enableHttpPortAccess": &dcl.Property{ Type: "boolean", @@ -194,11 +195,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "gceClusterConfig": &dcl.Property{ - Type: "object", - GoName: "GceClusterConfig", - GoType: "ClusterConfigGceClusterConfig", - Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", - Immutable: true, + Type: "object", + GoName: "GceClusterConfig", + GoType: "ClusterConfigGceClusterConfig", + Description: "Optional. The shared Compute Engine config settings for all instances in a cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "internalIPOnly": &dcl.Property{ Type: "boolean", @@ -217,10 +219,11 @@ func DCLClusterSchema() *dcl.Schema { Immutable: true, }, "network": &dcl.Property{ - Type: "string", - GoName: "Network", - Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", - Immutable: true, + Type: "string", + GoName: "Network", + Description: "Optional. The Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither `network_uri` nor `subnetwork_uri` is specified, the \"default\" network of the project is used, if it exists. Cannot be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks) for more information). A full URL, partial URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default` * `projects/[project_id]/regions/global/default` * `default`", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Compute/Network", @@ -318,12 +321,13 @@ func DCLClusterSchema() *dcl.Schema { }, }, "serviceAccountScopes": &dcl.Property{ - Type: "array", - GoName: "ServiceAccountScopes", - Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", - Immutable: true, - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "ServiceAccountScopes", + Description: "Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specified, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control", + Immutable: true, + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", @@ -870,11 +874,12 @@ func DCLClusterSchema() *dcl.Schema { }, }, "softwareConfig": &dcl.Property{ - Type: "object", - GoName: "SoftwareConfig", - GoType: "ClusterConfigSoftwareConfig", - Description: "Optional. The config settings for software inside the cluster.", - Immutable: true, + Type: "object", + GoName: "SoftwareConfig", + GoType: "ClusterConfigSoftwareConfig", + Description: "Optional. The config settings for software inside the cluster.", + Immutable: true, + ServerDefault: true, Properties: map[string]*dcl.Property{ "imageVersion": &dcl.Property{ Type: "string", @@ -922,10 +927,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "stagingBucket": &dcl.Property{ - Type: "string", - GoName: "StagingBucket", - Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "StagingBucket", + Description: "Optional. A Cloud Storage bucket used to stage job dependencies, config files, and job driver console output. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket (see [Dataproc staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", @@ -934,10 +940,11 @@ func DCLClusterSchema() *dcl.Schema { }, }, "tempBucket": &dcl.Property{ - Type: "string", - GoName: "TempBucket", - Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", - Immutable: true, + Type: "string", + GoName: "TempBucket", + Description: "Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data, such as Spark and MapReduce history files. If you do not specify a temp bucket, Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your cluster's temp bucket according to the Compute Engine zone where your cluster is deployed, and then create and manage this project-level, per-location bucket. The default bucket has a TTL of 90 days, but you can use any TTL (or none) if you specify a bucket. **This field requires a Cloud Storage bucket name, not a URI to a Cloud Storage bucket.**", + Immutable: true, + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Storage/Bucket", diff --git a/services/google/dataproc/cluster_yaml_embed.go b/services/google/dataproc/cluster_yaml_embed.go index 13aec08f59..1a4b2e8a17 100755 --- a/services/google/dataproc/cluster_yaml_embed.go +++ b/services/google/dataproc/cluster_yaml_embed.go @@ -17,7 +17,7 @@ package dataproc // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/dataproc/cluster.yaml -var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") +var YAML_cluster = []byte("info:\n title: Dataproc/Cluster\n description: The Dataproc Cluster resource\n x-dcl-struct-name: Cluster\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n apply:\n description: The function used to apply information about a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n delete:\n description: The function used to delete a Cluster\n parameters:\n - name: Cluster\n required: true\n description: A full instance of a Cluster\n deleteAll:\n description: The function used to delete all Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Cluster\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Cluster:\n title: Cluster\n x-dcl-id: projects/{{project}}/regions/{{location}}/clusters/{{name}}\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - name\n - location\n properties:\n clusterUuid:\n type: string\n x-dcl-go-name: ClusterUuid\n readOnly: true\n description: Output only. A cluster UUID (Unique Universal Identifier).\n Dataproc generates this value when it creates the cluster.\n x-kubernetes-immutable: true\n config:\n type: object\n x-dcl-go-name: Config\n x-dcl-go-type: ClusterConfig\n description: Required. The cluster config. Note that Dataproc may set default\n values, and values may change when clusters are updated.\n x-kubernetes-immutable: true\n properties:\n autoscalingConfig:\n type: object\n x-dcl-go-name: AutoscalingConfig\n x-dcl-go-type: ClusterConfigAutoscalingConfig\n description: Optional. Autoscaling config for the policy associated\n with the cluster. Cluster does not autoscale if this field is unset.\n x-kubernetes-immutable: true\n properties:\n policy:\n type: string\n x-dcl-go-name: Policy\n description: 'Optional. The autoscaling policy used by the cluster.\n Only resource names including projectid and location (region)\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n * `projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]`\n Note that the policy must be in the same project and Dataproc\n region.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Dataproc/AutoscalingPolicy\n field: name\n encryptionConfig:\n type: object\n x-dcl-go-name: EncryptionConfig\n x-dcl-go-type: ClusterConfigEncryptionConfig\n description: Optional. Encryption settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n gcePdKmsKeyName:\n type: string\n x-dcl-go-name: GcePdKmsKeyName\n description: Optional. The Cloud KMS key name to use for PD disk\n encryption for all instances in the cluster.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n endpointConfig:\n type: object\n x-dcl-go-name: EndpointConfig\n x-dcl-go-type: ClusterConfigEndpointConfig\n description: Optional. Port/endpoint configuration for this cluster\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n enableHttpPortAccess:\n type: boolean\n x-dcl-go-name: EnableHttpPortAccess\n description: Optional. If true, enable http access to specific ports\n on the cluster from external sources. Defaults to false.\n x-kubernetes-immutable: true\n httpPorts:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HttpPorts\n readOnly: true\n description: Output only. The map of port descriptions to URLs.\n Will only be populated if enable_http_port_access is true.\n x-kubernetes-immutable: true\n gceClusterConfig:\n type: object\n x-dcl-go-name: GceClusterConfig\n x-dcl-go-type: ClusterConfigGceClusterConfig\n description: Optional. The shared Compute Engine config settings for\n all instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n internalIPOnly:\n type: boolean\n x-dcl-go-name: InternalIPOnly\n description: Optional. If true, all instances in the cluster will\n only have internal IP addresses. By default, clusters are not\n restricted to internal IP addresses, and will have ephemeral external\n IP addresses assigned to each instance. This `internal_ip_only`\n restriction can only be enabled for subnetwork enabled networks,\n and all off-cluster dependencies must be configured to be accessible\n without external IP addresses.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n metadata:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Metadata\n description: The Compute Engine metadata entries to add to all instances\n (see [Project and instance metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: 'Optional. The Compute Engine network to be used for\n machine communications. Cannot be specified with subnetwork_uri.\n If neither `network_uri` nor `subnetwork_uri` is specified, the\n \"default\" network of the project is used, if it exists. Cannot\n be a \"Custom Subnet Network\" (see [Using Subnetworks](https://cloud.google.com/compute/docs/subnetworks)\n for more information). A full URL, partial URI, or short name\n are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`\n * `projects/[project_id]/regions/global/default` * `default`'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Compute/Network\n field: selfLink\n nodeGroupAffinity:\n type: object\n x-dcl-go-name: NodeGroupAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigNodeGroupAffinity\n description: Optional. Node Group Affinity for sole-tenant clusters.\n x-kubernetes-immutable: true\n required:\n - nodeGroup\n properties:\n nodeGroup:\n type: string\n x-dcl-go-name: NodeGroup\n description: 'Required. The URI of a sole-tenant [node group\n resource](https://cloud.google.com/compute/docs/reference/rest/v1/nodeGroups)\n that the cluster will be created on. A full URL, partial URI,\n or node group name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1`\n * `node-group-1`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/NodeGroup\n field: selfLink\n privateIPv6GoogleAccess:\n type: string\n x-dcl-go-name: PrivateIPv6GoogleAccess\n x-dcl-go-type: ClusterConfigGceClusterConfigPrivateIPv6GoogleAccessEnum\n description: 'Optional. The type of IPv6 access for a cluster. Possible\n values: PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, INHERIT_FROM_SUBNETWORK,\n OUTBOUND, BIDIRECTIONAL'\n x-kubernetes-immutable: true\n enum:\n - PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\n - INHERIT_FROM_SUBNETWORK\n - OUTBOUND\n - BIDIRECTIONAL\n reservationAffinity:\n type: object\n x-dcl-go-name: ReservationAffinity\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinity\n description: Optional. Reservation Affinity for consuming Zonal\n reservation.\n x-kubernetes-immutable: true\n properties:\n consumeReservationType:\n type: string\n x-dcl-go-name: ConsumeReservationType\n x-dcl-go-type: ClusterConfigGceClusterConfigReservationAffinityConsumeReservationTypeEnum\n description: 'Optional. Type of reservation to consume Possible\n values: TYPE_UNSPECIFIED, NO_RESERVATION, ANY_RESERVATION,\n SPECIFIC_RESERVATION'\n x-kubernetes-immutable: true\n enum:\n - TYPE_UNSPECIFIED\n - NO_RESERVATION\n - ANY_RESERVATION\n - SPECIFIC_RESERVATION\n key:\n type: string\n x-dcl-go-name: Key\n description: Optional. Corresponds to the label key of reservation\n resource.\n x-kubernetes-immutable: true\n values:\n type: array\n x-dcl-go-name: Values\n description: Optional. Corresponds to the label values of reservation\n resource.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Optional. The [Dataproc service account](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc)\n (also see [VM Data Plane identity](https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity))\n used by Dataproc cluster VM instances to access Google Cloud Platform\n services. If not specified, the [Compute Engine default service\n account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)\n is used.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n serviceAccountScopes:\n type: array\n x-dcl-go-name: ServiceAccountScopes\n description: 'Optional. The URIs of service account scopes to be\n included in Compute Engine instances. The following base set of\n scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly\n * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write\n If no scopes are specified, the following defaults are also provided:\n * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table\n * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control'\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n subnetwork:\n type: string\n x-dcl-go-name: Subnetwork\n description: 'Optional. The Compute Engine subnetwork to be used\n for machine communications. Cannot be specified with network_uri.\n A full URL, partial URI, or short name are valid. Examples: *\n `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/subnetworks/sub0`\n * `projects/[project_id]/regions/us-east1/subnetworks/sub0` *\n `sub0`'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: selfLink\n tags:\n type: array\n x-dcl-go-name: Tags\n description: The Compute Engine tags to add to all instances (see\n [Tagging instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: string\n x-dcl-go-type: string\n zone:\n type: string\n x-dcl-go-name: Zone\n description: 'Optional. The zone where the Compute Engine cluster\n will be located. On a create request, it is required in the \"global\"\n region. If omitted in a non-global Dataproc region, the service\n will pick a zone in the corresponding Compute Engine region. On\n a get request, zone will always be present. A full URL, partial\n URI, or short name are valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`\n * `projects/[project_id]/zones/[zone]` * `us-central1-f`'\n x-kubernetes-immutable: true\n initializationActions:\n type: array\n x-dcl-go-name: InitializationActions\n description: 'Optional. Commands to execute on each node after config\n is completed. By default, executables are run on master and all worker\n nodes. You can test a node''s `role` metadata to run an executable\n on a master or worker node, as shown below using `curl` (you can also\n use `wget`): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)\n if [[ \"${ROLE}\" == ''Master'' ]]; then ... master specific actions\n ... else ... worker specific actions ... fi'\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigInitializationActions\n required:\n - executableFile\n properties:\n executableFile:\n type: string\n x-dcl-go-name: ExecutableFile\n description: Required. Cloud Storage URI of executable file.\n x-kubernetes-immutable: true\n executionTimeout:\n type: string\n x-dcl-go-name: ExecutionTimeout\n description: Optional. Amount of time executable has to complete.\n Default is 10 minutes (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n Cluster creation fails with an explanatory error message (the\n name of the executable that caused the error and the exceeded\n timeout period) if the executable is not completed at end of\n the timeout period.\n x-kubernetes-immutable: true\n lifecycleConfig:\n type: object\n x-dcl-go-name: LifecycleConfig\n x-dcl-go-type: ClusterConfigLifecycleConfig\n description: Optional. Lifecycle setting for the cluster.\n x-kubernetes-immutable: true\n properties:\n autoDeleteTime:\n type: string\n format: date-time\n x-dcl-go-name: AutoDeleteTime\n description: Optional. The time when cluster will be auto-deleted\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n autoDeleteTtl:\n type: string\n x-dcl-go-name: AutoDeleteTtl\n description: Optional. The lifetime duration of cluster. The cluster\n will be auto-deleted at the end of this period. Minimum value\n is 10 minutes; maximum value is 14 days (see JSON representation\n of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleDeleteTtl:\n type: string\n x-dcl-go-name: IdleDeleteTtl\n description: Optional. The duration to keep the cluster alive while\n idling (when no jobs are running). Passing this threshold will\n cause the cluster to be deleted. Minimum value is 5 minutes; maximum\n value is 14 days (see JSON representation of [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n idleStartTime:\n type: string\n format: date-time\n x-dcl-go-name: IdleStartTime\n readOnly: true\n description: Output only. The time when cluster became idle (most\n recent job finished) and became eligible for deletion due to idleness\n (see JSON representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n masterConfig:\n type: object\n x-dcl-go-name: MasterConfig\n x-dcl-go-type: ClusterConfigMasterConfig\n description: Optional. The Compute Engine config settings for the master\n instance in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigMasterConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigMasterConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigMasterConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigMasterConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n secondaryWorkerConfig:\n type: object\n x-dcl-go-name: SecondaryWorkerConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfig\n description: Optional. The Compute Engine config settings for additional\n worker instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigSecondaryWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n securityConfig:\n type: object\n x-dcl-go-name: SecurityConfig\n x-dcl-go-type: ClusterConfigSecurityConfig\n description: Optional. Security settings for the cluster.\n x-kubernetes-immutable: true\n properties:\n kerberosConfig:\n type: object\n x-dcl-go-name: KerberosConfig\n x-dcl-go-type: ClusterConfigSecurityConfigKerberosConfig\n description: Optional. Kerberos related configuration.\n x-kubernetes-immutable: true\n properties:\n crossRealmTrustAdminServer:\n type: string\n x-dcl-go-name: CrossRealmTrustAdminServer\n description: Optional. The admin server (IP or hostname) for\n the remote trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustKdc:\n type: string\n x-dcl-go-name: CrossRealmTrustKdc\n description: Optional. The KDC (IP or hostname) for the remote\n trusted realm in a cross realm trust relationship.\n x-kubernetes-immutable: true\n crossRealmTrustRealm:\n type: string\n x-dcl-go-name: CrossRealmTrustRealm\n description: Optional. The remote realm the Dataproc on-cluster\n KDC will trust, should the user enable cross realm trust.\n x-kubernetes-immutable: true\n crossRealmTrustSharedPassword:\n type: string\n x-dcl-go-name: CrossRealmTrustSharedPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the shared password between the on-cluster\n Kerberos realm and the remote trusted realm, in a cross realm\n trust relationship.\n x-kubernetes-immutable: true\n enableKerberos:\n type: boolean\n x-dcl-go-name: EnableKerberos\n description: 'Optional. Flag to indicate whether to Kerberize\n the cluster (default: false). Set this field to true to enable\n Kerberos on a cluster.'\n x-kubernetes-immutable: true\n kdcDbKey:\n type: string\n x-dcl-go-name: KdcDbKey\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the master key of the KDC database.\n x-kubernetes-immutable: true\n keyPassword:\n type: string\n x-dcl-go-name: KeyPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided key. For\n the self-signed certificate, this password is generated by\n Dataproc.\n x-kubernetes-immutable: true\n keystore:\n type: string\n x-dcl-go-name: Keystore\n description: Optional. The Cloud Storage URI of the keystore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n keystorePassword:\n type: string\n x-dcl-go-name: KeystorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided keystore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n kmsKey:\n type: string\n x-dcl-go-name: KmsKey\n description: Optional. The uri of the KMS key used to encrypt\n various sensitive files.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n realm:\n type: string\n x-dcl-go-name: Realm\n description: Optional. The name of the on-cluster Kerberos realm.\n If not specified, the uppercased domain of hostnames will\n be the realm.\n x-kubernetes-immutable: true\n rootPrincipalPassword:\n type: string\n x-dcl-go-name: RootPrincipalPassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the root principal password.\n x-kubernetes-immutable: true\n tgtLifetimeHours:\n type: integer\n format: int64\n x-dcl-go-name: TgtLifetimeHours\n description: Optional. The lifetime of the ticket granting ticket,\n in hours. If not specified, or user specifies 0, then default\n value 10 will be used.\n x-kubernetes-immutable: true\n truststore:\n type: string\n x-dcl-go-name: Truststore\n description: Optional. The Cloud Storage URI of the truststore\n file used for SSL encryption. If not provided, Dataproc will\n provide a self-signed certificate.\n x-kubernetes-immutable: true\n truststorePassword:\n type: string\n x-dcl-go-name: TruststorePassword\n description: Optional. The Cloud Storage URI of a KMS encrypted\n file containing the password to the user provided truststore.\n For the self-signed certificate, this password is generated\n by Dataproc.\n x-kubernetes-immutable: true\n softwareConfig:\n type: object\n x-dcl-go-name: SoftwareConfig\n x-dcl-go-type: ClusterConfigSoftwareConfig\n description: Optional. The config settings for software inside the cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n imageVersion:\n type: string\n x-dcl-go-name: ImageVersion\n description: Optional. The version of software inside the cluster.\n It must be one of the supported [Dataproc Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),\n such as \"1.2\" (including a subminor version, such as \"1.2.29\"),\n or the [\"preview\" version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).\n If unspecified, it defaults to the latest Debian version.\n x-kubernetes-immutable: true\n optionalComponents:\n type: array\n x-dcl-go-name: OptionalComponents\n description: Optional. The set of components to activate on the\n cluster.\n x-kubernetes-immutable: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: ClusterConfigSoftwareConfigOptionalComponentsEnum\n enum:\n - COMPONENT_UNSPECIFIED\n - ANACONDA\n - DOCKER\n - DRUID\n - FLINK\n - HBASE\n - HIVE_WEBHCAT\n - JUPYTER\n - KERBEROS\n - PRESTO\n - RANGER\n - SOLR\n - ZEPPELIN\n - ZOOKEEPER\n properties:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Properties\n description: 'Optional. The properties to set on daemon config files.\n Property keys are specified in `prefix:property` format, for example\n `core:hadoop.tmp.dir`. The following are supported prefixes and\n their mappings: * capacity-scheduler: `capacity-scheduler.xml`\n * core: `core-site.xml` * distcp: `distcp-default.xml` * hdfs:\n `hdfs-site.xml` * hive: `hive-site.xml` * mapred: `mapred-site.xml`\n * pig: `pig.properties` * spark: `spark-defaults.conf` * yarn:\n `yarn-site.xml` For more information, see [Cluster properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).'\n x-kubernetes-immutable: true\n stagingBucket:\n type: string\n x-dcl-go-name: StagingBucket\n description: Optional. A Cloud Storage bucket used to stage job dependencies,\n config files, and job driver console output. If you do not specify\n a staging bucket, Cloud Dataproc will determine a Cloud Storage location\n (US, ASIA, or EU) for your cluster's staging bucket according to the\n Compute Engine zone where your cluster is deployed, and then create\n and manage this project-level, per-location bucket (see [Dataproc\n staging bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).\n **This field requires a Cloud Storage bucket name, not a URI to a\n Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n tempBucket:\n type: string\n x-dcl-go-name: TempBucket\n description: Optional. A Cloud Storage bucket used to store ephemeral\n cluster and jobs data, such as Spark and MapReduce history files.\n If you do not specify a temp bucket, Dataproc will determine a Cloud\n Storage location (US, ASIA, or EU) for your cluster's temp bucket\n according to the Compute Engine zone where your cluster is deployed,\n and then create and manage this project-level, per-location bucket.\n The default bucket has a TTL of 90 days, but you can use any TTL (or\n none) if you specify a bucket. **This field requires a Cloud Storage\n bucket name, not a URI to a Cloud Storage bucket.**\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Storage/Bucket\n field: name\n workerConfig:\n type: object\n x-dcl-go-name: WorkerConfig\n x-dcl-go-type: ClusterConfigWorkerConfig\n description: Optional. The Compute Engine config settings for worker\n instances in a cluster.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n accelerators:\n type: array\n x-dcl-go-name: Accelerators\n description: Optional. The Compute Engine accelerator configuration\n for these instances.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterConfigWorkerConfigAccelerators\n properties:\n acceleratorCount:\n type: integer\n format: int64\n x-dcl-go-name: AcceleratorCount\n description: The number of the accelerator cards of this type\n exposed to this instance.\n x-kubernetes-immutable: true\n acceleratorType:\n type: string\n x-dcl-go-name: AcceleratorType\n description: 'Full URL, partial URI, or short name of the\n accelerator type resource to expose to this instance. See\n [Compute Engine AcceleratorTypes](https://cloud.google.com/compute/docs/reference/beta/acceleratorTypes).\n Examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80`\n * `nvidia-tesla-k80` **Auto Zone Exception**: If you are\n using the Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the accelerator\n type resource, for example, `nvidia-tesla-k80`.'\n x-kubernetes-immutable: true\n diskConfig:\n type: object\n x-dcl-go-name: DiskConfig\n x-dcl-go-type: ClusterConfigWorkerConfigDiskConfig\n description: Optional. Disk option config settings.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n bootDiskSizeGb:\n type: integer\n format: int64\n x-dcl-go-name: BootDiskSizeGb\n description: Optional. Size in GB of the boot disk (default\n is 500GB).\n x-kubernetes-immutable: true\n bootDiskType:\n type: string\n x-dcl-go-name: BootDiskType\n description: 'Optional. Type of the boot disk (default is \"pd-standard\").\n Valid values: \"pd-balanced\" (Persistent Disk Balanced Solid\n State Drive), \"pd-ssd\" (Persistent Disk Solid State Drive),\n or \"pd-standard\" (Persistent Disk Hard Disk Drive). See [Disk\n types](https://cloud.google.com/compute/docs/disks#disk-types).'\n x-kubernetes-immutable: true\n numLocalSsds:\n type: integer\n format: int64\n x-dcl-go-name: NumLocalSsds\n description: Optional. Number of attached SSDs, from 0 to 4\n (default is 0). If SSDs are not attached, the boot disk is\n used to store runtime logs and [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html)\n data. If one or more SSDs are attached, this runtime bulk\n data is spread across them, and the boot disk contains only\n basic config and installed binaries.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Optional. The Compute Engine image resource used for\n cluster instances. The URI can represent an image or image family.\n Image examples: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/[image-id]`\n * `projects/[project_id]/global/images/[image-id]` * `image-id`\n Image family examples. Dataproc will use the most recent image\n from the family: * `https://www.googleapis.com/compute/beta/projects/[project_id]/global/images/family/[custom-image-family-name]`\n * `projects/[project_id]/global/images/family/[custom-image-family-name]`\n If the URI is unspecified, it will be inferred from `SoftwareConfig.image_version`\n or the system default.'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Image\n field: selfLink\n instanceNames:\n type: array\n x-dcl-go-name: InstanceNames\n readOnly: true\n description: Output only. The list of instance names. Dataproc derives\n the names from `cluster_name`, `num_instances`, and the instance\n group.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Compute/Instance\n field: selfLink\n isPreemptible:\n type: boolean\n x-dcl-go-name: IsPreemptible\n readOnly: true\n description: Output only. Specifies that this instance group contains\n preemptible instances.\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: 'Optional. The Compute Engine machine type used for\n cluster instances. A full URL, partial URI, or short name are\n valid. Examples: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`\n * `n1-standard-2` **Auto Zone Exception**: If you are using the\n Dataproc [Auto Zone Placement](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement)\n feature, you must use the short name of the machine type resource,\n for example, `n1-standard-2`.'\n x-kubernetes-immutable: true\n managedGroupConfig:\n type: object\n x-dcl-go-name: ManagedGroupConfig\n x-dcl-go-type: ClusterConfigWorkerConfigManagedGroupConfig\n readOnly: true\n description: Output only. The config for Compute Engine Instance\n Group Manager that manages this group. This is only used for preemptible\n instance groups.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n properties:\n instanceGroupManagerName:\n type: string\n x-dcl-go-name: InstanceGroupManagerName\n readOnly: true\n description: Output only. The name of the Instance Group Manager\n for this group.\n x-kubernetes-immutable: true\n instanceTemplateName:\n type: string\n x-dcl-go-name: InstanceTemplateName\n readOnly: true\n description: Output only. The name of the Instance Template\n used for the Managed Instance Group.\n x-kubernetes-immutable: true\n minCpuPlatform:\n type: string\n x-dcl-go-name: MinCpuPlatform\n description: Optional. Specifies the minimum cpu platform for the\n Instance Group. See [Dataproc -> Minimum CPU Platform](https://cloud.google.com/dataproc/docs/concepts/compute/dataproc-min-cpu).\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n numInstances:\n type: integer\n format: int64\n x-dcl-go-name: NumInstances\n description: Optional. The number of VM instances in the instance\n group. For [HA cluster](/dataproc/docs/concepts/configuring-clusters/high-availability)\n [master_config](#FIELDS.master_config) groups, **must be set to\n 3**. For standard cluster [master_config](#FIELDS.master_config)\n groups, **must be set to 1**.\n x-kubernetes-immutable: true\n preemptibility:\n type: string\n x-dcl-go-name: Preemptibility\n x-dcl-go-type: ClusterConfigWorkerConfigPreemptibilityEnum\n description: 'Optional. Specifies the preemptibility of the instance\n group. The default value for master and worker groups is `NON_PREEMPTIBLE`.\n This default cannot be changed. The default value for secondary\n instances is `PREEMPTIBLE`. Possible values: PREEMPTIBILITY_UNSPECIFIED,\n NON_PREEMPTIBLE, PREEMPTIBLE'\n x-kubernetes-immutable: true\n enum:\n - PREEMPTIBILITY_UNSPECIFIED\n - NON_PREEMPTIBLE\n - PREEMPTIBLE\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. The labels to associate with this cluster. Label\n **keys** must contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n Label **values** may be empty, but, if present, must contain 1 to 63 characters,\n and must conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).\n No more than 32 labels can be associated with a cluster.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource, usually a GCP region.\n x-kubernetes-immutable: true\n metrics:\n type: object\n x-dcl-go-name: Metrics\n x-dcl-go-type: ClusterMetrics\n readOnly: true\n description: 'Output only. Contains cluster daemon metrics such as HDFS\n and YARN stats. **Beta Feature**: This report is available for testing\n purposes only. It may be changed before final release.'\n x-kubernetes-immutable: true\n properties:\n hdfsMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: HdfsMetrics\n description: The HDFS metrics.\n x-kubernetes-immutable: true\n yarnMetrics:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: YarnMetrics\n description: The YARN metrics.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. The cluster name. Cluster names within a project\n must be unique. Names of deleted clusters can be reused.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: Required. The Google Cloud Platform project ID that the cluster\n belongs to.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n status:\n type: object\n x-dcl-go-name: Status\n x-dcl-go-type: ClusterStatus\n readOnly: true\n description: Output only. Cluster status.\n x-kubernetes-immutable: true\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values: UNKNOWN,\n CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING, STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusSubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n statusHistory:\n type: array\n x-dcl-go-name: StatusHistory\n readOnly: true\n description: Output only. The previous cluster status.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ClusterStatusHistory\n properties:\n detail:\n type: string\n x-dcl-go-name: Detail\n readOnly: true\n description: Optional. Output only. Details of cluster's state.\n x-kubernetes-immutable: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ClusterStatusHistoryStateEnum\n readOnly: true\n description: 'Output only. The cluster''s state. Possible values:\n UNKNOWN, CREATING, RUNNING, ERROR, DELETING, UPDATING, STOPPING,\n STOPPED, STARTING'\n x-kubernetes-immutable: true\n enum:\n - UNKNOWN\n - CREATING\n - RUNNING\n - ERROR\n - DELETING\n - UPDATING\n - STOPPING\n - STOPPED\n - STARTING\n stateStartTime:\n type: string\n format: date-time\n x-dcl-go-name: StateStartTime\n readOnly: true\n description: Output only. Time when this state was entered (see JSON\n representation of [Timestamp](https://developers.google.com/protocol-buffers/docs/proto3#json)).\n x-kubernetes-immutable: true\n substate:\n type: string\n x-dcl-go-name: Substate\n x-dcl-go-type: ClusterStatusHistorySubstateEnum\n readOnly: true\n description: 'Output only. Additional state information that includes\n status reported by the agent. Possible values: UNSPECIFIED, UNHEALTHY,\n STALE_STATUS'\n x-kubernetes-immutable: true\n enum:\n - UNSPECIFIED\n - UNHEALTHY\n - STALE_STATUS\n") -// 70444 bytes -// MD5: fcbdeac134a889992e814ff11f8b5771 +// 70739 bytes +// MD5: 309c45980e9bdc8ebd2cb1c9c1e47af5 diff --git a/services/google/gkehub/alpha/membership.yaml b/services/google/gkehub/alpha/membership.yaml index addb1e7070..a18b706275 100755 --- a/services/google/gkehub/alpha/membership.yaml +++ b/services/google/gkehub/alpha/membership.yaml @@ -306,12 +306,14 @@ components: The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.' + x-dcl-server-default: true infrastructureType: type: string x-dcl-go-name: InfrastructureType x-dcl-go-type: MembershipInfrastructureTypeEnum description: 'Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD' + x-dcl-server-default: true enum: - INFRASTRUCTURE_TYPE_UNSPECIFIED - ON_PREM diff --git a/services/google/gkehub/alpha/membership_alpha_yaml_embed.go b/services/google/gkehub/alpha/membership_alpha_yaml_embed.go index 45f17123ed..8263a6848a 100755 --- a/services/google/gkehub/alpha/membership_alpha_yaml_embed.go +++ b/services/google/gkehub/alpha/membership_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/gkehub/alpha/membership.yaml -var YAML_membership = []byte("info:\n title: GkeHub/Membership\n description: The GkeHub Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: projects/{{project}}/locations/{{location}}/memberships/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n authority:\n type: object\n x-dcl-go-name: Authority\n x-dcl-go-type: MembershipAuthority\n description: 'Optional. How to identify workloads from this Membership.\n See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity'\n properties:\n identityProvider:\n type: string\n x-dcl-go-name: IdentityProvider\n readOnly: true\n description: Output only. An identity provider that reflects the `issuer`\n in the workload identity pool.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must\n start with `https://` and be a valid URL with length <2000 characters.\n If set, then Google will allow valid OIDC tokens from this issuer\n to authenticate within the workload_identity_pool. OIDC discovery\n will be performed on this URI to validate tokens from the issuer.\n Clearing `issuer` disables Workload Identity. `issuer` cannot be directly\n modified; it must be cleared (and Workload Identity disabled) before\n using a new issuer (and re-enabling Workload Identity).\n workloadIdentityPool:\n type: string\n x-dcl-go-name: WorkloadIdentityPool\n readOnly: true\n description: 'Output only. The name of the workload identity pool in\n which `issuer` will be recognized. There is a single Workload Identity\n Pool per Hub that is shared between all Memberships that belong to\n that Hub. For a Hub hosted in: {PROJECT_ID}, the workload pool format\n is `{PROJECT_ID}.hub.id.goog`, although this is subject to change\n in newer versions of this API.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. When the Membership was created.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. When the Membership was deleted.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'Description of this membership, limited to 63 characters.\n Must match the regex: `*` This field is present for legacy purposes.'\n endpoint:\n type: object\n x-dcl-go-name: Endpoint\n x-dcl-go-type: MembershipEndpoint\n description: Optional. Endpoint information to reach this member.\n properties:\n gkeCluster:\n type: object\n x-dcl-go-name: GkeCluster\n x-dcl-go-type: MembershipEndpointGkeCluster\n description: Optional. GKE-specific information. Only present if this\n Membership is a GKE cluster.\n properties:\n resourceLink:\n type: string\n x-dcl-go-name: ResourceLink\n description: 'Immutable. Self-link of the GCP resource for the GKE\n cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster\n Zonal clusters are also supported.'\n x-dcl-references:\n - resource: Container/Cluster\n field: selfLink\n kubernetesMetadata:\n type: object\n x-dcl-go-name: KubernetesMetadata\n x-dcl-go-type: MembershipEndpointKubernetesMetadata\n readOnly: true\n description: Output only. Useful Kubernetes-specific metadata.\n properties:\n kubernetesApiServerVersion:\n type: string\n x-dcl-go-name: KubernetesApiServerVersion\n readOnly: true\n description: Output only. Kubernetes API server version string as\n reported by `/version`.\n memoryMb:\n type: integer\n format: int64\n x-dcl-go-name: MemoryMb\n readOnly: true\n description: Output only. The total memory capacity as reported\n by the sum of all Kubernetes nodes resources, defined in MB.\n nodeCount:\n type: integer\n format: int64\n x-dcl-go-name: NodeCount\n readOnly: true\n description: Output only. Node count as reported by Kubernetes nodes\n resources.\n nodeProviderId:\n type: string\n x-dcl-go-name: NodeProviderId\n readOnly: true\n description: Output only. Node providerID as reported by the first\n node in the list of nodes on the Kubernetes endpoint. On Kubernetes\n platforms that support zero-node clusters (like GKE-on-GCP), the\n node_count will be zero and the node_provider_id will be empty.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time at which these details were last\n updated. This update_time is different from the Membership-level\n update_time since EndpointDetails are updated internally for API\n consumers.\n vcpuCount:\n type: integer\n format: int64\n x-dcl-go-name: VcpuCount\n readOnly: true\n description: Output only. vCPU count as reported by Kubernetes nodes\n resources.\n kubernetesResource:\n type: object\n x-dcl-go-name: KubernetesResource\n x-dcl-go-type: MembershipEndpointKubernetesResource\n description: 'Optional. The in-cluster Kubernetes Resources that should\n be applied for a correctly registered cluster, in the steady state.\n These resources: * Ensure that the cluster is exclusively registered\n to one and only one Hub Membership. * Propagate Workload Pool Information\n available in the Membership Authority field. * Ensure proper initial\n configuration of default Hub Features.'\n properties:\n connectResources:\n type: array\n x-dcl-go-name: ConnectResources\n readOnly: true\n description: Output only. The Kubernetes resources for installing\n the GKE Connect agent This field is only populated in the Membership\n returned from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceConnectResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n membershipCrManifest:\n type: string\n x-dcl-go-name: MembershipCrManifest\n description: Input only. The YAML representation of the Membership\n CR. This field is ignored for GKE clusters where Hub can read\n the CR directly. Callers should provide the CR that is currently\n present in the cluster during CreateMembership or UpdateMembership,\n or leave this field empty if none exists. The CR manifest is used\n to validate the cluster has not been registered with another Membership.\n x-dcl-mutable-unreadable: true\n membershipResources:\n type: array\n x-dcl-go-name: MembershipResources\n readOnly: true\n description: Output only. Additional Kubernetes resources that need\n to be applied to the cluster after Membership creation, and after\n every update. This field is only populated in the Membership returned\n from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceMembershipResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n resourceOptions:\n type: object\n x-dcl-go-name: ResourceOptions\n x-dcl-go-type: MembershipEndpointKubernetesResourceResourceOptions\n description: Optional. Options for Kubernetes resource generation.\n properties:\n connectVersion:\n type: string\n x-dcl-go-name: ConnectVersion\n description: Optional. The Connect agent version to use for\n connect_resources. Defaults to the latest GKE Connect version.\n The version must be a currently supported version, obsolete\n versions will be rejected.\n v1beta1Crd:\n type: boolean\n x-dcl-go-name: V1Beta1Crd\n description: Optional. Use `apiextensions/v1beta1` instead of\n `apiextensions/v1` for CustomResourceDefinition resources.\n This option should be set for clusters with Kubernetes apiserver\n versions <1.16.\n externalId:\n type: string\n x-dcl-go-name: ExternalId\n description: 'Optional. An externally-generated and managed ID for this\n Membership. This ID may be modified after creation, but this is not recommended.\n The ID must match the regex: `*` If this Membership represents a Kubernetes\n cluster, this value should be set to the UID of the `kube-system` namespace\n object.'\n infrastructureType:\n type: string\n x-dcl-go-name: InfrastructureType\n x-dcl-go-type: MembershipInfrastructureTypeEnum\n description: 'Optional. The infrastructure type this Membership is running\n on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD'\n enum:\n - INFRASTRUCTURE_TYPE_UNSPECIFIED\n - ON_PREM\n - MULTI_CLOUD\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. GCP labels for this membership.\n lastConnectionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastConnectionTime\n readOnly: true\n description: Output only. For clusters using Connect, the timestamp of the\n most recent connection established with Google Cloud. This time is updated\n every several minutes, not continuously. For clusters that do not use\n GKE Connect, or that have never connected successfully, this field will\n be unset.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The full, unique name of this Membership resource\n in the format `projects/*/locations/*/memberships/{membership_id}`, set\n during creation. `membership_id` must be a valid RFC 1123 compliant DNS\n label: 1. At most 63 characters in length 2. It must consist of lower\n case alphanumeric characters or `-` 3. It must start and end with an alphanumeric\n character Which can be expressed as the regex: `)?`, with a maximum length\n of 63 characters.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: object\n x-dcl-go-name: State\n x-dcl-go-type: MembershipState\n readOnly: true\n description: Output only. State of the Membership resource.\n x-kubernetes-immutable: true\n properties:\n code:\n type: string\n x-dcl-go-name: Code\n x-dcl-go-type: MembershipStateCodeEnum\n readOnly: true\n description: 'Output only. The current state of the Membership resource.\n Possible values: CODE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING,\n SERVICE_UPDATING'\n x-kubernetes-immutable: true\n enum:\n - CODE_UNSPECIFIED\n - CREATING\n - READY\n - DELETING\n - UPDATING\n - SERVICE_UPDATING\n uniqueId:\n type: string\n x-dcl-go-name: UniqueId\n readOnly: true\n description: Output only. Google-generated UUID for this resource. This\n is unique across all Membership resources. If a Membership resource is\n deleted and another resource with the same name is created, it gets a\n different unique_id.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. When the Membership was last updated.\n x-kubernetes-immutable: true\n") +var YAML_membership = []byte("info:\n title: GkeHub/Membership\n description: The GkeHub Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: projects/{{project}}/locations/{{location}}/memberships/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n authority:\n type: object\n x-dcl-go-name: Authority\n x-dcl-go-type: MembershipAuthority\n description: 'Optional. How to identify workloads from this Membership.\n See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity'\n properties:\n identityProvider:\n type: string\n x-dcl-go-name: IdentityProvider\n readOnly: true\n description: Output only. An identity provider that reflects the `issuer`\n in the workload identity pool.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must\n start with `https://` and be a valid URL with length <2000 characters.\n If set, then Google will allow valid OIDC tokens from this issuer\n to authenticate within the workload_identity_pool. OIDC discovery\n will be performed on this URI to validate tokens from the issuer.\n Clearing `issuer` disables Workload Identity. `issuer` cannot be directly\n modified; it must be cleared (and Workload Identity disabled) before\n using a new issuer (and re-enabling Workload Identity).\n workloadIdentityPool:\n type: string\n x-dcl-go-name: WorkloadIdentityPool\n readOnly: true\n description: 'Output only. The name of the workload identity pool in\n which `issuer` will be recognized. There is a single Workload Identity\n Pool per Hub that is shared between all Memberships that belong to\n that Hub. For a Hub hosted in: {PROJECT_ID}, the workload pool format\n is `{PROJECT_ID}.hub.id.goog`, although this is subject to change\n in newer versions of this API.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. When the Membership was created.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. When the Membership was deleted.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'Description of this membership, limited to 63 characters.\n Must match the regex: `*` This field is present for legacy purposes.'\n endpoint:\n type: object\n x-dcl-go-name: Endpoint\n x-dcl-go-type: MembershipEndpoint\n description: Optional. Endpoint information to reach this member.\n properties:\n gkeCluster:\n type: object\n x-dcl-go-name: GkeCluster\n x-dcl-go-type: MembershipEndpointGkeCluster\n description: Optional. GKE-specific information. Only present if this\n Membership is a GKE cluster.\n properties:\n resourceLink:\n type: string\n x-dcl-go-name: ResourceLink\n description: 'Immutable. Self-link of the GCP resource for the GKE\n cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster\n Zonal clusters are also supported.'\n x-dcl-references:\n - resource: Container/Cluster\n field: selfLink\n kubernetesMetadata:\n type: object\n x-dcl-go-name: KubernetesMetadata\n x-dcl-go-type: MembershipEndpointKubernetesMetadata\n readOnly: true\n description: Output only. Useful Kubernetes-specific metadata.\n properties:\n kubernetesApiServerVersion:\n type: string\n x-dcl-go-name: KubernetesApiServerVersion\n readOnly: true\n description: Output only. Kubernetes API server version string as\n reported by `/version`.\n memoryMb:\n type: integer\n format: int64\n x-dcl-go-name: MemoryMb\n readOnly: true\n description: Output only. The total memory capacity as reported\n by the sum of all Kubernetes nodes resources, defined in MB.\n nodeCount:\n type: integer\n format: int64\n x-dcl-go-name: NodeCount\n readOnly: true\n description: Output only. Node count as reported by Kubernetes nodes\n resources.\n nodeProviderId:\n type: string\n x-dcl-go-name: NodeProviderId\n readOnly: true\n description: Output only. Node providerID as reported by the first\n node in the list of nodes on the Kubernetes endpoint. On Kubernetes\n platforms that support zero-node clusters (like GKE-on-GCP), the\n node_count will be zero and the node_provider_id will be empty.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time at which these details were last\n updated. This update_time is different from the Membership-level\n update_time since EndpointDetails are updated internally for API\n consumers.\n vcpuCount:\n type: integer\n format: int64\n x-dcl-go-name: VcpuCount\n readOnly: true\n description: Output only. vCPU count as reported by Kubernetes nodes\n resources.\n kubernetesResource:\n type: object\n x-dcl-go-name: KubernetesResource\n x-dcl-go-type: MembershipEndpointKubernetesResource\n description: 'Optional. The in-cluster Kubernetes Resources that should\n be applied for a correctly registered cluster, in the steady state.\n These resources: * Ensure that the cluster is exclusively registered\n to one and only one Hub Membership. * Propagate Workload Pool Information\n available in the Membership Authority field. * Ensure proper initial\n configuration of default Hub Features.'\n properties:\n connectResources:\n type: array\n x-dcl-go-name: ConnectResources\n readOnly: true\n description: Output only. The Kubernetes resources for installing\n the GKE Connect agent This field is only populated in the Membership\n returned from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceConnectResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n membershipCrManifest:\n type: string\n x-dcl-go-name: MembershipCrManifest\n description: Input only. The YAML representation of the Membership\n CR. This field is ignored for GKE clusters where Hub can read\n the CR directly. Callers should provide the CR that is currently\n present in the cluster during CreateMembership or UpdateMembership,\n or leave this field empty if none exists. The CR manifest is used\n to validate the cluster has not been registered with another Membership.\n x-dcl-mutable-unreadable: true\n membershipResources:\n type: array\n x-dcl-go-name: MembershipResources\n readOnly: true\n description: Output only. Additional Kubernetes resources that need\n to be applied to the cluster after Membership creation, and after\n every update. This field is only populated in the Membership returned\n from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceMembershipResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n resourceOptions:\n type: object\n x-dcl-go-name: ResourceOptions\n x-dcl-go-type: MembershipEndpointKubernetesResourceResourceOptions\n description: Optional. Options for Kubernetes resource generation.\n properties:\n connectVersion:\n type: string\n x-dcl-go-name: ConnectVersion\n description: Optional. The Connect agent version to use for\n connect_resources. Defaults to the latest GKE Connect version.\n The version must be a currently supported version, obsolete\n versions will be rejected.\n v1beta1Crd:\n type: boolean\n x-dcl-go-name: V1Beta1Crd\n description: Optional. Use `apiextensions/v1beta1` instead of\n `apiextensions/v1` for CustomResourceDefinition resources.\n This option should be set for clusters with Kubernetes apiserver\n versions <1.16.\n externalId:\n type: string\n x-dcl-go-name: ExternalId\n description: 'Optional. An externally-generated and managed ID for this\n Membership. This ID may be modified after creation, but this is not recommended.\n The ID must match the regex: `*` If this Membership represents a Kubernetes\n cluster, this value should be set to the UID of the `kube-system` namespace\n object.'\n x-dcl-server-default: true\n infrastructureType:\n type: string\n x-dcl-go-name: InfrastructureType\n x-dcl-go-type: MembershipInfrastructureTypeEnum\n description: 'Optional. The infrastructure type this Membership is running\n on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD'\n x-dcl-server-default: true\n enum:\n - INFRASTRUCTURE_TYPE_UNSPECIFIED\n - ON_PREM\n - MULTI_CLOUD\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. GCP labels for this membership.\n lastConnectionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastConnectionTime\n readOnly: true\n description: Output only. For clusters using Connect, the timestamp of the\n most recent connection established with Google Cloud. This time is updated\n every several minutes, not continuously. For clusters that do not use\n GKE Connect, or that have never connected successfully, this field will\n be unset.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The full, unique name of this Membership resource\n in the format `projects/*/locations/*/memberships/{membership_id}`, set\n during creation. `membership_id` must be a valid RFC 1123 compliant DNS\n label: 1. At most 63 characters in length 2. It must consist of lower\n case alphanumeric characters or `-` 3. It must start and end with an alphanumeric\n character Which can be expressed as the regex: `)?`, with a maximum length\n of 63 characters.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: object\n x-dcl-go-name: State\n x-dcl-go-type: MembershipState\n readOnly: true\n description: Output only. State of the Membership resource.\n x-kubernetes-immutable: true\n properties:\n code:\n type: string\n x-dcl-go-name: Code\n x-dcl-go-type: MembershipStateCodeEnum\n readOnly: true\n description: 'Output only. The current state of the Membership resource.\n Possible values: CODE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING,\n SERVICE_UPDATING'\n x-kubernetes-immutable: true\n enum:\n - CODE_UNSPECIFIED\n - CREATING\n - READY\n - DELETING\n - UPDATING\n - SERVICE_UPDATING\n uniqueId:\n type: string\n x-dcl-go-name: UniqueId\n readOnly: true\n description: Output only. Google-generated UUID for this resource. This\n is unique across all Membership resources. If a Membership resource is\n deleted and another resource with the same name is created, it gets a\n different unique_id.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. When the Membership was last updated.\n x-kubernetes-immutable: true\n") -// 17895 bytes -// MD5: 36374bf4024e5ab7bd88e041145d6fcc +// 17969 bytes +// MD5: 42fa32321c2bbf0f35cdea4abc4835ba diff --git a/services/google/gkehub/alpha/membership_schema.go b/services/google/gkehub/alpha/membership_schema.go index 7ef49178d1..ade8c1fda4 100755 --- a/services/google/gkehub/alpha/membership_schema.go +++ b/services/google/gkehub/alpha/membership_schema.go @@ -312,15 +312,17 @@ func DCLMembershipSchema() *dcl.Schema { }, }, "externalId": &dcl.Property{ - Type: "string", - GoName: "ExternalId", - Description: "Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.", + Type: "string", + GoName: "ExternalId", + Description: "Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.", + ServerDefault: true, }, "infrastructureType": &dcl.Property{ - Type: "string", - GoName: "InfrastructureType", - GoType: "MembershipInfrastructureTypeEnum", - Description: "Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD", + Type: "string", + GoName: "InfrastructureType", + GoType: "MembershipInfrastructureTypeEnum", + Description: "Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD", + ServerDefault: true, Enum: []string{ "INFRASTRUCTURE_TYPE_UNSPECIFIED", "ON_PREM", diff --git a/services/google/gkehub/beta/membership.yaml b/services/google/gkehub/beta/membership.yaml index addb1e7070..a18b706275 100755 --- a/services/google/gkehub/beta/membership.yaml +++ b/services/google/gkehub/beta/membership.yaml @@ -306,12 +306,14 @@ components: The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.' + x-dcl-server-default: true infrastructureType: type: string x-dcl-go-name: InfrastructureType x-dcl-go-type: MembershipInfrastructureTypeEnum description: 'Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD' + x-dcl-server-default: true enum: - INFRASTRUCTURE_TYPE_UNSPECIFIED - ON_PREM diff --git a/services/google/gkehub/beta/membership_beta_yaml_embed.go b/services/google/gkehub/beta/membership_beta_yaml_embed.go index 60047170be..bd95ea5a1d 100755 --- a/services/google/gkehub/beta/membership_beta_yaml_embed.go +++ b/services/google/gkehub/beta/membership_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/gkehub/beta/membership.yaml -var YAML_membership = []byte("info:\n title: GkeHub/Membership\n description: The GkeHub Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: projects/{{project}}/locations/{{location}}/memberships/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n authority:\n type: object\n x-dcl-go-name: Authority\n x-dcl-go-type: MembershipAuthority\n description: 'Optional. How to identify workloads from this Membership.\n See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity'\n properties:\n identityProvider:\n type: string\n x-dcl-go-name: IdentityProvider\n readOnly: true\n description: Output only. An identity provider that reflects the `issuer`\n in the workload identity pool.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must\n start with `https://` and be a valid URL with length <2000 characters.\n If set, then Google will allow valid OIDC tokens from this issuer\n to authenticate within the workload_identity_pool. OIDC discovery\n will be performed on this URI to validate tokens from the issuer.\n Clearing `issuer` disables Workload Identity. `issuer` cannot be directly\n modified; it must be cleared (and Workload Identity disabled) before\n using a new issuer (and re-enabling Workload Identity).\n workloadIdentityPool:\n type: string\n x-dcl-go-name: WorkloadIdentityPool\n readOnly: true\n description: 'Output only. The name of the workload identity pool in\n which `issuer` will be recognized. There is a single Workload Identity\n Pool per Hub that is shared between all Memberships that belong to\n that Hub. For a Hub hosted in: {PROJECT_ID}, the workload pool format\n is `{PROJECT_ID}.hub.id.goog`, although this is subject to change\n in newer versions of this API.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. When the Membership was created.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. When the Membership was deleted.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'Description of this membership, limited to 63 characters.\n Must match the regex: `*` This field is present for legacy purposes.'\n endpoint:\n type: object\n x-dcl-go-name: Endpoint\n x-dcl-go-type: MembershipEndpoint\n description: Optional. Endpoint information to reach this member.\n properties:\n gkeCluster:\n type: object\n x-dcl-go-name: GkeCluster\n x-dcl-go-type: MembershipEndpointGkeCluster\n description: Optional. GKE-specific information. Only present if this\n Membership is a GKE cluster.\n properties:\n resourceLink:\n type: string\n x-dcl-go-name: ResourceLink\n description: 'Immutable. Self-link of the GCP resource for the GKE\n cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster\n Zonal clusters are also supported.'\n x-dcl-references:\n - resource: Container/Cluster\n field: selfLink\n kubernetesMetadata:\n type: object\n x-dcl-go-name: KubernetesMetadata\n x-dcl-go-type: MembershipEndpointKubernetesMetadata\n readOnly: true\n description: Output only. Useful Kubernetes-specific metadata.\n properties:\n kubernetesApiServerVersion:\n type: string\n x-dcl-go-name: KubernetesApiServerVersion\n readOnly: true\n description: Output only. Kubernetes API server version string as\n reported by `/version`.\n memoryMb:\n type: integer\n format: int64\n x-dcl-go-name: MemoryMb\n readOnly: true\n description: Output only. The total memory capacity as reported\n by the sum of all Kubernetes nodes resources, defined in MB.\n nodeCount:\n type: integer\n format: int64\n x-dcl-go-name: NodeCount\n readOnly: true\n description: Output only. Node count as reported by Kubernetes nodes\n resources.\n nodeProviderId:\n type: string\n x-dcl-go-name: NodeProviderId\n readOnly: true\n description: Output only. Node providerID as reported by the first\n node in the list of nodes on the Kubernetes endpoint. On Kubernetes\n platforms that support zero-node clusters (like GKE-on-GCP), the\n node_count will be zero and the node_provider_id will be empty.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time at which these details were last\n updated. This update_time is different from the Membership-level\n update_time since EndpointDetails are updated internally for API\n consumers.\n vcpuCount:\n type: integer\n format: int64\n x-dcl-go-name: VcpuCount\n readOnly: true\n description: Output only. vCPU count as reported by Kubernetes nodes\n resources.\n kubernetesResource:\n type: object\n x-dcl-go-name: KubernetesResource\n x-dcl-go-type: MembershipEndpointKubernetesResource\n description: 'Optional. The in-cluster Kubernetes Resources that should\n be applied for a correctly registered cluster, in the steady state.\n These resources: * Ensure that the cluster is exclusively registered\n to one and only one Hub Membership. * Propagate Workload Pool Information\n available in the Membership Authority field. * Ensure proper initial\n configuration of default Hub Features.'\n properties:\n connectResources:\n type: array\n x-dcl-go-name: ConnectResources\n readOnly: true\n description: Output only. The Kubernetes resources for installing\n the GKE Connect agent This field is only populated in the Membership\n returned from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceConnectResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n membershipCrManifest:\n type: string\n x-dcl-go-name: MembershipCrManifest\n description: Input only. The YAML representation of the Membership\n CR. This field is ignored for GKE clusters where Hub can read\n the CR directly. Callers should provide the CR that is currently\n present in the cluster during CreateMembership or UpdateMembership,\n or leave this field empty if none exists. The CR manifest is used\n to validate the cluster has not been registered with another Membership.\n x-dcl-mutable-unreadable: true\n membershipResources:\n type: array\n x-dcl-go-name: MembershipResources\n readOnly: true\n description: Output only. Additional Kubernetes resources that need\n to be applied to the cluster after Membership creation, and after\n every update. This field is only populated in the Membership returned\n from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceMembershipResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n resourceOptions:\n type: object\n x-dcl-go-name: ResourceOptions\n x-dcl-go-type: MembershipEndpointKubernetesResourceResourceOptions\n description: Optional. Options for Kubernetes resource generation.\n properties:\n connectVersion:\n type: string\n x-dcl-go-name: ConnectVersion\n description: Optional. The Connect agent version to use for\n connect_resources. Defaults to the latest GKE Connect version.\n The version must be a currently supported version, obsolete\n versions will be rejected.\n v1beta1Crd:\n type: boolean\n x-dcl-go-name: V1Beta1Crd\n description: Optional. Use `apiextensions/v1beta1` instead of\n `apiextensions/v1` for CustomResourceDefinition resources.\n This option should be set for clusters with Kubernetes apiserver\n versions <1.16.\n externalId:\n type: string\n x-dcl-go-name: ExternalId\n description: 'Optional. An externally-generated and managed ID for this\n Membership. This ID may be modified after creation, but this is not recommended.\n The ID must match the regex: `*` If this Membership represents a Kubernetes\n cluster, this value should be set to the UID of the `kube-system` namespace\n object.'\n infrastructureType:\n type: string\n x-dcl-go-name: InfrastructureType\n x-dcl-go-type: MembershipInfrastructureTypeEnum\n description: 'Optional. The infrastructure type this Membership is running\n on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD'\n enum:\n - INFRASTRUCTURE_TYPE_UNSPECIFIED\n - ON_PREM\n - MULTI_CLOUD\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. GCP labels for this membership.\n lastConnectionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastConnectionTime\n readOnly: true\n description: Output only. For clusters using Connect, the timestamp of the\n most recent connection established with Google Cloud. This time is updated\n every several minutes, not continuously. For clusters that do not use\n GKE Connect, or that have never connected successfully, this field will\n be unset.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The full, unique name of this Membership resource\n in the format `projects/*/locations/*/memberships/{membership_id}`, set\n during creation. `membership_id` must be a valid RFC 1123 compliant DNS\n label: 1. At most 63 characters in length 2. It must consist of lower\n case alphanumeric characters or `-` 3. It must start and end with an alphanumeric\n character Which can be expressed as the regex: `)?`, with a maximum length\n of 63 characters.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: object\n x-dcl-go-name: State\n x-dcl-go-type: MembershipState\n readOnly: true\n description: Output only. State of the Membership resource.\n x-kubernetes-immutable: true\n properties:\n code:\n type: string\n x-dcl-go-name: Code\n x-dcl-go-type: MembershipStateCodeEnum\n readOnly: true\n description: 'Output only. The current state of the Membership resource.\n Possible values: CODE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING,\n SERVICE_UPDATING'\n x-kubernetes-immutable: true\n enum:\n - CODE_UNSPECIFIED\n - CREATING\n - READY\n - DELETING\n - UPDATING\n - SERVICE_UPDATING\n uniqueId:\n type: string\n x-dcl-go-name: UniqueId\n readOnly: true\n description: Output only. Google-generated UUID for this resource. This\n is unique across all Membership resources. If a Membership resource is\n deleted and another resource with the same name is created, it gets a\n different unique_id.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. When the Membership was last updated.\n x-kubernetes-immutable: true\n") +var YAML_membership = []byte("info:\n title: GkeHub/Membership\n description: The GkeHub Membership resource\n x-dcl-struct-name: Membership\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n apply:\n description: The function used to apply information about a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n delete:\n description: The function used to delete a Membership\n parameters:\n - name: Membership\n required: true\n description: A full instance of a Membership\n deleteAll:\n description: The function used to delete all Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Membership\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Membership:\n title: Membership\n x-dcl-id: projects/{{project}}/locations/{{location}}/memberships/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-labels: labels\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n authority:\n type: object\n x-dcl-go-name: Authority\n x-dcl-go-type: MembershipAuthority\n description: 'Optional. How to identify workloads from this Membership.\n See the documentation on Workload Identity for more details: https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity'\n properties:\n identityProvider:\n type: string\n x-dcl-go-name: IdentityProvider\n readOnly: true\n description: Output only. An identity provider that reflects the `issuer`\n in the workload identity pool.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: Optional. A JSON Web Token (JWT) issuer URI. `issuer` must\n start with `https://` and be a valid URL with length <2000 characters.\n If set, then Google will allow valid OIDC tokens from this issuer\n to authenticate within the workload_identity_pool. OIDC discovery\n will be performed on this URI to validate tokens from the issuer.\n Clearing `issuer` disables Workload Identity. `issuer` cannot be directly\n modified; it must be cleared (and Workload Identity disabled) before\n using a new issuer (and re-enabling Workload Identity).\n workloadIdentityPool:\n type: string\n x-dcl-go-name: WorkloadIdentityPool\n readOnly: true\n description: 'Output only. The name of the workload identity pool in\n which `issuer` will be recognized. There is a single Workload Identity\n Pool per Hub that is shared between all Memberships that belong to\n that Hub. For a Hub hosted in: {PROJECT_ID}, the workload pool format\n is `{PROJECT_ID}.hub.id.goog`, although this is subject to change\n in newer versions of this API.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. When the Membership was created.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. When the Membership was deleted.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: 'Description of this membership, limited to 63 characters.\n Must match the regex: `*` This field is present for legacy purposes.'\n endpoint:\n type: object\n x-dcl-go-name: Endpoint\n x-dcl-go-type: MembershipEndpoint\n description: Optional. Endpoint information to reach this member.\n properties:\n gkeCluster:\n type: object\n x-dcl-go-name: GkeCluster\n x-dcl-go-type: MembershipEndpointGkeCluster\n description: Optional. GKE-specific information. Only present if this\n Membership is a GKE cluster.\n properties:\n resourceLink:\n type: string\n x-dcl-go-name: ResourceLink\n description: 'Immutable. Self-link of the GCP resource for the GKE\n cluster. For example: //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster\n Zonal clusters are also supported.'\n x-dcl-references:\n - resource: Container/Cluster\n field: selfLink\n kubernetesMetadata:\n type: object\n x-dcl-go-name: KubernetesMetadata\n x-dcl-go-type: MembershipEndpointKubernetesMetadata\n readOnly: true\n description: Output only. Useful Kubernetes-specific metadata.\n properties:\n kubernetesApiServerVersion:\n type: string\n x-dcl-go-name: KubernetesApiServerVersion\n readOnly: true\n description: Output only. Kubernetes API server version string as\n reported by `/version`.\n memoryMb:\n type: integer\n format: int64\n x-dcl-go-name: MemoryMb\n readOnly: true\n description: Output only. The total memory capacity as reported\n by the sum of all Kubernetes nodes resources, defined in MB.\n nodeCount:\n type: integer\n format: int64\n x-dcl-go-name: NodeCount\n readOnly: true\n description: Output only. Node count as reported by Kubernetes nodes\n resources.\n nodeProviderId:\n type: string\n x-dcl-go-name: NodeProviderId\n readOnly: true\n description: Output only. Node providerID as reported by the first\n node in the list of nodes on the Kubernetes endpoint. On Kubernetes\n platforms that support zero-node clusters (like GKE-on-GCP), the\n node_count will be zero and the node_provider_id will be empty.\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The time at which these details were last\n updated. This update_time is different from the Membership-level\n update_time since EndpointDetails are updated internally for API\n consumers.\n vcpuCount:\n type: integer\n format: int64\n x-dcl-go-name: VcpuCount\n readOnly: true\n description: Output only. vCPU count as reported by Kubernetes nodes\n resources.\n kubernetesResource:\n type: object\n x-dcl-go-name: KubernetesResource\n x-dcl-go-type: MembershipEndpointKubernetesResource\n description: 'Optional. The in-cluster Kubernetes Resources that should\n be applied for a correctly registered cluster, in the steady state.\n These resources: * Ensure that the cluster is exclusively registered\n to one and only one Hub Membership. * Propagate Workload Pool Information\n available in the Membership Authority field. * Ensure proper initial\n configuration of default Hub Features.'\n properties:\n connectResources:\n type: array\n x-dcl-go-name: ConnectResources\n readOnly: true\n description: Output only. The Kubernetes resources for installing\n the GKE Connect agent This field is only populated in the Membership\n returned from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceConnectResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n membershipCrManifest:\n type: string\n x-dcl-go-name: MembershipCrManifest\n description: Input only. The YAML representation of the Membership\n CR. This field is ignored for GKE clusters where Hub can read\n the CR directly. Callers should provide the CR that is currently\n present in the cluster during CreateMembership or UpdateMembership,\n or leave this field empty if none exists. The CR manifest is used\n to validate the cluster has not been registered with another Membership.\n x-dcl-mutable-unreadable: true\n membershipResources:\n type: array\n x-dcl-go-name: MembershipResources\n readOnly: true\n description: Output only. Additional Kubernetes resources that need\n to be applied to the cluster after Membership creation, and after\n every update. This field is only populated in the Membership returned\n from a successful long-running operation from CreateMembership\n or UpdateMembership. It is not populated during normal GetMembership\n or ListMemberships requests. To get the resource manifest after\n the initial registration, the caller should make a UpdateMembership\n call with an empty field mask.\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: MembershipEndpointKubernetesResourceMembershipResources\n properties:\n clusterScoped:\n type: boolean\n x-dcl-go-name: ClusterScoped\n description: Whether the resource provided in the manifest\n is `cluster_scoped`. If unset, the manifest is assumed to\n be namespace scoped. This field is used for REST mapping\n when applying the resource in a cluster.\n manifest:\n type: string\n x-dcl-go-name: Manifest\n description: YAML manifest of the resource.\n resourceOptions:\n type: object\n x-dcl-go-name: ResourceOptions\n x-dcl-go-type: MembershipEndpointKubernetesResourceResourceOptions\n description: Optional. Options for Kubernetes resource generation.\n properties:\n connectVersion:\n type: string\n x-dcl-go-name: ConnectVersion\n description: Optional. The Connect agent version to use for\n connect_resources. Defaults to the latest GKE Connect version.\n The version must be a currently supported version, obsolete\n versions will be rejected.\n v1beta1Crd:\n type: boolean\n x-dcl-go-name: V1Beta1Crd\n description: Optional. Use `apiextensions/v1beta1` instead of\n `apiextensions/v1` for CustomResourceDefinition resources.\n This option should be set for clusters with Kubernetes apiserver\n versions <1.16.\n externalId:\n type: string\n x-dcl-go-name: ExternalId\n description: 'Optional. An externally-generated and managed ID for this\n Membership. This ID may be modified after creation, but this is not recommended.\n The ID must match the regex: `*` If this Membership represents a Kubernetes\n cluster, this value should be set to the UID of the `kube-system` namespace\n object.'\n x-dcl-server-default: true\n infrastructureType:\n type: string\n x-dcl-go-name: InfrastructureType\n x-dcl-go-type: MembershipInfrastructureTypeEnum\n description: 'Optional. The infrastructure type this Membership is running\n on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD'\n x-dcl-server-default: true\n enum:\n - INFRASTRUCTURE_TYPE_UNSPECIFIED\n - ON_PREM\n - MULTI_CLOUD\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: Optional. GCP labels for this membership.\n lastConnectionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastConnectionTime\n readOnly: true\n description: Output only. For clusters using Connect, the timestamp of the\n most recent connection established with Google Cloud. This time is updated\n every several minutes, not continuously. For clusters that do not use\n GKE Connect, or that have never connected successfully, this field will\n be unset.\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The full, unique name of this Membership resource\n in the format `projects/*/locations/*/memberships/{membership_id}`, set\n during creation. `membership_id` must be a valid RFC 1123 compliant DNS\n label: 1. At most 63 characters in length 2. It must consist of lower\n case alphanumeric characters or `-` 3. It must start and end with an alphanumeric\n character Which can be expressed as the regex: `)?`, with a maximum length\n of 63 characters.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: object\n x-dcl-go-name: State\n x-dcl-go-type: MembershipState\n readOnly: true\n description: Output only. State of the Membership resource.\n x-kubernetes-immutable: true\n properties:\n code:\n type: string\n x-dcl-go-name: Code\n x-dcl-go-type: MembershipStateCodeEnum\n readOnly: true\n description: 'Output only. The current state of the Membership resource.\n Possible values: CODE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING,\n SERVICE_UPDATING'\n x-kubernetes-immutable: true\n enum:\n - CODE_UNSPECIFIED\n - CREATING\n - READY\n - DELETING\n - UPDATING\n - SERVICE_UPDATING\n uniqueId:\n type: string\n x-dcl-go-name: UniqueId\n readOnly: true\n description: Output only. Google-generated UUID for this resource. This\n is unique across all Membership resources. If a Membership resource is\n deleted and another resource with the same name is created, it gets a\n different unique_id.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. When the Membership was last updated.\n x-kubernetes-immutable: true\n") -// 17895 bytes -// MD5: 36374bf4024e5ab7bd88e041145d6fcc +// 17969 bytes +// MD5: 42fa32321c2bbf0f35cdea4abc4835ba diff --git a/services/google/gkehub/beta/membership_schema.go b/services/google/gkehub/beta/membership_schema.go index 9802806c3a..42660e0dfb 100755 --- a/services/google/gkehub/beta/membership_schema.go +++ b/services/google/gkehub/beta/membership_schema.go @@ -312,15 +312,17 @@ func DCLMembershipSchema() *dcl.Schema { }, }, "externalId": &dcl.Property{ - Type: "string", - GoName: "ExternalId", - Description: "Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.", + Type: "string", + GoName: "ExternalId", + Description: "Optional. An externally-generated and managed ID for this Membership. This ID may be modified after creation, but this is not recommended. The ID must match the regex: `*` If this Membership represents a Kubernetes cluster, this value should be set to the UID of the `kube-system` namespace object.", + ServerDefault: true, }, "infrastructureType": &dcl.Property{ - Type: "string", - GoName: "InfrastructureType", - GoType: "MembershipInfrastructureTypeEnum", - Description: "Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD", + Type: "string", + GoName: "InfrastructureType", + GoType: "MembershipInfrastructureTypeEnum", + Description: "Optional. The infrastructure type this Membership is running on. Possible values: INFRASTRUCTURE_TYPE_UNSPECIFIED, ON_PREM, MULTI_CLOUD", + ServerDefault: true, Enum: []string{ "INFRASTRUCTURE_TYPE_UNSPECIFIED", "ON_PREM", diff --git a/services/google/iam/alpha/workforce_pool.yaml b/services/google/iam/alpha/workforce_pool.yaml index a7f7982c1e..37f2890181 100755 --- a/services/google/iam/alpha/workforce_pool.yaml +++ b/services/google/iam/alpha/workforce_pool.yaml @@ -126,6 +126,7 @@ components: than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s). + x-dcl-server-default: true state: type: string x-dcl-go-name: State diff --git a/services/google/iam/alpha/workforce_pool_alpha_yaml_embed.go b/services/google/iam/alpha/workforce_pool_alpha_yaml_embed.go index 673346a462..fe702ba3b1 100755 --- a/services/google/iam/alpha/workforce_pool_alpha_yaml_embed.go +++ b/services/google/iam/alpha/workforce_pool_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/iam/alpha/workforce_pool.yaml -var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") +var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n x-dcl-server-default: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") -// 4419 bytes -// MD5: 2680b88e1578109195e36396679f82e5 +// 4456 bytes +// MD5: 2e4f0854aade1485a91ee02796342881 diff --git a/services/google/iam/alpha/workforce_pool_schema.go b/services/google/iam/alpha/workforce_pool_schema.go index 20de710eb5..8b5f3d1ec7 100755 --- a/services/google/iam/alpha/workforce_pool_schema.go +++ b/services/google/iam/alpha/workforce_pool_schema.go @@ -159,9 +159,10 @@ func DCLWorkforcePoolSchema() *dcl.Schema { Immutable: true, }, "sessionDuration": &dcl.Property{ - Type: "string", - GoName: "SessionDuration", - Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + Type: "string", + GoName: "SessionDuration", + Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + ServerDefault: true, }, "state": &dcl.Property{ Type: "string", diff --git a/services/google/iam/beta/workforce_pool.yaml b/services/google/iam/beta/workforce_pool.yaml index a7f7982c1e..37f2890181 100755 --- a/services/google/iam/beta/workforce_pool.yaml +++ b/services/google/iam/beta/workforce_pool.yaml @@ -126,6 +126,7 @@ components: than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s). + x-dcl-server-default: true state: type: string x-dcl-go-name: State diff --git a/services/google/iam/beta/workforce_pool_beta_yaml_embed.go b/services/google/iam/beta/workforce_pool_beta_yaml_embed.go index 8023654287..9f897ec06f 100755 --- a/services/google/iam/beta/workforce_pool_beta_yaml_embed.go +++ b/services/google/iam/beta/workforce_pool_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/iam/beta/workforce_pool.yaml -var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") +var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n x-dcl-server-default: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") -// 4419 bytes -// MD5: 2680b88e1578109195e36396679f82e5 +// 4456 bytes +// MD5: 2e4f0854aade1485a91ee02796342881 diff --git a/services/google/iam/beta/workforce_pool_schema.go b/services/google/iam/beta/workforce_pool_schema.go index 79c7dbcb04..ea90818342 100755 --- a/services/google/iam/beta/workforce_pool_schema.go +++ b/services/google/iam/beta/workforce_pool_schema.go @@ -159,9 +159,10 @@ func DCLWorkforcePoolSchema() *dcl.Schema { Immutable: true, }, "sessionDuration": &dcl.Property{ - Type: "string", - GoName: "SessionDuration", - Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + Type: "string", + GoName: "SessionDuration", + Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + ServerDefault: true, }, "state": &dcl.Property{ Type: "string", diff --git a/services/google/iam/workforce_pool.yaml b/services/google/iam/workforce_pool.yaml index a7f7982c1e..37f2890181 100755 --- a/services/google/iam/workforce_pool.yaml +++ b/services/google/iam/workforce_pool.yaml @@ -126,6 +126,7 @@ components: than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s). + x-dcl-server-default: true state: type: string x-dcl-go-name: State diff --git a/services/google/iam/workforce_pool_schema.go b/services/google/iam/workforce_pool_schema.go index acd979c511..e0d7a11336 100755 --- a/services/google/iam/workforce_pool_schema.go +++ b/services/google/iam/workforce_pool_schema.go @@ -159,9 +159,10 @@ func DCLWorkforcePoolSchema() *dcl.Schema { Immutable: true, }, "sessionDuration": &dcl.Property{ - Type: "string", - GoName: "SessionDuration", - Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + Type: "string", + GoName: "SessionDuration", + Description: "How long the Google Cloud access tokens, console sign-in sessions, and gcloud sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration` is not configured, minted credentials will have a default duration of one hour (3600s).", + ServerDefault: true, }, "state": &dcl.Property{ Type: "string", diff --git a/services/google/iam/workforce_pool_yaml_embed.go b/services/google/iam/workforce_pool_yaml_embed.go index 49116c50b8..32f311a099 100755 --- a/services/google/iam/workforce_pool_yaml_embed.go +++ b/services/google/iam/workforce_pool_yaml_embed.go @@ -17,7 +17,7 @@ package iam // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/iam/workforce_pool.yaml -var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") +var YAML_workforce_pool = []byte("info:\n title: Iam/WorkforcePool\n description: The Iam WorkforcePool resource\n x-dcl-struct-name: WorkforcePool\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n apply:\n description: The function used to apply information about a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n delete:\n description: The function used to delete a WorkforcePool\n parameters:\n - name: WorkforcePool\n required: true\n description: A full instance of a WorkforcePool\n deleteAll:\n description: The function used to delete all WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many WorkforcePool\n parameters:\n - name: location\n required: true\n schema:\n type: string\n - name: parent\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n WorkforcePool:\n title: WorkforcePool\n x-dcl-id: locations/{{location}}/workforcePools/{{name}}\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - parent\n - location\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A user-specified description of the pool. Cannot exceed 256\n characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Whether the pool is disabled. You cannot use a disabled pool\n to exchange tokens, or use existing tokens to access resources. If the\n pool is re-enabled, existing tokens grant access again.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A user-specified display name of the pool in Google Cloud Console.\n Cannot exceed 32 characters.\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the pool. The ID must be a globally unique string\n of 6 to 63 lowercase letters, digits, or hyphens. It must start with a\n letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved\n for use by Google, and may not be specified.\n x-kubernetes-immutable: true\n parent:\n type: string\n x-dcl-go-name: Parent\n description: 'Immutable. The resource name of the parent. Format: `organizations/{org-id}`.'\n x-kubernetes-immutable: true\n x-dcl-forward-slash-allowed: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Organization\n field: name\n parent: true\n selfLink:\n type: string\n x-dcl-go-name: SelfLink\n readOnly: true\n description: 'Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`'\n x-kubernetes-immutable: true\n sessionDuration:\n type: string\n x-dcl-go-name: SessionDuration\n description: How long the Google Cloud access tokens, console sign-in sessions,\n and gcloud sign-in sessions from this pool are valid. Must be greater\n than 15 minutes (900s) and less than 12 hours (43200s). If `session_duration`\n is not configured, minted credentials will have a default duration of\n one hour (3600s).\n x-dcl-server-default: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: WorkforcePoolStateEnum\n readOnly: true\n description: 'Output only. The state of the pool. Possible values: STATE_UNSPECIFIED,\n ACTIVE, DELETED'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - ACTIVE\n - DELETED\n") -// 4419 bytes -// MD5: 2680b88e1578109195e36396679f82e5 +// 4456 bytes +// MD5: 2e4f0854aade1485a91ee02796342881 diff --git a/services/google/identitytoolkit/alpha/config.yaml b/services/google/identitytoolkit/alpha/config.yaml index 1d422679dd..039f120cf2 100755 --- a/services/google/identitytoolkit/alpha/config.yaml +++ b/services/google/identitytoolkit/alpha/config.yaml @@ -49,6 +49,7 @@ components: type: array x-dcl-go-name: AuthorizedDomains description: List of domains authorized for OAuth redirects + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -59,6 +60,7 @@ components: x-dcl-go-name: BlockingFunctions x-dcl-go-type: ConfigBlockingFunctions description: Configuration related to blocking functions. + x-dcl-server-default: true properties: triggers: type: object @@ -88,6 +90,7 @@ components: x-dcl-go-type: ConfigClient description: Options related to how clients making requests on behalf of a project should be configured. + x-dcl-server-default: true properties: apiKey: type: string @@ -125,6 +128,7 @@ components: description: Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor + x-dcl-server-default: true properties: state: type: string @@ -143,6 +147,7 @@ components: x-dcl-go-name: Monitoring x-dcl-go-type: ConfigMonitoring description: Configuration related to monitoring project activity. + x-dcl-server-default: true properties: requestLogging: type: object @@ -160,6 +165,7 @@ components: x-dcl-go-name: MultiTenant x-dcl-go-type: ConfigMultiTenant description: Configuration related to multi-tenant functionality. + x-dcl-server-default: true properties: allowTenants: type: boolean @@ -183,6 +189,7 @@ components: x-dcl-go-name: Notification x-dcl-go-type: ConfigNotification description: Configuration related to sending notifications to users. + x-dcl-server-default: true properties: defaultLocale: type: string @@ -511,6 +518,7 @@ components: x-dcl-go-name: Quota x-dcl-go-type: ConfigQuota description: Configuration related to quotas. + x-dcl-server-default: true properties: signUpQuotaConfig: type: object @@ -539,6 +547,7 @@ components: x-dcl-go-name: SignIn x-dcl-go-type: ConfigSignIn description: Configuration related to local sign in methods. + x-dcl-server-default: true properties: allowDuplicateEmails: type: boolean diff --git a/services/google/identitytoolkit/alpha/config_alpha_yaml_embed.go b/services/google/identitytoolkit/alpha/config_alpha_yaml_embed.go index cc83a8bc80..37e3898122 100755 --- a/services/google/identitytoolkit/alpha/config_alpha_yaml_embed.go +++ b/services/google/identitytoolkit/alpha/config_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/alpha/config.yaml -var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") +var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n x-dcl-server-default: true\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n x-dcl-server-default: true\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n x-dcl-server-default: true\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n x-dcl-server-default: true\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n x-dcl-server-default: true\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n x-dcl-server-default: true\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n x-dcl-server-default: true\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n x-dcl-server-default: true\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") -// 31172 bytes -// MD5: 1eea333043a6f315af69c2619f97c26f +// 31505 bytes +// MD5: 7f27205ca03fa5b4c1f98bb2aa69e81a diff --git a/services/google/identitytoolkit/alpha/config_schema.go b/services/google/identitytoolkit/alpha/config_schema.go index 5e8d668864..aea52d58a2 100755 --- a/services/google/identitytoolkit/alpha/config_schema.go +++ b/services/google/identitytoolkit/alpha/config_schema.go @@ -60,21 +60,23 @@ func DCLConfigSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "authorizedDomains": &dcl.Property{ - Type: "array", - GoName: "AuthorizedDomains", - Description: "List of domains authorized for OAuth redirects", - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "AuthorizedDomains", + Description: "List of domains authorized for OAuth redirects", + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", }, }, "blockingFunctions": &dcl.Property{ - Type: "object", - GoName: "BlockingFunctions", - GoType: "ConfigBlockingFunctions", - Description: "Configuration related to blocking functions.", + Type: "object", + GoName: "BlockingFunctions", + GoType: "ConfigBlockingFunctions", + Description: "Configuration related to blocking functions.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "triggers": &dcl.Property{ Type: "object", @@ -108,10 +110,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "client": &dcl.Property{ - Type: "object", - GoName: "Client", - GoType: "ConfigClient", - Description: "Options related to how clients making requests on behalf of a project should be configured.", + Type: "object", + GoName: "Client", + GoType: "ConfigClient", + Description: "Options related to how clients making requests on behalf of a project should be configured.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "apiKey": &dcl.Property{ Type: "string", @@ -147,10 +150,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "mfa": &dcl.Property{ - Type: "object", - GoName: "Mfa", - GoType: "ConfigMfa", - Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + Type: "object", + GoName: "Mfa", + GoType: "ConfigMfa", + Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + ServerDefault: true, Properties: map[string]*dcl.Property{ "state": &dcl.Property{ Type: "string", @@ -167,10 +171,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "monitoring": &dcl.Property{ - Type: "object", - GoName: "Monitoring", - GoType: "ConfigMonitoring", - Description: "Configuration related to monitoring project activity.", + Type: "object", + GoName: "Monitoring", + GoType: "ConfigMonitoring", + Description: "Configuration related to monitoring project activity.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "requestLogging": &dcl.Property{ Type: "object", @@ -188,10 +193,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "multiTenant": &dcl.Property{ - Type: "object", - GoName: "MultiTenant", - GoType: "ConfigMultiTenant", - Description: "Configuration related to multi-tenant functionality.", + Type: "object", + GoName: "MultiTenant", + GoType: "ConfigMultiTenant", + Description: "Configuration related to multi-tenant functionality.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowTenants": &dcl.Property{ Type: "boolean", @@ -216,10 +222,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "notification": &dcl.Property{ - Type: "object", - GoName: "Notification", - GoType: "ConfigNotification", - Description: "Configuration related to sending notifications to users.", + Type: "object", + GoName: "Notification", + GoType: "ConfigNotification", + Description: "Configuration related to sending notifications to users.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "defaultLocale": &dcl.Property{ Type: "string", @@ -600,10 +607,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "quota": &dcl.Property{ - Type: "object", - GoName: "Quota", - GoType: "ConfigQuota", - Description: "Configuration related to quotas.", + Type: "object", + GoName: "Quota", + GoType: "ConfigQuota", + Description: "Configuration related to quotas.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "signUpQuotaConfig": &dcl.Property{ Type: "object", @@ -633,10 +641,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "signIn": &dcl.Property{ - Type: "object", - GoName: "SignIn", - GoType: "ConfigSignIn", - Description: "Configuration related to local sign in methods.", + Type: "object", + GoName: "SignIn", + GoType: "ConfigSignIn", + Description: "Configuration related to local sign in methods.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowDuplicateEmails": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/alpha/oauth_idp_config.yaml b/services/google/identitytoolkit/alpha/oauth_idp_config.yaml index f03c6d2f2e..b1a2e2a257 100755 --- a/services/google/identitytoolkit/alpha/oauth_idp_config.yaml +++ b/services/google/identitytoolkit/alpha/oauth_idp_config.yaml @@ -106,6 +106,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/alpha/oauth_idp_config_alpha_yaml_embed.go b/services/google/identitytoolkit/alpha/oauth_idp_config_alpha_yaml_embed.go index 5182247d46..f6882a8b4b 100755 --- a/services/google/identitytoolkit/alpha/oauth_idp_config_alpha_yaml_embed.go +++ b/services/google/identitytoolkit/alpha/oauth_idp_config_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/alpha/oauth_idp_config.yaml -var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") +var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") -// 3640 bytes -// MD5: c7f5a027cf3b3de1eb3722cc9025fe6c +// 3677 bytes +// MD5: ff9298aed26ff581f32846c1cc373801 diff --git a/services/google/identitytoolkit/alpha/oauth_idp_config_schema.go b/services/google/identitytoolkit/alpha/oauth_idp_config_schema.go index 21def7a931..22610bbee5 100755 --- a/services/google/identitytoolkit/alpha/oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/alpha/oauth_idp_config_schema.go @@ -138,10 +138,11 @@ func DCLOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "OAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "OAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config.yaml b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config.yaml index 9e09abe8f3..86939f2588 100755 --- a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config.yaml +++ b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config.yaml @@ -115,6 +115,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_alpha_yaml_embed.go b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_alpha_yaml_embed.go index 6bdb3dd2a7..73cf9218ea 100755 --- a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_alpha_yaml_embed.go +++ b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/alpha/tenant_oauth_idp_config.yaml -var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") +var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") -// 4209 bytes -// MD5: 84dddee2bf3fc305d724638e6a6ef370 +// 4246 bytes +// MD5: 4c38dd0cb76f670037c071d64fe142d4 diff --git a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_schema.go b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_schema.go index 992418fe5c..8e2a787892 100755 --- a/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/alpha/tenant_oauth_idp_config_schema.go @@ -153,10 +153,11 @@ func DCLTenantOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "TenantOAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "TenantOAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/beta/config.yaml b/services/google/identitytoolkit/beta/config.yaml index 1d422679dd..039f120cf2 100755 --- a/services/google/identitytoolkit/beta/config.yaml +++ b/services/google/identitytoolkit/beta/config.yaml @@ -49,6 +49,7 @@ components: type: array x-dcl-go-name: AuthorizedDomains description: List of domains authorized for OAuth redirects + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -59,6 +60,7 @@ components: x-dcl-go-name: BlockingFunctions x-dcl-go-type: ConfigBlockingFunctions description: Configuration related to blocking functions. + x-dcl-server-default: true properties: triggers: type: object @@ -88,6 +90,7 @@ components: x-dcl-go-type: ConfigClient description: Options related to how clients making requests on behalf of a project should be configured. + x-dcl-server-default: true properties: apiKey: type: string @@ -125,6 +128,7 @@ components: description: Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor + x-dcl-server-default: true properties: state: type: string @@ -143,6 +147,7 @@ components: x-dcl-go-name: Monitoring x-dcl-go-type: ConfigMonitoring description: Configuration related to monitoring project activity. + x-dcl-server-default: true properties: requestLogging: type: object @@ -160,6 +165,7 @@ components: x-dcl-go-name: MultiTenant x-dcl-go-type: ConfigMultiTenant description: Configuration related to multi-tenant functionality. + x-dcl-server-default: true properties: allowTenants: type: boolean @@ -183,6 +189,7 @@ components: x-dcl-go-name: Notification x-dcl-go-type: ConfigNotification description: Configuration related to sending notifications to users. + x-dcl-server-default: true properties: defaultLocale: type: string @@ -511,6 +518,7 @@ components: x-dcl-go-name: Quota x-dcl-go-type: ConfigQuota description: Configuration related to quotas. + x-dcl-server-default: true properties: signUpQuotaConfig: type: object @@ -539,6 +547,7 @@ components: x-dcl-go-name: SignIn x-dcl-go-type: ConfigSignIn description: Configuration related to local sign in methods. + x-dcl-server-default: true properties: allowDuplicateEmails: type: boolean diff --git a/services/google/identitytoolkit/beta/config_beta_yaml_embed.go b/services/google/identitytoolkit/beta/config_beta_yaml_embed.go index 0b9eb7af66..fc7e807d00 100755 --- a/services/google/identitytoolkit/beta/config_beta_yaml_embed.go +++ b/services/google/identitytoolkit/beta/config_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/beta/config.yaml -var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") +var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n x-dcl-server-default: true\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n x-dcl-server-default: true\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n x-dcl-server-default: true\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n x-dcl-server-default: true\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n x-dcl-server-default: true\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n x-dcl-server-default: true\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n x-dcl-server-default: true\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n x-dcl-server-default: true\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") -// 31172 bytes -// MD5: 1eea333043a6f315af69c2619f97c26f +// 31505 bytes +// MD5: 7f27205ca03fa5b4c1f98bb2aa69e81a diff --git a/services/google/identitytoolkit/beta/config_schema.go b/services/google/identitytoolkit/beta/config_schema.go index 0aac5b806c..d228a75b32 100755 --- a/services/google/identitytoolkit/beta/config_schema.go +++ b/services/google/identitytoolkit/beta/config_schema.go @@ -60,21 +60,23 @@ func DCLConfigSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "authorizedDomains": &dcl.Property{ - Type: "array", - GoName: "AuthorizedDomains", - Description: "List of domains authorized for OAuth redirects", - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "AuthorizedDomains", + Description: "List of domains authorized for OAuth redirects", + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", }, }, "blockingFunctions": &dcl.Property{ - Type: "object", - GoName: "BlockingFunctions", - GoType: "ConfigBlockingFunctions", - Description: "Configuration related to blocking functions.", + Type: "object", + GoName: "BlockingFunctions", + GoType: "ConfigBlockingFunctions", + Description: "Configuration related to blocking functions.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "triggers": &dcl.Property{ Type: "object", @@ -108,10 +110,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "client": &dcl.Property{ - Type: "object", - GoName: "Client", - GoType: "ConfigClient", - Description: "Options related to how clients making requests on behalf of a project should be configured.", + Type: "object", + GoName: "Client", + GoType: "ConfigClient", + Description: "Options related to how clients making requests on behalf of a project should be configured.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "apiKey": &dcl.Property{ Type: "string", @@ -147,10 +150,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "mfa": &dcl.Property{ - Type: "object", - GoName: "Mfa", - GoType: "ConfigMfa", - Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + Type: "object", + GoName: "Mfa", + GoType: "ConfigMfa", + Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + ServerDefault: true, Properties: map[string]*dcl.Property{ "state": &dcl.Property{ Type: "string", @@ -167,10 +171,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "monitoring": &dcl.Property{ - Type: "object", - GoName: "Monitoring", - GoType: "ConfigMonitoring", - Description: "Configuration related to monitoring project activity.", + Type: "object", + GoName: "Monitoring", + GoType: "ConfigMonitoring", + Description: "Configuration related to monitoring project activity.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "requestLogging": &dcl.Property{ Type: "object", @@ -188,10 +193,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "multiTenant": &dcl.Property{ - Type: "object", - GoName: "MultiTenant", - GoType: "ConfigMultiTenant", - Description: "Configuration related to multi-tenant functionality.", + Type: "object", + GoName: "MultiTenant", + GoType: "ConfigMultiTenant", + Description: "Configuration related to multi-tenant functionality.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowTenants": &dcl.Property{ Type: "boolean", @@ -216,10 +222,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "notification": &dcl.Property{ - Type: "object", - GoName: "Notification", - GoType: "ConfigNotification", - Description: "Configuration related to sending notifications to users.", + Type: "object", + GoName: "Notification", + GoType: "ConfigNotification", + Description: "Configuration related to sending notifications to users.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "defaultLocale": &dcl.Property{ Type: "string", @@ -600,10 +607,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "quota": &dcl.Property{ - Type: "object", - GoName: "Quota", - GoType: "ConfigQuota", - Description: "Configuration related to quotas.", + Type: "object", + GoName: "Quota", + GoType: "ConfigQuota", + Description: "Configuration related to quotas.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "signUpQuotaConfig": &dcl.Property{ Type: "object", @@ -633,10 +641,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "signIn": &dcl.Property{ - Type: "object", - GoName: "SignIn", - GoType: "ConfigSignIn", - Description: "Configuration related to local sign in methods.", + Type: "object", + GoName: "SignIn", + GoType: "ConfigSignIn", + Description: "Configuration related to local sign in methods.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowDuplicateEmails": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/beta/oauth_idp_config.yaml b/services/google/identitytoolkit/beta/oauth_idp_config.yaml index f03c6d2f2e..b1a2e2a257 100755 --- a/services/google/identitytoolkit/beta/oauth_idp_config.yaml +++ b/services/google/identitytoolkit/beta/oauth_idp_config.yaml @@ -106,6 +106,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/beta/oauth_idp_config_beta_yaml_embed.go b/services/google/identitytoolkit/beta/oauth_idp_config_beta_yaml_embed.go index 3b2bc27c23..cdccc9b9df 100755 --- a/services/google/identitytoolkit/beta/oauth_idp_config_beta_yaml_embed.go +++ b/services/google/identitytoolkit/beta/oauth_idp_config_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/beta/oauth_idp_config.yaml -var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") +var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") -// 3640 bytes -// MD5: c7f5a027cf3b3de1eb3722cc9025fe6c +// 3677 bytes +// MD5: ff9298aed26ff581f32846c1cc373801 diff --git a/services/google/identitytoolkit/beta/oauth_idp_config_schema.go b/services/google/identitytoolkit/beta/oauth_idp_config_schema.go index 62dd15401f..4f8273aa71 100755 --- a/services/google/identitytoolkit/beta/oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/beta/oauth_idp_config_schema.go @@ -138,10 +138,11 @@ func DCLOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "OAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "OAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/beta/tenant_oauth_idp_config.yaml b/services/google/identitytoolkit/beta/tenant_oauth_idp_config.yaml index 9e09abe8f3..86939f2588 100755 --- a/services/google/identitytoolkit/beta/tenant_oauth_idp_config.yaml +++ b/services/google/identitytoolkit/beta/tenant_oauth_idp_config.yaml @@ -115,6 +115,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/beta/tenant_oauth_idp_config_beta_yaml_embed.go b/services/google/identitytoolkit/beta/tenant_oauth_idp_config_beta_yaml_embed.go index 4c4ee89cd7..0833b8aa94 100755 --- a/services/google/identitytoolkit/beta/tenant_oauth_idp_config_beta_yaml_embed.go +++ b/services/google/identitytoolkit/beta/tenant_oauth_idp_config_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/beta/tenant_oauth_idp_config.yaml -var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") +var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") -// 4209 bytes -// MD5: 84dddee2bf3fc305d724638e6a6ef370 +// 4246 bytes +// MD5: 4c38dd0cb76f670037c071d64fe142d4 diff --git a/services/google/identitytoolkit/beta/tenant_oauth_idp_config_schema.go b/services/google/identitytoolkit/beta/tenant_oauth_idp_config_schema.go index 2dea776ba1..0946c6f400 100755 --- a/services/google/identitytoolkit/beta/tenant_oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/beta/tenant_oauth_idp_config_schema.go @@ -153,10 +153,11 @@ func DCLTenantOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "TenantOAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "TenantOAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/config.yaml b/services/google/identitytoolkit/config.yaml index 1d422679dd..039f120cf2 100755 --- a/services/google/identitytoolkit/config.yaml +++ b/services/google/identitytoolkit/config.yaml @@ -49,6 +49,7 @@ components: type: array x-dcl-go-name: AuthorizedDomains description: List of domains authorized for OAuth redirects + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -59,6 +60,7 @@ components: x-dcl-go-name: BlockingFunctions x-dcl-go-type: ConfigBlockingFunctions description: Configuration related to blocking functions. + x-dcl-server-default: true properties: triggers: type: object @@ -88,6 +90,7 @@ components: x-dcl-go-type: ConfigClient description: Options related to how clients making requests on behalf of a project should be configured. + x-dcl-server-default: true properties: apiKey: type: string @@ -125,6 +128,7 @@ components: description: Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor + x-dcl-server-default: true properties: state: type: string @@ -143,6 +147,7 @@ components: x-dcl-go-name: Monitoring x-dcl-go-type: ConfigMonitoring description: Configuration related to monitoring project activity. + x-dcl-server-default: true properties: requestLogging: type: object @@ -160,6 +165,7 @@ components: x-dcl-go-name: MultiTenant x-dcl-go-type: ConfigMultiTenant description: Configuration related to multi-tenant functionality. + x-dcl-server-default: true properties: allowTenants: type: boolean @@ -183,6 +189,7 @@ components: x-dcl-go-name: Notification x-dcl-go-type: ConfigNotification description: Configuration related to sending notifications to users. + x-dcl-server-default: true properties: defaultLocale: type: string @@ -511,6 +518,7 @@ components: x-dcl-go-name: Quota x-dcl-go-type: ConfigQuota description: Configuration related to quotas. + x-dcl-server-default: true properties: signUpQuotaConfig: type: object @@ -539,6 +547,7 @@ components: x-dcl-go-name: SignIn x-dcl-go-type: ConfigSignIn description: Configuration related to local sign in methods. + x-dcl-server-default: true properties: allowDuplicateEmails: type: boolean diff --git a/services/google/identitytoolkit/config_schema.go b/services/google/identitytoolkit/config_schema.go index a656d4fa56..21e97d5bba 100755 --- a/services/google/identitytoolkit/config_schema.go +++ b/services/google/identitytoolkit/config_schema.go @@ -60,21 +60,23 @@ func DCLConfigSchema() *dcl.Schema { }, Properties: map[string]*dcl.Property{ "authorizedDomains": &dcl.Property{ - Type: "array", - GoName: "AuthorizedDomains", - Description: "List of domains authorized for OAuth redirects", - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "AuthorizedDomains", + Description: "List of domains authorized for OAuth redirects", + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "string", GoType: "string", }, }, "blockingFunctions": &dcl.Property{ - Type: "object", - GoName: "BlockingFunctions", - GoType: "ConfigBlockingFunctions", - Description: "Configuration related to blocking functions.", + Type: "object", + GoName: "BlockingFunctions", + GoType: "ConfigBlockingFunctions", + Description: "Configuration related to blocking functions.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "triggers": &dcl.Property{ Type: "object", @@ -108,10 +110,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "client": &dcl.Property{ - Type: "object", - GoName: "Client", - GoType: "ConfigClient", - Description: "Options related to how clients making requests on behalf of a project should be configured.", + Type: "object", + GoName: "Client", + GoType: "ConfigClient", + Description: "Options related to how clients making requests on behalf of a project should be configured.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "apiKey": &dcl.Property{ Type: "string", @@ -147,10 +150,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "mfa": &dcl.Property{ - Type: "object", - GoName: "Mfa", - GoType: "ConfigMfa", - Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + Type: "object", + GoName: "Mfa", + GoType: "ConfigMfa", + Description: "Configuration for this project's multi-factor authentication, including whether it is active and what factors can be used for the second factor", + ServerDefault: true, Properties: map[string]*dcl.Property{ "state": &dcl.Property{ Type: "string", @@ -167,10 +171,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "monitoring": &dcl.Property{ - Type: "object", - GoName: "Monitoring", - GoType: "ConfigMonitoring", - Description: "Configuration related to monitoring project activity.", + Type: "object", + GoName: "Monitoring", + GoType: "ConfigMonitoring", + Description: "Configuration related to monitoring project activity.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "requestLogging": &dcl.Property{ Type: "object", @@ -188,10 +193,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "multiTenant": &dcl.Property{ - Type: "object", - GoName: "MultiTenant", - GoType: "ConfigMultiTenant", - Description: "Configuration related to multi-tenant functionality.", + Type: "object", + GoName: "MultiTenant", + GoType: "ConfigMultiTenant", + Description: "Configuration related to multi-tenant functionality.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowTenants": &dcl.Property{ Type: "boolean", @@ -216,10 +222,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "notification": &dcl.Property{ - Type: "object", - GoName: "Notification", - GoType: "ConfigNotification", - Description: "Configuration related to sending notifications to users.", + Type: "object", + GoName: "Notification", + GoType: "ConfigNotification", + Description: "Configuration related to sending notifications to users.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "defaultLocale": &dcl.Property{ Type: "string", @@ -600,10 +607,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "quota": &dcl.Property{ - Type: "object", - GoName: "Quota", - GoType: "ConfigQuota", - Description: "Configuration related to quotas.", + Type: "object", + GoName: "Quota", + GoType: "ConfigQuota", + Description: "Configuration related to quotas.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "signUpQuotaConfig": &dcl.Property{ Type: "object", @@ -633,10 +641,11 @@ func DCLConfigSchema() *dcl.Schema { }, }, "signIn": &dcl.Property{ - Type: "object", - GoName: "SignIn", - GoType: "ConfigSignIn", - Description: "Configuration related to local sign in methods.", + Type: "object", + GoName: "SignIn", + GoType: "ConfigSignIn", + Description: "Configuration related to local sign in methods.", + ServerDefault: true, Properties: map[string]*dcl.Property{ "allowDuplicateEmails": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/config_yaml_embed.go b/services/google/identitytoolkit/config_yaml_embed.go index a37e45cdf2..b87dae20e0 100755 --- a/services/google/identitytoolkit/config_yaml_embed.go +++ b/services/google/identitytoolkit/config_yaml_embed.go @@ -17,7 +17,7 @@ package identitytoolkit // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/config.yaml -var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") +var YAML_config = []byte("info:\n title: IdentityToolkit/Config\n description: The IdentityToolkit Config resource\n x-dcl-struct-name: Config\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\n apply:\n description: The function used to apply information about a Config\n parameters:\n - name: Config\n required: true\n description: A full instance of a Config\ncomponents:\n schemas:\n Config:\n title: Config\n x-dcl-id: projects/{{project}}/config\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: false\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n authorizedDomains:\n type: array\n x-dcl-go-name: AuthorizedDomains\n description: List of domains authorized for OAuth redirects\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n blockingFunctions:\n type: object\n x-dcl-go-name: BlockingFunctions\n x-dcl-go-type: ConfigBlockingFunctions\n description: Configuration related to blocking functions.\n x-dcl-server-default: true\n properties:\n triggers:\n type: object\n additionalProperties:\n type: object\n x-dcl-go-type: ConfigBlockingFunctionsTriggers\n properties:\n functionUri:\n type: string\n x-dcl-go-name: FunctionUri\n description: HTTP URI trigger for the Cloud Function.\n x-dcl-references:\n - resource: Cloudfunctions/Function\n field: httpsTrigger.url\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: When the trigger was changed.\n x-dcl-go-name: Triggers\n description: 'Map of Trigger to event type. Key should be one of the\n supported event types: \"beforeCreate\", \"beforeSignIn\"'\n client:\n type: object\n x-dcl-go-name: Client\n x-dcl-go-type: ConfigClient\n description: Options related to how clients making requests on behalf of\n a project should be configured.\n x-dcl-server-default: true\n properties:\n apiKey:\n type: string\n x-dcl-go-name: ApiKey\n readOnly: true\n description: Output only. API key that can be used when making requests\n for this project.\n x-dcl-sensitive: true\n firebaseSubdomain:\n type: string\n x-dcl-go-name: FirebaseSubdomain\n readOnly: true\n description: Output only. Firebase subdomain.\n permissions:\n type: object\n x-dcl-go-name: Permissions\n x-dcl-go-type: ConfigClientPermissions\n description: Configuration related to restricting a user's ability to\n affect their account.\n properties:\n disabledUserDeletion:\n type: boolean\n x-dcl-go-name: DisabledUserDeletion\n description: When true, end users cannot delete their account on\n the associated project through any of our API methods\n disabledUserSignup:\n type: boolean\n x-dcl-go-name: DisabledUserSignup\n description: When true, end users cannot sign up for a new account\n on the associated project through any of our API methods\n mfa:\n type: object\n x-dcl-go-name: Mfa\n x-dcl-go-type: ConfigMfa\n description: Configuration for this project's multi-factor authentication,\n including whether it is active and what factors can be used for the second\n factor\n x-dcl-server-default: true\n properties:\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConfigMfaStateEnum\n description: 'Whether MultiFactor Authentication has been enabled for\n this project. Possible values: STATE_UNSPECIFIED, DISABLED, ENABLED,\n MANDATORY'\n enum:\n - STATE_UNSPECIFIED\n - DISABLED\n - ENABLED\n - MANDATORY\n monitoring:\n type: object\n x-dcl-go-name: Monitoring\n x-dcl-go-type: ConfigMonitoring\n description: Configuration related to monitoring project activity.\n x-dcl-server-default: true\n properties:\n requestLogging:\n type: object\n x-dcl-go-name: RequestLogging\n x-dcl-go-type: ConfigMonitoringRequestLogging\n description: Configuration for logging requests made to this project\n to Stackdriver Logging\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether logging is enabled for this project or not.\n multiTenant:\n type: object\n x-dcl-go-name: MultiTenant\n x-dcl-go-type: ConfigMultiTenant\n description: Configuration related to multi-tenant functionality.\n x-dcl-server-default: true\n properties:\n allowTenants:\n type: boolean\n x-dcl-go-name: AllowTenants\n description: Whether this project can have tenants or not.\n defaultTenantLocation:\n type: string\n x-dcl-go-name: DefaultTenantLocation\n description: The default cloud parent org or folder that the tenant\n project should be created under. The parent resource name should be\n in the format of \"/\", such as \"folders/123\" or \"organizations/456\".\n If the value is not set, the tenant will be created under the same\n organization or folder as the agent project.\n x-dcl-references:\n - resource: Cloudresourcemanager/Folder\n field: name\n - resource: Cloudresourcemanager/Organization\n field: name\n notification:\n type: object\n x-dcl-go-name: Notification\n x-dcl-go-type: ConfigNotification\n description: Configuration related to sending notifications to users.\n x-dcl-server-default: true\n properties:\n defaultLocale:\n type: string\n x-dcl-go-name: DefaultLocale\n description: Default locale used for email and SMS in IETF BCP 47 format.\n sendEmail:\n type: object\n x-dcl-go-name: SendEmail\n x-dcl-go-type: ConfigNotificationSendEmail\n description: Options for email sending.\n properties:\n callbackUri:\n type: string\n x-dcl-go-name: CallbackUri\n description: action url in email template.\n changeEmailTemplate:\n type: object\n x-dcl-go-name: ChangeEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplate\n description: Email template for change email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailChangeEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n dnsInfo:\n type: object\n x-dcl-go-name: DnsInfo\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfo\n description: Information of custom domain DNS verification.\n properties:\n customDomain:\n type: string\n x-dcl-go-name: CustomDomain\n readOnly: true\n description: Output only. The applied verified custom domain.\n x-kubernetes-immutable: true\n customDomainState:\n type: string\n x-dcl-go-name: CustomDomainState\n x-dcl-go-type: ConfigNotificationSendEmailDnsInfoCustomDomainStateEnum\n readOnly: true\n description: 'Output only. The current verification state of\n the custom domain. The custom domain will only be used once\n the domain verification is successful. Possible values: VERIFICATION_STATE_UNSPECIFIED,\n NOT_STARTED, IN_PROGRESS, FAILED, SUCCEEDED'\n x-kubernetes-immutable: true\n enum:\n - VERIFICATION_STATE_UNSPECIFIED\n - NOT_STARTED\n - IN_PROGRESS\n - FAILED\n - SUCCEEDED\n domainVerificationRequestTime:\n type: string\n format: date-time\n x-dcl-go-name: DomainVerificationRequestTime\n readOnly: true\n description: Output only. The timestamp of initial request for\n the current domain verification.\n x-kubernetes-immutable: true\n pendingCustomDomain:\n type: string\n x-dcl-go-name: PendingCustomDomain\n readOnly: true\n description: Output only. The custom domain that's to be verified.\n x-kubernetes-immutable: true\n useCustomDomain:\n type: boolean\n x-dcl-go-name: UseCustomDomain\n description: Whether to use custom domain.\n method:\n type: string\n x-dcl-go-name: Method\n x-dcl-go-type: ConfigNotificationSendEmailMethodEnum\n description: 'The method used for sending an email. Possible values:\n METHOD_UNSPECIFIED, DEFAULT, CUSTOM_SMTP'\n enum:\n - METHOD_UNSPECIFIED\n - DEFAULT\n - CUSTOM_SMTP\n resetPasswordTemplate:\n type: object\n x-dcl-go-name: ResetPasswordTemplate\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplate\n description: Email template for reset password\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailResetPasswordTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n revertSecondFactorAdditionTemplate:\n type: object\n x-dcl-go-name: RevertSecondFactorAdditionTemplate\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplate\n description: Email template for reverting second factor addition\n emails\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailRevertSecondFactorAdditionTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n smtp:\n type: object\n x-dcl-go-name: Smtp\n x-dcl-go-type: ConfigNotificationSendEmailSmtp\n description: Use a custom SMTP relay\n properties:\n host:\n type: string\n x-dcl-go-name: Host\n description: SMTP relay host\n password:\n type: string\n x-dcl-go-name: Password\n description: SMTP relay password\n x-dcl-sensitive: true\n x-dcl-mutable-unreadable: true\n port:\n type: integer\n format: int64\n x-dcl-go-name: Port\n description: SMTP relay port\n securityMode:\n type: string\n x-dcl-go-name: SecurityMode\n x-dcl-go-type: ConfigNotificationSendEmailSmtpSecurityModeEnum\n description: 'SMTP security mode. Possible values: SECURITY_MODE_UNSPECIFIED,\n SSL, START_TLS'\n enum:\n - SECURITY_MODE_UNSPECIFIED\n - SSL\n - START_TLS\n senderEmail:\n type: string\n x-dcl-go-name: SenderEmail\n description: Sender email for the SMTP relay\n username:\n type: string\n x-dcl-go-name: Username\n description: SMTP relay username\n verifyEmailTemplate:\n type: object\n x-dcl-go-name: VerifyEmailTemplate\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplate\n description: Email template for verify email\n properties:\n body:\n type: string\n x-dcl-go-name: Body\n description: Email body\n x-kubernetes-immutable: true\n bodyFormat:\n type: string\n x-dcl-go-name: BodyFormat\n x-dcl-go-type: ConfigNotificationSendEmailVerifyEmailTemplateBodyFormatEnum\n description: 'Email body format Possible values: BODY_FORMAT_UNSPECIFIED,\n PLAIN_TEXT, HTML'\n enum:\n - BODY_FORMAT_UNSPECIFIED\n - PLAIN_TEXT\n - HTML\n customized:\n type: boolean\n x-dcl-go-name: Customized\n readOnly: true\n description: Output only. Whether the body or subject of the\n email is customized.\n x-kubernetes-immutable: true\n replyTo:\n type: string\n x-dcl-go-name: ReplyTo\n description: Reply-to address\n senderDisplayName:\n type: string\n x-dcl-go-name: SenderDisplayName\n description: Sender display name\n senderLocalPart:\n type: string\n x-dcl-go-name: SenderLocalPart\n description: Local part of From address\n subject:\n type: string\n x-dcl-go-name: Subject\n description: Subject of the email\n sendSms:\n type: object\n x-dcl-go-name: SendSms\n x-dcl-go-type: ConfigNotificationSendSms\n description: Options for SMS sending.\n properties:\n smsTemplate:\n type: object\n x-dcl-go-name: SmsTemplate\n x-dcl-go-type: ConfigNotificationSendSmsSmsTemplate\n readOnly: true\n description: Output only. The template to use when sending an SMS.\n x-kubernetes-immutable: true\n properties:\n content:\n type: string\n x-dcl-go-name: Content\n readOnly: true\n description: 'Output only. The SMS''s content. Can contain the\n following placeholders which will be replaced with the appropriate\n values: %APP_NAME% - For Android or iOS apps, the app''s display\n name. For web apps, the domain hosting the application. %LOGIN_CODE%\n - The OOB code being sent in the SMS.'\n x-kubernetes-immutable: true\n useDeviceLocale:\n type: boolean\n x-dcl-go-name: UseDeviceLocale\n description: Whether to use the accept_language header for SMS.\n project:\n type: string\n x-dcl-go-name: Project\n description: The project of the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n quota:\n type: object\n x-dcl-go-name: Quota\n x-dcl-go-type: ConfigQuota\n description: Configuration related to quotas.\n x-dcl-server-default: true\n properties:\n signUpQuotaConfig:\n type: object\n x-dcl-go-name: SignUpQuotaConfig\n x-dcl-go-type: ConfigQuotaSignUpQuotaConfig\n description: Quota for the Signup endpoint, if overwritten. Signup quota\n is measured in sign ups per project per hour per IP.\n properties:\n quota:\n type: integer\n format: int64\n x-dcl-go-name: Quota\n description: Corresponds to the 'refill_token_count' field in QuotaServer\n config\n quotaDuration:\n type: string\n x-dcl-go-name: QuotaDuration\n description: How long this quota will be active for\n startTime:\n type: string\n format: date-time\n x-dcl-go-name: StartTime\n description: When this quota will take affect\n signIn:\n type: object\n x-dcl-go-name: SignIn\n x-dcl-go-type: ConfigSignIn\n description: Configuration related to local sign in methods.\n x-dcl-server-default: true\n properties:\n allowDuplicateEmails:\n type: boolean\n x-dcl-go-name: AllowDuplicateEmails\n description: Whether to allow more than one account to have the same\n email.\n anonymous:\n type: object\n x-dcl-go-name: Anonymous\n x-dcl-go-type: ConfigSignInAnonymous\n description: Configuration options related to authenticating an anonymous\n user.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether anonymous user auth is enabled for the project\n or not.\n email:\n type: object\n x-dcl-go-name: Email\n x-dcl-go-type: ConfigSignInEmail\n description: Configuration options related to authenticating a user\n by their email address.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether email auth is enabled for the project or not.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInEmailHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInEmailHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms\n used in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5,\n HMAC_SHA512, SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512,\n STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n See https://tools.ietf.org/html/rfc7914 for explanation of\n field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n passwordRequired:\n type: boolean\n x-dcl-go-name: PasswordRequired\n description: Whether a password is required for email auth or not.\n If true, both an email and password must be provided to sign in.\n If false, a user may sign in via either email/password or email\n link.\n hashConfig:\n type: object\n x-dcl-go-name: HashConfig\n x-dcl-go-type: ConfigSignInHashConfig\n readOnly: true\n description: Output only. Hash config information.\n properties:\n algorithm:\n type: string\n x-dcl-go-name: Algorithm\n x-dcl-go-type: ConfigSignInHashConfigAlgorithmEnum\n readOnly: true\n description: 'Output only. Different password hash algorithms used\n in Identity Toolkit. Possible values: HASH_ALGORITHM_UNSPECIFIED,\n HMAC_SHA256, HMAC_SHA1, HMAC_MD5, SCRYPT, PBKDF_SHA1, MD5, HMAC_SHA512,\n SHA1, BCRYPT, PBKDF2_SHA256, SHA256, SHA512, STANDARD_SCRYPT'\n enum:\n - HASH_ALGORITHM_UNSPECIFIED\n - HMAC_SHA256\n - HMAC_SHA1\n - HMAC_MD5\n - SCRYPT\n - PBKDF_SHA1\n - MD5\n - HMAC_SHA512\n - SHA1\n - BCRYPT\n - PBKDF2_SHA256\n - SHA256\n - SHA512\n - STANDARD_SCRYPT\n memoryCost:\n type: integer\n format: int64\n x-dcl-go-name: MemoryCost\n readOnly: true\n description: Output only. Memory cost for hash calculation. Used\n by scrypt and other similar password derivation algorithms. See\n https://tools.ietf.org/html/rfc7914 for explanation of field.\n rounds:\n type: integer\n format: int64\n x-dcl-go-name: Rounds\n readOnly: true\n description: Output only. How many rounds for hash calculation.\n Used by scrypt and other similar password derivation algorithms.\n saltSeparator:\n type: string\n x-dcl-go-name: SaltSeparator\n readOnly: true\n description: Output only. Non-printable character to be inserted\n between the salt and plain text password in base64.\n signerKey:\n type: string\n x-dcl-go-name: SignerKey\n readOnly: true\n description: Output only. Signer key in base64.\n x-dcl-sensitive: true\n phoneNumber:\n type: object\n x-dcl-go-name: PhoneNumber\n x-dcl-go-type: ConfigSignInPhoneNumber\n description: Configuration options related to authenticated a user by\n their phone number.\n properties:\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: Whether phone number auth is enabled for the project\n or not.\n testPhoneNumbers:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: TestPhoneNumbers\n description: A map of that can be used for phone auth testing.\n subtype:\n type: string\n x-dcl-go-name: Subtype\n x-dcl-go-type: ConfigSubtypeEnum\n readOnly: true\n description: 'Output only. The subtype of this config. Possible values:\n SUBTYPE_UNSPECIFIED, IDENTITY_PLATFORM, FIREBASE_AUTH'\n x-kubernetes-immutable: true\n enum:\n - SUBTYPE_UNSPECIFIED\n - IDENTITY_PLATFORM\n - FIREBASE_AUTH\n") -// 31172 bytes -// MD5: 1eea333043a6f315af69c2619f97c26f +// 31505 bytes +// MD5: 7f27205ca03fa5b4c1f98bb2aa69e81a diff --git a/services/google/identitytoolkit/oauth_idp_config.yaml b/services/google/identitytoolkit/oauth_idp_config.yaml index f03c6d2f2e..b1a2e2a257 100755 --- a/services/google/identitytoolkit/oauth_idp_config.yaml +++ b/services/google/identitytoolkit/oauth_idp_config.yaml @@ -106,6 +106,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/oauth_idp_config_schema.go b/services/google/identitytoolkit/oauth_idp_config_schema.go index b008d22c62..93a0897399 100755 --- a/services/google/identitytoolkit/oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/oauth_idp_config_schema.go @@ -138,10 +138,11 @@ func DCLOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "OAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "OAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/oauth_idp_config_yaml_embed.go b/services/google/identitytoolkit/oauth_idp_config_yaml_embed.go index cea899471d..0018864fec 100755 --- a/services/google/identitytoolkit/oauth_idp_config_yaml_embed.go +++ b/services/google/identitytoolkit/oauth_idp_config_yaml_embed.go @@ -17,7 +17,7 @@ package identitytoolkit // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/oauth_idp_config.yaml -var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") +var YAML_oauth_idp_config = []byte("info:\n title: IdentityToolkit/OAuthIdpConfig\n description: The IdentityToolkit OAuthIdpConfig resource\n x-dcl-struct-name: OAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n apply:\n description: The function used to apply information about a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n delete:\n description: The function used to delete a OAuthIdpConfig\n parameters:\n - name: OAuthIdpConfig\n required: true\n description: A full instance of a OAuthIdpConfig\n deleteAll:\n description: The function used to delete all OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many OAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n OAuthIdpConfig:\n title: OAuthIdpConfig\n x-dcl-id: projects/{{project}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: OAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n") -// 3640 bytes -// MD5: c7f5a027cf3b3de1eb3722cc9025fe6c +// 3677 bytes +// MD5: ff9298aed26ff581f32846c1cc373801 diff --git a/services/google/identitytoolkit/tenant_oauth_idp_config.yaml b/services/google/identitytoolkit/tenant_oauth_idp_config.yaml index 9e09abe8f3..86939f2588 100755 --- a/services/google/identitytoolkit/tenant_oauth_idp_config.yaml +++ b/services/google/identitytoolkit/tenant_oauth_idp_config.yaml @@ -115,6 +115,7 @@ components: description: 'The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\_token, token}).' + x-dcl-server-default: true properties: code: type: boolean diff --git a/services/google/identitytoolkit/tenant_oauth_idp_config_schema.go b/services/google/identitytoolkit/tenant_oauth_idp_config_schema.go index 9d74cf6db5..7e3a3722b8 100755 --- a/services/google/identitytoolkit/tenant_oauth_idp_config_schema.go +++ b/services/google/identitytoolkit/tenant_oauth_idp_config_schema.go @@ -153,10 +153,11 @@ func DCLTenantOAuthIdpConfigSchema() *dcl.Schema { }, }, "responseType": &dcl.Property{ - Type: "object", - GoName: "ResponseType", - GoType: "TenantOAuthIdpConfigResponseType", - Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + Type: "object", + GoName: "ResponseType", + GoType: "TenantOAuthIdpConfigResponseType", + Description: "The multiple response type to request for in the OAuth authorization flow. This can possibly be a combination of set bits (e.g.: {id\\_token, token}).", + ServerDefault: true, Properties: map[string]*dcl.Property{ "code": &dcl.Property{ Type: "boolean", diff --git a/services/google/identitytoolkit/tenant_oauth_idp_config_yaml_embed.go b/services/google/identitytoolkit/tenant_oauth_idp_config_yaml_embed.go index 28fd0608fe..8fd548d25b 100755 --- a/services/google/identitytoolkit/tenant_oauth_idp_config_yaml_embed.go +++ b/services/google/identitytoolkit/tenant_oauth_idp_config_yaml_embed.go @@ -17,7 +17,7 @@ package identitytoolkit // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/identitytoolkit/tenant_oauth_idp_config.yaml -var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") +var YAML_tenant_oauth_idp_config = []byte("info:\n title: IdentityToolkit/TenantOAuthIdpConfig\n description: The IdentityToolkit TenantOAuthIdpConfig resource\n x-dcl-struct-name: TenantOAuthIdpConfig\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n apply:\n description: The function used to apply information about a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n delete:\n description: The function used to delete a TenantOAuthIdpConfig\n parameters:\n - name: TenantOAuthIdpConfig\n required: true\n description: A full instance of a TenantOAuthIdpConfig\n deleteAll:\n description: The function used to delete all TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many TenantOAuthIdpConfig\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: tenant\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n TenantOAuthIdpConfig:\n title: TenantOAuthIdpConfig\n x-dcl-id: projects/{{project}}/tenants/{{tenant}}/oauthIdpConfigs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - project\n - tenant\n properties:\n clientId:\n type: string\n x-dcl-go-name: ClientId\n description: The client id of an OAuth client.\n clientSecret:\n type: string\n x-dcl-go-name: ClientSecret\n description: The client secret of the OAuth client, to enable OIDC code\n flow.\n x-dcl-sensitive: true\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: The config's display name set by developers.\n enabled:\n type: boolean\n x-dcl-go-name: Enabled\n description: True if allows the user to sign in with the provider.\n issuer:\n type: string\n x-dcl-go-name: Issuer\n description: For OIDC Idps, the issuer identifier.\n name:\n type: string\n x-dcl-go-name: Name\n description: The name of the Config resource\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n responseType:\n type: object\n x-dcl-go-name: ResponseType\n x-dcl-go-type: TenantOAuthIdpConfigResponseType\n description: 'The multiple response type to request for in the OAuth authorization\n flow. This can possibly be a combination of set bits (e.g.: {id\\_token,\n token}).'\n x-dcl-server-default: true\n properties:\n code:\n type: boolean\n x-dcl-go-name: Code\n description: If true, authorization code is returned from IdP's authorization\n endpoint.\n idToken:\n type: boolean\n x-dcl-go-name: IdToken\n description: If true, ID token is returned from IdP's authorization\n endpoint.\n token:\n type: boolean\n x-dcl-go-name: Token\n description: If true, access token is returned from IdP's authorization\n endpoint.\n tenant:\n type: string\n x-dcl-go-name: Tenant\n description: The tenant for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Identitytoolkit/Tenant\n field: name\n parent: true\n") -// 4209 bytes -// MD5: 84dddee2bf3fc305d724638e6a6ef370 +// 4246 bytes +// MD5: 4c38dd0cb76f670037c071d64fe142d4 diff --git a/services/google/logging/alpha/log_metric.yaml b/services/google/logging/alpha/log_metric.yaml index 96c5785e9b..cb8575b0ab 100755 --- a/services/google/logging/alpha/log_metric.yaml +++ b/services/google/logging/alpha/log_metric.yaml @@ -386,6 +386,7 @@ components: contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means "3 percent").' + x-dcl-server-default: true valueType: type: string x-dcl-go-name: ValueType diff --git a/services/google/logging/alpha/log_metric_alpha_yaml_embed.go b/services/google/logging/alpha/log_metric_alpha_yaml_embed.go index 7af63bca48..de92a82734 100755 --- a/services/google/logging/alpha/log_metric_alpha_yaml_embed.go +++ b/services/google/logging/alpha/log_metric_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/alpha/log_metric.yaml -var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") +var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n x-dcl-server-default: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") -// 22059 bytes -// MD5: c3404550568b8db8f3aa1969ac4367e5 +// 22100 bytes +// MD5: 0865f39622fed7a64385bb18705955f8 diff --git a/services/google/logging/alpha/log_metric_schema.go b/services/google/logging/alpha/log_metric_schema.go index 6f848ef053..7fc617a037 100755 --- a/services/google/logging/alpha/log_metric_schema.go +++ b/services/google/logging/alpha/log_metric_schema.go @@ -350,9 +350,10 @@ func DCLLogMetricSchema() *dcl.Schema { Immutable: true, }, "unit": &dcl.Property{ - Type: "string", - GoName: "Unit", - Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + Type: "string", + GoName: "Unit", + Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + ServerDefault: true, }, "valueType": &dcl.Property{ Type: "string", diff --git a/services/google/logging/beta/log_metric.yaml b/services/google/logging/beta/log_metric.yaml index 96c5785e9b..cb8575b0ab 100755 --- a/services/google/logging/beta/log_metric.yaml +++ b/services/google/logging/beta/log_metric.yaml @@ -386,6 +386,7 @@ components: contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means "3 percent").' + x-dcl-server-default: true valueType: type: string x-dcl-go-name: ValueType diff --git a/services/google/logging/beta/log_metric_beta_yaml_embed.go b/services/google/logging/beta/log_metric_beta_yaml_embed.go index 86caba0a2e..93690164d4 100755 --- a/services/google/logging/beta/log_metric_beta_yaml_embed.go +++ b/services/google/logging/beta/log_metric_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/beta/log_metric.yaml -var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") +var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n x-dcl-server-default: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") -// 22059 bytes -// MD5: c3404550568b8db8f3aa1969ac4367e5 +// 22100 bytes +// MD5: 0865f39622fed7a64385bb18705955f8 diff --git a/services/google/logging/beta/log_metric_schema.go b/services/google/logging/beta/log_metric_schema.go index 7912b5eeb7..6008c2220c 100755 --- a/services/google/logging/beta/log_metric_schema.go +++ b/services/google/logging/beta/log_metric_schema.go @@ -350,9 +350,10 @@ func DCLLogMetricSchema() *dcl.Schema { Immutable: true, }, "unit": &dcl.Property{ - Type: "string", - GoName: "Unit", - Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + Type: "string", + GoName: "Unit", + Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + ServerDefault: true, }, "valueType": &dcl.Property{ Type: "string", diff --git a/services/google/logging/log_metric.yaml b/services/google/logging/log_metric.yaml index 96c5785e9b..cb8575b0ab 100755 --- a/services/google/logging/log_metric.yaml +++ b/services/google/logging/log_metric.yaml @@ -386,6 +386,7 @@ components: contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means "3 percent").' + x-dcl-server-default: true valueType: type: string x-dcl-go-name: ValueType diff --git a/services/google/logging/log_metric_schema.go b/services/google/logging/log_metric_schema.go index cca7f16504..35457cd7a7 100755 --- a/services/google/logging/log_metric_schema.go +++ b/services/google/logging/log_metric_schema.go @@ -350,9 +350,10 @@ func DCLLogMetricSchema() *dcl.Schema { Immutable: true, }, "unit": &dcl.Property{ - Type: "string", - GoName: "Unit", - Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + Type: "string", + GoName: "Unit", + Description: "The units in which the metric value is reported. It is only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored metric values. Different systems might scale the values to be more easily displayed (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is `kBy`, then the value of the metric is always in thousands of bytes, no matter how it might be displayed. If you want a custom metric to record the exact number of CPU-seconds used by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`. Alternatively, if you want a custom metric to record data in a more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). The supported units are a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12) * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9) * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z` zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar** The grammar also includes these connectors: * `/` division or ratio (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms` (although you should almost never have `/s` in a metric `unit`; rates should always be computed at query time from the underlying cumulative or delta value). * `.` multiplication or composition (as an infix operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a unit is as follows: Expression = Component: { \".\" Component } { \"/\" Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ] | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation` is just a comment if it follows a `UNIT`. If the annotation is used alone, then the unit is equivalent to `1`. For examples, `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not containing `{` or `}`. * `1` represents a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such as in `1/s`. It is typically used when none of the basic units are appropriate. For example, \"new users per day\" can be represented as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5 new users). Alternatively, \"thousands of page views per day\" would be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric value of `5.3` would mean \"5300 page views per day\"). * `%` represents dimensionless value of 1/100, and annotates values giving a percentage (so the metric values are typically in the range of 0..100, and a metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric contains a ratio, typically in the range 0..1, that will be multiplied by 100 and displayed as a percentage (so a metric value `0.03` means \"3 percent\").", + ServerDefault: true, }, "valueType": &dcl.Property{ Type: "string", diff --git a/services/google/logging/log_metric_yaml_embed.go b/services/google/logging/log_metric_yaml_embed.go index 1fb57652ac..368b9efc02 100755 --- a/services/google/logging/log_metric_yaml_embed.go +++ b/services/google/logging/log_metric_yaml_embed.go @@ -17,7 +17,7 @@ package logging // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/logging/log_metric.yaml -var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") +var YAML_log_metric = []byte("info:\n title: Logging/LogMetric\n description: The Logging LogMetric resource\n x-dcl-struct-name: LogMetric\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n apply:\n description: The function used to apply information about a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n delete:\n description: The function used to delete a LogMetric\n parameters:\n - name: LogMetric\n required: true\n description: A full instance of a LogMetric\n deleteAll:\n description: The function used to delete all LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many LogMetric\n parameters:\n - name: project\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n LogMetric:\n title: LogMetric\n x-dcl-id: projects/{{project}}/metrics/{{name}}\n x-dcl-uses-state-hint: true\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - filter\n - project\n properties:\n bucketOptions:\n type: object\n x-dcl-go-name: BucketOptions\n x-dcl-go-type: LogMetricBucketOptions\n description: Optional. The `bucket_options` are required when the logs-based\n metric is using a DISTRIBUTION value type and it describes the bucket\n boundaries used to create a histogram of the extracted values.\n properties:\n explicitBuckets:\n type: object\n x-dcl-go-name: ExplicitBuckets\n x-dcl-go-type: LogMetricBucketOptionsExplicitBuckets\n description: The explicit buckets.\n x-dcl-conflicts:\n - linearBuckets\n - exponentialBuckets\n properties:\n bounds:\n type: array\n x-dcl-go-name: Bounds\n description: The values must be monotonically increasing.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: number\n format: double\n x-dcl-go-type: float64\n exponentialBuckets:\n type: object\n x-dcl-go-name: ExponentialBuckets\n x-dcl-go-type: LogMetricBucketOptionsExponentialBuckets\n description: The exponential buckets.\n x-dcl-conflicts:\n - linearBuckets\n - explicitBuckets\n properties:\n growthFactor:\n type: number\n format: double\n x-dcl-go-name: GrowthFactor\n description: Must be greater than 1.\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n scale:\n type: number\n format: double\n x-dcl-go-name: Scale\n description: Must be greater than 0.\n linearBuckets:\n type: object\n x-dcl-go-name: LinearBuckets\n x-dcl-go-type: LogMetricBucketOptionsLinearBuckets\n description: The linear bucket.\n x-dcl-conflicts:\n - exponentialBuckets\n - explicitBuckets\n properties:\n numFiniteBuckets:\n type: integer\n format: int64\n x-dcl-go-name: NumFiniteBuckets\n description: Must be greater than 0.\n offset:\n type: number\n format: double\n x-dcl-go-name: Offset\n description: Lower bound of the first bucket.\n width:\n type: number\n format: double\n x-dcl-go-name: Width\n description: Must be greater than 0.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation timestamp of the metric. This field\n may not be present for older metrics.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: Optional. A description of this metric, which is used in documentation.\n The maximum length of the description is 8000 characters.\n disabled:\n type: boolean\n x-dcl-go-name: Disabled\n description: Optional. If set to True, then this metric is disabled and\n it does not generate any points.\n filter:\n type: string\n x-dcl-go-name: Filter\n description: 'Required. An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters)\n which is used to match log entries. Example: \"resource.type=gae_app AND\n severity>=ERROR\" The maximum length of the filter is 20000 characters.'\n labelExtractors:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: LabelExtractors\n description: Optional. A map from a label key string to an extractor expression\n which is used to extract data from a log entry field and assign as the\n label value. Each label key specified in the LabelDescriptor must have\n an associated extractor expression in this map. The syntax of the extractor\n expression is the same as for the `value_extractor` field. The extracted\n value is converted to the type defined in the label descriptor. If the\n either the extraction or the type conversion fails, the label will have\n a default value. The default value for a string label is an empty string,\n for an integer label its 0, and for a boolean label its `false`. Note\n that there are upper bounds on the maximum number of labels and the number\n of active time series that are allowed in a project.\n metricDescriptor:\n type: object\n x-dcl-go-name: MetricDescriptor\n x-dcl-go-type: LogMetricMetricDescriptor\n description: Optional. The metric descriptor associated with the logs-based\n metric. If unspecified, it uses a default metric descriptor with a DELTA\n metric kind, INT64 value type, with no labels and a unit of \"1\". Such\n a metric counts the number of log entries matching the `filter` expression.\n The `name`, `type`, and `description` fields in the `metric_descriptor`\n are output only, and is constructed using the `name` and `description`\n field in the LogMetric. To create a logs-based metric that records a distribution\n of log values, a DELTA metric kind with a DISTRIBUTION value type must\n be used along with a `value_extractor` expression in the LogMetric. Each\n label in the metric descriptor must have a matching label name as the\n key and an extractor expression as the value in the `label_extractors`\n map. The `metric_kind` and `value_type` fields in the `metric_descriptor`\n cannot be updated once initially configured. New labels can be added in\n the `metric_descriptor`, but existing labels cannot be modified except\n for their description.\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n readOnly: true\n description: A detailed description of the metric, which can be used\n in documentation.\n displayName:\n type: string\n x-dcl-go-name: DisplayName\n description: A concise name for the metric, which can be displayed in\n user interfaces. Use sentence case without an ending period, for example\n \"Request count\". This field is optional but it is recommended to be\n set for any metrics associated with user-visible concepts, such as\n Quota.\n labels:\n type: array\n x-dcl-go-name: Labels\n description: The set of labels that can be used to describe a specific\n instance of this metric type. For example, the `appengine.googleapis.com/http/server/response_latencies`\n metric type has a label for the HTTP response code, `response_code`,\n so you can look at latencies for successful responses or just for\n responses that failed.\n x-dcl-send-empty: true\n x-dcl-list-type: set\n items:\n type: object\n x-dcl-go-type: LogMetricMetricDescriptorLabels\n properties:\n description:\n type: string\n x-dcl-go-name: Description\n description: A human-readable description for the label.\n x-kubernetes-immutable: true\n key:\n type: string\n x-dcl-go-name: Key\n description: The label key.\n x-kubernetes-immutable: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorLabelsValueTypeEnum\n description: 'The type of data that can be assigned to the label.\n Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: LogMetricMetricDescriptorLaunchStageEnum\n description: 'Optional. The launch stage of the metric definition. Possible\n values: UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED'\n enum:\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n x-dcl-mutable-unreadable: true\n metadata:\n type: object\n x-dcl-go-name: Metadata\n x-dcl-go-type: LogMetricMetricDescriptorMetadata\n description: Optional. Metadata which can be used to guide usage of\n the metric.\n x-dcl-mutable-unreadable: true\n properties:\n ingestDelay:\n type: string\n x-dcl-go-name: IngestDelay\n description: The delay of data points caused by ingestion. Data\n points older than this age are guaranteed to be ingested and available\n to be read, excluding data loss due to errors.\n samplePeriod:\n type: string\n x-dcl-go-name: SamplePeriod\n description: The sampling period of metric data points. For metrics\n which are written periodically, consecutive data points are stored\n at this time interval, excluding data loss due to errors. Metrics\n with a higher granularity have a smaller sampling period.\n metricKind:\n type: string\n x-dcl-go-name: MetricKind\n x-dcl-go-type: LogMetricMetricDescriptorMetricKindEnum\n description: 'Whether the metric records instantaneous values, changes\n to a value, etc. Some combinations of `metric_kind` and `value_type`\n might not be supported. Possible values: GAUGE, DELTA, CUMULATIVE'\n x-kubernetes-immutable: true\n enum:\n - GAUGE\n - DELTA\n - CUMULATIVE\n monitoredResourceTypes:\n type: array\n x-dcl-go-name: MonitoredResourceTypes\n readOnly: true\n description: Read-only. If present, then a time series, which is identified\n partially by a metric type and a MonitoredResourceDescriptor, that\n is associated with this metric type can only be associated with one\n of the monitored resource types listed here.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n readOnly: true\n description: The resource name of the metric descriptor.\n x-kubernetes-immutable: true\n type:\n type: string\n x-dcl-go-name: Type\n readOnly: true\n description: 'The metric type, including its DNS name prefix. The type\n is not URL-encoded. All user-defined metric types have the DNS name\n `custom.googleapis.com` or `external.googleapis.com`. Metric types\n should use a natural hierarchical grouping. For example: \"custom.googleapis.com/invoice/paid/amount\"\n \"external.googleapis.com/prometheus/up\" \"appengine.googleapis.com/http/server/response_latencies\"'\n x-kubernetes-immutable: true\n unit:\n type: string\n x-dcl-go-name: Unit\n description: 'The units in which the metric value is reported. It is\n only applicable if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`.\n The `unit` defines the representation of the stored metric values.\n Different systems might scale the values to be more easily displayed\n (so a value of `0.02kBy` _might_ be displayed as `20By`, and a value\n of `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit`\n is `kBy`, then the value of the metric is always in thousands of bytes,\n no matter how it might be displayed. If you want a custom metric to\n record the exact number of CPU-seconds used by a job, you can create\n an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently\n `1s{CPU}` or just `s`). If the job uses 12,005 CPU-seconds, then the\n value is written as `12005`. Alternatively, if you want a custom metric\n to record data in a more granular way, you can create a `DOUBLE CUMULATIVE`\n metric whose `unit` is `ks{CPU}`, and then write the value `12.005`\n (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which\n is `12005/1024`). The supported units are a subset of [The Unified\n Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard:\n **Basic units (UNIT)** * `bit` bit * `By` byte * `s` second * `min`\n minute * `h` hour * `d` day * `1` dimensionless **Prefixes (PREFIX)**\n * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^12)\n * `P` peta (10^15) * `E` exa (10^18) * `Z` zetta (10^21) * `Y` yotta\n (10^24) * `m` milli (10^-3) * `u` micro (10^-6) * `n` nano (10^-9)\n * `p` pico (10^-12) * `f` femto (10^-15) * `a` atto (10^-18) * `z`\n zepto (10^-21) * `y` yocto (10^-24) * `Ki` kibi (2^10) * `Mi` mebi\n (2^20) * `Gi` gibi (2^30) * `Ti` tebi (2^40) * `Pi` pebi (2^50) **Grammar**\n The grammar also includes these connectors: * `/` division or ratio\n (as an infix operator). For examples, `kBy/{email}` or `MiBy/10ms`\n (although you should almost never have `/s` in a metric `unit`; rates\n should always be computed at query time from the underlying cumulative\n or delta value). * `.` multiplication or composition (as an infix\n operator). For examples, `GBy.d` or `k{watt}.h`. The grammar for a\n unit is as follows: Expression = Component: { \".\" Component } { \"/\"\n Component } ; Component = ( [ PREFIX ] UNIT | \"%\" ) [ Annotation ]\n | Annotation | \"1\" ; Annotation = \"{\" NAME \"}\" ; Notes: * `Annotation`\n is just a comment if it follows a `UNIT`. If the annotation is used\n alone, then the unit is equivalent to `1`. For examples, `{request}/s\n == 1/s`, `By{transmitted}/s == By/s`. * `NAME` is a sequence of non-blank\n printable ASCII characters not containing `{` or `}`. * `1` represents\n a unitary [dimensionless unit](https://en.wikipedia.org/wiki/Dimensionless_quantity)\n of 1, such as in `1/s`. It is typically used when none of the basic\n units are appropriate. For example, \"new users per day\" can be represented\n as `1/d` or `{new-users}/d` (and a metric value `5` would mean \"5\n new users). Alternatively, \"thousands of page views per day\" would\n be represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric\n value of `5.3` would mean \"5300 page views per day\"). * `%` represents\n dimensionless value of 1/100, and annotates values giving a percentage\n (so the metric values are typically in the range of 0..100, and a\n metric value `3` means \"3 percent\"). * `10^2.%` indicates a metric\n contains a ratio, typically in the range 0..1, that will be multiplied\n by 100 and displayed as a percentage (so a metric value `0.03` means\n \"3 percent\").'\n x-dcl-server-default: true\n valueType:\n type: string\n x-dcl-go-name: ValueType\n x-dcl-go-type: LogMetricMetricDescriptorValueTypeEnum\n description: 'Whether the measurement is an integer, a floating-point\n number, etc. Some combinations of `metric_kind` and `value_type` might\n not be supported. Possible values: STRING, BOOL, INT64, DOUBLE, DISTRIBUTION,\n MONEY'\n x-kubernetes-immutable: true\n enum:\n - STRING\n - BOOL\n - INT64\n - DOUBLE\n - DISTRIBUTION\n - MONEY\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Required. The client-assigned metric identifier. Examples:\n `\"error_count\"`, `\"nginx/requests\"`. Metric identifiers are limited to\n 100 characters and can include only the following characters: `A-Z`, `a-z`,\n `0-9`, and the special characters `_-.,+!*'',()%/`. The forward-slash\n character (`/`) denotes a hierarchy of name pieces, and it cannot be the\n first character of the name. The metric identifier in this field must\n not be [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).\n However, when the metric identifier appears as the `[METRIC_ID]` part\n of a `metric_name` API parameter, then the metric identifier must be URL-encoded.\n Example: `\"projects/my-project/metrics/nginx%2Frequests\"`.'\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The resource name of the project in which to create the metric.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last update timestamp of the metric. This\n field may not be present for older metrics.\n x-kubernetes-immutable: true\n valueExtractor:\n type: string\n x-dcl-go-name: ValueExtractor\n description: 'Optional. A `value_extractor` is required when using a distribution\n logs-based metric to extract the values to record from a log entry. Two\n functions are supported for value extraction: `EXTRACT(field)` or `REGEXP_EXTRACT(field,\n regex)`. The argument are: 1. field: The name of the log entry field from\n which the value is to be extracted. 2. regex: A regular expression using\n the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with\n a single capture group to extract data from the specified log entry field.\n The value of the field is converted to a string before applying the regex.\n It is an error to specify a regex that does not include exactly one capture\n group. The result of the extraction must be convertible to a double type,\n as the distribution always records double values. If either the extraction\n or the conversion to double fails, then those values are not recorded\n in the distribution. Example: `REGEXP_EXTRACT(jsonPayload.request, \".*quantity=(d+).*\")`'\n") -// 22059 bytes -// MD5: c3404550568b8db8f3aa1969ac4367e5 +// 22100 bytes +// MD5: 0865f39622fed7a64385bb18705955f8 diff --git a/services/google/run/alpha/job.yaml b/services/google/run/alpha/job.yaml index f8e5fd05d2..6c7a38765b 100755 --- a/services/google/run/alpha/job.yaml +++ b/services/google/run/alpha/job.yaml @@ -671,6 +671,7 @@ components: description: 'The execution environment being used to host this Task. Possible values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_DEFAULT, EXECUTION_ENVIRONMENT_GEN2' + x-dcl-server-default: true enum: - EXECUTION_ENVIRONMENT_UNSPECIFIED - EXECUTION_ENVIRONMENT_DEFAULT @@ -681,6 +682,7 @@ components: x-dcl-go-name: MaxRetries description: Number of retries allowed per Task, before marking this Task failed. + x-dcl-server-default: true serviceAccount: type: string x-dcl-go-name: ServiceAccount diff --git a/services/google/run/alpha/job_alpha_yaml_embed.go b/services/google/run/alpha/job_alpha_yaml_embed.go index d88cfa4e69..c090e30253 100755 --- a/services/google/run/alpha/job_alpha_yaml_embed.go +++ b/services/google/run/alpha/job_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/run/alpha/job.yaml -var YAML_job = []byte("info:\n title: Run/Job\n description: The Run Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - template\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: 'KRM-style annotations for the resource. Unstructured key value\n map that may be set by external tools to store and arbitrary metadata.\n They are not queryable and should be preserved when modifying objects.\n Cloud Run will populate some annotations using ''run.googleapis.com''\n or ''serving.knative.dev'' namespaces. This field follows Kubernetes annotations''\n namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations'\n binaryAuthorization:\n type: object\n x-dcl-go-name: BinaryAuthorization\n x-dcl-go-type: JobBinaryAuthorization\n description: Settings for the Binary Authorization feature.\n properties:\n breakglassJustification:\n type: string\n x-dcl-go-name: BreakglassJustification\n description: If present, indicates to use Breakglass using this justification.\n If use_default is False, then it must be empty. For more information\n on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass\n useDefault:\n type: boolean\n x-dcl-go-name: UseDefault\n description: If True, indicates to use the default project's binary\n authorization policy. If False, binary authorization will be disabled.\n client:\n type: string\n x-dcl-go-name: Client\n description: Arbitrary identifier for the API client.\n clientVersion:\n type: string\n x-dcl-go-name: ClientVersion\n description: Arbitrary version identifier for the API client.\n conditions:\n type: array\n x-dcl-go-name: Conditions\n readOnly: true\n description: Output only. The Conditions of all other associated sub-resources.\n They contain additional diagnostics information in case the Job does not\n reach its desired state. See comments in `reconciling` for additional\n information on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobConditions\n properties:\n executionReason:\n type: string\n x-dcl-go-name: ExecutionReason\n x-dcl-go-type: JobConditionsExecutionReasonEnum\n description: 'A reason for the execution condition. Possible values:\n EXECUTION_REASON_UNDEFINED, JOB_STATUS_SERVICE_POLLING_ERROR, NON_ZERO_EXIT_CODE'\n x-dcl-conflicts:\n - reason\n - revisionReason\n enum:\n - EXECUTION_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n - NON_ZERO_EXIT_CODE\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status\n to another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: JobConditionsReasonEnum\n description: 'A common (service-level) reason for this condition.\n Possible values: COMMON_REASON_UNDEFINED, UNKNOWN, REVISION_FAILED,\n PROGRESS_DEADLINE_EXCEEDED, BUILD_STEP_FAILED, CONTAINER_MISSING,\n CONTAINER_PERMISSION_DENIED, CONTAINER_IMAGE_UNAUTHORIZED, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED,\n ENCRYPTION_KEY_PERMISSION_DENIED, ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED,\n WAITING_FOR_OPERATION, IMMEDIATE_RETRY, POSTPONED_RETRY'\n x-dcl-conflicts:\n - revisionReason\n - executionReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - BUILD_STEP_FAILED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: JobConditionsRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING,\n RECREATING, HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING,\n MIN_INSTANCES_NOT_PROVISIONED, ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT,\n HEALTH_CHECK_SKIPPED'\n x-dcl-conflicts:\n - reason\n - executionReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n - HEALTH_CHECK_SKIPPED\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: JobConditionsSeverityEnum\n description: 'How to interpret failures of this condition, one of\n Error, Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR,\n WARNING, INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobConditionsStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the\n Resource is ready.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation time.\n x-kubernetes-immutable: true\n creator:\n type: string\n x-dcl-go-name: Creator\n readOnly: true\n description: Output only. Email address of the authenticated creator.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. The deletion time.\n x-kubernetes-immutable: true\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A system-generated fingerprint for this version\n of the resource. May be used to detect modification conflict during updates.\n x-kubernetes-immutable: true\n executionCount:\n type: integer\n format: int64\n x-dcl-go-name: ExecutionCount\n readOnly: true\n description: Output only. Number of executions created for this job.\n x-kubernetes-immutable: true\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n readOnly: true\n description: Output only. For a deleted resource, the time after which it\n will be permamently deleted.\n x-kubernetes-immutable: true\n generation:\n type: integer\n format: int64\n x-dcl-go-name: Generation\n readOnly: true\n description: Output only. A number that monotonically increases every time\n the user modifies the desired state.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n readOnly: true\n description: KRM-style labels for the resource. User-provided labels are\n shared with Google's billing system, so they can be used to filter, or\n break down billing charges by team, component, environment, state, etc.\n For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels\n or https://cloud.google.com/run/docs/configuring/labels Cloud Run will\n populate some labels with 'run.googleapis.com' or 'serving.knative.dev'\n namespaces. Those labels are read-only, and user changes will not be preserved.\n x-kubernetes-immutable: true\n lastModifier:\n type: string\n x-dcl-go-name: LastModifier\n readOnly: true\n description: Output only. Email address of the last authenticated modifier.\n x-kubernetes-immutable: true\n latestCreatedExecution:\n type: object\n x-dcl-go-name: LatestCreatedExecution\n x-dcl-go-type: JobLatestCreatedExecution\n readOnly: true\n description: Output only. Name of the last created execution.\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n description: Creation timestamp of the execution.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the execution.\n x-dcl-references:\n - resource: Run/Execution\n field: selfLink\n parent: true\n latestSucceededExecution:\n type: object\n x-dcl-go-name: LatestSucceededExecution\n x-dcl-go-type: JobLatestSucceededExecution\n readOnly: true\n description: Output only. Name of the last succeeded execution.\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n description: Creation timestamp of the execution.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the execution.\n x-dcl-references:\n - resource: Run/Execution\n field: selfLink\n parent: true\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: JobLaunchStageEnum\n description: 'The launch stage as defined by [Google Cloud Platform Launch\n Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports\n `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Possible\n values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS,\n ALPHA, BETA, GA, DEPRECATED'\n enum:\n - LAUNCH_STAGE_UNSPECIFIED\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job}'\n observedGeneration:\n type: integer\n format: int64\n x-dcl-go-name: ObservedGeneration\n readOnly: true\n description: Output only. The generation of this Job. See comments in `reconciling`\n for additional information on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n reconciling:\n type: boolean\n x-dcl-go-name: Reconciling\n readOnly: true\n description: 'Output only. Returns true if the Job is currently being acted\n upon by the system to bring it into the desired state. When a new Job\n is created, or an existing one is updated, Cloud Run will asynchronously\n perform all necessary steps to bring the Job to the desired state. This\n process is called reconciliation. While reconciliation is in process,\n `observed_generation` and `latest_succeeded_execution`, will have transient\n values that might mismatch the intended state: Once reconciliation is\n over (and this field is false), there are two possible outcomes: reconciliation\n succeeded and the state matches the Job, or there was an error, and reconciliation\n failed. This state can be found in `terminal_condition.state`. If reconciliation\n succeeded, the following fields will match: `observed_generation` and\n `generation`, `latest_succeeded_execution` and `latest_created_execution`.\n If reconciliation failed, `observed_generation` and `latest_succeeded_execution`\n will have the state of the last succeeded execution or empty for newly\n created Job. Additional information on the failure can be found in `terminal_condition`\n and `conditions`.'\n x-kubernetes-immutable: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: JobTemplate\n description: Required. The template used to create executions for this Job.\n required:\n - template\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: KRM-style annotations for the resource.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: KRM-style labels for the resource.\n parallelism:\n type: integer\n format: int64\n x-dcl-go-name: Parallelism\n description: 'Specifies the maximum desired number of tasks the execution\n should run at any given time. Must be <= task_count. The actual number\n of tasks running in steady state will be less than this number when\n ((.spec.task_count - .status.successful) < .spec.parallelism), i.e.\n when the work left to do is less than max parallelism. More info:\n https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/'\n x-dcl-server-default: true\n taskCount:\n type: integer\n format: int64\n x-dcl-go-name: TaskCount\n description: 'Specifies the desired number of tasks the execution should\n run. Setting to 1 means that parallelism is limited to 1 and the success\n of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/'\n x-dcl-server-default: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: JobTemplateTemplate\n description: Required. Describes the task(s) that will be created when\n executing an execution.\n properties:\n containers:\n type: array\n x-dcl-go-name: Containers\n description: Holds the single container that defines the unit of\n execution for this task.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainers\n required:\n - image\n properties:\n args:\n type: array\n x-dcl-go-name: Args\n description: 'Arguments to the entrypoint. The docker image''s\n CMD is used if this is not provided. Variable references\n $(VAR_NAME) are expanded using the container''s environment.\n If a variable cannot be resolved, the reference in the input\n string will be unchanged. The $(VAR_NAME) syntax can be\n escaped with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable\n exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n command:\n type: array\n x-dcl-go-name: Command\n description: 'Entrypoint array. Not executed within a shell.\n The docker image''s ENTRYPOINT is used if this is not provided.\n Variable references $(VAR_NAME) are expanded using the container''s\n environment. If a variable cannot be resolved, the reference\n in the input string will be unchanged. The $(VAR_NAME) syntax\n can be escaped with a double $$, ie: $$(VAR_NAME). Escaped\n references will never be expanded, regardless of whether\n the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n env:\n type: array\n x-dcl-go-name: Env\n description: List of environment variables to set in the container.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersEnv\n required:\n - name\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Name of the environment variable.\n Must be a C_IDENTIFIER, and mnay not exceed 32768\n characters.\n value:\n type: string\n x-dcl-go-name: Value\n description: 'Variable references $(VAR_NAME) are expanded\n using the previous defined environment variables in\n the container and any route environment variables.\n If a variable cannot be resolved, the reference in\n the input string will be unchanged. The $(VAR_NAME)\n syntax can be escaped with a double $$, ie: $$(VAR_NAME).\n Escaped references will never be expanded, regardless\n of whether the variable exists or not. Defaults to\n \"\", and the maximum length is 32768 bytes.'\n x-dcl-conflicts:\n - valueSource\n valueSource:\n type: object\n x-dcl-go-name: ValueSource\n x-dcl-go-type: JobTemplateTemplateContainersEnvValueSource\n description: Source for the environment variable's value.\n x-dcl-conflicts:\n - value\n properties:\n secretKeyRef:\n type: object\n x-dcl-go-name: SecretKeyRef\n x-dcl-go-type: JobTemplateTemplateContainersEnvValueSourceSecretKeyRef\n description: Selects a secret and a specific version\n from Cloud Secret Manager.\n required:\n - secret\n properties:\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret\n in Cloud Secret Manager. Format: {secret_name}\n if the secret is in the same project. projects/{project}/secrets/{secret_name}\n if the secret is in a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: selfLink\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret\n version. Can be 'latest' for the latest value\n or an integer for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: selfLink\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Required. URL of the Container image in Google\n Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images'\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the container specified as a DNS_LABEL.\n ports:\n type: array\n x-dcl-go-name: Ports\n description: List of ports to expose from the container. Only\n a single port can be specified. The specified ports must\n be listening on all interfaces (0.0.0.0) within the container\n to be accessible. If omitted, a port number will be chosen\n and passed to the container through the PORT environment\n variable for the container to listen on.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersPorts\n properties:\n containerPort:\n type: integer\n format: int64\n x-dcl-go-name: ContainerPort\n description: Port number the container listens on. This\n must be a valid TCP port number, 0 < container_port\n < 65536.\n name:\n type: string\n x-dcl-go-name: Name\n description: If specified, used to specify which protocol\n to use. Allowed values are \"http1\" and \"h2c\".\n resources:\n type: object\n x-dcl-go-name: Resources\n x-dcl-go-type: JobTemplateTemplateContainersResources\n description: 'Compute Resource requirements by this container.\n More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'\n x-dcl-server-default: true\n properties:\n cpuIdle:\n type: boolean\n x-dcl-go-name: CpuIdle\n description: Determines whether CPU should be throttled\n or not outside of requests.\n x-dcl-server-default: true\n limits:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Limits\n description: 'Only memory and CPU are supported. Note:\n The only supported values for CPU are ''1'', ''2'',\n and ''4''. Setting 4 CPU requires at least 2Gi of memory.\n The values of the map is string form of the ''quantity''\n k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go'\n volumeMounts:\n type: array\n x-dcl-go-name: VolumeMounts\n description: Volume to mount into the container's filesystem.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersVolumeMounts\n required:\n - name\n - mountPath\n properties:\n mountPath:\n type: string\n x-dcl-go-name: MountPath\n description: Required. Path within the container at\n which the volume should be mounted. Must not contain\n ':'. For Cloud SQL volumes, it can be left empty,\n or must otherwise be `/cloudsql`. All instances defined\n in the Volume will be available as `/cloudsql/[instance]`.\n For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. This must match the Name of a\n Volume.\n encryptionKey:\n type: string\n x-dcl-go-name: EncryptionKey\n description: A reference to a customer managed encryption key (CMEK)\n to use to encrypt this container image. For more information,\n go to https://cloud.google.com/run/docs/securing/using-cmek\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n executionEnvironment:\n type: string\n x-dcl-go-name: ExecutionEnvironment\n x-dcl-go-type: JobTemplateTemplateExecutionEnvironmentEnum\n description: 'The execution environment being used to host this\n Task. Possible values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_DEFAULT,\n EXECUTION_ENVIRONMENT_GEN2'\n enum:\n - EXECUTION_ENVIRONMENT_UNSPECIFIED\n - EXECUTION_ENVIRONMENT_DEFAULT\n - EXECUTION_ENVIRONMENT_GEN2\n maxRetries:\n type: integer\n format: int64\n x-dcl-go-name: MaxRetries\n description: Number of retries allowed per Task, before marking\n this Task failed.\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Email address of the IAM service account associated\n with the Task of a Job. The service account represents the identity\n of the running task, and determines what permissions the task\n has. If not provided, the task will use the project's default\n service account.\n x-dcl-server-default: true\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: Max allowed time duration the Task may be active before\n the system will actively try to mark it failed and kill associated\n containers. This applies per attempt of a task, meaning each retry\n can run for the full timeout.\n x-dcl-server-default: true\n volumes:\n type: array\n x-dcl-go-name: Volumes\n description: A list of Volumes to make available to containers.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateVolumes\n required:\n - name\n properties:\n cloudSqlInstance:\n type: object\n x-dcl-go-name: CloudSqlInstance\n x-dcl-go-type: JobTemplateTemplateVolumesCloudSqlInstance\n description: For Cloud SQL volumes, contains the specific\n instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud\n Run.\n x-dcl-conflicts:\n - secret\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: 'The Cloud SQL instance connection names,\n as can be found in https://console.cloud.google.com/sql/instances.\n Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and\n Cloud Run. Format: {project}:{location}:{instance}'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Volume's name.\n secret:\n type: object\n x-dcl-go-name: Secret\n x-dcl-go-type: JobTemplateTemplateVolumesSecret\n description: 'Secret represents a secret that should populate\n this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret'\n x-dcl-conflicts:\n - cloudSqlInstance\n required:\n - secret\n properties:\n defaultMode:\n type: integer\n format: int64\n x-dcl-go-name: DefaultMode\n description: 'Integer representation of mode bits to use\n on created files by default. Must be a value between\n 0000 and 0777 (octal), defaulting to 0644. Directories\n within the path are not affected by this setting. Notes\n * Internally, a umask of 0222 will be applied to any\n non-zero value. * This is an integer representation\n of the mode bits. So, the octal integer value should\n look exactly as the chmod numeric notation with a leading\n zero. Some examples: for chmod 777 (a=rwx), set to 0777\n (octal) or 511 (base-10). For chmod 640 (u=rw,g=r),\n set to 0640 (octal) or 416 (base-10). For chmod 755\n (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).\n * This might be in conflict with other options that\n affect the file mode, like fsGroup, and the result can\n be other mode bits set. This might be in conflict with\n other options that affect the file mode, like fsGroup,\n and as a result, other mode bits could be set.'\n items:\n type: array\n x-dcl-go-name: Items\n description: If unspecified, the volume will expose a\n file whose name is the secret, relative to VolumeMount.mount_path.\n If specified, the key will be used as the version to\n fetch from Cloud Secret Manager and the path will be\n the name of the file exposed in the volume. When items\n are defined, they must specify a path and a version.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateVolumesSecretItems\n required:\n - path\n properties:\n mode:\n type: integer\n format: int64\n x-dcl-go-name: Mode\n description: 'Integer octal mode bits to use on\n this file, must be a value between 01 and 0777\n (octal). If 0 or not set, the Volume''s default\n mode will be used. Notes * Internally, a umask\n of 0222 will be applied to any non-zero value.\n * This is an integer representation of the mode\n bits. So, the octal integer value should look\n exactly as the chmod numeric notation with a leading\n zero. Some examples: for chmod 777 (a=rwx), set\n to 0777 (octal) or 511 (base-10). For chmod 640\n (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal)\n or 493 (base-10). * This might be in conflict\n with other options that affect the file mode,\n like fsGroup, and the result can be other mode\n bits set.'\n path:\n type: string\n x-dcl-go-name: Path\n description: Required. The relative path of the\n secret in the container.\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in Cloud\n Secret Manager. Format: {secret} if the secret is in\n the same project. projects/{project}/secrets/{secret}\n if the secret is in a different project.'\n vpcAccess:\n type: object\n x-dcl-go-name: VPCAccess\n x-dcl-go-type: JobTemplateTemplateVPCAccess\n description: VPC Access configuration to use for this Task. For\n more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.\n properties:\n connector:\n type: string\n x-dcl-go-name: Connector\n description: 'VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}'\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: selfLink\n egress:\n type: string\n x-dcl-go-name: Egress\n x-dcl-go-type: JobTemplateTemplateVPCAccessEgressEnum\n description: 'Traffic VPC egress settings. Possible values:\n VPC_EGRESS_UNSPECIFIED, ALL_TRAFFIC, PRIVATE_RANGES_ONLY'\n enum:\n - VPC_EGRESS_UNSPECIFIED\n - ALL_TRAFFIC\n - PRIVATE_RANGES_ONLY\n terminalCondition:\n type: object\n x-dcl-go-name: TerminalCondition\n x-dcl-go-type: JobTerminalCondition\n readOnly: true\n description: Output only. The Condition of this Job, containing its readiness\n status, and detailed error information in case it did not reach the desired\n state.\n properties:\n domainMappingReason:\n type: string\n x-dcl-go-name: DomainMappingReason\n x-dcl-go-type: JobTerminalConditionDomainMappingReasonEnum\n description: 'A reason for the domain mapping condition. Possible values:\n DOMAIN_MAPPING_REASON_UNDEFINED, ROUTE_NOT_READY, PERMISSION_DENIED,\n CERTIFICATE_ALREADY_EXISTS, MAPPING_ALREADY_EXISTS, CERTIFICATE_PENDING,\n CERTIFICATE_FAILED'\n x-dcl-conflicts:\n - reason\n - internalReason\n - revisionReason\n - executionReason\n enum:\n - DOMAIN_MAPPING_REASON_UNDEFINED\n - ROUTE_NOT_READY\n - PERMISSION_DENIED\n - CERTIFICATE_ALREADY_EXISTS\n - MAPPING_ALREADY_EXISTS\n - CERTIFICATE_PENDING\n - CERTIFICATE_FAILED\n executionReason:\n type: string\n x-dcl-go-name: ExecutionReason\n x-dcl-go-type: JobTerminalConditionExecutionReasonEnum\n description: 'A reason for the execution condition. Possible values:\n EXECUTION_REASON_UNDEFINED, JOB_STATUS_SERVICE_POLLING_ERROR, NON_ZERO_EXIT_CODE'\n x-dcl-conflicts:\n - reason\n - internalReason\n - domainMappingReason\n - revisionReason\n enum:\n - EXECUTION_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n - NON_ZERO_EXIT_CODE\n internalReason:\n type: string\n x-dcl-go-name: InternalReason\n x-dcl-go-type: JobTerminalConditionInternalReasonEnum\n description: 'A reason for the internal condition. Possible values:\n INTERNAL_REASON_UNDEFINED, CONFLICTING_REVISION_NAME, REVISION_MISSING,\n CONFIGURATION_MISSING, ASSIGNING_TRAFFIC, UPDATING_INGRESS_TRAFFIC_ALLOWED,\n REVISION_ORG_POLICY_VIOLATION, ENABLING_GCFV2_URI_SUPPORT'\n x-dcl-conflicts:\n - reason\n - domainMappingReason\n - revisionReason\n - executionReason\n enum:\n - INTERNAL_REASON_UNDEFINED\n - CONFLICTING_REVISION_NAME\n - REVISION_MISSING\n - CONFIGURATION_MISSING\n - ASSIGNING_TRAFFIC\n - UPDATING_INGRESS_TRAFFIC_ALLOWED\n - REVISION_ORG_POLICY_VIOLATION\n - ENABLING_GCFV2_URI_SUPPORT\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status to\n another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: JobTerminalConditionReasonEnum\n description: 'A common (service-level) reason for this condition. Possible\n values: COMMON_REASON_UNDEFINED, UNKNOWN, ROUTE_MISSING, REVISION_FAILED,\n PROGRESS_DEADLINE_EXCEEDED, CONTAINER_MISSING, CONTAINER_PERMISSION_DENIED,\n CONTAINER_IMAGE_UNAUTHORIZED, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED,\n ENCRYPTION_KEY_PERMISSION_DENIED, ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED,\n WAITING_FOR_OPERATION, IMMEDIATE_RETRY, POSTPONED_RETRY'\n x-dcl-conflicts:\n - internalReason\n - domainMappingReason\n - revisionReason\n - executionReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - ROUTE_MISSING\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: JobTerminalConditionRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING, RECREATING,\n HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING, MIN_INSTANCES_NOT_PROVISIONED,\n ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT, HEALTH_CHECK_SKIPPED'\n x-dcl-conflicts:\n - reason\n - internalReason\n - domainMappingReason\n - executionReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n - HEALTH_CHECK_SKIPPED\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: JobTerminalConditionSeverityEnum\n description: 'How to interpret failures of this condition, one of Error,\n Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR, WARNING,\n INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobTerminalConditionStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the Resource\n is ready.'\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Server assigned unique identifier for the Execution.\n The value is a UUID4 string and guaranteed to remain unchanged until the\n resource is deleted.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last-modified time.\n x-kubernetes-immutable: true\n") +var YAML_job = []byte("info:\n title: Run/Job\n description: The Run Job resource\n x-dcl-struct-name: Job\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n apply:\n description: The function used to apply information about a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n delete:\n description: The function used to delete a Job\n parameters:\n - name: Job\n required: true\n description: A full instance of a Job\n deleteAll:\n description: The function used to delete all Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Job\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Job:\n title: Job\n x-dcl-id: projects/{{project}}/locations/{{location}}/jobs/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - template\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: 'KRM-style annotations for the resource. Unstructured key value\n map that may be set by external tools to store and arbitrary metadata.\n They are not queryable and should be preserved when modifying objects.\n Cloud Run will populate some annotations using ''run.googleapis.com''\n or ''serving.knative.dev'' namespaces. This field follows Kubernetes annotations''\n namespacing, limits, and rules. More info: https://kubernetes.io/docs/user-guide/annotations'\n binaryAuthorization:\n type: object\n x-dcl-go-name: BinaryAuthorization\n x-dcl-go-type: JobBinaryAuthorization\n description: Settings for the Binary Authorization feature.\n properties:\n breakglassJustification:\n type: string\n x-dcl-go-name: BreakglassJustification\n description: If present, indicates to use Breakglass using this justification.\n If use_default is False, then it must be empty. For more information\n on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass\n useDefault:\n type: boolean\n x-dcl-go-name: UseDefault\n description: If True, indicates to use the default project's binary\n authorization policy. If False, binary authorization will be disabled.\n client:\n type: string\n x-dcl-go-name: Client\n description: Arbitrary identifier for the API client.\n clientVersion:\n type: string\n x-dcl-go-name: ClientVersion\n description: Arbitrary version identifier for the API client.\n conditions:\n type: array\n x-dcl-go-name: Conditions\n readOnly: true\n description: Output only. The Conditions of all other associated sub-resources.\n They contain additional diagnostics information in case the Job does not\n reach its desired state. See comments in `reconciling` for additional\n information on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobConditions\n properties:\n executionReason:\n type: string\n x-dcl-go-name: ExecutionReason\n x-dcl-go-type: JobConditionsExecutionReasonEnum\n description: 'A reason for the execution condition. Possible values:\n EXECUTION_REASON_UNDEFINED, JOB_STATUS_SERVICE_POLLING_ERROR, NON_ZERO_EXIT_CODE'\n x-dcl-conflicts:\n - reason\n - revisionReason\n enum:\n - EXECUTION_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n - NON_ZERO_EXIT_CODE\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status\n to another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: JobConditionsReasonEnum\n description: 'A common (service-level) reason for this condition.\n Possible values: COMMON_REASON_UNDEFINED, UNKNOWN, REVISION_FAILED,\n PROGRESS_DEADLINE_EXCEEDED, BUILD_STEP_FAILED, CONTAINER_MISSING,\n CONTAINER_PERMISSION_DENIED, CONTAINER_IMAGE_UNAUTHORIZED, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED,\n ENCRYPTION_KEY_PERMISSION_DENIED, ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED,\n WAITING_FOR_OPERATION, IMMEDIATE_RETRY, POSTPONED_RETRY'\n x-dcl-conflicts:\n - revisionReason\n - executionReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - BUILD_STEP_FAILED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: JobConditionsRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING,\n RECREATING, HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING,\n MIN_INSTANCES_NOT_PROVISIONED, ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT,\n HEALTH_CHECK_SKIPPED'\n x-dcl-conflicts:\n - reason\n - executionReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n - HEALTH_CHECK_SKIPPED\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: JobConditionsSeverityEnum\n description: 'How to interpret failures of this condition, one of\n Error, Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR,\n WARNING, INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobConditionsStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the\n Resource is ready.'\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation time.\n x-kubernetes-immutable: true\n creator:\n type: string\n x-dcl-go-name: Creator\n readOnly: true\n description: Output only. Email address of the authenticated creator.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. The deletion time.\n x-kubernetes-immutable: true\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A system-generated fingerprint for this version\n of the resource. May be used to detect modification conflict during updates.\n x-kubernetes-immutable: true\n executionCount:\n type: integer\n format: int64\n x-dcl-go-name: ExecutionCount\n readOnly: true\n description: Output only. Number of executions created for this job.\n x-kubernetes-immutable: true\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n readOnly: true\n description: Output only. For a deleted resource, the time after which it\n will be permamently deleted.\n x-kubernetes-immutable: true\n generation:\n type: integer\n format: int64\n x-dcl-go-name: Generation\n readOnly: true\n description: Output only. A number that monotonically increases every time\n the user modifies the desired state.\n x-kubernetes-immutable: true\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n readOnly: true\n description: KRM-style labels for the resource. User-provided labels are\n shared with Google's billing system, so they can be used to filter, or\n break down billing charges by team, component, environment, state, etc.\n For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels\n or https://cloud.google.com/run/docs/configuring/labels Cloud Run will\n populate some labels with 'run.googleapis.com' or 'serving.knative.dev'\n namespaces. Those labels are read-only, and user changes will not be preserved.\n x-kubernetes-immutable: true\n lastModifier:\n type: string\n x-dcl-go-name: LastModifier\n readOnly: true\n description: Output only. Email address of the last authenticated modifier.\n x-kubernetes-immutable: true\n latestCreatedExecution:\n type: object\n x-dcl-go-name: LatestCreatedExecution\n x-dcl-go-type: JobLatestCreatedExecution\n readOnly: true\n description: Output only. Name of the last created execution.\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n description: Creation timestamp of the execution.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the execution.\n x-dcl-references:\n - resource: Run/Execution\n field: selfLink\n parent: true\n latestSucceededExecution:\n type: object\n x-dcl-go-name: LatestSucceededExecution\n x-dcl-go-type: JobLatestSucceededExecution\n readOnly: true\n description: Output only. Name of the last succeeded execution.\n properties:\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n description: Creation timestamp of the execution.\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the execution.\n x-dcl-references:\n - resource: Run/Execution\n field: selfLink\n parent: true\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: JobLaunchStageEnum\n description: 'The launch stage as defined by [Google Cloud Platform Launch\n Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports\n `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Possible\n values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS,\n ALPHA, BETA, GA, DEPRECATED'\n enum:\n - LAUNCH_STAGE_UNSPECIFIED\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'The fully qualified name of this Job. Format: projects/{project}/locations/{location}/jobs/{job}'\n observedGeneration:\n type: integer\n format: int64\n x-dcl-go-name: ObservedGeneration\n readOnly: true\n description: Output only. The generation of this Job. See comments in `reconciling`\n for additional information on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n reconciling:\n type: boolean\n x-dcl-go-name: Reconciling\n readOnly: true\n description: 'Output only. Returns true if the Job is currently being acted\n upon by the system to bring it into the desired state. When a new Job\n is created, or an existing one is updated, Cloud Run will asynchronously\n perform all necessary steps to bring the Job to the desired state. This\n process is called reconciliation. While reconciliation is in process,\n `observed_generation` and `latest_succeeded_execution`, will have transient\n values that might mismatch the intended state: Once reconciliation is\n over (and this field is false), there are two possible outcomes: reconciliation\n succeeded and the state matches the Job, or there was an error, and reconciliation\n failed. This state can be found in `terminal_condition.state`. If reconciliation\n succeeded, the following fields will match: `observed_generation` and\n `generation`, `latest_succeeded_execution` and `latest_created_execution`.\n If reconciliation failed, `observed_generation` and `latest_succeeded_execution`\n will have the state of the last succeeded execution or empty for newly\n created Job. Additional information on the failure can be found in `terminal_condition`\n and `conditions`.'\n x-kubernetes-immutable: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: JobTemplate\n description: Required. The template used to create executions for this Job.\n required:\n - template\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: KRM-style annotations for the resource.\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: KRM-style labels for the resource.\n parallelism:\n type: integer\n format: int64\n x-dcl-go-name: Parallelism\n description: 'Specifies the maximum desired number of tasks the execution\n should run at any given time. Must be <= task_count. The actual number\n of tasks running in steady state will be less than this number when\n ((.spec.task_count - .status.successful) < .spec.parallelism), i.e.\n when the work left to do is less than max parallelism. More info:\n https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/'\n x-dcl-server-default: true\n taskCount:\n type: integer\n format: int64\n x-dcl-go-name: TaskCount\n description: 'Specifies the desired number of tasks the execution should\n run. Setting to 1 means that parallelism is limited to 1 and the success\n of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/'\n x-dcl-server-default: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: JobTemplateTemplate\n description: Required. Describes the task(s) that will be created when\n executing an execution.\n properties:\n containers:\n type: array\n x-dcl-go-name: Containers\n description: Holds the single container that defines the unit of\n execution for this task.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainers\n required:\n - image\n properties:\n args:\n type: array\n x-dcl-go-name: Args\n description: 'Arguments to the entrypoint. The docker image''s\n CMD is used if this is not provided. Variable references\n $(VAR_NAME) are expanded using the container''s environment.\n If a variable cannot be resolved, the reference in the input\n string will be unchanged. The $(VAR_NAME) syntax can be\n escaped with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable\n exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n command:\n type: array\n x-dcl-go-name: Command\n description: 'Entrypoint array. Not executed within a shell.\n The docker image''s ENTRYPOINT is used if this is not provided.\n Variable references $(VAR_NAME) are expanded using the container''s\n environment. If a variable cannot be resolved, the reference\n in the input string will be unchanged. The $(VAR_NAME) syntax\n can be escaped with a double $$, ie: $$(VAR_NAME). Escaped\n references will never be expanded, regardless of whether\n the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n env:\n type: array\n x-dcl-go-name: Env\n description: List of environment variables to set in the container.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersEnv\n required:\n - name\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Name of the environment variable.\n Must be a C_IDENTIFIER, and mnay not exceed 32768\n characters.\n value:\n type: string\n x-dcl-go-name: Value\n description: 'Variable references $(VAR_NAME) are expanded\n using the previous defined environment variables in\n the container and any route environment variables.\n If a variable cannot be resolved, the reference in\n the input string will be unchanged. The $(VAR_NAME)\n syntax can be escaped with a double $$, ie: $$(VAR_NAME).\n Escaped references will never be expanded, regardless\n of whether the variable exists or not. Defaults to\n \"\", and the maximum length is 32768 bytes.'\n x-dcl-conflicts:\n - valueSource\n valueSource:\n type: object\n x-dcl-go-name: ValueSource\n x-dcl-go-type: JobTemplateTemplateContainersEnvValueSource\n description: Source for the environment variable's value.\n x-dcl-conflicts:\n - value\n properties:\n secretKeyRef:\n type: object\n x-dcl-go-name: SecretKeyRef\n x-dcl-go-type: JobTemplateTemplateContainersEnvValueSourceSecretKeyRef\n description: Selects a secret and a specific version\n from Cloud Secret Manager.\n required:\n - secret\n properties:\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret\n in Cloud Secret Manager. Format: {secret_name}\n if the secret is in the same project. projects/{project}/secrets/{secret_name}\n if the secret is in a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: selfLink\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret\n version. Can be 'latest' for the latest value\n or an integer for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: selfLink\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Required. URL of the Container image in Google\n Container Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images'\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the container specified as a DNS_LABEL.\n ports:\n type: array\n x-dcl-go-name: Ports\n description: List of ports to expose from the container. Only\n a single port can be specified. The specified ports must\n be listening on all interfaces (0.0.0.0) within the container\n to be accessible. If omitted, a port number will be chosen\n and passed to the container through the PORT environment\n variable for the container to listen on.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersPorts\n properties:\n containerPort:\n type: integer\n format: int64\n x-dcl-go-name: ContainerPort\n description: Port number the container listens on. This\n must be a valid TCP port number, 0 < container_port\n < 65536.\n name:\n type: string\n x-dcl-go-name: Name\n description: If specified, used to specify which protocol\n to use. Allowed values are \"http1\" and \"h2c\".\n resources:\n type: object\n x-dcl-go-name: Resources\n x-dcl-go-type: JobTemplateTemplateContainersResources\n description: 'Compute Resource requirements by this container.\n More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'\n x-dcl-server-default: true\n properties:\n cpuIdle:\n type: boolean\n x-dcl-go-name: CpuIdle\n description: Determines whether CPU should be throttled\n or not outside of requests.\n x-dcl-server-default: true\n limits:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Limits\n description: 'Only memory and CPU are supported. Note:\n The only supported values for CPU are ''1'', ''2'',\n and ''4''. Setting 4 CPU requires at least 2Gi of memory.\n The values of the map is string form of the ''quantity''\n k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go'\n volumeMounts:\n type: array\n x-dcl-go-name: VolumeMounts\n description: Volume to mount into the container's filesystem.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateContainersVolumeMounts\n required:\n - name\n - mountPath\n properties:\n mountPath:\n type: string\n x-dcl-go-name: MountPath\n description: Required. Path within the container at\n which the volume should be mounted. Must not contain\n ':'. For Cloud SQL volumes, it can be left empty,\n or must otherwise be `/cloudsql`. All instances defined\n in the Volume will be available as `/cloudsql/[instance]`.\n For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. This must match the Name of a\n Volume.\n encryptionKey:\n type: string\n x-dcl-go-name: EncryptionKey\n description: A reference to a customer managed encryption key (CMEK)\n to use to encrypt this container image. For more information,\n go to https://cloud.google.com/run/docs/securing/using-cmek\n x-dcl-references:\n - resource: Cloudkms/CryptoKey\n field: selfLink\n executionEnvironment:\n type: string\n x-dcl-go-name: ExecutionEnvironment\n x-dcl-go-type: JobTemplateTemplateExecutionEnvironmentEnum\n description: 'The execution environment being used to host this\n Task. Possible values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_DEFAULT,\n EXECUTION_ENVIRONMENT_GEN2'\n x-dcl-server-default: true\n enum:\n - EXECUTION_ENVIRONMENT_UNSPECIFIED\n - EXECUTION_ENVIRONMENT_DEFAULT\n - EXECUTION_ENVIRONMENT_GEN2\n maxRetries:\n type: integer\n format: int64\n x-dcl-go-name: MaxRetries\n description: Number of retries allowed per Task, before marking\n this Task failed.\n x-dcl-server-default: true\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Email address of the IAM service account associated\n with the Task of a Job. The service account represents the identity\n of the running task, and determines what permissions the task\n has. If not provided, the task will use the project's default\n service account.\n x-dcl-server-default: true\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: Max allowed time duration the Task may be active before\n the system will actively try to mark it failed and kill associated\n containers. This applies per attempt of a task, meaning each retry\n can run for the full timeout.\n x-dcl-server-default: true\n volumes:\n type: array\n x-dcl-go-name: Volumes\n description: A list of Volumes to make available to containers.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateVolumes\n required:\n - name\n properties:\n cloudSqlInstance:\n type: object\n x-dcl-go-name: CloudSqlInstance\n x-dcl-go-type: JobTemplateTemplateVolumesCloudSqlInstance\n description: For Cloud SQL volumes, contains the specific\n instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud\n Run.\n x-dcl-conflicts:\n - secret\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: 'The Cloud SQL instance connection names,\n as can be found in https://console.cloud.google.com/sql/instances.\n Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and\n Cloud Run. Format: {project}:{location}:{instance}'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Volume's name.\n secret:\n type: object\n x-dcl-go-name: Secret\n x-dcl-go-type: JobTemplateTemplateVolumesSecret\n description: 'Secret represents a secret that should populate\n this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret'\n x-dcl-conflicts:\n - cloudSqlInstance\n required:\n - secret\n properties:\n defaultMode:\n type: integer\n format: int64\n x-dcl-go-name: DefaultMode\n description: 'Integer representation of mode bits to use\n on created files by default. Must be a value between\n 0000 and 0777 (octal), defaulting to 0644. Directories\n within the path are not affected by this setting. Notes\n * Internally, a umask of 0222 will be applied to any\n non-zero value. * This is an integer representation\n of the mode bits. So, the octal integer value should\n look exactly as the chmod numeric notation with a leading\n zero. Some examples: for chmod 777 (a=rwx), set to 0777\n (octal) or 511 (base-10). For chmod 640 (u=rw,g=r),\n set to 0640 (octal) or 416 (base-10). For chmod 755\n (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10).\n * This might be in conflict with other options that\n affect the file mode, like fsGroup, and the result can\n be other mode bits set. This might be in conflict with\n other options that affect the file mode, like fsGroup,\n and as a result, other mode bits could be set.'\n items:\n type: array\n x-dcl-go-name: Items\n description: If unspecified, the volume will expose a\n file whose name is the secret, relative to VolumeMount.mount_path.\n If specified, the key will be used as the version to\n fetch from Cloud Secret Manager and the path will be\n the name of the file exposed in the volume. When items\n are defined, they must specify a path and a version.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: JobTemplateTemplateVolumesSecretItems\n required:\n - path\n properties:\n mode:\n type: integer\n format: int64\n x-dcl-go-name: Mode\n description: 'Integer octal mode bits to use on\n this file, must be a value between 01 and 0777\n (octal). If 0 or not set, the Volume''s default\n mode will be used. Notes * Internally, a umask\n of 0222 will be applied to any non-zero value.\n * This is an integer representation of the mode\n bits. So, the octal integer value should look\n exactly as the chmod numeric notation with a leading\n zero. Some examples: for chmod 777 (a=rwx), set\n to 0777 (octal) or 511 (base-10). For chmod 640\n (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal)\n or 493 (base-10). * This might be in conflict\n with other options that affect the file mode,\n like fsGroup, and the result can be other mode\n bits set.'\n path:\n type: string\n x-dcl-go-name: Path\n description: Required. The relative path of the\n secret in the container.\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in Cloud\n Secret Manager. Format: {secret} if the secret is in\n the same project. projects/{project}/secrets/{secret}\n if the secret is in a different project.'\n vpcAccess:\n type: object\n x-dcl-go-name: VPCAccess\n x-dcl-go-type: JobTemplateTemplateVPCAccess\n description: VPC Access configuration to use for this Task. For\n more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.\n properties:\n connector:\n type: string\n x-dcl-go-name: Connector\n description: 'VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}'\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: selfLink\n egress:\n type: string\n x-dcl-go-name: Egress\n x-dcl-go-type: JobTemplateTemplateVPCAccessEgressEnum\n description: 'Traffic VPC egress settings. Possible values:\n VPC_EGRESS_UNSPECIFIED, ALL_TRAFFIC, PRIVATE_RANGES_ONLY'\n enum:\n - VPC_EGRESS_UNSPECIFIED\n - ALL_TRAFFIC\n - PRIVATE_RANGES_ONLY\n terminalCondition:\n type: object\n x-dcl-go-name: TerminalCondition\n x-dcl-go-type: JobTerminalCondition\n readOnly: true\n description: Output only. The Condition of this Job, containing its readiness\n status, and detailed error information in case it did not reach the desired\n state.\n properties:\n domainMappingReason:\n type: string\n x-dcl-go-name: DomainMappingReason\n x-dcl-go-type: JobTerminalConditionDomainMappingReasonEnum\n description: 'A reason for the domain mapping condition. Possible values:\n DOMAIN_MAPPING_REASON_UNDEFINED, ROUTE_NOT_READY, PERMISSION_DENIED,\n CERTIFICATE_ALREADY_EXISTS, MAPPING_ALREADY_EXISTS, CERTIFICATE_PENDING,\n CERTIFICATE_FAILED'\n x-dcl-conflicts:\n - reason\n - internalReason\n - revisionReason\n - executionReason\n enum:\n - DOMAIN_MAPPING_REASON_UNDEFINED\n - ROUTE_NOT_READY\n - PERMISSION_DENIED\n - CERTIFICATE_ALREADY_EXISTS\n - MAPPING_ALREADY_EXISTS\n - CERTIFICATE_PENDING\n - CERTIFICATE_FAILED\n executionReason:\n type: string\n x-dcl-go-name: ExecutionReason\n x-dcl-go-type: JobTerminalConditionExecutionReasonEnum\n description: 'A reason for the execution condition. Possible values:\n EXECUTION_REASON_UNDEFINED, JOB_STATUS_SERVICE_POLLING_ERROR, NON_ZERO_EXIT_CODE'\n x-dcl-conflicts:\n - reason\n - internalReason\n - domainMappingReason\n - revisionReason\n enum:\n - EXECUTION_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n - NON_ZERO_EXIT_CODE\n internalReason:\n type: string\n x-dcl-go-name: InternalReason\n x-dcl-go-type: JobTerminalConditionInternalReasonEnum\n description: 'A reason for the internal condition. Possible values:\n INTERNAL_REASON_UNDEFINED, CONFLICTING_REVISION_NAME, REVISION_MISSING,\n CONFIGURATION_MISSING, ASSIGNING_TRAFFIC, UPDATING_INGRESS_TRAFFIC_ALLOWED,\n REVISION_ORG_POLICY_VIOLATION, ENABLING_GCFV2_URI_SUPPORT'\n x-dcl-conflicts:\n - reason\n - domainMappingReason\n - revisionReason\n - executionReason\n enum:\n - INTERNAL_REASON_UNDEFINED\n - CONFLICTING_REVISION_NAME\n - REVISION_MISSING\n - CONFIGURATION_MISSING\n - ASSIGNING_TRAFFIC\n - UPDATING_INGRESS_TRAFFIC_ALLOWED\n - REVISION_ORG_POLICY_VIOLATION\n - ENABLING_GCFV2_URI_SUPPORT\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status to\n another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: JobTerminalConditionReasonEnum\n description: 'A common (service-level) reason for this condition. Possible\n values: COMMON_REASON_UNDEFINED, UNKNOWN, ROUTE_MISSING, REVISION_FAILED,\n PROGRESS_DEADLINE_EXCEEDED, CONTAINER_MISSING, CONTAINER_PERMISSION_DENIED,\n CONTAINER_IMAGE_UNAUTHORIZED, CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED,\n ENCRYPTION_KEY_PERMISSION_DENIED, ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED,\n WAITING_FOR_OPERATION, IMMEDIATE_RETRY, POSTPONED_RETRY'\n x-dcl-conflicts:\n - internalReason\n - domainMappingReason\n - revisionReason\n - executionReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - ROUTE_MISSING\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: JobTerminalConditionRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING, RECREATING,\n HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING, MIN_INSTANCES_NOT_PROVISIONED,\n ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT, HEALTH_CHECK_SKIPPED'\n x-dcl-conflicts:\n - reason\n - internalReason\n - domainMappingReason\n - executionReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n - HEALTH_CHECK_SKIPPED\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: JobTerminalConditionSeverityEnum\n description: 'How to interpret failures of this condition, one of Error,\n Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR, WARNING,\n INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: JobTerminalConditionStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the Resource\n is ready.'\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Server assigned unique identifier for the Execution.\n The value is a UUID4 string and guaranteed to remain unchanged until the\n resource is deleted.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last-modified time.\n x-kubernetes-immutable: true\n") -// 50218 bytes -// MD5: 5c4990075825ac0d623f4248c86316e8 +// 50308 bytes +// MD5: cab63aad1f7a9e4fc535f8b18f0caf01 diff --git a/services/google/run/alpha/job_schema.go b/services/google/run/alpha/job_schema.go index eb8c3cd0f6..ad2439fac9 100755 --- a/services/google/run/alpha/job_schema.go +++ b/services/google/run/alpha/job_schema.go @@ -701,10 +701,11 @@ func DCLJobSchema() *dcl.Schema { }, }, "executionEnvironment": &dcl.Property{ - Type: "string", - GoName: "ExecutionEnvironment", - GoType: "JobTemplateTemplateExecutionEnvironmentEnum", - Description: "The execution environment being used to host this Task. Possible values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_DEFAULT, EXECUTION_ENVIRONMENT_GEN2", + Type: "string", + GoName: "ExecutionEnvironment", + GoType: "JobTemplateTemplateExecutionEnvironmentEnum", + Description: "The execution environment being used to host this Task. Possible values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_DEFAULT, EXECUTION_ENVIRONMENT_GEN2", + ServerDefault: true, Enum: []string{ "EXECUTION_ENVIRONMENT_UNSPECIFIED", "EXECUTION_ENVIRONMENT_DEFAULT", @@ -712,10 +713,11 @@ func DCLJobSchema() *dcl.Schema { }, }, "maxRetries": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxRetries", - Description: "Number of retries allowed per Task, before marking this Task failed.", + Type: "integer", + Format: "int64", + GoName: "MaxRetries", + Description: "Number of retries allowed per Task, before marking this Task failed.", + ServerDefault: true, }, "serviceAccount": &dcl.Property{ Type: "string", diff --git a/services/google/run/alpha/service.yaml b/services/google/run/alpha/service.yaml index 4a36f8b619..e61fabc2c6 100755 --- a/services/google/run/alpha/service.yaml +++ b/services/google/run/alpha/service.yaml @@ -284,6 +284,7 @@ components: x-dcl-go-name: ContainerConcurrency description: Sets the maximum number of requests that each serving instance can receive. + x-dcl-server-default: true containers: type: array x-dcl-go-name: Containers @@ -414,6 +415,7 @@ components: be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on. + x-dcl-server-default: true x-dcl-send-empty: true x-dcl-list-type: list items: @@ -438,6 +440,7 @@ components: x-dcl-go-type: ServiceTemplateContainersResources description: 'Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources' + x-dcl-server-default: true properties: cpuIdle: type: boolean @@ -528,6 +531,7 @@ components: of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. + x-dcl-server-default: true x-dcl-references: - resource: Iam/ServiceAccount field: email @@ -535,6 +539,7 @@ components: type: string x-dcl-go-name: Timeout description: Max allowed time for an instance to respond to a request. + x-dcl-server-default: true volumes: type: array x-dcl-go-name: Volumes diff --git a/services/google/run/alpha/service_alpha_yaml_embed.go b/services/google/run/alpha/service_alpha_yaml_embed.go index 4aa1ae2d1b..588cb7798e 100755 --- a/services/google/run/alpha/service_alpha_yaml_embed.go +++ b/services/google/run/alpha/service_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/run/alpha/service.yaml -var YAML_service = []byte("info:\n title: Run/Service\n description: The Run Service resource\n x-dcl-struct-name: Service\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n apply:\n description: The function used to apply information about a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n delete:\n description: The function used to delete a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n deleteAll:\n description: The function used to delete all Service\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Service\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Service:\n title: Service\n x-dcl-id: projects/{{project}}/locations/{{location}}/services/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - template\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: 'Unstructured key value map that may be set by external tools\n to store and arbitrary metadata. They are not queryable and should be\n preserved when modifying objects. Cloud Run will populate some annotations\n using ''run.googleapis.com'' or ''serving.knative.dev'' namespaces. This\n field follows Kubernetes annotations'' namespacing, limits, and rules.\n More info: http://kubernetes.io/docs/user-guide/annotations'\n binaryAuthorization:\n type: object\n x-dcl-go-name: BinaryAuthorization\n x-dcl-go-type: ServiceBinaryAuthorization\n description: Settings for the Binary Authorization feature.\n properties:\n breakglassJustification:\n type: string\n x-dcl-go-name: BreakglassJustification\n description: If present, indicates to use Breakglass using this justification.\n For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass\n useDefault:\n type: boolean\n x-dcl-go-name: UseDefault\n description: If True, indicates to use the default project's binary\n authorization policy. If False, binary authorization will be disabled\n client:\n type: string\n x-dcl-go-name: Client\n description: Arbitrary identifier for the API client.\n clientVersion:\n type: string\n x-dcl-go-name: ClientVersion\n description: Arbitrary version identifier for the API client.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation time.\n x-kubernetes-immutable: true\n creator:\n type: string\n x-dcl-go-name: Creator\n readOnly: true\n description: Output only. Email address of the authenticated creator.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. The deletion time.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of the Service.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A system-generated fingerprint for this version\n of the resource. May be used to detect modification conflict during updates.\n x-kubernetes-immutable: true\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n readOnly: true\n description: Output only. For a deleted resource, the time after which it\n will be permamently deleted.\n x-kubernetes-immutable: true\n generation:\n type: integer\n format: int64\n x-dcl-go-name: Generation\n readOnly: true\n description: Output only. A number that monotonically increases every time\n the user modifies the desired state.\n x-kubernetes-immutable: true\n ingress:\n type: string\n x-dcl-go-name: Ingress\n x-dcl-go-type: ServiceIngressEnum\n description: Provides the ingress settings for this Service. On output,\n returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED\n if no revision is active.\n enum:\n - INGRESS_TRAFFIC_UNSPECIFIED\n - INGRESS_TRAFFIC_ALL\n - INGRESS_TRAFFIC_INTERNAL_ONLY\n - INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n readOnly: true\n description: Map of string keys and values that can be used to organize\n and categorize objects. User-provided labels are shared with Google's\n billing system, so they can be used to filter, or break down billing charges\n by team, component, environment, state, etc. For more information, visit\n https://cloud.google.com/resource-manager/docs/creating-managing-labels\n or https://cloud.google.com/run/docs/configuring/labels Cloud Run will\n populate some labels with 'run.googleapis.com' or 'serving.knative.dev'\n namespaces. Those labels are read-only, and user changes will not be preserved.\n x-kubernetes-immutable: true\n lastModifier:\n type: string\n x-dcl-go-name: LastModifier\n readOnly: true\n description: Output only. Email address of the last authenticated modifier.\n x-kubernetes-immutable: true\n latestCreatedRevision:\n type: string\n x-dcl-go-name: LatestCreatedRevision\n readOnly: true\n description: Output only. Name of the last created revision. See comments\n in `reconciling` for additional information on reconciliation process\n in Cloud Run.\n x-kubernetes-immutable: true\n latestReadyRevision:\n type: string\n x-dcl-go-name: LatestReadyRevision\n readOnly: true\n description: Output only. Name of the latest revision that is serving traffic.\n See comments in `reconciling` for additional information on reconciliation\n process in Cloud Run.\n x-kubernetes-immutable: true\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: ServiceLaunchStageEnum\n description: 'The launch stage as defined by [Google Cloud Platform Launch\n Stages](http://cloud.google.com/terms/launch-stages). Cloud Run supports\n `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Possible\n values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS,\n ALPHA, BETA, GA, DEPRECATED'\n enum:\n - LAUNCH_STAGE_UNSPECIFIED\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The fully qualified name of this Service, composed\n from CreateServiceRequest.parent and CreateServiceRequest.service_id.\n Format: projects/{project}/locations/{location}/services/{service_id}'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n reconciling:\n type: boolean\n x-dcl-go-name: Reconciling\n readOnly: true\n description: 'Output only. Returns true if the Service is currently being\n acted upon by the system to bring it into the desired state. When a new\n Service is created, or an existing one is updated, Cloud Run will asynchronously\n perform all necessary steps to bring the Service to the desired serving\n state. This process is called reconciliation. While reconciliation is\n in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`,\n and `uri` will have transient values that might mismatch the intended\n state: Once reconciliation is over (and this field is false), there are\n two possible outcomes: reconciliation succeeded and the serving state\n matches the Service, or there was an error, and reconciliation failed.\n This state can be found in `terminal_condition.state`. If reconciliation\n succeeded, the following fields will match: `traffic` and `traffic_statuses`,\n `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`.\n If reconciliation failed, `traffic_statuses`, `observed_generation`, and\n `latest_ready_revision` will have the state of the last serving revision,\n or empty for newly created Services. Additional information on the failure\n can be found in `terminal_condition` and `conditions`.'\n x-kubernetes-immutable: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: ServiceTemplate\n description: Required. The template used to create revisions for this Service.\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: KRM-style annotations for the resource.\n containerConcurrency:\n type: integer\n format: int64\n x-dcl-go-name: ContainerConcurrency\n description: Sets the maximum number of requests that each serving instance\n can receive.\n containers:\n type: array\n x-dcl-go-name: Containers\n description: Holds the single container that defines the unit of execution\n for this Revision.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainers\n required:\n - image\n properties:\n args:\n type: array\n x-dcl-go-name: Args\n description: 'Arguments to the entrypoint. The docker image''s\n CMD is used if this is not provided. Variable references $(VAR_NAME)\n are expanded using the container''s environment. If a variable\n cannot be resolved, the reference in the input string will be\n unchanged. The $(VAR_NAME) syntax can be escaped with a double\n $$, ie: $$(VAR_NAME). Escaped references will never be expanded,\n regardless of whether the variable exists or not. More info:\n https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n command:\n type: array\n x-dcl-go-name: Command\n description: 'Entrypoint array. Not executed within a shell. The\n docker image''s ENTRYPOINT is used if this is not provided.\n Variable references $(VAR_NAME) are expanded using the container''s\n environment. If a variable cannot be resolved, the reference\n in the input string will be unchanged. The $(VAR_NAME) syntax\n can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable exists\n or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n env:\n type: array\n x-dcl-go-name: Env\n description: List of environment variables to set in the container.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersEnv\n required:\n - name\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Name of the environment variable.\n Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.\n value:\n type: string\n x-dcl-go-name: Value\n description: 'Variable references $(VAR_NAME) are expanded\n using the previous defined environment variables in the\n container and any route environment variables. If a variable\n cannot be resolved, the reference in the input string\n will be unchanged. The $(VAR_NAME) syntax can be escaped\n with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable\n exists or not. Defaults to \"\", and the maximum length\n is 32768 bytes.'\n x-dcl-conflicts:\n - valueSource\n valueSource:\n type: object\n x-dcl-go-name: ValueSource\n x-dcl-go-type: ServiceTemplateContainersEnvValueSource\n description: Source for the environment variable's value.\n x-dcl-conflicts:\n - value\n properties:\n secretKeyRef:\n type: object\n x-dcl-go-name: SecretKeyRef\n x-dcl-go-type: ServiceTemplateContainersEnvValueSourceSecretKeyRef\n description: Selects a secret and a specific version\n from Cloud Secret Manager.\n required:\n - secret\n properties:\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in\n Cloud Secret Manager. Format: {secret_name} if\n the secret is in the same project. projects/{project}/secrets/{secret_name}\n if the secret is in a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: name\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: name\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Required. URL of the Container image in Google Container\n Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images'\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the container specified as a DNS_LABEL.\n ports:\n type: array\n x-dcl-go-name: Ports\n description: List of ports to expose from the container. Only\n a single port can be specified. The specified ports must be\n listening on all interfaces (0.0.0.0) within the container to\n be accessible. If omitted, a port number will be chosen and\n passed to the container through the PORT environment variable\n for the container to listen on.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersPorts\n properties:\n containerPort:\n type: integer\n format: int64\n x-dcl-go-name: ContainerPort\n description: Port number the container listens on. This\n must be a valid TCP port number, 0 < container_port <\n 65536.\n name:\n type: string\n x-dcl-go-name: Name\n description: If specified, used to specify which protocol\n to use. Allowed values are \"http1\" and \"h2c\".\n resources:\n type: object\n x-dcl-go-name: Resources\n x-dcl-go-type: ServiceTemplateContainersResources\n description: 'Compute Resource requirements by this container.\n More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'\n properties:\n cpuIdle:\n type: boolean\n x-dcl-go-name: CpuIdle\n description: Determines whether CPU should be throttled or\n not outside of requests.\n limits:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Limits\n description: 'Only memory and CPU are supported. Note: The\n only supported values for CPU are ''1'', ''2'', and ''4''.\n Setting 4 CPU requires at least 2Gi of memory. The values\n of the map is string form of the ''quantity'' k8s type:\n https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go'\n volumeMounts:\n type: array\n x-dcl-go-name: VolumeMounts\n description: Volume to mount into the container's filesystem.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersVolumeMounts\n required:\n - name\n - mountPath\n properties:\n mountPath:\n type: string\n x-dcl-go-name: MountPath\n description: Required. Path within the container at which\n the volume should be mounted. Must not contain ':'. For\n Cloud SQL volumes, it can be left empty, or must otherwise\n be `/cloudsql`. All instances defined in the Volume will\n be available as `/cloudsql/[instance]`. For more information\n on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. This must match the Name of a Volume.\n executionEnvironment:\n type: string\n x-dcl-go-name: ExecutionEnvironment\n x-dcl-go-type: ServiceTemplateExecutionEnvironmentEnum\n description: 'The sandbox environment to host this Revision. Possible\n values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_GEN1,\n EXECUTION_ENVIRONMENT_GEN2'\n enum:\n - EXECUTION_ENVIRONMENT_UNSPECIFIED\n - EXECUTION_ENVIRONMENT_GEN1\n - EXECUTION_ENVIRONMENT_GEN2\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: KRM-style labels for the resource.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: The unique name for the revision. If this field is omitted,\n it will be automatically generated based on the Service name.\n scaling:\n type: object\n x-dcl-go-name: Scaling\n x-dcl-go-type: ServiceTemplateScaling\n description: Scaling settings for this Revision.\n properties:\n maxInstanceCount:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstanceCount\n description: Maximum number of serving instances that this resource\n should have.\n minInstanceCount:\n type: integer\n format: int64\n x-dcl-go-name: MinInstanceCount\n description: Minimum number of serving instances that this resource\n should have.\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Email address of the IAM service account associated with\n the revision of the service. The service account represents the identity\n of the running revision, and determines what permissions the revision\n has. If not provided, the revision will use the project's default\n service account.\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: Max allowed time for an instance to respond to a request.\n volumes:\n type: array\n x-dcl-go-name: Volumes\n description: A list of Volumes to make available to containers.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateVolumes\n required:\n - name\n properties:\n cloudSqlInstance:\n type: object\n x-dcl-go-name: CloudSqlInstance\n x-dcl-go-type: ServiceTemplateVolumesCloudSqlInstance\n description: For Cloud SQL volumes, contains the specific instances\n that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud Run.\n x-dcl-conflicts:\n - secret\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: 'The Cloud SQL instance connection names, as\n can be found in https://console.cloud.google.com/sql/instances.\n Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud\n Run. Format: {project}:{location}:{instance}'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Sql/Instance\n field: instanceName\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Volume's name.\n secret:\n type: object\n x-dcl-go-name: Secret\n x-dcl-go-type: ServiceTemplateVolumesSecret\n description: 'Secret represents a secret that should populate\n this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret'\n x-dcl-conflicts:\n - cloudSqlInstance\n required:\n - secret\n properties:\n defaultMode:\n type: integer\n format: int64\n x-dcl-go-name: DefaultMode\n description: 'Integer representation of mode bits to use on\n created files by default. Must be a value between 0000 and\n 0777 (octal), defaulting to 0644. Directories within the\n path are not affected by this setting. Notes * Internally,\n a umask of 0222 will be applied to any non-zero value. *\n This is an integer representation of the mode bits. So,\n the octal integer value should look exactly as the chmod\n numeric notation with a leading zero. Some examples: for\n chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).\n For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or\n 493 (base-10). * This might be in conflict with other options\n that affect the file mode, like fsGroup, and the result\n can be other mode bits set. This might be in conflict with\n other options that affect the file mode, like fsGroup, and\n as a result, other mode bits could be set.'\n items:\n type: array\n x-dcl-go-name: Items\n description: If unspecified, the volume will expose a file\n whose name is the secret, relative to VolumeMount.mount_path.\n If specified, the key will be used as the version to fetch\n from Cloud Secret Manager and the path will be the name\n of the file exposed in the volume. When items are defined,\n they must specify a path and a version.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateVolumesSecretItems\n required:\n - path\n properties:\n mode:\n type: integer\n format: int64\n x-dcl-go-name: Mode\n description: 'Integer octal mode bits to use on this\n file, must be a value between 01 and 0777 (octal).\n If 0 or not set, the Volume''s default mode will be\n used. Notes * Internally, a umask of 0222 will be\n applied to any non-zero value. * This is an integer\n representation of the mode bits. So, the octal integer\n value should look exactly as the chmod numeric notation\n with a leading zero. Some examples: for chmod 777\n (a=rwx), set to 0777 (octal) or 511 (base-10). For\n chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal)\n or 493 (base-10). * This might be in conflict with\n other options that affect the file mode, like fsGroup,\n and the result can be other mode bits set.'\n path:\n type: string\n x-dcl-go-name: Path\n description: Required. The relative path of the secret\n in the container.\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: name\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in Cloud Secret\n Manager. Format: {secret} if the secret is in the same project.\n projects/{project}/secrets/{secret} if the secret is in\n a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: name\n vpcAccess:\n type: object\n x-dcl-go-name: VPCAccess\n x-dcl-go-type: ServiceTemplateVPCAccess\n description: VPC Access configuration to use for this Revision. For\n more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.\n properties:\n connector:\n type: string\n x-dcl-go-name: Connector\n description: 'VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}'\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n egress:\n type: string\n x-dcl-go-name: Egress\n x-dcl-go-type: ServiceTemplateVPCAccessEgressEnum\n description: 'Traffic VPC egress settings. Possible values: VPC_EGRESS_UNSPECIFIED,\n ALL_TRAFFIC, PRIVATE_RANGES_ONLY'\n enum:\n - VPC_EGRESS_UNSPECIFIED\n - ALL_TRAFFIC\n - PRIVATE_RANGES_ONLY\n terminalCondition:\n type: object\n x-dcl-go-name: TerminalCondition\n x-dcl-go-type: ServiceTerminalCondition\n readOnly: true\n description: Output only. The Condition of this Service, containing its\n readiness status, and detailed error information in case it did not reach\n a serving state. See comments in `reconciling` for additional information\n on reconciliation process in Cloud Run.\n properties:\n jobReason:\n type: string\n x-dcl-go-name: JobReason\n x-dcl-go-type: ServiceTerminalConditionJobReasonEnum\n description: 'A reason for the job condition. Possible values: JOB_REASON_UNDEFINED,\n JOB_STATUS_SERVICE_POLLING_ERROR'\n x-dcl-conflicts:\n - reason\n - revisionReason\n enum:\n - JOB_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status to\n another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: ServiceTerminalConditionReasonEnum\n description: 'A common (service-level) reason for this condition. Possible\n values: COMMON_REASON_UNDEFINED, UNKNOWN, REVISION_FAILED, PROGRESS_DEADLINE_EXCEEDED,\n CONTAINER_MISSING, CONTAINER_PERMISSION_DENIED, CONTAINER_IMAGE_UNAUTHORIZED,\n CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED, ENCRYPTION_KEY_PERMISSION_DENIED,\n ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED, WAITING_FOR_OPERATION,\n IMMEDIATE_RETRY, POSTPONED_RETRY, INTERNAL'\n x-dcl-conflicts:\n - revisionReason\n - jobReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n - INTERNAL\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: ServiceTerminalConditionRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING, RECREATING,\n HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING, MIN_INSTANCES_NOT_PROVISIONED,\n ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT'\n x-dcl-conflicts:\n - reason\n - jobReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: ServiceTerminalConditionSeverityEnum\n description: 'How to interpret failures of this condition, one of Error,\n Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR, WARNING,\n INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ServiceTerminalConditionStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the Resource\n is ready.'\n traffic:\n type: array\n x-dcl-go-name: Traffic\n description: Specifies how to distribute traffic over a collection of Revisions\n belonging to the Service. If traffic is empty or not provided, defaults\n to 100% traffic to the latest `Ready` Revision.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTraffic\n properties:\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies percent of the traffic to this Revision. This\n defaults to zero if unspecified. Cloud Run currently requires 100\n percent for a single TrafficTarget entry.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: Revision to which to send this portion of traffic, if\n traffic allocation is by revision.\n tag:\n type: string\n x-dcl-go-name: Tag\n description: Indicates a string to be part of the URI to exclusively\n reference this target.\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ServiceTrafficTypeEnum\n description: 'The allocation type for this traffic target. Possible\n values: TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST,\n TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION'\n enum:\n - TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED\n - TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\n - TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION\n trafficStatuses:\n type: array\n x-dcl-go-name: TrafficStatuses\n readOnly: true\n description: Output only. Detailed status information for corresponding\n traffic targets. See comments in `reconciling` for additional information\n on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTrafficStatuses\n properties:\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies percent of the traffic to this Revision.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: Revision to which this traffic is sent.\n tag:\n type: string\n x-dcl-go-name: Tag\n description: Indicates the string used in the URI to exclusively reference\n this target.\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ServiceTrafficStatusesTypeEnum\n description: 'The allocation type for this traffic target. Possible\n values: TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST,\n TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION'\n enum:\n - TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED\n - TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\n - TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION\n uri:\n type: string\n x-dcl-go-name: Uri\n description: Displays the target URI.\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Server assigned unique identifier for the trigger.\n The value is a UUID4 string and guaranteed to remain unchanged until the\n resource is deleted.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last-modified time.\n x-kubernetes-immutable: true\n uri:\n type: string\n x-dcl-go-name: Uri\n readOnly: true\n description: Output only. The main URI in which this Service is serving\n traffic.\n x-kubernetes-immutable: true\n") +var YAML_service = []byte("info:\n title: Run/Service\n description: The Run Service resource\n x-dcl-struct-name: Service\n x-dcl-has-iam: true\npaths:\n get:\n description: The function used to get information about a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n apply:\n description: The function used to apply information about a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n delete:\n description: The function used to delete a Service\n parameters:\n - name: Service\n required: true\n description: A full instance of a Service\n deleteAll:\n description: The function used to delete all Service\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Service\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Service:\n title: Service\n x-dcl-id: projects/{{project}}/locations/{{location}}/services/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: true\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - template\n - project\n - location\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: 'Unstructured key value map that may be set by external tools\n to store and arbitrary metadata. They are not queryable and should be\n preserved when modifying objects. Cloud Run will populate some annotations\n using ''run.googleapis.com'' or ''serving.knative.dev'' namespaces. This\n field follows Kubernetes annotations'' namespacing, limits, and rules.\n More info: http://kubernetes.io/docs/user-guide/annotations'\n binaryAuthorization:\n type: object\n x-dcl-go-name: BinaryAuthorization\n x-dcl-go-type: ServiceBinaryAuthorization\n description: Settings for the Binary Authorization feature.\n properties:\n breakglassJustification:\n type: string\n x-dcl-go-name: BreakglassJustification\n description: If present, indicates to use Breakglass using this justification.\n For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass\n useDefault:\n type: boolean\n x-dcl-go-name: UseDefault\n description: If True, indicates to use the default project's binary\n authorization policy. If False, binary authorization will be disabled\n client:\n type: string\n x-dcl-go-name: Client\n description: Arbitrary identifier for the API client.\n clientVersion:\n type: string\n x-dcl-go-name: ClientVersion\n description: Arbitrary version identifier for the API client.\n createTime:\n type: string\n format: date-time\n x-dcl-go-name: CreateTime\n readOnly: true\n description: Output only. The creation time.\n x-kubernetes-immutable: true\n creator:\n type: string\n x-dcl-go-name: Creator\n readOnly: true\n description: Output only. Email address of the authenticated creator.\n x-kubernetes-immutable: true\n deleteTime:\n type: string\n format: date-time\n x-dcl-go-name: DeleteTime\n readOnly: true\n description: Output only. The deletion time.\n x-kubernetes-immutable: true\n description:\n type: string\n x-dcl-go-name: Description\n description: User-provided description of the Service.\n etag:\n type: string\n x-dcl-go-name: Etag\n readOnly: true\n description: Output only. A system-generated fingerprint for this version\n of the resource. May be used to detect modification conflict during updates.\n x-kubernetes-immutable: true\n expireTime:\n type: string\n format: date-time\n x-dcl-go-name: ExpireTime\n readOnly: true\n description: Output only. For a deleted resource, the time after which it\n will be permamently deleted.\n x-kubernetes-immutable: true\n generation:\n type: integer\n format: int64\n x-dcl-go-name: Generation\n readOnly: true\n description: Output only. A number that monotonically increases every time\n the user modifies the desired state.\n x-kubernetes-immutable: true\n ingress:\n type: string\n x-dcl-go-name: Ingress\n x-dcl-go-type: ServiceIngressEnum\n description: Provides the ingress settings for this Service. On output,\n returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED\n if no revision is active.\n enum:\n - INGRESS_TRAFFIC_UNSPECIFIED\n - INGRESS_TRAFFIC_ALL\n - INGRESS_TRAFFIC_INTERNAL_ONLY\n - INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n readOnly: true\n description: Map of string keys and values that can be used to organize\n and categorize objects. User-provided labels are shared with Google's\n billing system, so they can be used to filter, or break down billing charges\n by team, component, environment, state, etc. For more information, visit\n https://cloud.google.com/resource-manager/docs/creating-managing-labels\n or https://cloud.google.com/run/docs/configuring/labels Cloud Run will\n populate some labels with 'run.googleapis.com' or 'serving.knative.dev'\n namespaces. Those labels are read-only, and user changes will not be preserved.\n x-kubernetes-immutable: true\n lastModifier:\n type: string\n x-dcl-go-name: LastModifier\n readOnly: true\n description: Output only. Email address of the last authenticated modifier.\n x-kubernetes-immutable: true\n latestCreatedRevision:\n type: string\n x-dcl-go-name: LatestCreatedRevision\n readOnly: true\n description: Output only. Name of the last created revision. See comments\n in `reconciling` for additional information on reconciliation process\n in Cloud Run.\n x-kubernetes-immutable: true\n latestReadyRevision:\n type: string\n x-dcl-go-name: LatestReadyRevision\n readOnly: true\n description: Output only. Name of the latest revision that is serving traffic.\n See comments in `reconciling` for additional information on reconciliation\n process in Cloud Run.\n x-kubernetes-immutable: true\n launchStage:\n type: string\n x-dcl-go-name: LaunchStage\n x-dcl-go-type: ServiceLaunchStageEnum\n description: 'The launch stage as defined by [Google Cloud Platform Launch\n Stages](http://cloud.google.com/terms/launch-stages). Cloud Run supports\n `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Possible\n values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, EARLY_ACCESS,\n ALPHA, BETA, GA, DEPRECATED'\n enum:\n - LAUNCH_STAGE_UNSPECIFIED\n - UNIMPLEMENTED\n - PRELAUNCH\n - EARLY_ACCESS\n - ALPHA\n - BETA\n - GA\n - DEPRECATED\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Output only. The fully qualified name of this Service, composed\n from CreateServiceRequest.parent and CreateServiceRequest.service_id.\n Format: projects/{project}/locations/{location}/services/{service_id}'\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n reconciling:\n type: boolean\n x-dcl-go-name: Reconciling\n readOnly: true\n description: 'Output only. Returns true if the Service is currently being\n acted upon by the system to bring it into the desired state. When a new\n Service is created, or an existing one is updated, Cloud Run will asynchronously\n perform all necessary steps to bring the Service to the desired serving\n state. This process is called reconciliation. While reconciliation is\n in process, `observed_generation`, `latest_ready_revison`, `traffic_statuses`,\n and `uri` will have transient values that might mismatch the intended\n state: Once reconciliation is over (and this field is false), there are\n two possible outcomes: reconciliation succeeded and the serving state\n matches the Service, or there was an error, and reconciliation failed.\n This state can be found in `terminal_condition.state`. If reconciliation\n succeeded, the following fields will match: `traffic` and `traffic_statuses`,\n `observed_generation` and `generation`, `latest_ready_revision` and `latest_created_revision`.\n If reconciliation failed, `traffic_statuses`, `observed_generation`, and\n `latest_ready_revision` will have the state of the last serving revision,\n or empty for newly created Services. Additional information on the failure\n can be found in `terminal_condition` and `conditions`.'\n x-kubernetes-immutable: true\n template:\n type: object\n x-dcl-go-name: Template\n x-dcl-go-type: ServiceTemplate\n description: Required. The template used to create revisions for this Service.\n properties:\n annotations:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Annotations\n description: KRM-style annotations for the resource.\n containerConcurrency:\n type: integer\n format: int64\n x-dcl-go-name: ContainerConcurrency\n description: Sets the maximum number of requests that each serving instance\n can receive.\n x-dcl-server-default: true\n containers:\n type: array\n x-dcl-go-name: Containers\n description: Holds the single container that defines the unit of execution\n for this Revision.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainers\n required:\n - image\n properties:\n args:\n type: array\n x-dcl-go-name: Args\n description: 'Arguments to the entrypoint. The docker image''s\n CMD is used if this is not provided. Variable references $(VAR_NAME)\n are expanded using the container''s environment. If a variable\n cannot be resolved, the reference in the input string will be\n unchanged. The $(VAR_NAME) syntax can be escaped with a double\n $$, ie: $$(VAR_NAME). Escaped references will never be expanded,\n regardless of whether the variable exists or not. More info:\n https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n command:\n type: array\n x-dcl-go-name: Command\n description: 'Entrypoint array. Not executed within a shell. The\n docker image''s ENTRYPOINT is used if this is not provided.\n Variable references $(VAR_NAME) are expanded using the container''s\n environment. If a variable cannot be resolved, the reference\n in the input string will be unchanged. The $(VAR_NAME) syntax\n can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable exists\n or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n env:\n type: array\n x-dcl-go-name: Env\n description: List of environment variables to set in the container.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersEnv\n required:\n - name\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Name of the environment variable.\n Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.\n value:\n type: string\n x-dcl-go-name: Value\n description: 'Variable references $(VAR_NAME) are expanded\n using the previous defined environment variables in the\n container and any route environment variables. If a variable\n cannot be resolved, the reference in the input string\n will be unchanged. The $(VAR_NAME) syntax can be escaped\n with a double $$, ie: $$(VAR_NAME). Escaped references\n will never be expanded, regardless of whether the variable\n exists or not. Defaults to \"\", and the maximum length\n is 32768 bytes.'\n x-dcl-conflicts:\n - valueSource\n valueSource:\n type: object\n x-dcl-go-name: ValueSource\n x-dcl-go-type: ServiceTemplateContainersEnvValueSource\n description: Source for the environment variable's value.\n x-dcl-conflicts:\n - value\n properties:\n secretKeyRef:\n type: object\n x-dcl-go-name: SecretKeyRef\n x-dcl-go-type: ServiceTemplateContainersEnvValueSourceSecretKeyRef\n description: Selects a secret and a specific version\n from Cloud Secret Manager.\n required:\n - secret\n properties:\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in\n Cloud Secret Manager. Format: {secret_name} if\n the secret is in the same project. projects/{project}/secrets/{secret_name}\n if the secret is in a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: name\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: name\n image:\n type: string\n x-dcl-go-name: Image\n description: 'Required. URL of the Container image in Google Container\n Registry or Docker More info: https://kubernetes.io/docs/concepts/containers/images'\n name:\n type: string\n x-dcl-go-name: Name\n description: Name of the container specified as a DNS_LABEL.\n ports:\n type: array\n x-dcl-go-name: Ports\n description: List of ports to expose from the container. Only\n a single port can be specified. The specified ports must be\n listening on all interfaces (0.0.0.0) within the container to\n be accessible. If omitted, a port number will be chosen and\n passed to the container through the PORT environment variable\n for the container to listen on.\n x-dcl-server-default: true\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersPorts\n properties:\n containerPort:\n type: integer\n format: int64\n x-dcl-go-name: ContainerPort\n description: Port number the container listens on. This\n must be a valid TCP port number, 0 < container_port <\n 65536.\n name:\n type: string\n x-dcl-go-name: Name\n description: If specified, used to specify which protocol\n to use. Allowed values are \"http1\" and \"h2c\".\n resources:\n type: object\n x-dcl-go-name: Resources\n x-dcl-go-type: ServiceTemplateContainersResources\n description: 'Compute Resource requirements by this container.\n More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'\n x-dcl-server-default: true\n properties:\n cpuIdle:\n type: boolean\n x-dcl-go-name: CpuIdle\n description: Determines whether CPU should be throttled or\n not outside of requests.\n limits:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Limits\n description: 'Only memory and CPU are supported. Note: The\n only supported values for CPU are ''1'', ''2'', and ''4''.\n Setting 4 CPU requires at least 2Gi of memory. The values\n of the map is string form of the ''quantity'' k8s type:\n https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go'\n volumeMounts:\n type: array\n x-dcl-go-name: VolumeMounts\n description: Volume to mount into the container's filesystem.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateContainersVolumeMounts\n required:\n - name\n - mountPath\n properties:\n mountPath:\n type: string\n x-dcl-go-name: MountPath\n description: Required. Path within the container at which\n the volume should be mounted. Must not contain ':'. For\n Cloud SQL volumes, it can be left empty, or must otherwise\n be `/cloudsql`. All instances defined in the Volume will\n be available as `/cloudsql/[instance]`. For more information\n on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. This must match the Name of a Volume.\n executionEnvironment:\n type: string\n x-dcl-go-name: ExecutionEnvironment\n x-dcl-go-type: ServiceTemplateExecutionEnvironmentEnum\n description: 'The sandbox environment to host this Revision. Possible\n values: EXECUTION_ENVIRONMENT_UNSPECIFIED, EXECUTION_ENVIRONMENT_GEN1,\n EXECUTION_ENVIRONMENT_GEN2'\n enum:\n - EXECUTION_ENVIRONMENT_UNSPECIFIED\n - EXECUTION_ENVIRONMENT_GEN1\n - EXECUTION_ENVIRONMENT_GEN2\n labels:\n type: object\n additionalProperties:\n type: string\n x-dcl-go-name: Labels\n description: KRM-style labels for the resource.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: The unique name for the revision. If this field is omitted,\n it will be automatically generated based on the Service name.\n scaling:\n type: object\n x-dcl-go-name: Scaling\n x-dcl-go-type: ServiceTemplateScaling\n description: Scaling settings for this Revision.\n properties:\n maxInstanceCount:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstanceCount\n description: Maximum number of serving instances that this resource\n should have.\n minInstanceCount:\n type: integer\n format: int64\n x-dcl-go-name: MinInstanceCount\n description: Minimum number of serving instances that this resource\n should have.\n serviceAccount:\n type: string\n x-dcl-go-name: ServiceAccount\n description: Email address of the IAM service account associated with\n the revision of the service. The service account represents the identity\n of the running revision, and determines what permissions the revision\n has. If not provided, the revision will use the project's default\n service account.\n x-dcl-server-default: true\n x-dcl-references:\n - resource: Iam/ServiceAccount\n field: email\n timeout:\n type: string\n x-dcl-go-name: Timeout\n description: Max allowed time for an instance to respond to a request.\n x-dcl-server-default: true\n volumes:\n type: array\n x-dcl-go-name: Volumes\n description: A list of Volumes to make available to containers.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateVolumes\n required:\n - name\n properties:\n cloudSqlInstance:\n type: object\n x-dcl-go-name: CloudSqlInstance\n x-dcl-go-type: ServiceTemplateVolumesCloudSqlInstance\n description: For Cloud SQL volumes, contains the specific instances\n that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud Run.\n x-dcl-conflicts:\n - secret\n properties:\n instances:\n type: array\n x-dcl-go-name: Instances\n description: 'The Cloud SQL instance connection names, as\n can be found in https://console.cloud.google.com/sql/instances.\n Visit https://cloud.google.com/sql/docs/mysql/connect-run\n for more information on how to connect Cloud SQL and Cloud\n Run. Format: {project}:{location}:{instance}'\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n x-dcl-references:\n - resource: Sql/Instance\n field: instanceName\n name:\n type: string\n x-dcl-go-name: Name\n description: Required. Volume's name.\n secret:\n type: object\n x-dcl-go-name: Secret\n x-dcl-go-type: ServiceTemplateVolumesSecret\n description: 'Secret represents a secret that should populate\n this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret'\n x-dcl-conflicts:\n - cloudSqlInstance\n required:\n - secret\n properties:\n defaultMode:\n type: integer\n format: int64\n x-dcl-go-name: DefaultMode\n description: 'Integer representation of mode bits to use on\n created files by default. Must be a value between 0000 and\n 0777 (octal), defaulting to 0644. Directories within the\n path are not affected by this setting. Notes * Internally,\n a umask of 0222 will be applied to any non-zero value. *\n This is an integer representation of the mode bits. So,\n the octal integer value should look exactly as the chmod\n numeric notation with a leading zero. Some examples: for\n chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10).\n For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or\n 493 (base-10). * This might be in conflict with other options\n that affect the file mode, like fsGroup, and the result\n can be other mode bits set. This might be in conflict with\n other options that affect the file mode, like fsGroup, and\n as a result, other mode bits could be set.'\n items:\n type: array\n x-dcl-go-name: Items\n description: If unspecified, the volume will expose a file\n whose name is the secret, relative to VolumeMount.mount_path.\n If specified, the key will be used as the version to fetch\n from Cloud Secret Manager and the path will be the name\n of the file exposed in the volume. When items are defined,\n they must specify a path and a version.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTemplateVolumesSecretItems\n required:\n - path\n properties:\n mode:\n type: integer\n format: int64\n x-dcl-go-name: Mode\n description: 'Integer octal mode bits to use on this\n file, must be a value between 01 and 0777 (octal).\n If 0 or not set, the Volume''s default mode will be\n used. Notes * Internally, a umask of 0222 will be\n applied to any non-zero value. * This is an integer\n representation of the mode bits. So, the octal integer\n value should look exactly as the chmod numeric notation\n with a leading zero. Some examples: for chmod 777\n (a=rwx), set to 0777 (octal) or 511 (base-10). For\n chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10).\n For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal)\n or 493 (base-10). * This might be in conflict with\n other options that affect the file mode, like fsGroup,\n and the result can be other mode bits set.'\n path:\n type: string\n x-dcl-go-name: Path\n description: Required. The relative path of the secret\n in the container.\n version:\n type: string\n x-dcl-go-name: Version\n description: The Cloud Secret Manager secret version.\n Can be 'latest' for the latest value or an integer\n for a specific version.\n x-dcl-references:\n - resource: Secretmanager/SecretVersion\n field: name\n secret:\n type: string\n x-dcl-go-name: Secret\n description: 'Required. The name of the secret in Cloud Secret\n Manager. Format: {secret} if the secret is in the same project.\n projects/{project}/secrets/{secret} if the secret is in\n a different project.'\n x-dcl-references:\n - resource: Secretmanager/Secret\n field: name\n vpcAccess:\n type: object\n x-dcl-go-name: VPCAccess\n x-dcl-go-type: ServiceTemplateVPCAccess\n description: VPC Access configuration to use for this Revision. For\n more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.\n properties:\n connector:\n type: string\n x-dcl-go-name: Connector\n description: 'VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}'\n x-dcl-references:\n - resource: Vpcaccess/Connector\n field: name\n egress:\n type: string\n x-dcl-go-name: Egress\n x-dcl-go-type: ServiceTemplateVPCAccessEgressEnum\n description: 'Traffic VPC egress settings. Possible values: VPC_EGRESS_UNSPECIFIED,\n ALL_TRAFFIC, PRIVATE_RANGES_ONLY'\n enum:\n - VPC_EGRESS_UNSPECIFIED\n - ALL_TRAFFIC\n - PRIVATE_RANGES_ONLY\n terminalCondition:\n type: object\n x-dcl-go-name: TerminalCondition\n x-dcl-go-type: ServiceTerminalCondition\n readOnly: true\n description: Output only. The Condition of this Service, containing its\n readiness status, and detailed error information in case it did not reach\n a serving state. See comments in `reconciling` for additional information\n on reconciliation process in Cloud Run.\n properties:\n jobReason:\n type: string\n x-dcl-go-name: JobReason\n x-dcl-go-type: ServiceTerminalConditionJobReasonEnum\n description: 'A reason for the job condition. Possible values: JOB_REASON_UNDEFINED,\n JOB_STATUS_SERVICE_POLLING_ERROR'\n x-dcl-conflicts:\n - reason\n - revisionReason\n enum:\n - JOB_REASON_UNDEFINED\n - JOB_STATUS_SERVICE_POLLING_ERROR\n lastTransitionTime:\n type: string\n format: date-time\n x-dcl-go-name: LastTransitionTime\n description: Last time the condition transitioned from one status to\n another.\n message:\n type: string\n x-dcl-go-name: Message\n description: Human readable message indicating details about the current\n status.\n reason:\n type: string\n x-dcl-go-name: Reason\n x-dcl-go-type: ServiceTerminalConditionReasonEnum\n description: 'A common (service-level) reason for this condition. Possible\n values: COMMON_REASON_UNDEFINED, UNKNOWN, REVISION_FAILED, PROGRESS_DEADLINE_EXCEEDED,\n CONTAINER_MISSING, CONTAINER_PERMISSION_DENIED, CONTAINER_IMAGE_UNAUTHORIZED,\n CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED, ENCRYPTION_KEY_PERMISSION_DENIED,\n ENCRYPTION_KEY_CHECK_FAILED, SECRETS_ACCESS_CHECK_FAILED, WAITING_FOR_OPERATION,\n IMMEDIATE_RETRY, POSTPONED_RETRY, INTERNAL'\n x-dcl-conflicts:\n - revisionReason\n - jobReason\n enum:\n - COMMON_REASON_UNDEFINED\n - UNKNOWN\n - REVISION_FAILED\n - PROGRESS_DEADLINE_EXCEEDED\n - CONTAINER_MISSING\n - CONTAINER_PERMISSION_DENIED\n - CONTAINER_IMAGE_UNAUTHORIZED\n - CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\n - ENCRYPTION_KEY_PERMISSION_DENIED\n - ENCRYPTION_KEY_CHECK_FAILED\n - SECRETS_ACCESS_CHECK_FAILED\n - WAITING_FOR_OPERATION\n - IMMEDIATE_RETRY\n - POSTPONED_RETRY\n - INTERNAL\n revisionReason:\n type: string\n x-dcl-go-name: RevisionReason\n x-dcl-go-type: ServiceTerminalConditionRevisionReasonEnum\n description: 'A reason for the revision condition. Possible values:\n REVISION_REASON_UNDEFINED, PENDING, RESERVE, RETIRED, RETIRING, RECREATING,\n HEALTH_CHECK_CONTAINER_ERROR, CUSTOMIZED_PATH_RESPONSE_PENDING, MIN_INSTANCES_NOT_PROVISIONED,\n ACTIVE_REVISION_LIMIT_REACHED, NO_DEPLOYMENT'\n x-dcl-conflicts:\n - reason\n - jobReason\n enum:\n - REVISION_REASON_UNDEFINED\n - PENDING\n - RESERVE\n - RETIRED\n - RETIRING\n - RECREATING\n - HEALTH_CHECK_CONTAINER_ERROR\n - CUSTOMIZED_PATH_RESPONSE_PENDING\n - MIN_INSTANCES_NOT_PROVISIONED\n - ACTIVE_REVISION_LIMIT_REACHED\n - NO_DEPLOYMENT\n severity:\n type: string\n x-dcl-go-name: Severity\n x-dcl-go-type: ServiceTerminalConditionSeverityEnum\n description: 'How to interpret failures of this condition, one of Error,\n Warning, Info Possible values: SEVERITY_UNSPECIFIED, ERROR, WARNING,\n INFO'\n enum:\n - SEVERITY_UNSPECIFIED\n - ERROR\n - WARNING\n - INFO\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ServiceTerminalConditionStateEnum\n description: 'State of the condition. Possible values: STATE_UNSPECIFIED,\n CONDITION_PENDING, CONDITION_RECONCILING, CONDITION_FAILED, CONDITION_SUCCEEDED'\n enum:\n - STATE_UNSPECIFIED\n - CONDITION_PENDING\n - CONDITION_RECONCILING\n - CONDITION_FAILED\n - CONDITION_SUCCEEDED\n type:\n type: string\n x-dcl-go-name: Type\n description: 'type is used to communicate the status of the reconciliation\n process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting\n Types common to all resources include: * \"Ready\": True when the Resource\n is ready.'\n traffic:\n type: array\n x-dcl-go-name: Traffic\n description: Specifies how to distribute traffic over a collection of Revisions\n belonging to the Service. If traffic is empty or not provided, defaults\n to 100% traffic to the latest `Ready` Revision.\n x-dcl-send-empty: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTraffic\n properties:\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies percent of the traffic to this Revision. This\n defaults to zero if unspecified. Cloud Run currently requires 100\n percent for a single TrafficTarget entry.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: Revision to which to send this portion of traffic, if\n traffic allocation is by revision.\n tag:\n type: string\n x-dcl-go-name: Tag\n description: Indicates a string to be part of the URI to exclusively\n reference this target.\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ServiceTrafficTypeEnum\n description: 'The allocation type for this traffic target. Possible\n values: TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST,\n TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION'\n enum:\n - TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED\n - TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\n - TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION\n trafficStatuses:\n type: array\n x-dcl-go-name: TrafficStatuses\n readOnly: true\n description: Output only. Detailed status information for corresponding\n traffic targets. See comments in `reconciling` for additional information\n on reconciliation process in Cloud Run.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: object\n x-dcl-go-type: ServiceTrafficStatuses\n properties:\n percent:\n type: integer\n format: int64\n x-dcl-go-name: Percent\n description: Specifies percent of the traffic to this Revision.\n revision:\n type: string\n x-dcl-go-name: Revision\n description: Revision to which this traffic is sent.\n tag:\n type: string\n x-dcl-go-name: Tag\n description: Indicates the string used in the URI to exclusively reference\n this target.\n type:\n type: string\n x-dcl-go-name: Type\n x-dcl-go-type: ServiceTrafficStatusesTypeEnum\n description: 'The allocation type for this traffic target. Possible\n values: TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST,\n TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION'\n enum:\n - TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED\n - TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\n - TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION\n uri:\n type: string\n x-dcl-go-name: Uri\n description: Displays the target URI.\n uid:\n type: string\n x-dcl-go-name: Uid\n readOnly: true\n description: Output only. Server assigned unique identifier for the trigger.\n The value is a UUID4 string and guaranteed to remain unchanged until the\n resource is deleted.\n x-kubernetes-immutable: true\n updateTime:\n type: string\n format: date-time\n x-dcl-go-name: UpdateTime\n readOnly: true\n description: Output only. The last-modified time.\n x-kubernetes-immutable: true\n uri:\n type: string\n x-dcl-go-name: Uri\n readOnly: true\n description: Output only. The main URI in which this Service is serving\n traffic.\n x-kubernetes-immutable: true\n") -// 43327 bytes -// MD5: 877305590f70f069fac55caa15b0ad1a +// 43544 bytes +// MD5: bbf4731e8d10d6341b9c6c50f9c5e516 diff --git a/services/google/run/alpha/service_schema.go b/services/google/run/alpha/service_schema.go index d903e63889..5141dc0d7f 100755 --- a/services/google/run/alpha/service_schema.go +++ b/services/google/run/alpha/service_schema.go @@ -304,10 +304,11 @@ func DCLServiceSchema() *dcl.Schema { Description: "KRM-style annotations for the resource.", }, "containerConcurrency": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "ContainerConcurrency", - Description: "Sets the maximum number of requests that each serving instance can receive.", + Type: "integer", + Format: "int64", + GoName: "ContainerConcurrency", + Description: "Sets the maximum number of requests that each serving instance can receive.", + ServerDefault: true, }, "containers": &dcl.Property{ Type: "array", @@ -428,11 +429,12 @@ func DCLServiceSchema() *dcl.Schema { Description: "Name of the container specified as a DNS_LABEL.", }, "ports": &dcl.Property{ - Type: "array", - GoName: "Ports", - Description: "List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.", - SendEmpty: true, - ListType: "list", + Type: "array", + GoName: "Ports", + Description: "List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.", + ServerDefault: true, + SendEmpty: true, + ListType: "list", Items: &dcl.Property{ Type: "object", GoType: "ServiceTemplateContainersPorts", @@ -452,10 +454,11 @@ func DCLServiceSchema() *dcl.Schema { }, }, "resources": &dcl.Property{ - Type: "object", - GoName: "Resources", - GoType: "ServiceTemplateContainersResources", - Description: "Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", + Type: "object", + GoName: "Resources", + GoType: "ServiceTemplateContainersResources", + Description: "Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources", + ServerDefault: true, Properties: map[string]*dcl.Property{ "cpuIdle": &dcl.Property{ Type: "boolean", @@ -547,9 +550,10 @@ func DCLServiceSchema() *dcl.Schema { }, }, "serviceAccount": &dcl.Property{ - Type: "string", - GoName: "ServiceAccount", - Description: "Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.", + Type: "string", + GoName: "ServiceAccount", + Description: "Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.", + ServerDefault: true, ResourceReferences: []*dcl.PropertyResourceReference{ &dcl.PropertyResourceReference{ Resource: "Iam/ServiceAccount", @@ -558,9 +562,10 @@ func DCLServiceSchema() *dcl.Schema { }, }, "timeout": &dcl.Property{ - Type: "string", - GoName: "Timeout", - Description: "Max allowed time for an instance to respond to a request.", + Type: "string", + GoName: "Timeout", + Description: "Max allowed time for an instance to respond to a request.", + ServerDefault: true, }, "volumes": &dcl.Property{ Type: "array", diff --git a/services/google/vpcaccess/alpha/connector.yaml b/services/google/vpcaccess/alpha/connector.yaml index b208beabab..f2e65c8637 100755 --- a/services/google/vpcaccess/alpha/connector.yaml +++ b/services/google/vpcaccess/alpha/connector.yaml @@ -101,6 +101,7 @@ components: description: Machine type of VM Instance underlying connector. Default is e2-micro x-kubernetes-immutable: true + x-dcl-server-default: true maxInstances: type: integer format: int64 @@ -108,6 +109,7 @@ components: description: Maximum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true maxThroughput: type: integer format: int64 @@ -115,6 +117,7 @@ components: description: Maximum throughput of the connector in Mbps. Default is 200, max is 1000. x-kubernetes-immutable: true + x-dcl-server-default: true minInstances: type: integer format: int64 @@ -122,6 +125,7 @@ components: description: Minimum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true minThroughput: type: integer format: int64 @@ -129,6 +133,7 @@ components: description: Minimum throughput of the connector in Mbps. Default and min is 200. x-kubernetes-immutable: true + x-dcl-server-default: true name: type: string x-dcl-go-name: Name diff --git a/services/google/vpcaccess/alpha/connector_alpha_yaml_embed.go b/services/google/vpcaccess/alpha/connector_alpha_yaml_embed.go index eeca1ca1e0..38cb9934d4 100755 --- a/services/google/vpcaccess/alpha/connector_alpha_yaml_embed.go +++ b/services/google/vpcaccess/alpha/connector_alpha_yaml_embed.go @@ -17,7 +17,7 @@ package alpha // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/vpcaccess/alpha/connector.yaml -var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") +var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") -// 6096 bytes -// MD5: 3e62ac7735b8c95f598f194e1b987574 +// 6281 bytes +// MD5: 96b37af7efd981f0710216843e8a7c69 diff --git a/services/google/vpcaccess/alpha/connector_schema.go b/services/google/vpcaccess/alpha/connector_schema.go index 8c205a926d..8cc36b6e2c 100755 --- a/services/google/vpcaccess/alpha/connector_schema.go +++ b/services/google/vpcaccess/alpha/connector_schema.go @@ -134,38 +134,43 @@ func DCLConnectorSchema() *dcl.Schema { Immutable: true, }, "machineType": &dcl.Property{ - Type: "string", - GoName: "MachineType", - Description: "Machine type of VM Instance underlying connector. Default is e2-micro", - Immutable: true, + Type: "string", + GoName: "MachineType", + Description: "Machine type of VM Instance underlying connector. Default is e2-micro", + Immutable: true, + ServerDefault: true, }, "maxInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxInstances", - Description: "Maximum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxInstances", + Description: "Maximum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "maxThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxThroughput", - Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxThroughput", + Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", + Immutable: true, + ServerDefault: true, }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Minimum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Minimum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "minThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinThroughput", - Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinThroughput", + Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", + Immutable: true, + ServerDefault: true, }, "name": &dcl.Property{ Type: "string", diff --git a/services/google/vpcaccess/beta/connector.yaml b/services/google/vpcaccess/beta/connector.yaml index b208beabab..f2e65c8637 100755 --- a/services/google/vpcaccess/beta/connector.yaml +++ b/services/google/vpcaccess/beta/connector.yaml @@ -101,6 +101,7 @@ components: description: Machine type of VM Instance underlying connector. Default is e2-micro x-kubernetes-immutable: true + x-dcl-server-default: true maxInstances: type: integer format: int64 @@ -108,6 +109,7 @@ components: description: Maximum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true maxThroughput: type: integer format: int64 @@ -115,6 +117,7 @@ components: description: Maximum throughput of the connector in Mbps. Default is 200, max is 1000. x-kubernetes-immutable: true + x-dcl-server-default: true minInstances: type: integer format: int64 @@ -122,6 +125,7 @@ components: description: Minimum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true minThroughput: type: integer format: int64 @@ -129,6 +133,7 @@ components: description: Minimum throughput of the connector in Mbps. Default and min is 200. x-kubernetes-immutable: true + x-dcl-server-default: true name: type: string x-dcl-go-name: Name diff --git a/services/google/vpcaccess/beta/connector_beta_yaml_embed.go b/services/google/vpcaccess/beta/connector_beta_yaml_embed.go index c80d04ca34..b6c158b908 100755 --- a/services/google/vpcaccess/beta/connector_beta_yaml_embed.go +++ b/services/google/vpcaccess/beta/connector_beta_yaml_embed.go @@ -17,7 +17,7 @@ package beta // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/vpcaccess/beta/connector.yaml -var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") +var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") -// 6096 bytes -// MD5: 3e62ac7735b8c95f598f194e1b987574 +// 6281 bytes +// MD5: 96b37af7efd981f0710216843e8a7c69 diff --git a/services/google/vpcaccess/beta/connector_schema.go b/services/google/vpcaccess/beta/connector_schema.go index 7a982cce55..603e135f0f 100755 --- a/services/google/vpcaccess/beta/connector_schema.go +++ b/services/google/vpcaccess/beta/connector_schema.go @@ -134,38 +134,43 @@ func DCLConnectorSchema() *dcl.Schema { Immutable: true, }, "machineType": &dcl.Property{ - Type: "string", - GoName: "MachineType", - Description: "Machine type of VM Instance underlying connector. Default is e2-micro", - Immutable: true, + Type: "string", + GoName: "MachineType", + Description: "Machine type of VM Instance underlying connector. Default is e2-micro", + Immutable: true, + ServerDefault: true, }, "maxInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxInstances", - Description: "Maximum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxInstances", + Description: "Maximum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "maxThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxThroughput", - Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxThroughput", + Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", + Immutable: true, + ServerDefault: true, }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Minimum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Minimum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "minThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinThroughput", - Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinThroughput", + Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", + Immutable: true, + ServerDefault: true, }, "name": &dcl.Property{ Type: "string", diff --git a/services/google/vpcaccess/connector.yaml b/services/google/vpcaccess/connector.yaml index b208beabab..f2e65c8637 100755 --- a/services/google/vpcaccess/connector.yaml +++ b/services/google/vpcaccess/connector.yaml @@ -101,6 +101,7 @@ components: description: Machine type of VM Instance underlying connector. Default is e2-micro x-kubernetes-immutable: true + x-dcl-server-default: true maxInstances: type: integer format: int64 @@ -108,6 +109,7 @@ components: description: Maximum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true maxThroughput: type: integer format: int64 @@ -115,6 +117,7 @@ components: description: Maximum throughput of the connector in Mbps. Default is 200, max is 1000. x-kubernetes-immutable: true + x-dcl-server-default: true minInstances: type: integer format: int64 @@ -122,6 +125,7 @@ components: description: Minimum value of instances in autoscaling group underlying the connector. x-kubernetes-immutable: true + x-dcl-server-default: true minThroughput: type: integer format: int64 @@ -129,6 +133,7 @@ components: description: Minimum throughput of the connector in Mbps. Default and min is 200. x-kubernetes-immutable: true + x-dcl-server-default: true name: type: string x-dcl-go-name: Name diff --git a/services/google/vpcaccess/connector_schema.go b/services/google/vpcaccess/connector_schema.go index 097ad9a4bf..800e5835b6 100755 --- a/services/google/vpcaccess/connector_schema.go +++ b/services/google/vpcaccess/connector_schema.go @@ -134,38 +134,43 @@ func DCLConnectorSchema() *dcl.Schema { Immutable: true, }, "machineType": &dcl.Property{ - Type: "string", - GoName: "MachineType", - Description: "Machine type of VM Instance underlying connector. Default is e2-micro", - Immutable: true, + Type: "string", + GoName: "MachineType", + Description: "Machine type of VM Instance underlying connector. Default is e2-micro", + Immutable: true, + ServerDefault: true, }, "maxInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxInstances", - Description: "Maximum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxInstances", + Description: "Maximum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "maxThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MaxThroughput", - Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MaxThroughput", + Description: "Maximum throughput of the connector in Mbps. Default is 200, max is 1000.", + Immutable: true, + ServerDefault: true, }, "minInstances": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinInstances", - Description: "Minimum value of instances in autoscaling group underlying the connector.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinInstances", + Description: "Minimum value of instances in autoscaling group underlying the connector.", + Immutable: true, + ServerDefault: true, }, "minThroughput": &dcl.Property{ - Type: "integer", - Format: "int64", - GoName: "MinThroughput", - Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", - Immutable: true, + Type: "integer", + Format: "int64", + GoName: "MinThroughput", + Description: "Minimum throughput of the connector in Mbps. Default and min is 200.", + Immutable: true, + ServerDefault: true, }, "name": &dcl.Property{ Type: "string", diff --git a/services/google/vpcaccess/connector_yaml_embed.go b/services/google/vpcaccess/connector_yaml_embed.go index 5941d45e86..48bda4a07c 100755 --- a/services/google/vpcaccess/connector_yaml_embed.go +++ b/services/google/vpcaccess/connector_yaml_embed.go @@ -17,7 +17,7 @@ package vpcaccess // blaze-out/k8-fastbuild/genfiles/cloud/graphite/mmv2/services/google/vpcaccess/connector.yaml -var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") +var YAML_connector = []byte("info:\n title: VPCAccess/Connector\n description: The VPCAccess Connector resource\n x-dcl-struct-name: Connector\n x-dcl-has-iam: false\npaths:\n get:\n description: The function used to get information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n apply:\n description: The function used to apply information about a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n delete:\n description: The function used to delete a Connector\n parameters:\n - name: Connector\n required: true\n description: A full instance of a Connector\n deleteAll:\n description: The function used to delete all Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\n list:\n description: The function used to list information about many Connector\n parameters:\n - name: project\n required: true\n schema:\n type: string\n - name: location\n required: true\n schema:\n type: string\ncomponents:\n schemas:\n Connector:\n title: Connector\n x-dcl-id: projects/{{project}}/locations/{{location}}/connectors/{{name}}\n x-dcl-parent-container: project\n x-dcl-has-create: true\n x-dcl-has-iam: false\n x-dcl-read-timeout: 0\n x-dcl-apply-timeout: 0\n x-dcl-delete-timeout: 0\n type: object\n required:\n - name\n - project\n - location\n properties:\n connectedProjects:\n type: array\n x-dcl-go-name: ConnectedProjects\n readOnly: true\n description: Output only. List of projects using the connector.\n x-kubernetes-immutable: true\n x-dcl-list-type: list\n items:\n type: string\n x-dcl-go-type: string\n ipCidrRange:\n type: string\n x-dcl-go-name: IPCidrRange\n description: 'The range of internal addresses that follows RFC 4632 notation.\n Example: `10.132.0.0/28`.'\n x-kubernetes-immutable: true\n location:\n type: string\n x-dcl-go-name: Location\n description: The location for the resource\n x-kubernetes-immutable: true\n machineType:\n type: string\n x-dcl-go-name: MachineType\n description: Machine type of VM Instance underlying connector. Default is\n e2-micro\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxInstances:\n type: integer\n format: int64\n x-dcl-go-name: MaxInstances\n description: Maximum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n maxThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MaxThroughput\n description: Maximum throughput of the connector in Mbps. Default is 200,\n max is 1000.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minInstances:\n type: integer\n format: int64\n x-dcl-go-name: MinInstances\n description: Minimum value of instances in autoscaling group underlying\n the connector.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n minThroughput:\n type: integer\n format: int64\n x-dcl-go-name: MinThroughput\n description: Minimum throughput of the connector in Mbps. Default and min\n is 200.\n x-kubernetes-immutable: true\n x-dcl-server-default: true\n name:\n type: string\n x-dcl-go-name: Name\n description: The resource name in the format `projects/*/locations/*/connectors/*`.\n x-kubernetes-immutable: true\n network:\n type: string\n x-dcl-go-name: Network\n description: Name of a VPC network.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Network\n field: name\n project:\n type: string\n x-dcl-go-name: Project\n description: The project for the resource\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n parent: true\n state:\n type: string\n x-dcl-go-name: State\n x-dcl-go-type: ConnectorStateEnum\n readOnly: true\n description: 'Output only. State of the VPC access connector. Possible values:\n STATE_UNSPECIFIED, READY, CREATING, DELETING, ERROR, UPDATING'\n x-kubernetes-immutable: true\n enum:\n - STATE_UNSPECIFIED\n - READY\n - CREATING\n - DELETING\n - ERROR\n - UPDATING\n subnet:\n type: object\n x-dcl-go-name: Subnet\n x-dcl-go-type: ConnectorSubnet\n description: The subnet in which to house the VPC Access Connector.\n x-kubernetes-immutable: true\n properties:\n name:\n type: string\n x-dcl-go-name: Name\n description: 'Subnet name (relative, not fully qualified). E.g. if the\n full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName}\n the correct input for this field would be: {subnetName}'\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Compute/Subnetwork\n field: name\n parent: true\n projectId:\n type: string\n x-dcl-go-name: ProjectId\n description: Project in which the subnet exists. If not set, this project\n is assumed to be the project for which the connector create request\n was issued.\n x-kubernetes-immutable: true\n x-dcl-references:\n - resource: Cloudresourcemanager/Project\n field: name\n") -// 6096 bytes -// MD5: 3e62ac7735b8c95f598f194e1b987574 +// 6281 bytes +// MD5: 96b37af7efd981f0710216843e8a7c69