google-cloud-container 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "methods": {
23
23
  "ListClusters": {
24
- "timeout_millis": 20000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "GetCluster": {
29
- "timeout_millis": 20000,
29
+ "timeout_millis": 60000,
30
30
  "retry_codes_name": "idempotent",
31
31
  "retry_params_name": "default"
32
32
  },
@@ -36,139 +36,144 @@
36
36
  "retry_params_name": "default"
37
37
  },
38
38
  "UpdateCluster": {
39
- "timeout_millis": 20000,
39
+ "timeout_millis": 60000,
40
40
  "retry_codes_name": "non_idempotent",
41
41
  "retry_params_name": "default"
42
42
  },
43
43
  "UpdateNodePool": {
44
- "timeout_millis": 20000,
44
+ "timeout_millis": 60000,
45
45
  "retry_codes_name": "non_idempotent",
46
46
  "retry_params_name": "default"
47
47
  },
48
48
  "SetNodePoolAutoscaling": {
49
- "timeout_millis": 20000,
49
+ "timeout_millis": 60000,
50
50
  "retry_codes_name": "non_idempotent",
51
51
  "retry_params_name": "default"
52
52
  },
53
53
  "SetLoggingService": {
54
- "timeout_millis": 20000,
54
+ "timeout_millis": 60000,
55
55
  "retry_codes_name": "non_idempotent",
56
56
  "retry_params_name": "default"
57
57
  },
58
58
  "SetMonitoringService": {
59
- "timeout_millis": 20000,
59
+ "timeout_millis": 60000,
60
60
  "retry_codes_name": "non_idempotent",
61
61
  "retry_params_name": "default"
62
62
  },
63
63
  "SetAddonsConfig": {
64
- "timeout_millis": 20000,
64
+ "timeout_millis": 60000,
65
65
  "retry_codes_name": "non_idempotent",
66
66
  "retry_params_name": "default"
67
67
  },
68
68
  "SetLocations": {
69
- "timeout_millis": 20000,
69
+ "timeout_millis": 60000,
70
70
  "retry_codes_name": "non_idempotent",
71
71
  "retry_params_name": "default"
72
72
  },
73
73
  "UpdateMaster": {
74
- "timeout_millis": 20000,
74
+ "timeout_millis": 60000,
75
75
  "retry_codes_name": "non_idempotent",
76
76
  "retry_params_name": "default"
77
77
  },
78
78
  "SetMasterAuth": {
79
- "timeout_millis": 20000,
79
+ "timeout_millis": 60000,
80
80
  "retry_codes_name": "non_idempotent",
81
81
  "retry_params_name": "default"
82
82
  },
83
83
  "DeleteCluster": {
84
- "timeout_millis": 20000,
85
- "retry_codes_name": "idempotent",
84
+ "timeout_millis": 60000,
85
+ "retry_codes_name": "non_idempotent",
86
86
  "retry_params_name": "default"
87
87
  },
88
88
  "ListOperations": {
89
- "timeout_millis": 20000,
89
+ "timeout_millis": 60000,
90
90
  "retry_codes_name": "idempotent",
91
91
  "retry_params_name": "default"
92
92
  },
93
93
  "GetOperation": {
94
- "timeout_millis": 20000,
94
+ "timeout_millis": 60000,
95
95
  "retry_codes_name": "idempotent",
96
96
  "retry_params_name": "default"
97
97
  },
98
98
  "CancelOperation": {
99
- "timeout_millis": 20000,
99
+ "timeout_millis": 60000,
100
100
  "retry_codes_name": "non_idempotent",
101
101
  "retry_params_name": "default"
102
102
  },
103
103
  "GetServerConfig": {
104
- "timeout_millis": 20000,
104
+ "timeout_millis": 60000,
105
105
  "retry_codes_name": "idempotent",
106
106
  "retry_params_name": "default"
107
107
  },
108
108
  "ListNodePools": {
109
- "timeout_millis": 20000,
109
+ "timeout_millis": 60000,
110
110
  "retry_codes_name": "idempotent",
111
111
  "retry_params_name": "default"
112
112
  },
113
113
  "GetNodePool": {
114
- "timeout_millis": 20000,
114
+ "timeout_millis": 60000,
115
115
  "retry_codes_name": "idempotent",
116
116
  "retry_params_name": "default"
117
117
  },
118
118
  "CreateNodePool": {
119
- "timeout_millis": 20000,
119
+ "timeout_millis": 60000,
120
120
  "retry_codes_name": "non_idempotent",
121
121
  "retry_params_name": "default"
122
122
  },
123
123
  "DeleteNodePool": {
124
- "timeout_millis": 20000,
125
- "retry_codes_name": "idempotent",
124
+ "timeout_millis": 60000,
125
+ "retry_codes_name": "non_idempotent",
126
126
  "retry_params_name": "default"
127
127
  },
128
128
  "RollbackNodePoolUpgrade": {
129
- "timeout_millis": 20000,
129
+ "timeout_millis": 60000,
130
130
  "retry_codes_name": "non_idempotent",
131
131
  "retry_params_name": "default"
132
132
  },
133
133
  "SetNodePoolManagement": {
134
- "timeout_millis": 20000,
134
+ "timeout_millis": 60000,
135
135
  "retry_codes_name": "non_idempotent",
136
136
  "retry_params_name": "default"
137
137
  },
138
138
  "SetLabels": {
139
- "timeout_millis": 20000,
139
+ "timeout_millis": 60000,
140
140
  "retry_codes_name": "non_idempotent",
141
141
  "retry_params_name": "default"
142
142
  },
143
143
  "SetLegacyAbac": {
144
- "timeout_millis": 20000,
144
+ "timeout_millis": 60000,
145
145
  "retry_codes_name": "non_idempotent",
146
146
  "retry_params_name": "default"
147
147
  },
148
148
  "StartIPRotation": {
149
- "timeout_millis": 20000,
149
+ "timeout_millis": 60000,
150
150
  "retry_codes_name": "non_idempotent",
151
151
  "retry_params_name": "default"
152
152
  },
153
153
  "CompleteIPRotation": {
154
- "timeout_millis": 20000,
154
+ "timeout_millis": 60000,
155
155
  "retry_codes_name": "non_idempotent",
156
156
  "retry_params_name": "default"
157
157
  },
158
158
  "SetNodePoolSize": {
159
- "timeout_millis": 20000,
159
+ "timeout_millis": 60000,
160
160
  "retry_codes_name": "non_idempotent",
161
161
  "retry_params_name": "default"
162
162
  },
163
163
  "SetNetworkPolicy": {
164
- "timeout_millis": 20000,
164
+ "timeout_millis": 60000,
165
165
  "retry_codes_name": "non_idempotent",
166
166
  "retry_params_name": "default"
167
167
  },
168
168
  "SetMaintenancePolicy": {
169
- "timeout_millis": 20000,
169
+ "timeout_millis": 60000,
170
170
  "retry_codes_name": "non_idempotent",
171
171
  "retry_params_name": "default"
172
+ },
173
+ "ListUsableSubnetworks": {
174
+ "timeout_millis": 60000,
175
+ "retry_codes_name": "idempotent",
176
+ "retry_params_name": "default"
172
177
  }
173
178
  }
174
179
  }
@@ -63,6 +63,7 @@ module Google
63
63
  # "cluster-name"
64
64
  # "cluster-uid"
65
65
  # "configure-sh"
66
+ # "containerd-configure-sh"
66
67
  # "enable-os-login"
67
68
  # "gci-update-strategy"
68
69
  # "gci-ensure-gke-docker"
@@ -70,6 +71,13 @@ module Google
70
71
  # "kube-env"
71
72
  # "startup-script"
72
73
  # "user-data"
74
+ # "disable-address-manager"
75
+ # "windows-startup-script-ps1"
76
+ # "common-psm1"
77
+ # "k8s-node-setup-psm1"
78
+ # "install-ssh-psm1"
79
+ # "user-profile-psm1"
80
+ # "serial-port-logging-enable"
73
81
  #
74
82
  # Values are free-form strings, and only have meaning as interpreted by
75
83
  # the image running in the instance. The only restriction placed on them is
@@ -94,9 +102,9 @@ module Google
94
102
  # @return [Integer]
95
103
  # The number of local SSD disks to be attached to the node.
96
104
  #
97
- # The limit for this value is dependant upon the maximum number of
105
+ # The limit for this value is dependent upon the maximum number of
98
106
  # disks available on a machine per zone. See:
99
- # https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
107
+ # https://cloud.google.com/compute/docs/disks/local-ssd
100
108
  # for more information.
101
109
  # @!attribute [rw] tags
102
110
  # @return [Array<String>]
@@ -128,16 +136,74 @@ module Google
128
136
  # <code>minCpuPlatform: &quot;Intel Sandy Bridge&quot;</code>. For more
129
137
  # information, read [how to specify min CPU
130
138
  # platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
139
+ # @!attribute [rw] taints
140
+ # @return [Array<Google::Container::V1::NodeTaint>]
141
+ # List of kubernetes taints to be applied to each node.
142
+ #
143
+ # For more information, including usage and the valid values, see:
144
+ # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
145
+ # @!attribute [rw] shielded_instance_config
146
+ # @return [Google::Container::V1::ShieldedInstanceConfig]
147
+ # Shielded Instance options.
131
148
  class NodeConfig; end
132
149
 
150
+ # A set of Shielded Instance options.
151
+ # @!attribute [rw] enable_secure_boot
152
+ # @return [true, false]
153
+ # Defines whether the instance has Secure Boot enabled.
154
+ #
155
+ # Secure Boot helps ensure that the system only runs authentic software by
156
+ # verifying the digital signature of all boot components, and halting the
157
+ # boot process if signature verification fails.
158
+ # @!attribute [rw] enable_integrity_monitoring
159
+ # @return [true, false]
160
+ # Defines whether the instance has integrity monitoring enabled.
161
+ #
162
+ # Enables monitoring and attestation of the boot integrity of the instance.
163
+ # The attestation is performed against the integrity policy baseline. This
164
+ # baseline is initially derived from the implicitly trusted boot image when
165
+ # the instance is created.
166
+ class ShieldedInstanceConfig; end
167
+
168
+ # Kubernetes taint is comprised of three fields: key, value, and effect. Effect
169
+ # can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
170
+ #
171
+ # For more information, including usage and the valid values, see:
172
+ # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
173
+ # @!attribute [rw] key
174
+ # @return [String]
175
+ # Key for taint.
176
+ # @!attribute [rw] value
177
+ # @return [String]
178
+ # Value for taint.
179
+ # @!attribute [rw] effect
180
+ # @return [Google::Container::V1::NodeTaint::Effect]
181
+ # Effect for taint.
182
+ class NodeTaint
183
+ # Possible values for Effect in taint.
184
+ module Effect
185
+ # Not set
186
+ EFFECT_UNSPECIFIED = 0
187
+
188
+ # NoSchedule
189
+ NO_SCHEDULE = 1
190
+
191
+ # PreferNoSchedule
192
+ PREFER_NO_SCHEDULE = 2
193
+
194
+ # NoExecute
195
+ NO_EXECUTE = 3
196
+ end
197
+ end
198
+
133
199
  # The authentication information for accessing the master endpoint.
