google-api-client 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ContainerV1
|
24
24
|
|
25
|
+
class RollbackNodePoolUpgradeRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class UpdateClusterRequest
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -34,13 +40,13 @@ module Google
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
37
|
-
class
|
43
|
+
class ListOperationsResponse
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
40
46
|
include Google::Apis::Core::JsonObjectSupport
|
41
47
|
end
|
42
48
|
|
43
|
-
class
|
49
|
+
class CreateNodePoolRequest
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
46
52
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -148,13 +154,13 @@ module Google
|
|
148
154
|
include Google::Apis::Core::JsonObjectSupport
|
149
155
|
end
|
150
156
|
|
151
|
-
class
|
157
|
+
class SetLabelsRequest
|
152
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
159
|
|
154
160
|
include Google::Apis::Core::JsonObjectSupport
|
155
161
|
end
|
156
162
|
|
157
|
-
class
|
163
|
+
class NodePool
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
165
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -191,9 +197,9 @@ module Google
|
|
191
197
|
end
|
192
198
|
|
193
199
|
class RollbackNodePoolUpgradeRequest
|
194
|
-
|
195
|
-
|
196
|
-
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
end
|
197
203
|
end
|
198
204
|
|
199
205
|
class UpdateClusterRequest
|
@@ -207,19 +213,31 @@ module Google
|
|
207
213
|
class Cluster
|
208
214
|
# @private
|
209
215
|
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :current_node_count, as: 'currentNodeCount'
|
217
|
+
property :monitoring_service, as: 'monitoringService'
|
218
|
+
property :network, as: 'network'
|
219
|
+
property :label_fingerprint, as: 'labelFingerprint'
|
220
|
+
property :zone, as: 'zone'
|
221
|
+
property :expire_time, as: 'expireTime'
|
222
|
+
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
223
|
+
property :logging_service, as: 'loggingService'
|
224
|
+
property :status_message, as: 'statusMessage'
|
225
|
+
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
226
|
+
|
227
|
+
property :current_master_version, as: 'currentMasterVersion'
|
210
228
|
property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
211
229
|
|
212
230
|
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
213
231
|
|
214
232
|
property :status, as: 'status'
|
215
|
-
property :subnetwork, as: 'subnetwork'
|
216
233
|
property :current_node_version, as: 'currentNodeVersion'
|
234
|
+
property :subnetwork, as: 'subnetwork'
|
217
235
|
hash :resource_labels, as: 'resourceLabels'
|
218
236
|
property :name, as: 'name'
|
219
237
|
property :initial_cluster_version, as: 'initialClusterVersion'
|
220
|
-
property :endpoint, as: 'endpoint'
|
221
238
|
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
|
222
239
|
|
240
|
+
property :endpoint, as: 'endpoint'
|
223
241
|
property :create_time, as: 'createTime'
|
224
242
|
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
|
225
243
|
property :initial_node_count, as: 'initialNodeCount'
|
@@ -231,35 +249,23 @@ module Google
|
|
231
249
|
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
|
232
250
|
property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
|
233
251
|
property :description, as: 'description'
|
234
|
-
property :current_node_count, as: 'currentNodeCount'
|
235
|
-
property :monitoring_service, as: 'monitoringService'
|
236
|
-
property :network, as: 'network'
|
237
|
-
property :label_fingerprint, as: 'labelFingerprint'
|
238
|
-
property :zone, as: 'zone'
|
239
|
-
property :logging_service, as: 'loggingService'
|
240
|
-
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
|
241
|
-
property :expire_time, as: 'expireTime'
|
242
|
-
property :status_message, as: 'statusMessage'
|
243
|
-
property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
244
|
-
|
245
|
-
property :current_master_version, as: 'currentMasterVersion'
|
246
252
|
end
|
247
253
|
end
|
248
254
|
|
249
|
-
class
|
255
|
+
class ListOperationsResponse
|
250
256
|
# @private
|
251
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
-
|
258
|
+
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
|
253
259
|
|
260
|
+
collection :missing_zones, as: 'missingZones'
|
254
261
|
end
|
255
262
|
end
|
256
263
|
|
257
|
-
class
|
264
|
+
class CreateNodePoolRequest
|
258
265
|
# @private
|
259
266
|
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
-
|
267
|
+
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
261
268
|
|
262
|
-
collection :missing_zones, as: 'missingZones'
|
263
269
|
end
|
264
270
|
end
|
265
271
|
|
@@ -277,27 +283,27 @@ module Google
|
|
277
283
|
class NodeConfig
|
278
284
|
# @private
|
279
285
|
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
-
collection :oauth_scopes, as: 'oauthScopes'
|
281
|
-
property :preemptible, as: 'preemptible'
|
282
|
-
hash :labels, as: 'labels'
|
283
|
-
property :local_ssd_count, as: 'localSsdCount'
|
284
286
|
hash :metadata, as: 'metadata'
|
285
287
|
property :disk_size_gb, as: 'diskSizeGb'
|
286
288
|
collection :tags, as: 'tags'
|
287
289
|
property :service_account, as: 'serviceAccount'
|
288
290
|
property :machine_type, as: 'machineType'
|
289
291
|
property :image_type, as: 'imageType'
|
292
|
+
collection :oauth_scopes, as: 'oauthScopes'
|
293
|
+
property :preemptible, as: 'preemptible'
|
294
|
+
hash :labels, as: 'labels'
|
295
|
+
property :local_ssd_count, as: 'localSsdCount'
|
290
296
|
end
|
291
297
|
end
|
292
298
|
|
293
299
|
class MasterAuth
|
294
300
|
# @private
|
295
301
|
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
+
property :username, as: 'username'
|
303
|
+
property :client_key, as: 'clientKey'
|
296
304
|
property :cluster_ca_certificate, as: 'clusterCaCertificate'
|
297
305
|
property :password, as: 'password'
|
298
306
|
property :client_certificate, as: 'clientCertificate'
|
299
|
-
property :username, as: 'username'
|
300
|
-
property :client_key, as: 'clientKey'
|
301
307
|
end
|
302
308
|
end
|
303
309
|
|
@@ -337,15 +343,18 @@ module Google
|
|
337
343
|
class NodePoolAutoscaling
|
338
344
|
# @private
|
339
345
|
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
-
property :enabled, as: 'enabled'
|
341
346
|
property :max_node_count, as: 'maxNodeCount'
|
342
347
|
property :min_node_count, as: 'minNodeCount'
|
348
|
+
property :enabled, as: 'enabled'
|
343
349
|
end
|
344
350
|
end
|
345
351
|
|
346
352
|
class ClusterUpdate
|
347
353
|
# @private
|
348
354
|
class Representation < Google::Apis::Core::JsonRepresentation
|
355
|
+
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
356
|
+
|
357
|
+
collection :desired_locations, as: 'desiredLocations'
|
349
358
|
property :desired_monitoring_service, as: 'desiredMonitoringService'
|
350
359
|
property :desired_image_type, as: 'desiredImageType'
|
351
360
|
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
@@ -353,9 +362,6 @@ module Google
|
|
353
362
|
property :desired_node_pool_id, as: 'desiredNodePoolId'
|
354
363
|
property :desired_node_version, as: 'desiredNodeVersion'
|
355
364
|
property :desired_master_version, as: 'desiredMasterVersion'
|
356
|
-
collection :desired_locations, as: 'desiredLocations'
|
357
|
-
property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
358
|
-
|
359
365
|
end
|
360
366
|
end
|
361
367
|
|
@@ -415,9 +421,22 @@ module Google
|
|
415
421
|
end
|
416
422
|
end
|
417
423
|
|
424
|
+
class SetLabelsRequest
|
425
|
+
# @private
|
426
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
427
|
+
hash :resource_labels, as: 'resourceLabels'
|
428
|
+
property :label_fingerprint, as: 'labelFingerprint'
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
418
432
|
class NodePool
|
419
433
|
# @private
|
420
434
|
class Representation < Google::Apis::Core::JsonRepresentation
|
435
|
+
property :status, as: 'status'
|
436
|
+
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
437
|
+
|
438
|
+
property :status_message, as: 'statusMessage'
|
439
|
+
property :name, as: 'name'
|
421
440
|
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
422
441
|
|
423
442
|
property :initial_node_count, as: 'initialNodeCount'
|
@@ -426,29 +445,16 @@ module Google
|
|
426
445
|
property :self_link, as: 'selfLink'
|
427
446
|
property :version, as: 'version'
|
428
447
|
collection :instance_group_urls, as: 'instanceGroupUrls'
|
429
|
-
property :status, as: 'status'
|
430
|
-
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
431
|
-
|
432
|
-
property :status_message, as: 'statusMessage'
|
433
|
-
property :name, as: 'name'
|
434
|
-
end
|
435
|
-
end
|
436
|
-
|
437
|
-
class SetLabelsRequest
|
438
|
-
# @private
|
439
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
-
hash :resource_labels, as: 'resourceLabels'
|
441
|
-
property :label_fingerprint, as: 'labelFingerprint'
|
442
448
|
end
|
443
449
|
end
|
444
450
|
|
445
451
|
class NodeManagement
|
446
452
|
# @private
|
447
453
|
class Representation < Google::Apis::Core::JsonRepresentation
|
448
|
-
property :auto_upgrade, as: 'autoUpgrade'
|
449
|
-
property :auto_repair, as: 'autoRepair'
|
450
454
|
property :upgrade_options, as: 'upgradeOptions', class: Google::Apis::ContainerV1::AutoUpgradeOptions, decorator: Google::Apis::ContainerV1::AutoUpgradeOptions::Representation
|
451
455
|
|
456
|
+
property :auto_upgrade, as: 'autoUpgrade'
|
457
|
+
property :auto_repair, as: 'autoRepair'
|
452
458
|
end
|
453
459
|
end
|
454
460
|
|
@@ -468,14 +474,14 @@ module Google
|
|
468
474
|
class Operation
|
469
475
|
# @private
|
470
476
|
class Representation < Google::Apis::Core::JsonRepresentation
|
471
|
-
property :
|
477
|
+
property :status, as: 'status'
|
472
478
|
property :name, as: 'name'
|
479
|
+
property :status_message, as: 'statusMessage'
|
473
480
|
property :self_link, as: 'selfLink'
|
474
481
|
property :target_link, as: 'targetLink'
|
475
482
|
property :detail, as: 'detail'
|
476
483
|
property :operation_type, as: 'operationType'
|
477
484
|
property :zone, as: 'zone'
|
478
|
-
property :status, as: 'status'
|
479
485
|
end
|
480
486
|
end
|
481
487
|
|
@@ -488,12 +494,6 @@ module Google
|
|
488
494
|
|
489
495
|
end
|
490
496
|
end
|
491
|
-
|
492
|
-
class RollbackNodePoolUpgradeRequest
|
493
|
-
# @private
|
494
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
495
|
-
end
|
496
|
-
end
|
497
497
|
end
|
498
498
|
end
|
499
499
|
end
|
@@ -83,54 +83,15 @@ module Google
|
|
83
83
|
execute_or_queue_command(command, &block)
|
84
84
|
end
|
85
85
|
|
86
|
-
#
|
86
|
+
# Lists all clusters owned by a project in either the specified zone or all
|
87
|
+
# zones.
|
87
88
|
# @param [String] project_id
|
88
89
|
# The Google Developers Console [project ID or project
|
89
90
|
# number](https://support.google.com/cloud/answer/6158840).
|
90
91
|
# @param [String] zone
|
91
92
|
# The name of the Google Compute Engine
|
92
|
-
# [zone](/compute/docs/zones#available) in which the
|
93
|
-
#
|
94
|
-
# The server-assigned `name` of the operation.
|
95
|
-
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
96
|
-
# @param [String] fields
|
97
|
-
# Selector specifying which fields to include in a partial response.
|
98
|
-
# @param [String] quota_user
|
99
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
100
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
101
|
-
# @param [Google::Apis::RequestOptions] options
|
102
|
-
# Request-specific options
|
103
|
-
#
|
104
|
-
# @yield [result, err] Result & error if block supplied
|
105
|
-
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
106
|
-
# @yieldparam err [StandardError] error object if request failed
|
107
|
-
#
|
108
|
-
# @return [Google::Apis::ContainerV1::Empty]
|
109
|
-
#
|
110
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
111
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
112
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
113
|
-
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
114
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
115
|
-
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
116
|
-
command.request_object = cancel_operation_request_object
|
117
|
-
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
118
|
-
command.response_class = Google::Apis::ContainerV1::Empty
|
119
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
120
|
-
command.params['zone'] = zone unless zone.nil?
|
121
|
-
command.params['operationId'] = operation_id unless operation_id.nil?
|
122
|
-
command.query['fields'] = fields unless fields.nil?
|
123
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
-
execute_or_queue_command(command, &block)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Lists all operations in a project in a specific zone or all zones.
|
128
|
-
# @param [String] project_id
|
129
|
-
# The Google Developers Console [project ID or project
|
130
|
-
# number](https://support.google.com/cloud/answer/6158840).
|
131
|
-
# @param [String] zone
|
132
|
-
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
133
|
-
# to return operations for, or `-` for all zones.
|
93
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
94
|
+
# resides, or "-" for all zones.
|
134
95
|
# @param [String] fields
|
135
96
|
# Selector specifying which fields to include in a partial response.
|
136
97
|
# @param [String] quota_user
|
@@ -140,18 +101,18 @@ module Google
|
|
140
101
|
# Request-specific options
|
141
102
|
#
|
142
103
|
# @yield [result, err] Result & error if block supplied
|
143
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
104
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
|
144
105
|
# @yieldparam err [StandardError] error object if request failed
|
145
106
|
#
|
146
|
-
# @return [Google::Apis::ContainerV1::
|
107
|
+
# @return [Google::Apis::ContainerV1::ListClustersResponse]
|
147
108
|
#
|
148
109
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
110
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
111
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
-
def
|
152
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/
|
153
|
-
command.response_representation = Google::Apis::ContainerV1::
|
154
|
-
command.response_class = Google::Apis::ContainerV1::
|
112
|
+
def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
114
|
+
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
|
115
|
+
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
|
155
116
|
command.params['projectId'] = project_id unless project_id.nil?
|
156
117
|
command.params['zone'] = zone unless zone.nil?
|
157
118
|
command.query['fields'] = fields unless fields.nil?
|
@@ -159,16 +120,17 @@ module Google
|
|
159
120
|
execute_or_queue_command(command, &block)
|
160
121
|
end
|
161
122
|
|
162
|
-
#
|
123
|
+
# Sets labels on a cluster.
|
163
124
|
# @param [String] project_id
|
164
125
|
# The Google Developers Console [project ID or project
|
165
|
-
# number](https://
|
126
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
166
127
|
# @param [String] zone
|
167
128
|
# The name of the Google Compute Engine
|
168
129
|
# [zone](/compute/docs/zones#available) in which the cluster
|
169
130
|
# resides.
|
170
|
-
# @param [String]
|
171
|
-
# The
|
131
|
+
# @param [String] cluster_id
|
132
|
+
# The name of the cluster.
|
133
|
+
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
|
172
134
|
# @param [String] fields
|
173
135
|
# Selector specifying which fields to include in a partial response.
|
174
136
|
# @param [String] quota_user
|
@@ -186,50 +148,15 @@ module Google
|
|
186
148
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
187
149
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
188
150
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
189
|
-
def
|
190
|
-
command = make_simple_command(:
|
151
|
+
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
153
|
+
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
154
|
+
command.request_object = set_labels_request_object
|
191
155
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
192
156
|
command.response_class = Google::Apis::ContainerV1::Operation
|
193
157
|
command.params['projectId'] = project_id unless project_id.nil?
|
194
158
|
command.params['zone'] = zone unless zone.nil?
|
195
|
-
command.params['
|
196
|
-
command.query['fields'] = fields unless fields.nil?
|
197
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
198
|
-
execute_or_queue_command(command, &block)
|
199
|
-
end
|
200
|
-
|
201
|
-
# Lists all clusters owned by a project in either the specified zone or all
|
202
|
-
# zones.
|
203
|
-
# @param [String] project_id
|
204
|
-
# The Google Developers Console [project ID or project
|
205
|
-
# number](https://support.google.com/cloud/answer/6158840).
|
206
|
-
# @param [String] zone
|
207
|
-
# The name of the Google Compute Engine
|
208
|
-
# [zone](/compute/docs/zones#available) in which the cluster
|
209
|
-
# resides, or "-" for all zones.
|
210
|
-
# @param [String] fields
|
211
|
-
# Selector specifying which fields to include in a partial response.
|
212
|
-
# @param [String] quota_user
|
213
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
-
# @param [Google::Apis::RequestOptions] options
|
216
|
-
# Request-specific options
|
217
|
-
#
|
218
|
-
# @yield [result, err] Result & error if block supplied
|
219
|
-
# @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
|
220
|
-
# @yieldparam err [StandardError] error object if request failed
|
221
|
-
#
|
222
|
-
# @return [Google::Apis::ContainerV1::ListClustersResponse]
|
223
|
-
#
|
224
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
-
def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
229
|
-
command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
|
230
|
-
command.response_class = Google::Apis::ContainerV1::ListClustersResponse
|
231
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
232
|
-
command.params['zone'] = zone unless zone.nil?
|
159
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
233
160
|
command.query['fields'] = fields unless fields.nil?
|
234
161
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
235
162
|
execute_or_queue_command(command, &block)
|
@@ -283,48 +210,6 @@ module Google
|
|
283
210
|
execute_or_queue_command(command, &block)
|
284
211
|
end
|
285
212
|
|
286
|
-
# Sets labels on a cluster.
|
287
|
-
# @param [String] project_id
|
288
|
-
# The Google Developers Console [project ID or project
|
289
|
-
# number](https://developers.google.com/console/help/new/#projectnumber).
|
290
|
-
# @param [String] zone
|
291
|
-
# The name of the Google Compute Engine
|
292
|
-
# [zone](/compute/docs/zones#available) in which the cluster
|
293
|
-
# resides.
|
294
|
-
# @param [String] cluster_id
|
295
|
-
# The name of the cluster.
|
296
|
-
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
|
297
|
-
# @param [String] fields
|
298
|
-
# Selector specifying which fields to include in a partial response.
|
299
|
-
# @param [String] quota_user
|
300
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
301
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
302
|
-
# @param [Google::Apis::RequestOptions] options
|
303
|
-
# Request-specific options
|
304
|
-
#
|
305
|
-
# @yield [result, err] Result & error if block supplied
|
306
|
-
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
307
|
-
# @yieldparam err [StandardError] error object if request failed
|
308
|
-
#
|
309
|
-
# @return [Google::Apis::ContainerV1::Operation]
|
310
|
-
#
|
311
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
312
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
313
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
314
|
-
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
315
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
316
|
-
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
317
|
-
command.request_object = set_labels_request_object
|
318
|
-
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
319
|
-
command.response_class = Google::Apis::ContainerV1::Operation
|
320
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
321
|
-
command.params['zone'] = zone unless zone.nil?
|
322
|
-
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
323
|
-
command.query['fields'] = fields unless fields.nil?
|
324
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
325
|
-
execute_or_queue_command(command, &block)
|
326
|
-
end
|
327
|
-
|
328
213
|
# Completes master IP rotation.
|
329
214
|
# @param [String] project_id
|
330
215
|
# The Google Developers Console [project ID or project
|
@@ -621,7 +506,7 @@ module Google
|
|
621
506
|
execute_or_queue_command(command, &block)
|
622
507
|
end
|
623
508
|
|
624
|
-
#
|
509
|
+
# Deletes a node pool from a cluster.
|
625
510
|
# @param [String] project_id
|
626
511
|
# The Google Developers Console [project ID or project
|
627
512
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
@@ -632,7 +517,7 @@ module Google
|
|
632
517
|
# @param [String] cluster_id
|
633
518
|
# The name of the cluster.
|
634
519
|
# @param [String] node_pool_id
|
635
|
-
# The name of the node pool.
|
520
|
+
# The name of the node pool to delete.
|
636
521
|
# @param [String] fields
|
637
522
|
# Selector specifying which fields to include in a partial response.
|
638
523
|
# @param [String] quota_user
|
@@ -642,18 +527,18 @@ module Google
|
|
642
527
|
# Request-specific options
|
643
528
|
#
|
644
529
|
# @yield [result, err] Result & error if block supplied
|
645
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
530
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
646
531
|
# @yieldparam err [StandardError] error object if request failed
|
647
532
|
#
|
648
|
-
# @return [Google::Apis::ContainerV1::
|
533
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
649
534
|
#
|
650
535
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
651
536
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
652
537
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
653
|
-
def
|
654
|
-
command = make_simple_command(:
|
655
|
-
command.response_representation = Google::Apis::ContainerV1::
|
656
|
-
command.response_class = Google::Apis::ContainerV1::
|
538
|
+
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
539
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
540
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
541
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
657
542
|
command.params['projectId'] = project_id unless project_id.nil?
|
658
543
|
command.params['zone'] = zone unless zone.nil?
|
659
544
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
@@ -708,7 +593,7 @@ module Google
|
|
708
593
|
execute_or_queue_command(command, &block)
|
709
594
|
end
|
710
595
|
|
711
|
-
#
|
596
|
+
# Lists the node pools for a cluster.
|
712
597
|
# @param [String] project_id
|
713
598
|
# The Google Developers Console [project ID or project
|
714
599
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
@@ -718,8 +603,49 @@ module Google
|
|
718
603
|
# resides.
|
719
604
|
# @param [String] cluster_id
|
720
605
|
# The name of the cluster.
|
606
|
+
# @param [String] fields
|
607
|
+
# Selector specifying which fields to include in a partial response.
|
608
|
+
# @param [String] quota_user
|
609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
611
|
+
# @param [Google::Apis::RequestOptions] options
|
612
|
+
# Request-specific options
|
613
|
+
#
|
614
|
+
# @yield [result, err] Result & error if block supplied
|
615
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
|
616
|
+
# @yieldparam err [StandardError] error object if request failed
|
617
|
+
#
|
618
|
+
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
619
|
+
#
|
620
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
621
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
622
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
623
|
+
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
624
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
625
|
+
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
626
|
+
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
627
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
628
|
+
command.params['zone'] = zone unless zone.nil?
|
629
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
630
|
+
command.query['fields'] = fields unless fields.nil?
|
631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
|
+
execute_or_queue_command(command, &block)
|
633
|
+
end
|
634
|
+
|
635
|
+
# Roll back the previously Aborted or Failed NodePool upgrade.
|
636
|
+
# This will be an no-op if the last upgrade successfully completed.
|
637
|
+
# @param [String] project_id
|
638
|
+
# The Google Developers Console [project ID or project
|
639
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
640
|
+
# @param [String] zone
|
641
|
+
# The name of the Google Compute Engine
|
642
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
643
|
+
# resides.
|
644
|
+
# @param [String] cluster_id
|
645
|
+
# The name of the cluster to rollback.
|
721
646
|
# @param [String] node_pool_id
|
722
|
-
# The name of the node pool to
|
647
|
+
# The name of the node pool to rollback.
|
648
|
+
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
723
649
|
# @param [String] fields
|
724
650
|
# Selector specifying which fields to include in a partial response.
|
725
651
|
# @param [String] quota_user
|
@@ -737,8 +663,10 @@ module Google
|
|
737
663
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
664
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
665
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
-
def
|
741
|
-
command = make_simple_command(:
|
666
|
+
def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
667
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
668
|
+
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
669
|
+
command.request_object = rollback_node_pool_upgrade_request_object
|
742
670
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
743
671
|
command.response_class = Google::Apis::ContainerV1::Operation
|
744
672
|
command.params['projectId'] = project_id unless project_id.nil?
|
@@ -750,7 +678,7 @@ module Google
|
|
750
678
|
execute_or_queue_command(command, &block)
|
751
679
|
end
|
752
680
|
|
753
|
-
#
|
681
|
+
# Creates a node pool for a cluster.
|
754
682
|
# @param [String] project_id
|
755
683
|
# The Google Developers Console [project ID or project
|
756
684
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
@@ -760,6 +688,7 @@ module Google
|
|
760
688
|
# resides.
|
761
689
|
# @param [String] cluster_id
|
762
690
|
# The name of the cluster.
|
691
|
+
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
763
692
|
# @param [String] fields
|
764
693
|
# Selector specifying which fields to include in a partial response.
|
765
694
|
# @param [String] quota_user
|
@@ -769,18 +698,20 @@ module Google
|
|
769
698
|
# Request-specific options
|
770
699
|
#
|
771
700
|
# @yield [result, err] Result & error if block supplied
|
772
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
701
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
773
702
|
# @yieldparam err [StandardError] error object if request failed
|
774
703
|
#
|
775
|
-
# @return [Google::Apis::ContainerV1::
|
704
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
776
705
|
#
|
777
706
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
778
707
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
779
708
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
780
|
-
def
|
781
|
-
command = make_simple_command(:
|
782
|
-
command.
|
783
|
-
command.
|
709
|
+
def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
710
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
711
|
+
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
712
|
+
command.request_object = create_node_pool_request_object
|
713
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
714
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
784
715
|
command.params['projectId'] = project_id unless project_id.nil?
|
785
716
|
command.params['zone'] = zone unless zone.nil?
|
786
717
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
@@ -789,20 +720,18 @@ module Google
|
|
789
720
|
execute_or_queue_command(command, &block)
|
790
721
|
end
|
791
722
|
|
792
|
-
#
|
793
|
-
# This will be an no-op if the last upgrade successfully completed.
|
723
|
+
# Retrieves the node pool requested.
|
794
724
|
# @param [String] project_id
|
795
725
|
# The Google Developers Console [project ID or project
|
796
|
-
# number](https://
|
726
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
797
727
|
# @param [String] zone
|
798
728
|
# The name of the Google Compute Engine
|
799
729
|
# [zone](/compute/docs/zones#available) in which the cluster
|
800
730
|
# resides.
|
801
731
|
# @param [String] cluster_id
|
802
|
-
# The name of the cluster
|
732
|
+
# The name of the cluster.
|
803
733
|
# @param [String] node_pool_id
|
804
|
-
# The name of the node pool
|
805
|
-
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
734
|
+
# The name of the node pool.
|
806
735
|
# @param [String] fields
|
807
736
|
# Selector specifying which fields to include in a partial response.
|
808
737
|
# @param [String] quota_user
|
@@ -812,20 +741,18 @@ module Google
|
|
812
741
|
# Request-specific options
|
813
742
|
#
|
814
743
|
# @yield [result, err] Result & error if block supplied
|
815
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
744
|
+
# @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
|
816
745
|
# @yieldparam err [StandardError] error object if request failed
|
817
746
|
#
|
818
|
-
# @return [Google::Apis::ContainerV1::
|
747
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
819
748
|
#
|
820
749
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
750
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
751
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
-
def
|
824
|
-
command = make_simple_command(:
|
825
|
-
command.
|
826
|
-
command.
|
827
|
-
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
828
|
-
command.response_class = Google::Apis::ContainerV1::Operation
|
752
|
+
def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
753
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
754
|
+
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
|
755
|
+
command.response_class = Google::Apis::ContainerV1::NodePool
|
829
756
|
command.params['projectId'] = project_id unless project_id.nil?
|
830
757
|
command.params['zone'] = zone unless zone.nil?
|
831
758
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
@@ -835,17 +762,51 @@ module Google
|
|
835
762
|
execute_or_queue_command(command, &block)
|
836
763
|
end
|
837
764
|
|
838
|
-
#
|
765
|
+
# Lists all operations in a project in a specific zone or all zones.
|
839
766
|
# @param [String] project_id
|
840
767
|
# The Google Developers Console [project ID or project
|
841
|
-
# number](https://
|
768
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
769
|
+
# @param [String] zone
|
770
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
771
|
+
# to return operations for, or `-` for all zones.
|
772
|
+
# @param [String] fields
|
773
|
+
# Selector specifying which fields to include in a partial response.
|
774
|
+
# @param [String] quota_user
|
775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
777
|
+
# @param [Google::Apis::RequestOptions] options
|
778
|
+
# Request-specific options
|
779
|
+
#
|
780
|
+
# @yield [result, err] Result & error if block supplied
|
781
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
782
|
+
# @yieldparam err [StandardError] error object if request failed
|
783
|
+
#
|
784
|
+
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
785
|
+
#
|
786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
789
|
+
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
791
|
+
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
792
|
+
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
793
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
794
|
+
command.params['zone'] = zone unless zone.nil?
|
795
|
+
command.query['fields'] = fields unless fields.nil?
|
796
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
797
|
+
execute_or_queue_command(command, &block)
|
798
|
+
end
|
799
|
+
|
800
|
+
# Gets the specified operation.
|
801
|
+
# @param [String] project_id
|
802
|
+
# The Google Developers Console [project ID or project
|
803
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
842
804
|
# @param [String] zone
|
843
805
|
# The name of the Google Compute Engine
|
844
806
|
# [zone](/compute/docs/zones#available) in which the cluster
|
845
807
|
# resides.
|
846
|
-
# @param [String]
|
847
|
-
# The name of the
|
848
|
-
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
808
|
+
# @param [String] operation_id
|
809
|
+
# The server-assigned `name` of the operation.
|
849
810
|
# @param [String] fields
|
850
811
|
# Selector specifying which fields to include in a partial response.
|
851
812
|
# @param [String] quota_user
|
@@ -863,15 +824,54 @@ module Google
|
|
863
824
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
864
825
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
865
826
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
866
|
-
def
|
867
|
-
command = make_simple_command(:
|
868
|
-
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
869
|
-
command.request_object = create_node_pool_request_object
|
827
|
+
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
828
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
870
829
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
871
830
|
command.response_class = Google::Apis::ContainerV1::Operation
|
872
831
|
command.params['projectId'] = project_id unless project_id.nil?
|
873
832
|
command.params['zone'] = zone unless zone.nil?
|
874
|
-
command.params['
|
833
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
834
|
+
command.query['fields'] = fields unless fields.nil?
|
835
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
836
|
+
execute_or_queue_command(command, &block)
|
837
|
+
end
|
838
|
+
|
839
|
+
# Cancels the specified operation.
|
840
|
+
# @param [String] project_id
|
841
|
+
# The Google Developers Console [project ID or project
|
842
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
843
|
+
# @param [String] zone
|
844
|
+
# The name of the Google Compute Engine
|
845
|
+
# [zone](/compute/docs/zones#available) in which the operation resides.
|
846
|
+
# @param [String] operation_id
|
847
|
+
# The server-assigned `name` of the operation.
|
848
|
+
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
849
|
+
# @param [String] fields
|
850
|
+
# Selector specifying which fields to include in a partial response.
|
851
|
+
# @param [String] quota_user
|
852
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
853
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
854
|
+
# @param [Google::Apis::RequestOptions] options
|
855
|
+
# Request-specific options
|
856
|
+
#
|
857
|
+
# @yield [result, err] Result & error if block supplied
|
858
|
+
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
859
|
+
# @yieldparam err [StandardError] error object if request failed
|
860
|
+
#
|
861
|
+
# @return [Google::Apis::ContainerV1::Empty]
|
862
|
+
#
|
863
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
864
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
865
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
866
|
+
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
867
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
868
|
+
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
869
|
+
command.request_object = cancel_operation_request_object
|
870
|
+
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
871
|
+
command.response_class = Google::Apis::ContainerV1::Empty
|
872
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
873
|
+
command.params['zone'] = zone unless zone.nil?
|
874
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
875
875
|
command.query['fields'] = fields unless fields.nil?
|
876
876
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
877
877
|
execute_or_queue_command(command, &block)
|