134
200
  # Authentication can be done using HTTP basic auth or using client
135
201
  # certificates.
136
202
  # @!attribute [rw] username
137
203
  # @return [String]
138
204
  # The username to use for HTTP basic authentication to the master endpoint.
139
- # For clusters v1.6.0 and later, you can disable basic authentication by
140
- # providing an empty username.
205
+ # For clusters v1.6.0 and later, basic authentication can be disabled by
206
+ # leaving username unspecified (or setting it to the empty string).
141
207
  # @!attribute [rw] password
142
208
  # @return [String]
143
209
  # The password to use for HTTP basic authentication to the master endpoint.
@@ -183,11 +249,19 @@ module Google
183
249
  # @!attribute [rw] kubernetes_dashboard
184
250
  # @return [Google::Container::V1::KubernetesDashboard]
185
251
  # Configuration for the Kubernetes Dashboard.
252
+ # This addon is deprecated, and will be disabled in 1.15. It is recommended
253
+ # to use the Cloud Console to manage and monitor your Kubernetes clusters,
254
+ # workloads and applications. For more information, see:
255
+ # https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
186
256
  # @!attribute [rw] network_policy_config
187
257
  # @return [Google::Container::V1::NetworkPolicyConfig]
188
258
  # Configuration for NetworkPolicy. This only tracks whether the addon
189
259
  # is enabled or not on the Master, it does not track whether network policy
190
260
  # is enabled for the nodes.
261
+ # @!attribute [rw] cloud_run_config
262
+ # @return [Google::Container::V1::CloudRunConfig]
263
+ # Configuration for the Cloud Run addon, which allows the user to use a
264
+ # managed Knative service.
191
265
  class AddonsConfig; end
192
266
 
193
267
  # Configuration options for the HTTP (L7) load balancing controller addon,
@@ -246,6 +320,23 @@ module Google
246
320
  # Output only. The external IP address of this cluster's master endpoint.
247
321
  class PrivateClusterConfig; end
248
322
 
323
+ # Configuration for returning group information from authenticators.
324
+ # @!attribute [rw] enabled
325
+ # @return [true, false]
326
+ # Whether this cluster should return group membership lookups
327
+ # during authentication using a group of security groups.
328
+ # @!attribute [rw] security_group
329
+ # @return [String]
330
+ # The name of the security group-of-groups to be used. Only relevant
331
+ # if enabled = true.
332
+ class AuthenticatorGroupsConfig; end
333
+
334
+ # Configuration options for the Cloud Run feature.
335
+ # @!attribute [rw] disabled
336
+ # @return [true, false]
337
+ # Whether Cloud Run addon is enabled for this cluster.
338
+ class CloudRunConfig; end
339
+
249
340
  # Configuration options for the master authorized networks feature. Enabled
250
341
  # master authorized networks will disallow all external traffic to access
251
342
  # Kubernetes master through HTTPS except traffic from the given CIDR blocks,
@@ -255,7 +346,7 @@ module Google
255
346
  # Whether or not master authorized networks is enabled.
256
347
  # @!attribute [rw] cidr_blocks
257
348
  # @return [Array<Google::Container::V1::MasterAuthorizedNetworksConfig::CidrBlock>]
258
- # cidr_blocks define up to 10 external networks that could access
349
+ # cidr_blocks define up to 50 external networks that could access
259
350
  # Kubernetes master through HTTPS.
260
351
  class MasterAuthorizedNetworksConfig
261
352
  # CidrBlock contains an optional name and one CIDR block.
@@ -297,6 +388,13 @@ module Google
297
388
  end
298
389
  end
299
390
 
391
+ # Configuration for Binary Authorization.
392
+ # @!attribute [rw] enabled
393
+ # @return [true, false]
394
+ # Enable Binary Authorization for this cluster. If enabled, all container
395
+ # images will be validated by Binary Authorization.
396
+ class BinaryAuthorization; end
397
+
300
398
  # Configuration for controlling how IPs are allocated in the cluster.
301
399
  # @!attribute [rw] use_ip_aliases
302
400
  # @return [true, false]
@@ -388,13 +486,31 @@ module Google
388
486
  # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
389
487
  # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
390
488
  # to use.
489
+ # @!attribute [rw] tpu_ipv4_cidr_block
490
+ # @return [String]
491
+ # The IP address range of the Cloud TPUs in this cluster. If unspecified, a
492
+ # range will be automatically chosen with the default size.
493
+ #
494
+ # This field is only applicable when `use_ip_aliases` is true.
495
+ #
496
+ # If unspecified, the range will use the default size.
497
+ #
498
+ # Set to /netmask (e.g. `/14`) to have a range chosen with a specific
499
+ # netmask.
500
+ #
501
+ # Set to a
502
+ # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
503
+ # notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
504
+ # `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
505
+ # to use.
391
506
  class IPAllocationPolicy; end
392
507
 
393
508
  # A Google Kubernetes Engine cluster.
394
509
  # @!attribute [rw] name
395
510
  # @return [String]
396
511
  # The name of this cluster. The name must be unique within this project
397
- # and zone, and can be up to 40 characters with the following restrictions:
512
+ # and location (e.g. zone or region), and can be up to 40 characters with
513
+ # the following restrictions:
398
514
  #
399
515
  # * Lowercase letters, numbers, and hyphens only.
400
516
  # * Must start with a letter.
@@ -412,26 +528,35 @@ module Google
412
528
  # "node_pool" object, since this configuration (along with the
413
529
  # "node_config") will be used to create a "NodePool" object with an
414
530
  # auto-generated name. Do not use this and a node_pool at the same time.
531
+ #
532
+ # This field is deprecated, use node_pool.initial_node_count instead.
415
533
  # @!attribute [rw] node_config
416
534
  # @return [Google::Container::V1::NodeConfig]
417
535
  # Parameters used in creating the cluster's nodes.
418
- # See `nodeConfig` for the description of its properties.
419
536
  # For requests, this field should only be used in lieu of a
420
537
  # "node_pool" object, since this configuration (along with the
421
538
  # "initial_node_count") will be used to create a "NodePool" object with an
422
539
  # auto-generated name. Do not use this and a node_pool at the same time.
423
540
  # For responses, this field will be populated with the node configuration of
424
- # the first node pool.
541
+ # the first node pool. (For configuration of each node pool, see
542
+ # `node_pool.config`)
425
543
  #
426
544
  # If unspecified, the defaults are used.
545
+ # This field is deprecated, use node_pool.config instead.
427
546
  # @!attribute [rw] master_auth
428
547
  # @return [Google::Container::V1::MasterAuth]
429
548
  # The authentication information for accessing the master endpoint.
549
+ # If unspecified, the defaults are used:
550
+ # For clusters before v1.12, if master_auth is unspecified, `username` will
551
+ # be set to "admin", a random password will be generated, and a client
552
+ # certificate will be issued.
430
553
  # @!attribute [rw] logging_service
431
554
  # @return [String]
432
555
  # The logging service the cluster should use to write logs.
433
556
  # Currently available options:
434
557
  #
558
+ # * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
559
+ # service with Kubernetes-native resource model
435
560
  # * `logging.googleapis.com` - the Google Cloud Logging service.
436
561
  # * `none` - no logs will be exported from the cluster.
437
562
  # * if left as an empty string,`logging.googleapis.com` will be used.
@@ -471,7 +596,7 @@ module Google
471
596
  # @!attribute [rw] locations
472
597
  # @return [Array<String>]
473
598
  # The list of Google Compute Engine
474
- # [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
599
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
475
600
  # should be located.
476
601
  # @!attribute [rw] enable_kubernetes_alpha
477
602
  # @return [true, false]
@@ -503,12 +628,36 @@ module Google
503
628
  # @!attribute [rw] maintenance_policy
504
629
  # @return [Google::Container::V1::MaintenancePolicy]
505
630
  # Configure the maintenance policy for this cluster.
631
+ # @!attribute [rw] binary_authorization
632
+ # @return [Google::Container::V1::BinaryAuthorization]
633
+ # Configuration for Binary Authorization.
634
+ # @!attribute [rw] autoscaling
635
+ # @return [Google::Container::V1::ClusterAutoscaling]
636
+ # Cluster-level autoscaling configuration.
506
637
  # @!attribute [rw] network_config
507
638
  # @return [Google::Container::V1::NetworkConfig]
508
639
  # Configuration for cluster networking.
640
+ # @!attribute [rw] default_max_pods_constraint
641
+ # @return [Google::Container::V1::MaxPodsConstraint]
642
+ # The default constraint on the maximum number of pods that can be run
643
+ # simultaneously on a node in the node pool of this cluster. Only honored
644
+ # if cluster created with IP Alias support.
645
+ # @!attribute [rw] resource_usage_export_config
646
+ # @return [Google::Container::V1::ResourceUsageExportConfig]
647
+ # Configuration for exporting resource usages. Resource usage export is
648
+ # disabled when this config is unspecified.
649
+ # @!attribute [rw] authenticator_groups_config
650
+ # @return [Google::Container::V1::AuthenticatorGroupsConfig]
651
+ # Configuration controlling RBAC group membership information.
509
652
  # @!attribute [rw] private_cluster_config
510
653
  # @return [Google::Container::V1::PrivateClusterConfig]
511
654
  # Configuration for private cluster.
655
+ # @!attribute [rw] database_encryption
656
+ # @return [Google::Container::V1::DatabaseEncryption]
657
+ # Configuration of etcd encryption.
658
+ # @!attribute [rw] vertical_pod_autoscaling
659
+ # @return [Google::Container::V1::VerticalPodAutoscaling]
660
+ # Cluster-level Vertical Pod Autoscaling configuration.
512
661
  # @!attribute [rw] self_link
513
662
  # @return [String]
514
663
  # [Output only] Server-defined URL for the resource.
@@ -547,7 +696,7 @@ module Google
547
696
  # @!attribute [rw] current_node_version
548
697
  # @return [String]
549
698
  # [Output only] Deprecated, use
550
- # [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
699
+ # [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
551
700
  # instead. The current version of the node software components. If they are
552
701
  # currently at multiple versions because they're in the process of being
553
702
  # upgraded, this reflects the minimum version of all nodes.
@@ -566,7 +715,8 @@ module Google
566
715
  # @return [Integer]
567
716
  # [Output only] The size of the address space on each node for hosting
568
717
  # containers. This is provisioned from within the `container_ipv4_cidr`
569
- # range.
718
+ # range. This field will only be set when cluster is in route-based network
719
+ # mode.
570
720
  # @!attribute [rw] services_ipv4_cidr
571
721
  # @return [String]
572
722
  # [Output only] The IP address range of the Kubernetes services in
@@ -579,7 +729,8 @@ module Google
579
729
  # Deprecated. Use node_pools.instance_group_urls.
580
730
  # @!attribute [rw] current_node_count
581
731
  # @return [Integer]
582
- # [Output only] The number of nodes currently in the cluster.
732
+ # [Output only] The number of nodes currently in the cluster. Deprecated.
733
+ # Call Kubernetes API directly to retrieve node information.
583
734
  # @!attribute [rw] expire_time
584
735
  # @return [String]
585
736
  # [Output only] The time the cluster will be automatically
@@ -590,6 +741,17 @@ module Google
590
741
  # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or
591
742
  # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which
592
743
  # the cluster resides.
744
+ # @!attribute [rw] enable_tpu
745
+ # @return [true, false]
746
+ # Enable the ability to use Cloud TPUs in this cluster.
747
+ # @!attribute [rw] tpu_ipv4_cidr_block
748
+ # @return [String]
749
+ # [Output only] The IP address range of the Cloud TPUs in this cluster, in
750
+ # [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
751
+ # notation (e.g. `1.2.3.4/29`).
752
+ # @!attribute [rw] conditions
753
+ # @return [Array<Google::Container::V1::StatusCondition>]
754
+ # Which conditions caused the current cluster state.
593
755
  class Cluster
594
756
  # The current status of the cluster.
595
757
  module Status
@@ -642,6 +804,8 @@ module Google
642
804
  # The monitoring service the cluster should use to write metrics.
643
805
  # Currently available options:
644
806
  #
807
+ # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
808
+ # service with Kubernetes-native resource model
645
809
  # * "monitoring.googleapis.com" - the Google Cloud Monitoring service
646
810
  # * "none" - no metrics will be exported from the cluster
647
811
  # @!attribute [rw] desired_addons_config
@@ -657,6 +821,9 @@ module Google
657
821
  # @return [String]
658
822
  # The desired image type for the node pool.
659
823
  # NOTE: Set the "desired_node_pool" field as well.
824
+ # @!attribute [rw] desired_database_encryption
825
+ # @return [Google::Container::V1::DatabaseEncryption]
826
+ # Configuration of etcd encryption.
660
827
  # @!attribute [rw] desired_node_pool_autoscaling
661
828
  # @return [Google::Container::V1::NodePoolAutoscaling]
662
829
  # Autoscaler configuration for the node pool specified in
@@ -666,7 +833,7 @@ module Google
666
833
  # @!attribute [rw] desired_locations
667
834
  # @return [Array<String>]
668
835
  # The desired list of Google Compute Engine
669
- # [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
836
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
670
837
  # should be located. Changing the locations a cluster is in will result
671
838
  # in nodes being either created or removed from the cluster, depending on
672
839
  # whether locations are being added or removed.
@@ -675,6 +842,30 @@ module Google
675
842
  # @!attribute [rw] desired_master_authorized_networks_config
676
843
  # @return [Google::Container::V1::MasterAuthorizedNetworksConfig]
677
844
  # The desired configuration options for master authorized networks feature.
845
+ # @!attribute [rw] desired_cluster_autoscaling
846
+ # @return [Google::Container::V1::ClusterAutoscaling]
847
+ # Cluster-level autoscaling configuration.
848
+ # @!attribute [rw] desired_binary_authorization
849
+ # @return [Google::Container::V1::BinaryAuthorization]
850
+ # The desired configuration options for the Binary Authorization feature.
851
+ # @!attribute [rw] desired_logging_service
852
+ # @return [String]
853
+ # The logging service the cluster should use to write logs.
854
+ # Currently available options:
855
+ #
856
+ # * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
857
+ # service with Kubernetes-native resource model
858
+ # * "logging.googleapis.com" - the Google Cloud Logging service
859
+ # * "none" - no logs will be exported from the cluster
860
+ # @!attribute [rw] desired_resource_usage_export_config
861
+ # @return [Google::Container::V1::ResourceUsageExportConfig]
862
+ # The desired configuration for exporting resource usage.
863
+ # @!attribute [rw] desired_vertical_pod_autoscaling
864
+ # @return [Google::Container::V1::VerticalPodAutoscaling]
865
+ # Cluster-level Vertical Pod Autoscaling configuration.
866
+ # @!attribute [rw] desired_intra_node_visibility_config
867
+ # @return [Google::Container::V1::IntraNodeVisibilityConfig]
868
+ # The desired config of Intra-node visibility.
678
869
  # @!attribute [rw] desired_master_version
679
870
  # @return [String]
680
871
  # The Kubernetes version to change the master to.
@@ -732,6 +923,12 @@ module Google
732
923
  # @return [String]
733
924
  # [Output only] The time the operation completed, in
734
925
  # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
926
+ # @!attribute [rw] cluster_conditions
927
+ # @return [Array<Google::Container::V1::StatusCondition>]
928
+ # Which conditions caused the current cluster state.
929
+ # @!attribute [rw] nodepool_conditions
930
+ # @return [Array<Google::Container::V1::StatusCondition>]
931
+ # Which conditions caused the current node pool state.
735
932
  class Operation
736
933
  # Current status of the operation.
737
934
  module Status
@@ -809,18 +1006,18 @@ module Google
809
1006
  # CreateClusterRequest creates a cluster.
810
1007
  # @!attribute [rw] project_id
811
1008
  # @return [String]
812
- # Deprecated. The Google Developers Console [project ID or project
1009
+ # Required. Deprecated. The Google Developers Console [project ID or project
813
1010
  # number](https://support.google.com/cloud/answer/6158840).
814
1011
  # This field has been deprecated and replaced by the parent field.
815
1012
  # @!attribute [rw] zone
816
1013
  # @return [String]
817
- # Deprecated. The name of the Google Compute Engine
1014
+ # Required. Deprecated. The name of the Google Compute Engine
818
1015
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
819
1016
  # resides.
820
1017
  # This field has been deprecated and replaced by the parent field.
821
1018
  # @!attribute [rw] cluster
822
1019
  # @return [Google::Container::V1::Cluster]
823
- # A [cluster
1020
+ # Required. A [cluster
824
1021
  # resource](/container-engine/reference/rest/v1/projects.zones.clusters)
825
1022
  # @!attribute [rw] parent
826
1023
  # @return [String]
@@ -831,18 +1028,18 @@ module Google
831
1028
  # GetClusterRequest gets the settings of a cluster.
832
1029
  # @!attribute [rw] project_id
833
1030
  # @return [String]
834
- # Deprecated. The Google Developers Console [project ID or project
1031
+ # Required. Deprecated. The Google Developers Console [project ID or project
835
1032
  # number](https://support.google.com/cloud/answer/6158840).
836
1033
  # This field has been deprecated and replaced by the name field.
837
1034
  # @!attribute [rw] zone
838
1035
  # @return [String]
839
- # Deprecated. The name of the Google Compute Engine
1036
+ # Required. Deprecated. The name of the Google Compute Engine
840
1037
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
841
1038
  # resides.
842
1039
  # This field has been deprecated and replaced by the name field.
843
1040
  # @!attribute [rw] cluster_id
844
1041
  # @return [String]
845
- # Deprecated. The name of the cluster to retrieve.
1042
+ # Required. Deprecated. The name of the cluster to retrieve.
846
1043
  # This field has been deprecated and replaced by the name field.
847
1044
  # @!attribute [rw] name
848
1045
  # @return [String]
@@ -853,22 +1050,22 @@ module Google
853
1050
  # UpdateClusterRequest updates the settings of a cluster.
854
1051
  # @!attribute [rw] project_id
855
1052
  # @return [String]
856
- # Deprecated. The Google Developers Console [project ID or project
1053
+ # Required. Deprecated. The Google Developers Console [project ID or project
857
1054
  # number](https://support.google.com/cloud/answer/6158840).
858
1055
  # This field has been deprecated and replaced by the name field.
859
1056
  # @!attribute [rw] zone
860
1057
  # @return [String]
861
- # Deprecated. The name of the Google Compute Engine
1058
+ # Required. Deprecated. The name of the Google Compute Engine
862
1059
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
863
1060
  # resides.
864
1061
  # This field has been deprecated and replaced by the name field.
865
1062
  # @!attribute [rw] cluster_id
866
1063
  # @return [String]
867
- # Deprecated. The name of the cluster to upgrade.
1064
+ # Required. Deprecated. The name of the cluster to upgrade.
868
1065
  # This field has been deprecated and replaced by the name field.
869
1066
  # @!attribute [rw] update
870
1067
  # @return [Google::Container::V1::ClusterUpdate]
871
- # A description of the update.
1068
+ # Required. A description of the update.
872
1069
  # @!attribute [rw] name
873
1070
  # @return [String]
874
1071
  # The name (project, location, cluster) of the cluster to update.
@@ -878,26 +1075,26 @@ module Google
878
1075
  # UpdateNodePoolRequests update a node pool's image and/or version.
879
1076
  # @!attribute [rw] project_id
880
1077
  # @return [String]
881
- # Deprecated. The Google Developers Console [project ID or project
1078
+ # Required. Deprecated. The Google Developers Console [project ID or project
882
1079
  # number](https://support.google.com/cloud/answer/6158840).
883
1080
  # This field has been deprecated and replaced by the name field.
884
1081
  # @!attribute [rw] zone
885
1082
  # @return [String]
886
- # Deprecated. The name of the Google Compute Engine
1083
+ # Required. Deprecated. The name of the Google Compute Engine
887
1084
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
888
1085
  # resides.
889
1086
  # This field has been deprecated and replaced by the name field.
890
1087
  # @!attribute [rw] cluster_id
891
1088
  # @return [String]
892
- # Deprecated. The name of the cluster to upgrade.
1089
+ # Required. Deprecated. The name of the cluster to upgrade.
893
1090
  # This field has been deprecated and replaced by the name field.
894
1091
  # @!attribute [rw] node_pool_id
895
1092
  # @return [String]
896
- # Deprecated. The name of the node pool to upgrade.
1093
+ # Required. Deprecated. The name of the node pool to upgrade.
897
1094
  # This field has been deprecated and replaced by the name field.
898
1095
  # @!attribute [rw] node_version
899
1096
  # @return [String]
900
- # The Kubernetes version to change the nodes to (typically an
1097
+ # Required. The Kubernetes version to change the nodes to (typically an
901
1098
  # upgrade).
902
1099
  #
903
1100
  # Users may specify either explicit versions offered by Kubernetes Engine or
@@ -910,7 +1107,7 @@ module Google
910
1107
  # * "-": picks the Kubernetes master version
911
1108
  # @!attribute [rw] image_type
912
1109
  # @return [String]
913
- # The desired image type for the node pool.
1110
+ # Required. The desired image type for the node pool.
914
1111
  # @!attribute [rw] name
915
1112
  # @return [String]
916
1113
  # The name (project, location, cluster, node pool) of the node pool to
@@ -921,26 +1118,26 @@ module Google
921
1118
  # SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
922
1119
  # @!attribute [rw] project_id
923
1120
  # @return [String]
924
- # Deprecated. The Google Developers Console [project ID or project
1121
+ # Required. Deprecated. The Google Developers Console [project ID or project
925
1122
  # number](https://support.google.com/cloud/answer/6158840).
926
1123
  # This field has been deprecated and replaced by the name field.
927
1124
  # @!attribute [rw] zone
928
1125
  # @return [String]
929
- # Deprecated. The name of the Google Compute Engine
1126
+ # Required. Deprecated. The name of the Google Compute Engine
930
1127
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
931
1128
  # resides.
932
1129
  # This field has been deprecated and replaced by the name field.
933
1130
  # @!attribute [rw] cluster_id
934
1131
  # @return [String]
935
- # Deprecated. The name of the cluster to upgrade.
1132
+ # Required. Deprecated. The name of the cluster to upgrade.
936
1133
  # This field has been deprecated and replaced by the name field.
937
1134
  # @!attribute [rw] node_pool_id
938
1135
  # @return [String]
939
- # Deprecated. The name of the node pool to upgrade.
1136
+ # Required. Deprecated. The name of the node pool to upgrade.
940
1137
  # This field has been deprecated and replaced by the name field.
941
1138
  # @!attribute [rw] autoscaling
942
1139
  # @return [Google::Container::V1::NodePoolAutoscaling]
943
- # Autoscaling configuration for the node pool.
1140
+ # Required. Autoscaling configuration for the node pool.
944
1141
  # @!attribute [rw] name
945
1142
  # @return [String]
946
1143
  # The name (project, location, cluster, node pool) of the node pool to set
@@ -951,22 +1148,22 @@ module Google
951
1148
  # SetLoggingServiceRequest sets the logging service of a cluster.
952
1149
  # @!attribute [rw] project_id
953
1150
  # @return [String]
954
- # Deprecated. The Google Developers Console [project ID or project
1151
+ # Required. Deprecated. The Google Developers Console [project ID or project
955
1152
  # number](https://support.google.com/cloud/answer/6158840).
956
1153
  # This field has been deprecated and replaced by the name field.
957
1154
  # @!attribute [rw] zone
958
1155
  # @return [String]
959
- # Deprecated. The name of the Google Compute Engine
1156
+ # Required. Deprecated. The name of the Google Compute Engine
960
1157
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
961
1158
  # resides.
962
1159
  # This field has been deprecated and replaced by the name field.
963
1160
  # @!attribute [rw] cluster_id
964
1161
  # @return [String]
965
- # Deprecated. The name of the cluster to upgrade.
1162
+ # Required. Deprecated. The name of the cluster to upgrade.
966
1163
  # This field has been deprecated and replaced by the name field.
967
1164
  # @!attribute [rw] logging_service
968
1165
  # @return [String]
969
- # The logging service the cluster should use to write metrics.
1166
+ # Required. The logging service the cluster should use to write metrics.
970
1167
  # Currently available options:
971
1168
  #
972
1169
  # * "logging.googleapis.com" - the Google Cloud Logging service
@@ -980,24 +1177,26 @@ module Google
980
1177
  # SetMonitoringServiceRequest sets the monitoring service of a cluster.
981
1178
  # @!attribute [rw] project_id
982
1179
  # @return [String]
983
- # Deprecated. The Google Developers Console [project ID or project
1180
+ # Required. Deprecated. The Google Developers Console [project ID or project
984
1181
  # number](https://support.google.com/cloud/answer/6158840).
985
1182
  # This field has been deprecated and replaced by the name field.
986
1183
  # @!attribute [rw] zone
987
1184
  # @return [String]
988
- # Deprecated. The name of the Google Compute Engine
1185
+ # Required. Deprecated. The name of the Google Compute Engine
989
1186
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
990
1187
  # resides.
991
1188
  # This field has been deprecated and replaced by the name field.
992
1189
  # @!attribute [rw] cluster_id
993
1190
  # @return [String]
994
- # Deprecated. The name of the cluster to upgrade.
1191
+ # Required. Deprecated. The name of the cluster to upgrade.
995
1192
  # This field has been deprecated and replaced by the name field.
996
1193
  # @!attribute [rw] monitoring_service
997
1194
  # @return [String]
998
- # The monitoring service the cluster should use to write metrics.
1195
+ # Required. The monitoring service the cluster should use to write metrics.
999
1196
  # Currently available options:
1000
1197
  #
1198
+ # * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
1199
+ # service with Kubernetes-native resource model
1001
1200
  # * "monitoring.googleapis.com" - the Google Cloud Monitoring service
1002
1201
  # * "none" - no metrics will be exported from the cluster
1003
1202
  # @!attribute [rw] name
@@ -1009,22 +1208,22 @@ module Google
1009
1208
  # SetAddonsConfigRequest sets the addons associated with the cluster.
1010
1209
  # @!attribute [rw] project_id
1011
1210
  # @return [String]
1012
- # Deprecated. The Google Developers Console [project ID or project
1211
+ # Required. Deprecated. The Google Developers Console [project ID or project
1013
1212
  # number](https://support.google.com/cloud/answer/6158840).
1014
1213
  # This field has been deprecated and replaced by the name field.
1015
1214
  # @!attribute [rw] zone
1016
1215
  # @return [String]
1017
- # Deprecated. The name of the Google Compute Engine
1216
+ # Required. Deprecated. The name of the Google Compute Engine
1018
1217
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1019
1218
  # resides.
1020
1219
  # This field has been deprecated and replaced by the name field.
1021
1220
  # @!attribute [rw] cluster_id
1022
1221
  # @return [String]
1023
- # Deprecated. The name of the cluster to upgrade.
1222
+ # Required. Deprecated. The name of the cluster to upgrade.
1024
1223
  # This field has been deprecated and replaced by the name field.
1025
1224
  # @!attribute [rw] addons_config
1026
1225
  # @return [Google::Container::V1::AddonsConfig]
1027
- # The desired configurations for the various addons available to run in the
1226
+ # Required. The desired configurations for the various addons available to run in the
1028
1227
  # cluster.
1029
1228
  # @!attribute [rw] name
1030
1229
  # @return [String]
@@ -1035,23 +1234,23 @@ module Google
1035
1234
  # SetLocationsRequest sets the locations of the cluster.
1036
1235
  # @!attribute [rw] project_id
1037
1236
  # @return [String]
1038
- # Deprecated. The Google Developers Console [project ID or project
1237
+ # Required. Deprecated. The Google Developers Console [project ID or project
1039
1238
  # number](https://support.google.com/cloud/answer/6158840).
1040
1239
  # This field has been deprecated and replaced by the name field.
1041
1240
  # @!attribute [rw] zone
1042
1241
  # @return [String]
1043
- # Deprecated. The name of the Google Compute Engine
1242
+ # Required. Deprecated. The name of the Google Compute Engine
1044
1243
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1045
1244
  # resides.
1046
1245
  # This field has been deprecated and replaced by the name field.
1047
1246
  # @!attribute [rw] cluster_id
1048
1247
  # @return [String]
1049
- # Deprecated. The name of the cluster to upgrade.
1248
+ # Required. Deprecated. The name of the cluster to upgrade.
1050
1249
  # This field has been deprecated and replaced by the name field.
1051
1250
  # @!attribute [rw] locations
1052
1251
  # @return [Array<String>]
1053
- # The desired list of Google Compute Engine
1054
- # [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
1252
+ # Required. The desired list of Google Compute Engine
1253
+ # [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
1055
1254
  # should be located. Changing the locations a cluster is in will result
1056
1255
  # in nodes being either created or removed from the cluster, depending on
1057
1256
  # whether locations are being added or removed.
@@ -1066,22 +1265,22 @@ module Google
1066
1265
  # UpdateMasterRequest updates the master of the cluster.
1067
1266
  # @!attribute [rw] project_id
1068
1267
  # @return [String]
1069
- # Deprecated. The Google Developers Console [project ID or project
1268
+ # Required. Deprecated. The Google Developers Console [project ID or project
1070
1269
  # number](https://support.google.com/cloud/answer/6158840).
1071
1270
  # This field has been deprecated and replaced by the name field.
1072
1271
  # @!attribute [rw] zone
1073
1272
  # @return [String]
1074
- # Deprecated. The name of the Google Compute Engine
1273
+ # Required. Deprecated. The name of the Google Compute Engine
1075
1274
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1076
1275
  # resides.
1077
1276
  # This field has been deprecated and replaced by the name field.
1078
1277
  # @!attribute [rw] cluster_id
1079
1278
  # @return [String]
1080
- # Deprecated. The name of the cluster to upgrade.
1279
+ # Required. Deprecated. The name of the cluster to upgrade.
1081
1280
  # This field has been deprecated and replaced by the name field.
1082
1281
  # @!attribute [rw] master_version
1083
1282
  # @return [String]
1084
- # The Kubernetes version to change the master to.
1283
+ # Required. The Kubernetes version to change the master to.
1085
1284
  #
1086
1285
  # Users may specify either explicit versions offered by Kubernetes Engine or
1087
1286
  # version aliases, which have the following behavior:
@@ -1100,25 +1299,25 @@ module Google
1100
1299
  # SetMasterAuthRequest updates the admin password of a cluster.
1101
1300
  # @!attribute [rw] project_id
1102
1301
  # @return [String]
1103
- # Deprecated. The Google Developers Console [project ID or project
1302
+ # Required. Deprecated. The Google Developers Console [project ID or project
1104
1303
  # number](https://support.google.com/cloud/answer/6158840).
1105
1304
  # This field has been deprecated and replaced by the name field.
1106
1305
  # @!attribute [rw] zone
1107
1306
  # @return [String]
1108
- # Deprecated. The name of the Google Compute Engine
1307
+ # Required. Deprecated. The name of the Google Compute Engine
1109
1308
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1110
1309
  # resides.
1111
1310
  # This field has been deprecated and replaced by the name field.
1112
1311
  # @!attribute [rw] cluster_id
1113
1312
  # @return [String]
1114
- # Deprecated. The name of the cluster to upgrade.
1313
+ # Required. Deprecated. The name of the cluster to upgrade.
1115
1314
  # This field has been deprecated and replaced by the name field.
1116
1315
  # @!attribute [rw] action
1117
1316
  # @return [Google::Container::V1::SetMasterAuthRequest::Action]
1118
- # The exact form of action to be taken on the master auth.
1317
+ # Required. The exact form of action to be taken on the master auth.
1119
1318
  # @!attribute [rw] update
1120
1319
  # @return [Google::Container::V1::MasterAuth]
1121
- # A description of the update.
1320
+ # Required. A description of the update.
1122
1321
  # @!attribute [rw] name
1123
1322
  # @return [String]
1124
1323
  # The name (project, location, cluster) of the cluster to set auth.
@@ -1146,18 +1345,18 @@ module Google
1146
1345
  # DeleteClusterRequest deletes a cluster.
1147
1346
  # @!attribute [rw] project_id
1148
1347
  # @return [String]
1149
- # Deprecated. The Google Developers Console [project ID or project
1348
+ # Required. Deprecated. The Google Developers Console [project ID or project
1150
1349
  # number](https://support.google.com/cloud/answer/6158840).
1151
1350
  # This field has been deprecated and replaced by the name field.
1152
1351
  # @!attribute [rw] zone
1153
1352
  # @return [String]
1154
- # Deprecated. The name of the Google Compute Engine
1353
+ # Required. Deprecated. The name of the Google Compute Engine
1155
1354
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1156
1355
  # resides.
1157
1356
  # This field has been deprecated and replaced by the name field.
1158
1357
  # @!attribute [rw] cluster_id
1159
1358
  # @return [String]
1160
- # Deprecated. The name of the cluster to delete.
1359
+ # Required. Deprecated. The name of the cluster to delete.
1161
1360
  # This field has been deprecated and replaced by the name field.
1162
1361
  # @!attribute [rw] name
1163
1362
  # @return [String]
@@ -1168,12 +1367,12 @@ module Google
1168
1367
  # ListClustersRequest lists clusters.
1169
1368
  # @!attribute [rw] project_id
1170
1369
  # @return [String]
1171
- # Deprecated. The Google Developers Console [project ID or project
1370
+ # Required. Deprecated. The Google Developers Console [project ID or project
1172
1371
  # number](https://support.google.com/cloud/answer/6158840).
1173
1372
  # This field has been deprecated and replaced by the parent field.
1174
1373
  # @!attribute [rw] zone
1175
1374
  # @return [String]
1176
- # Deprecated. The name of the Google Compute Engine
1375
+ # Required. Deprecated. The name of the Google Compute Engine
1177
1376
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1178
1377
  # resides, or "-" for all zones.
1179
1378
  # This field has been deprecated and replaced by the parent field.
@@ -1198,18 +1397,18 @@ module Google
1198
1397
  # GetOperationRequest gets a single operation.
1199
1398
  # @!attribute [rw] project_id
1200
1399
  # @return [String]
1201
- # Deprecated. The Google Developers Console [project ID or project
1400
+ # Required. Deprecated. The Google Developers Console [project ID or project
1202
1401
  # number](https://support.google.com/cloud/answer/6158840).
1203
1402
  # This field has been deprecated and replaced by the name field.
1204
1403
  # @!attribute [rw] zone
1205
1404
  # @return [String]
1206
- # Deprecated. The name of the Google Compute Engine
1405
+ # Required. Deprecated. The name of the Google Compute Engine
1207
1406
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1208
1407
  # resides.
1209
1408
  # This field has been deprecated and replaced by the name field.
1210
1409
  # @!attribute [rw] operation_id
1211
1410
  # @return [String]
1212
- # Deprecated. The server-assigned `name` of the operation.
1411
+ # Required. Deprecated. The server-assigned `name` of the operation.
1213
1412
  # This field has been deprecated and replaced by the name field.
1214
1413
  # @!attribute [rw] name
1215
1414
  # @return [String]
@@ -1220,12 +1419,12 @@ module Google
1220
1419
  # ListOperationsRequest lists operations.
1221
1420
  # @!attribute [rw] project_id
1222
1421
  # @return [String]
1223
- # Deprecated. The Google Developers Console [project ID or project
1422
+ # Required. Deprecated. The Google Developers Console [project ID or project
1224
1423
  # number](https://support.google.com/cloud/answer/6158840).
1225
1424
  # This field has been deprecated and replaced by the parent field.
1226
1425
  # @!attribute [rw] zone
1227
1426
  # @return [String]
1228
- # Deprecated. The name of the Google Compute Engine
1427
+ # Required. Deprecated. The name of the Google Compute Engine
1229
1428
  # [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
1230
1429
  # all zones. This field has been deprecated and replaced by the parent field.
1231
1430
  # @!attribute [rw] parent
@@ -1238,17 +1437,17 @@ module Google
1238
1437
  # CancelOperationRequest cancels a single operation.
1239
1438
  # @!attribute [rw] project_id
1240
1439
  # @return [String]
1241
- # Deprecated. The Google Developers Console [project ID or project
1440
+ # Required. Deprecated. The Google Developers Console [project ID or project
1242
1441
  # number](https://support.google.com/cloud/answer/6158840).
1243
1442
  # This field has been deprecated and replaced by the name field.
1244
1443
  # @!attribute [rw] zone
1245
1444
  # @return [String]
1246
- # Deprecated. The name of the Google Compute Engine
1445
+ # Required. Deprecated. The name of the Google Compute Engine
1247
1446
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
1248
1447
  # This field has been deprecated and replaced by the name field.
1249
1448
  # @!attribute [rw] operation_id
1250
1449
  # @return [String]
1251
- # Deprecated. The server-assigned `name` of the operation.
1450
+ # Required. Deprecated. The server-assigned `name` of the operation.
1252
1451
  # This field has been deprecated and replaced by the name field.
1253
1452
  # @!attribute [rw] name
1254
1453
  # @return [String]
@@ -1269,18 +1468,18 @@ module Google
1269
1468
  # Gets the current Kubernetes Engine service configuration.
1270
1469
  # @!attribute [rw] project_id
1271
1470
  # @return [String]
1272
- # Deprecated. The Google Developers Console [project ID or project
1471
+ # Required. Deprecated. The Google Developers Console [project ID or project
1273
1472
  # number](https://support.google.com/cloud/answer/6158840).
1274
1473
  # This field has been deprecated and replaced by the name field.
1275
1474
  # @!attribute [rw] zone
1276
1475
  # @return [String]
1277
- # Deprecated. The name of the Google Compute Engine
1476
+ # Required. Deprecated. The name of the Google Compute Engine
1278
1477
  # [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
1279
1478
  # This field has been deprecated and replaced by the name field.
1280
1479
  # @!attribute [rw] name
1281
1480
  # @return [String]
1282
- # The name (project and location) of the server config to get
1283
- # Specified in the format 'projects/*/locations/*'.
1481
+ # The name (project and location) of the server config to get,
1482
+ # specified in the format 'projects/*/locations/*'.
1284
1483
  class GetServerConfigRequest; end
1285
1484
 
1286
1485
  # Kubernetes Engine service configuration.
@@ -1304,22 +1503,22 @@ module Google
1304
1503
  # CreateNodePoolRequest creates a node pool for a cluster.
1305
1504
  # @!attribute [rw] project_id
1306
1505
  # @return [String]
1307
- # Deprecated. The Google Developers Console [project ID or project
1506
+ # Required. Deprecated. The Google Developers Console [project ID or project
1308
1507
  # number](https://developers.google.com/console/help/new/#projectnumber).
1309
1508
  # This field has been deprecated and replaced by the parent field.
1310
1509
  # @!attribute [rw] zone
1311
1510
  # @return [String]
1312
- # Deprecated. The name of the Google Compute Engine
1511
+ # Required. Deprecated. The name of the Google Compute Engine
1313
1512
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1314
1513
  # resides.
1315
1514
  # This field has been deprecated and replaced by the parent field.
1316
1515
  # @!attribute [rw] cluster_id
1317
1516
  # @return [String]
1318
- # Deprecated. The name of the cluster.
1517
+ # Required. Deprecated. The name of the cluster.
1319
1518
  # This field has been deprecated and replaced by the parent field.
1320
1519
  # @!attribute [rw] node_pool
1321
1520
  # @return [Google::Container::V1::NodePool]
1322
- # The node pool to create.
1521
+ # Required. The node pool to create.
1323
1522
  # @!attribute [rw] parent
1324
1523
  # @return [String]
1325
1524
  # The parent (project, location, cluster id) where the node pool will be
@@ -1330,22 +1529,22 @@ module Google
1330
1529
  # DeleteNodePoolRequest deletes a node pool for a cluster.
1331
1530
  # @!attribute [rw] project_id
1332
1531
  # @return [String]
1333
- # Deprecated. The Google Developers Console [project ID or project
1532
+ # Required. Deprecated. The Google Developers Console [project ID or project
1334
1533
  # number](https://developers.google.com/console/help/new/#projectnumber).
1335
1534
  # This field has been deprecated and replaced by the name field.
1336
1535
  # @!attribute [rw] zone
1337
1536
  # @return [String]
1338
- # Deprecated. The name of the Google Compute Engine
1537
+ # Required. Deprecated. The name of the Google Compute Engine
1339
1538
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1340
1539
  # resides.
1341
1540
  # This field has been deprecated and replaced by the name field.
1342
1541
  # @!attribute [rw] cluster_id
1343
1542
  # @return [String]
1344
- # Deprecated. The name of the cluster.
1543
+ # Required. Deprecated. The name of the cluster.
1345
1544
  # This field has been deprecated and replaced by the name field.
1346
1545
  # @!attribute [rw] node_pool_id
1347
1546
  # @return [String]
1348
- # Deprecated. The name of the node pool to delete.
1547
+ # Required. Deprecated. The name of the node pool to delete.
1349
1548
  # This field has been deprecated and replaced by the name field.
1350
1549
  # @!attribute [rw] name
1351
1550
  # @return [String]
@@ -1357,18 +1556,18 @@ module Google
1357
1556
  # ListNodePoolsRequest lists the node pool(s) for a cluster.
1358
1557
  # @!attribute [rw] project_id
1359
1558
  # @return [String]
1360
- # Deprecated. The Google Developers Console [project ID or project
1559
+ # Required. Deprecated. The Google Developers Console [project ID or project
1361
1560
  # number](https://developers.google.com/console/help/new/#projectnumber).
1362
1561
  # This field has been deprecated and replaced by the parent field.
1363
1562
  # @!attribute [rw] zone
1364
1563
  # @return [String]
1365
- # Deprecated. The name of the Google Compute Engine
1564
+ # Required. Deprecated. The name of the Google Compute Engine
1366
1565
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1367
1566
  # resides.
1368
1567
  # This field has been deprecated and replaced by the parent field.
1369
1568
  # @!attribute [rw] cluster_id
1370
1569
  # @return [String]
1371
- # Deprecated. The name of the cluster.
1570
+ # Required. Deprecated. The name of the cluster.
1372
1571
  # This field has been deprecated and replaced by the parent field.
1373
1572
  # @!attribute [rw] parent
1374
1573
  # @return [String]
@@ -1379,22 +1578,22 @@ module Google
1379
1578
  # GetNodePoolRequest retrieves a node pool for a cluster.
1380
1579
  # @!attribute [rw] project_id
1381
1580
  # @return [String]
1382
- # Deprecated. The Google Developers Console [project ID or project
1581
+ # Required. Deprecated. The Google Developers Console [project ID or project
1383
1582
  # number](https://developers.google.com/console/help/new/#projectnumber).
1384
1583
  # This field has been deprecated and replaced by the name field.
1385
1584
  # @!attribute [rw] zone
1386
1585
  # @return [String]
1387
- # Deprecated. The name of the Google Compute Engine
1586
+ # Required. Deprecated. The name of the Google Compute Engine
1388
1587
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1389
1588
  # resides.
1390
1589
  # This field has been deprecated and replaced by the name field.
1391
1590
  # @!attribute [rw] cluster_id
1392
1591
  # @return [String]
1393
- # Deprecated. The name of the cluster.
1592
+ # Required. Deprecated. The name of the cluster.
1394
1593
  # This field has been deprecated and replaced by the name field.
1395
1594
  # @!attribute [rw] node_pool_id
1396
1595
  # @return [String]
1397
- # Deprecated. The name of the node pool.
1596
+ # Required. Deprecated. The name of the node pool.
1398
1597
  # This field has been deprecated and replaced by the name field.
1399
1598
  # @!attribute [rw] name
1400
1599
  # @return [String]
@@ -1446,6 +1645,16 @@ module Google
1446
1645
  # @!attribute [rw] management
1447
1646
  # @return [Google::Container::V1::NodeManagement]
1448
1647
  # NodeManagement configuration for this NodePool.
1648
+ # @!attribute [rw] max_pods_constraint
1649
+ # @return [Google::Container::V1::MaxPodsConstraint]
1650
+ # The constraint on the maximum number of pods that can be run
1651
+ # simultaneously on a node in the node pool.
1652
+ # @!attribute [rw] conditions
1653
+ # @return [Array<Google::Container::V1::StatusCondition>]
1654
+ # Which conditions caused the current node pool state.
1655
+ # @!attribute [rw] pod_ipv4_cidr_size
1656
+ # @return [Integer]
1657
+ # [Output only] The pod CIDR block size per node in this node pool.
1449
1658
  class NodePool
1450
1659
  # The current status of the node pool instance.
1451
1660
  module Status
@@ -1514,20 +1723,81 @@ module Google
1514
1723
  # @!attribute [rw] window
1515
1724
  # @return [Google::Container::V1::MaintenanceWindow]
1516
1725
  # Specifies the maintenance window in which maintenance may be performed.
1726
+ # @!attribute [rw] resource_version
1727
+ # @return [String]
1728
+ # A hash identifying the version of this policy, so that updates to fields of
1729
+ # the policy won't accidentally undo intermediate changes (and so that users
1730
+ # of the API unaware of some fields won't accidentally remove other fields).
1731
+ # Make a <code>get()</code> request to the cluster to get the current
1732
+ # resource version and include it with requests to set the policy.
1517
1733
  class MaintenancePolicy; end
1518
1734
 
1519
1735
  # MaintenanceWindow defines the maintenance window to be used for the cluster.
1520
1736
  # @!attribute [rw] daily_maintenance_window
1521
1737
  # @return [Google::Container::V1::DailyMaintenanceWindow]
1522
1738
  # DailyMaintenanceWindow specifies a daily maintenance operation window.
1739
+ # @!attribute [rw] recurring_window
1740
+ # @return [Google::Container::V1::RecurringTimeWindow]
1741
+ # RecurringWindow specifies some number of recurring time periods for
1742
+ # maintenance to occur. The time windows may be overlapping. If no
1743
+ # maintenance windows are set, maintenance can occur at any time.
1744
+ # @!attribute [rw] maintenance_exclusions
1745
+ # @return [Hash{String => Google::Container::V1::TimeWindow}]
1746
+ # Exceptions to maintenance window. Non-emergency maintenance should not
1747
+ # occur in these windows.
1523
1748
  class MaintenanceWindow; end
1524
1749
 
1750
+ # Represents an arbitrary window of time.
1751
+ # @!attribute [rw] start_time
1752
+ # @return [Google::Protobuf::Timestamp]
1753
+ # The time that the window first starts.
1754
+ # @!attribute [rw] end_time
1755
+ # @return [Google::Protobuf::Timestamp]
1756
+ # The time that the window ends. The end time should take place after the
1757
+ # start time.
1758
+ class TimeWindow; end
1759
+
1760
+ # Represents an arbitrary window of time that recurs.
1761
+ # @!attribute [rw] window
1762
+ # @return [Google::Container::V1::TimeWindow]
1763
+ # The window of the first recurrence.
1764
+ # @!attribute [rw] recurrence
1765
+ # @return [String]
1766
+ # An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
1767
+ # this window reccurs. They go on for the span of time between the start and
1768
+ # end time.
1769
+ #
1770
+ # For example, to have something repeat every weekday, you'd use:
1771
+ # <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
1772
+ # To repeat some window daily (equivalent to the DailyMaintenanceWindow):
1773
+ # <code>FREQ=DAILY</code>
1774
+ # For the first weekend of every month:
1775
+ # <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
1776
+ # This specifies how frequently the window starts. Eg, if you wanted to have
1777
+ # a 9-5 UTC-4 window every weekday, you'd use something like:
1778
+ # <code>
1779
+ # start time = 2019-01-01T09:00:00-0400
1780
+ # end time = 2019-01-01T17:00:00-0400
1781
+ # recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
1782
+ # </code>
1783
+ # Windows can span multiple days. Eg, to make the window encompass every
1784
+ # weekend from midnight Saturday till the last minute of Sunday UTC:
1785
+ # <code>
1786
+ # start time = 2019-01-05T00:00:00Z
1787
+ # end time = 2019-01-07T23:59:00Z
1788
+ # recurrence = FREQ=WEEKLY;BYDAY=SA
1789
+ # </code>
1790
+ # Note the start and end time's specific dates are largely arbitrary except
1791
+ # to specify duration of the window and when it first starts.
1792
+ # The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
1793
+ class RecurringTimeWindow; end
1794
+
1525
1795
  # Time window specified for daily maintenance operations.
1526
1796
  # @!attribute [rw] start_time
1527
1797
  # @return [String]
1528
1798
  # Time within the maintenance window to start the maintenance operations.
1529
1799
  # Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
1530
- # format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT.
1800
+ # format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
1531
1801
  # @!attribute [rw] duration
1532
1802
  # @return [String]
1533
1803
  # [Output only] Duration of the time window, automatically chosen to be
@@ -1540,26 +1810,26 @@ module Google
1540
1810
  # pool.
1541
1811
  # @!attribute [rw] project_id
1542
1812
  # @return [String]
1543
- # Deprecated. The Google Developers Console [project ID or project
1813
+ # Required. Deprecated. The Google Developers Console [project ID or project
1544
1814
  # number](https://support.google.com/cloud/answer/6158840).
1545
1815
  # This field has been deprecated and replaced by the name field.
1546
1816
  # @!attribute [rw] zone
1547
1817
  # @return [String]
1548
- # Deprecated. The name of the Google Compute Engine
1818
+ # Required. Deprecated. The name of the Google Compute Engine
1549
1819
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1550
1820
  # resides.
1551
1821
  # This field has been deprecated and replaced by the name field.
1552
1822
  # @!attribute [rw] cluster_id
1553
1823
  # @return [String]
1554
- # Deprecated. The name of the cluster to update.
1824
+ # Required. Deprecated. The name of the cluster to update.
1555
1825
  # This field has been deprecated and replaced by the name field.
1556
1826
  # @!attribute [rw] node_pool_id
1557
1827
  # @return [String]
1558
- # Deprecated. The name of the node pool to update.
1828
+ # Required. Deprecated. The name of the node pool to update.
1559
1829
  # This field has been deprecated and replaced by the name field.
1560
1830
  # @!attribute [rw] management
1561
1831
  # @return [Google::Container::V1::NodeManagement]
1562
- # NodeManagement configuration for the node pool.
1832
+ # Required. NodeManagement configuration for the node pool.
1563
1833
  # @!attribute [rw] name
1564
1834
  # @return [String]
1565
1835
  # The name (project, location, cluster, node pool id) of the node pool to set
@@ -1571,26 +1841,26 @@ module Google
1571
1841
  # pool.
1572
1842
  # @!attribute [rw] project_id
1573
1843
  # @return [String]
1574
- # Deprecated. The Google Developers Console [project ID or project
1844
+ # Required. Deprecated. The Google Developers Console [project ID or project
1575
1845
  # number](https://support.google.com/cloud/answer/6158840).
1576
1846
  # This field has been deprecated and replaced by the name field.
1577
1847
  # @!attribute [rw] zone
1578
1848
  # @return [String]
1579
- # Deprecated. The name of the Google Compute Engine
1849
+ # Required. Deprecated. The name of the Google Compute Engine
1580
1850
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1581
1851
  # resides.
1582
1852
  # This field has been deprecated and replaced by the name field.
1583
1853
  # @!attribute [rw] cluster_id
1584
1854
  # @return [String]
1585
- # Deprecated. The name of the cluster to update.
1855
+ # Required. Deprecated. The name of the cluster to update.
1586
1856
  # This field has been deprecated and replaced by the name field.
1587
1857
  # @!attribute [rw] node_pool_id
1588
1858
  # @return [String]
1589
- # Deprecated. The name of the node pool to update.
1859
+ # Required. Deprecated. The name of the node pool to update.
1590
1860
  # This field has been deprecated and replaced by the name field.
1591
1861
  # @!attribute [rw] node_count
1592
1862
  # @return [Integer]
1593
- # The desired node count for the pool.
1863
+ # Required. The desired node count for the pool.
1594
1864
  # @!attribute [rw] name
1595
1865
  # @return [String]
1596
1866
  # The name (project, location, cluster, node pool id) of the node pool to set
@@ -1603,22 +1873,22 @@ module Google
1603
1873
  # completed.
1604
1874
  # @!attribute [rw] project_id
1605
1875
  # @return [String]
1606
- # Deprecated. The Google Developers Console [project ID or project
1876
+ # Required. Deprecated. The Google Developers Console [project ID or project
1607
1877
  # number](https://support.google.com/cloud/answer/6158840).
1608
1878
  # This field has been deprecated and replaced by the name field.
1609
1879
  # @!attribute [rw] zone
1610
1880
  # @return [String]
1611
- # Deprecated. The name of the Google Compute Engine
1881
+ # Required. Deprecated. The name of the Google Compute Engine
1612
1882
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1613
1883
  # resides.
1614
1884
  # This field has been deprecated and replaced by the name field.
1615
1885
  # @!attribute [rw] cluster_id
1616
1886
  # @return [String]
1617
- # Deprecated. The name of the cluster to rollback.
1887
+ # Required. Deprecated. The name of the cluster to rollback.
1618
1888
  # This field has been deprecated and replaced by the name field.
1619
1889
  # @!attribute [rw] node_pool_id
1620
1890
  # @return [String]
1621
- # Deprecated. The name of the node pool to rollback.
1891
+ # Required. Deprecated. The name of the node pool to rollback.
1622
1892
  # This field has been deprecated and replaced by the name field.
1623
1893
  # @!attribute [rw] name
1624
1894
  # @return [String]
@@ -1633,6 +1903,52 @@ module Google
1633
1903
  # A list of node pools for a cluster.
1634
1904
  class ListNodePoolsResponse; end
1635
1905
 
1906
+ # ClusterAutoscaling contains global, per-cluster information
1907
+ # required by Cluster Autoscaler to automatically adjust
1908
+ # the size of the cluster and create/delete
1909
+ # node pools based on the current needs.
1910
+ # @!attribute [rw] enable_node_autoprovisioning
1911
+ # @return [true, false]
1912
+ # Enables automatic node pool creation and deletion.
1913
+ # @!attribute [rw] resource_limits
1914
+ # @return [Array<Google::Container::V1::ResourceLimit>]
1915
+ # Contains global constraints regarding minimum and maximum
1916
+ # amount of resources in the cluster.
1917
+ # @!attribute [rw] autoprovisioning_node_pool_defaults
1918
+ # @return [Google::Container::V1::AutoprovisioningNodePoolDefaults]
1919
+ # AutoprovisioningNodePoolDefaults contains defaults for a node pool
1920
+ # created by NAP.
1921
+ # @!attribute [rw] autoprovisioning_locations
1922
+ # @return [Array<String>]
1923
+ # The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available)
1924
+ # in which the NodePool's nodes can be created by NAP.
1925
+ class ClusterAutoscaling; end
1926
+
1927
+ # AutoprovisioningNodePoolDefaults contains defaults for a node pool created
1928
+ # by NAP.
1929
+ # @!attribute [rw] oauth_scopes
1930
+ # @return [Array<String>]
1931
+ # Scopes that are used by NAP when creating node pools. If oauth_scopes are
1932
+ # specified, service_account should be empty.
1933
+ # @!attribute [rw] service_account
1934
+ # @return [String]
1935
+ # The Google Cloud Platform Service Account to be used by the node VMs. If
1936
+ # service_account is specified, scopes should be empty.
1937
+ class AutoprovisioningNodePoolDefaults; end
1938
+
1939
+ # Contains information about amount of some resource in the cluster.
1940
+ # For memory, value should be in GB.
1941
+ # @!attribute [rw] resource_type
1942
+ # @return [String]
1943
+ # Resource name "cpu", "memory" or gpu-specific string.
1944
+ # @!attribute [rw] minimum
1945
+ # @return [Integer]
1946
+ # Minimum amount of the resource in the cluster.
1947
+ # @!attribute [rw] maximum
1948
+ # @return [Integer]
1949
+ # Maximum amount of the resource in the cluster.
1950
+ class ResourceLimit; end
1951
+
1636
1952
  # NodePoolAutoscaling contains information required by cluster autoscaler to
1637
1953
  # adjust the size of the node pool to the current cluster usage.
1638
1954
  # @!attribute [rw] enabled
@@ -1646,6 +1962,9 @@ module Google
1646
1962
  # @return [Integer]
1647
1963
  # Maximum number of nodes in the NodePool. Must be >= min_node_count. There
1648
1964
  # has to enough quota to scale up the cluster.
1965
+ # @!attribute [rw] autoprovisioned
1966
+ # @return [true, false]
1967
+ # Can this node pool be deleted automatically.
1649
1968
  class NodePoolAutoscaling; end
1650
1969
 
1651
1970
  # SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
@@ -1653,25 +1972,25 @@ module Google
1653
1972
  # resources used by that cluster
1654
1973
  # @!attribute [rw] project_id
1655
1974
  # @return [String]
1656
- # Deprecated. The Google Developers Console [project ID or project
1975
+ # Required. Deprecated. The Google Developers Console [project ID or project
1657
1976
  # number](https://developers.google.com/console/help/new/#projectnumber).
1658
1977
  # This field has been deprecated and replaced by the name field.
1659
1978
  # @!attribute [rw] zone
1660
1979
  # @return [String]
1661
- # Deprecated. The name of the Google Compute Engine
1980
+ # Required. Deprecated. The name of the Google Compute Engine
1662
1981
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1663
1982
  # resides.
1664
1983
  # This field has been deprecated and replaced by the name field.
1665
1984
  # @!attribute [rw] cluster_id
1666
1985
  # @return [String]
1667
- # Deprecated. The name of the cluster.
1986
+ # Required. Deprecated. The name of the cluster.
1668
1987
  # This field has been deprecated and replaced by the name field.
1669
1988
  # @!attribute [rw] resource_labels
1670
1989
  # @return [Hash{String => String}]
1671
- # The labels to set for that cluster.
1990
+ # Required. The labels to set for that cluster.
1672
1991
  # @!attribute [rw] label_fingerprint
1673
1992
  # @return [String]
1674
- # The fingerprint of the previous set of labels for this resource,
1993
+ # Required. The fingerprint of the previous set of labels for this resource,
1675
1994
  # used to detect conflicts. The fingerprint is initially generated by
1676
1995
  # Kubernetes Engine and changes after every request to modify or update
1677
1996
  # labels. You must always provide an up-to-date fingerprint hash when
@@ -1687,22 +2006,22 @@ module Google
1687
2006
  # a cluster.
1688
2007
  # @!attribute [rw] project_id
1689
2008
  # @return [String]
1690
- # Deprecated. The Google Developers Console [project ID or project
2009
+ # Required. Deprecated. The Google Developers Console [project ID or project
1691
2010
  # number](https://support.google.com/cloud/answer/6158840).
1692
2011
  # This field has been deprecated and replaced by the name field.
1693
2012
  # @!attribute [rw] zone
1694
2013
  # @return [String]
1695
- # Deprecated. The name of the Google Compute Engine
2014
+ # Required. Deprecated. The name of the Google Compute Engine
1696
2015
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1697
2016
  # resides.
1698
2017
  # This field has been deprecated and replaced by the name field.
1699
2018
  # @!attribute [rw] cluster_id
1700
2019
  # @return [String]
1701
- # Deprecated. The name of the cluster to update.
2020
+ # Required. Deprecated. The name of the cluster to update.
1702
2021
  # This field has been deprecated and replaced by the name field.
1703
2022
  # @!attribute [rw] enabled
1704
2023
  # @return [true, false]
1705
- # Whether ABAC authorization will be enabled in the cluster.
2024
+ # Required. Whether ABAC authorization will be enabled in the cluster.
1706
2025
  # @!attribute [rw] name
1707
2026
  # @return [String]
1708
2027
  # The name (project, location, cluster id) of the cluster to set legacy abac.
@@ -1713,18 +2032,18 @@ module Google
1713
2032
  # a node upgrade on each node pool to point to the new IP.
1714
2033
  # @!attribute [rw] project_id
1715
2034
  # @return [String]
1716
- # Deprecated. The Google Developers Console [project ID or project
2035
+ # Required. Deprecated. The Google Developers Console [project ID or project
1717
2036
  # number](https://developers.google.com/console/help/new/#projectnumber).
1718
2037
  # This field has been deprecated and replaced by the name field.
1719
2038
  # @!attribute [rw] zone
1720
2039
  # @return [String]
1721
- # Deprecated. The name of the Google Compute Engine
2040
+ # Required. Deprecated. The name of the Google Compute Engine
1722
2041
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1723
2042
  # resides.
1724
2043
  # This field has been deprecated and replaced by the name field.
1725
2044
  # @!attribute [rw] cluster_id
1726
2045
  # @return [String]
1727
- # Deprecated. The name of the cluster.
2046
+ # Required. Deprecated. The name of the cluster.
1728
2047
  # This field has been deprecated and replaced by the name field.
1729
2048
  # @!attribute [rw] name
1730
2049
  # @return [String]
@@ -1738,18 +2057,18 @@ module Google
1738
2057
  # CompleteIPRotationRequest moves the cluster master back into single-IP mode.
1739
2058
  # @!attribute [rw] project_id
1740
2059
  # @return [String]
1741
- # Deprecated. The Google Developers Console [project ID or project
2060
+ # Required. Deprecated. The Google Developers Console [project ID or project
1742
2061
  # number](https://developers.google.com/console/help/new/#projectnumber).
1743
2062
  # This field has been deprecated and replaced by the name field.
1744
2063
  # @!attribute [rw] zone
1745
2064
  # @return [String]
1746
- # Deprecated. The name of the Google Compute Engine
2065
+ # Required. Deprecated. The name of the Google Compute Engine
1747
2066
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1748
2067
  # resides.
1749
2068
  # This field has been deprecated and replaced by the name field.
1750
2069
  # @!attribute [rw] cluster_id
1751
2070
  # @return [String]
1752
- # Deprecated. The name of the cluster.
2071
+ # Required. Deprecated. The name of the cluster.
1753
2072
  # This field has been deprecated and replaced by the name field.
1754
2073
  # @!attribute [rw] name
1755
2074
  # @return [String]
@@ -1764,28 +2083,28 @@ module Google
1764
2083
  # @!attribute [rw] accelerator_type
1765
2084
  # @return [String]
1766
2085
  # The accelerator type resource name. List of supported accelerators
1767
- # [here](https://cloud.google.com/compute/docs/gpus/#Introduction)
2086
+ # [here](https://cloud.google.com/compute/docs/gpus)
1768
2087
  class AcceleratorConfig; end
1769
2088
 
1770
2089
  # SetNetworkPolicyRequest enables/disables network policy for a cluster.
1771
2090
  # @!attribute [rw] project_id
1772
2091
  # @return [String]
1773
- # Deprecated. The Google Developers Console [project ID or project
2092
+ # Required. Deprecated. The Google Developers Console [project ID or project
1774
2093
  # number](https://developers.google.com/console/help/new/#projectnumber).
1775
2094
  # This field has been deprecated and replaced by the name field.
1776
2095
  # @!attribute [rw] zone
1777
2096
  # @return [String]
1778
- # Deprecated. The name of the Google Compute Engine
2097
+ # Required. Deprecated. The name of the Google Compute Engine
1779
2098
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1780
2099
  # resides.
1781
2100
  # This field has been deprecated and replaced by the name field.
1782
2101
  # @!attribute [rw] cluster_id
1783
2102
  # @return [String]
1784
- # Deprecated. The name of the cluster.
2103
+ # Required. Deprecated. The name of the cluster.
1785
2104
  # This field has been deprecated and replaced by the name field.
1786
2105
  # @!attribute [rw] network_policy
1787
2106
  # @return [Google::Container::V1::NetworkPolicy]
1788
- # Configuration options for the NetworkPolicy feature.
2107
+ # Required. Configuration options for the NetworkPolicy feature.
1789
2108
  # @!attribute [rw] name
1790
2109
  # @return [String]
1791
2110
  # The name (project, location, cluster id) of the cluster to set networking
@@ -1795,19 +2114,19 @@ module Google
1795
2114
  # SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
1796
2115
  # @!attribute [rw] project_id
1797
2116
  # @return [String]
1798
- # The Google Developers Console [project ID or project
2117
+ # Required. The Google Developers Console [project ID or project
1799
2118
  # number](https://support.google.com/cloud/answer/6158840).
1800
2119
  # @!attribute [rw] zone
1801
2120
  # @return [String]
1802
- # The name of the Google Compute Engine
2121
+ # Required. The name of the Google Compute Engine
1803
2122
  # [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
1804
2123
  # resides.
1805
2124
  # @!attribute [rw] cluster_id
1806
2125
  # @return [String]
1807
- # The name of the cluster to update.
2126
+ # Required. The name of the cluster to update.
1808
2127
  # @!attribute [rw] maintenance_policy
1809
2128
  # @return [Google::Container::V1::MaintenancePolicy]
1810
- # The maintenance policy to be set for the cluster. An empty field
2129
+ # Required. The maintenance policy to be set for the cluster. An empty field
1811
2130
  # clears the existing maintenance policy.
1812
2131
  # @!attribute [rw] name
1813
2132
  # @return [String]
@@ -1816,6 +2135,40 @@ module Google
1816
2135
  # Specified in the format 'projects/*/locations/*/clusters/*'.
1817
2136
  class SetMaintenancePolicyRequest; end
1818
2137
 
2138
+ # StatusCondition describes why a cluster or a node pool has a certain status
2139
+ # (e.g., ERROR or DEGRADED).
2140
+ # @!attribute [rw] code
2141
+ # @return [Google::Container::V1::StatusCondition::Code]
2142
+ # Machine-friendly representation of the condition
2143
+ # @!attribute [rw] message
2144
+ # @return [String]
2145
+ # Human-friendly representation of the condition
2146
+ class StatusCondition
2147
+ # Code for each condition
2148
+ module Code
2149
+ # UNKNOWN indicates a generic condition.
2150
+ UNKNOWN = 0
2151
+
2152
+ # GCE_STOCKOUT indicates a Google Compute Engine stockout.
2153
+ GCE_STOCKOUT = 1
2154
+
2155
+ # GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
2156
+ # service account.
2157
+ GKE_SERVICE_ACCOUNT_DELETED = 2
2158
+
2159
+ # Google Compute Engine quota was exceeded.
2160
+ GCE_QUOTA_EXCEEDED = 3
2161
+
2162
+ # Cluster state was manually changed by an SRE due to a system logic error.
2163
+ SET_BY_OPERATOR = 4
2164
+
2165
+ # Unable to perform an encrypt operation against the CloudKMS key used for
2166
+ # etcd level encryption.
2167
+ # More codes TBA
2168
+ CLOUD_KMS_KEY_ERROR = 7
2169
+ end
2170
+ end
2171
+
1819
2172
  # NetworkConfig reports the relative names of network & subnetwork.
1820
2173
  # @!attribute [rw] network
1821
2174
  # @return [String]
@@ -1828,7 +2181,178 @@ module Google
1828
2181
  # Output only. The relative name of the Google Compute Engine
1829
2182
  # [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected.
1830
2183
  # Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
2184
+ # @!attribute [rw] enable_intra_node_visibility
2185
+ # @return [true, false]
2186
+ # Whether Intra-node visibility is enabled for this cluster.
2187
+ # This makes same node pod to pod traffic visible for VPC network.
1831
2188
  class NetworkConfig; end
2189
+
2190
+ # IntraNodeVisibilityConfig contains the desired config of the intra-node
2191
+ # visibility on this cluster.
2192
+ # @!attribute [rw] enabled
2193
+ # @return [true, false]
2194
+ # Enables intra node visibility for this cluster.
2195
+ class IntraNodeVisibilityConfig; end
2196
+
2197
+ # Constraints applied to pods.
2198
+ # @!attribute [rw] max_pods_per_node
2199
+ # @return [Integer]
2200
+ # Constraint enforced on the max num of pods per node.
2201
+ class MaxPodsConstraint; end
2202
+
2203
+ # Configuration of etcd encryption.
2204
+ # @!attribute [rw] state
2205
+ # @return [Google::Container::V1::DatabaseEncryption::State]
2206
+ # Denotes the state of etcd encryption.
2207
+ # @!attribute [rw] key_name
2208
+ # @return [String]
2209
+ # Name of CloudKMS key to use for the encryption of secrets in etcd.
2210
+ # Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
2211
+ class DatabaseEncryption
2212
+ # State of etcd encryption.
2213
+ module State
2214
+ # Should never be set
2215
+ UNKNOWN = 0
2216
+
2217
+ # Secrets in etcd are encrypted.
2218
+ ENCRYPTED = 1
2219
+
2220
+ # Secrets in etcd are stored in plain text (at etcd level) - this is
2221
+ # unrelated to GCE level full disk encryption.
2222
+ DECRYPTED = 2
2223
+ end
2224
+ end
2225
+
2226
+ # ListUsableSubnetworksRequest requests the list of usable subnetworks
2227
+ # available to a user for creating clusters.
2228
+ # @!attribute [rw] parent
2229
+ # @return [String]
2230
+ # The parent project where subnetworks are usable.
2231
+ # Specified in the format 'projects/*'.
2232
+ # @!attribute [rw] filter
2233
+ # @return [String]
2234
+ # Filtering currently only supports equality on the networkProjectId and must
2235
+ # be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
2236
+ # is the project which owns the listed subnetworks. This defaults to the
2237
+ # parent project ID.
2238
+ # @!attribute [rw] page_size
2239
+ # @return [Integer]
2240
+ # The max number of results per page that should be returned. If the number
2241
+ # of available results is larger than `page_size`, a `next_page_token` is
2242
+ # returned which can be used to get the next page of results in subsequent
2243
+ # requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
2244
+ # @!attribute [rw] page_token
2245
+ # @return [String]
2246
+ # Specifies a page token to use. Set this to the nextPageToken returned by
2247
+ # previous list requests to get the next page of results.
2248
+ class ListUsableSubnetworksRequest; end
2249
+
2250
+ # ListUsableSubnetworksResponse is the response of
2251
+ # ListUsableSubnetworksRequest.
2252
+ # @!attribute [rw] subnetworks
2253
+ # @return [Array<Google::Container::V1::UsableSubnetwork>]
2254
+ # A list of usable subnetworks in the specified network project.
2255
+ # @!attribute [rw] next_page_token
2256
+ # @return [String]
2257
+ # This token allows you to get the next page of results for list requests.
2258
+ # If the number of results is larger than `page_size`, use the
2259
+ # `next_page_token` as a value for the query parameter `page_token` in the
2260
+ # next request. The value will become empty when there are no more pages.
2261
+ class ListUsableSubnetworksResponse; end
2262
+
2263
+ # Secondary IP range of a usable subnetwork.
2264
+ # @!attribute [rw] range_name
2265
+ # @return [String]
2266
+ # The name associated with this subnetwork secondary range, used when adding
2267
+ # an alias IP range to a VM instance.
2268
+ # @!attribute [rw] ip_cidr_range
2269
+ # @return [String]
2270
+ # The range of IP addresses belonging to this subnetwork secondary range.
2271
+ # @!attribute [rw] status
2272
+ # @return [Google::Container::V1::UsableSubnetworkSecondaryRange::Status]
2273
+ # This field is to determine the status of the secondary range programmably.
2274
+ class UsableSubnetworkSecondaryRange
2275
+ # Status shows the current usage of a secondary IP range.
2276
+ module Status
2277
+ # UNKNOWN is the zero value of the Status enum. It's not a valid status.
2278
+ UNKNOWN = 0
2279
+
2280
+ # UNUSED denotes that this range is unclaimed by any cluster.
2281
+ UNUSED = 1
2282
+
2283
+ # IN_USE_SERVICE denotes that this range is claimed by a cluster for
2284
+ # services. It cannot be used for other clusters.
2285
+ IN_USE_SERVICE = 2
2286
+
2287
+ # IN_USE_SHAREABLE_POD denotes this range was created by the network admin
2288
+ # and is currently claimed by a cluster for pods. It can only be used by
2289
+ # other clusters as a pod range.
2290
+ IN_USE_SHAREABLE_POD = 3
2291
+
2292
+ # IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
2293
+ # for pods. It cannot be used for other clusters.
2294
+ IN_USE_MANAGED_POD = 4
2295
+ end
2296
+ end
2297
+
2298
+ # UsableSubnetwork resource returns the subnetwork name, its associated network
2299
+ # and the primary CIDR range.
2300
+ # @!attribute [rw] subnetwork
2301
+ # @return [String]
2302
+ # Subnetwork Name.
2303
+ # Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
2304
+ # @!attribute [rw] network
2305
+ # @return [String]
2306
+ # Network Name.
2307
+ # Example: projects/my-project/global/networks/my-network
2308
+ # @!attribute [rw] ip_cidr_range
2309
+ # @return [String]
2310
+ # The range of internal addresses that are owned by this subnetwork.
2311
+ # @!attribute [rw] secondary_ip_ranges
2312
+ # @return [Array<Google::Container::V1::UsableSubnetworkSecondaryRange>]
2313
+ # Secondary IP ranges.
2314
+ # @!attribute [rw] status_message
2315
+ # @return [String]
2316
+ # A human readable status message representing the reasons for cases where
2317
+ # the caller cannot use the secondary ranges under the subnet. For example if
2318
+ # the secondary_ip_ranges is empty due to a permission issue, an insufficient
2319
+ # permission message will be given by status_message.
2320
+ class UsableSubnetwork; end
2321
+
2322
+ # Configuration for exporting cluster resource usages.
2323
+ # @!attribute [rw] bigquery_destination
2324
+ # @return [Google::Container::V1::ResourceUsageExportConfig::BigQueryDestination]
2325
+ # Configuration to use BigQuery as usage export destination.
2326
+ # @!attribute [rw] enable_network_egress_metering
2327
+ # @return [true, false]
2328
+ # Whether to enable network egress metering for this cluster. If enabled, a
2329
+ # daemonset will be created in the cluster to meter network egress traffic.
2330
+ # @!attribute [rw] consumption_metering_config
2331
+ # @return [Google::Container::V1::ResourceUsageExportConfig::ConsumptionMeteringConfig]
2332
+ # Configuration to enable resource consumption metering.
2333
+ class ResourceUsageExportConfig
2334
+ # Parameters for using BigQuery as the destination of resource usage export.
2335
+ # @!attribute [rw] dataset_id
2336
+ # @return [String]
2337
+ # The ID of a BigQuery Dataset.
2338
+ class BigQueryDestination; end
2339
+
2340
+ # Parameters for controlling consumption metering.
2341
+ # @!attribute [rw] enabled
2342
+ # @return [true, false]
2343
+ # Whether to enable consumption metering for this cluster. If enabled, a
2344
+ # second BigQuery table will be created to hold resource consumption
2345
+ # records.
2346
+ class ConsumptionMeteringConfig; end
2347
+ end
2348
+
2349
+ # VerticalPodAutoscaling contains global, per-cluster information
2350
+ # required by Vertical Pod Autoscaler to automatically adjust
2351
+ # the resources of pods controlled by it.
2352
+ # @!attribute [rw] enabled
2353
+ # @return [true, false]
2354
+ # Enables vertical pod autoscaling.
2355
+ class VerticalPodAutoscaling; end
1832
2356
  end
1833
2357
  end
1834
2358
  end