google-api-client 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- 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.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- 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 +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- 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 +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- 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 +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- 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 +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- 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 +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- 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 +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- 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 +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- 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 +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
|
@@ -22,8 +22,8 @@ module Google
|
|
|
22
22
|
module ContainerV1
|
|
23
23
|
# Google Container Engine API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
26
|
-
# open source Kubernetes technology.
|
|
25
|
+
# The Google Container Engine API is used for building and managing container
|
|
26
|
+
# based applications, powered by the open source Kubernetes technology.
|
|
27
27
|
#
|
|
28
28
|
# @example
|
|
29
29
|
# require 'google/apis/container_v1'
|
|
@@ -50,11 +50,11 @@ module Google
|
|
|
50
50
|
|
|
51
51
|
# Returns configuration info about the Container Engine service.
|
|
52
52
|
# @param [String] project_id
|
|
53
|
-
# The Google Developers Console [project ID or project
|
|
54
|
-
# google.com/cloud/answer/6158840).
|
|
53
|
+
# The Google Developers Console [project ID or project
|
|
54
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
55
55
|
# @param [String] zone
|
|
56
|
-
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
|
57
|
-
# return operations for.
|
|
56
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available)
|
|
57
|
+
# to return operations for.
|
|
58
58
|
# @param [String] fields
|
|
59
59
|
# Selector specifying which fields to include in a partial response.
|
|
60
60
|
# @param [String] quota_user
|
|
@@ -83,14 +83,130 @@ module Google
|
|
|
83
83
|
execute_or_queue_command(command, &block)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# Cancels the specified operation.
|
|
87
|
+
# @param [String] project_id
|
|
88
|
+
# The Google Developers Console [project ID or project
|
|
89
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
90
|
+
# @param [String] zone
|
|
91
|
+
# The name of the Google Compute Engine
|
|
92
|
+
# [zone](/compute/docs/zones#available) in which the operation resides.
|
|
93
|
+
# @param [String] operation_id
|
|
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.
|
|
134
|
+
# @param [String] fields
|
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
|
136
|
+
# @param [String] quota_user
|
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
|
140
|
+
# Request-specific options
|
|
141
|
+
#
|
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
|
143
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListOperationsResponse] parsed result object
|
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
145
|
+
#
|
|
146
|
+
# @return [Google::Apis::ContainerV1::ListOperationsResponse]
|
|
147
|
+
#
|
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
151
|
+
def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
|
|
152
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
|
|
153
|
+
command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
|
|
154
|
+
command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
|
|
155
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
156
|
+
command.params['zone'] = zone unless zone.nil?
|
|
157
|
+
command.query['fields'] = fields unless fields.nil?
|
|
158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
159
|
+
execute_or_queue_command(command, &block)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Gets the specified operation.
|
|
163
|
+
# @param [String] project_id
|
|
164
|
+
# The Google Developers Console [project ID or project
|
|
165
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
166
|
+
# @param [String] zone
|
|
167
|
+
# The name of the Google Compute Engine
|
|
168
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
169
|
+
# resides.
|
|
170
|
+
# @param [String] operation_id
|
|
171
|
+
# The server-assigned `name` of the operation.
|
|
172
|
+
# @param [String] fields
|
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
|
174
|
+
# @param [String] quota_user
|
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
|
178
|
+
# Request-specific options
|
|
179
|
+
#
|
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
|
181
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
183
|
+
#
|
|
184
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
185
|
+
#
|
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
|
+
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
190
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
|
191
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
192
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
193
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
194
|
+
command.params['zone'] = zone unless zone.nil?
|
|
195
|
+
command.params['operationId'] = operation_id unless operation_id.nil?
|
|
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
|
+
|
|
86
201
|
# Lists all clusters owned by a project in either the specified zone or all
|
|
87
202
|
# zones.
|
|
88
203
|
# @param [String] project_id
|
|
89
|
-
# The Google Developers Console [project ID or project
|
|
90
|
-
# google.com/cloud/answer/6158840).
|
|
204
|
+
# The Google Developers Console [project ID or project
|
|
205
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
91
206
|
# @param [String] zone
|
|
92
|
-
# The name of the Google Compute Engine
|
|
93
|
-
# which the cluster
|
|
207
|
+
# The name of the Google Compute Engine
|
|
208
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
209
|
+
# resides, or "-" for all zones.
|
|
94
210
|
# @param [String] fields
|
|
95
211
|
# Selector specifying which fields to include in a partial response.
|
|
96
212
|
# @param [String] quota_user
|
|
@@ -119,15 +235,24 @@ module Google
|
|
|
119
235
|
execute_or_queue_command(command, &block)
|
|
120
236
|
end
|
|
121
237
|
|
|
122
|
-
#
|
|
238
|
+
# Creates a cluster, consisting of the specified number and type of Google
|
|
239
|
+
# Compute Engine instances.
|
|
240
|
+
# By default, the cluster is created in the project's
|
|
241
|
+
# [default network](/compute/docs/networks-and-firewalls#networks).
|
|
242
|
+
# One firewall is added for the cluster. After cluster creation,
|
|
243
|
+
# the cluster creates routes for each node to allow the containers
|
|
244
|
+
# on that node to communicate with all other instances in the
|
|
245
|
+
# cluster.
|
|
246
|
+
# Finally, an entry is added to the project's global metadata indicating
|
|
247
|
+
# which CIDR range is being used by the cluster.
|
|
123
248
|
# @param [String] project_id
|
|
124
|
-
# The Google Developers Console [project ID or project
|
|
125
|
-
# google.com/cloud/answer/6158840).
|
|
249
|
+
# The Google Developers Console [project ID or project
|
|
250
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
126
251
|
# @param [String] zone
|
|
127
|
-
# The name of the Google Compute Engine
|
|
128
|
-
# which the cluster
|
|
129
|
-
#
|
|
130
|
-
#
|
|
252
|
+
# The name of the Google Compute Engine
|
|
253
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
254
|
+
# resides.
|
|
255
|
+
# @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
|
|
131
256
|
# @param [String] fields
|
|
132
257
|
# Selector specifying which fields to include in a partial response.
|
|
133
258
|
# @param [String] quota_user
|
|
@@ -137,40 +262,38 @@ module Google
|
|
|
137
262
|
# Request-specific options
|
|
138
263
|
#
|
|
139
264
|
# @yield [result, err] Result & error if block supplied
|
|
140
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
265
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
141
266
|
# @yieldparam err [StandardError] error object if request failed
|
|
142
267
|
#
|
|
143
|
-
# @return [Google::Apis::ContainerV1::
|
|
268
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
144
269
|
#
|
|
145
270
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
146
271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
147
272
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
148
|
-
def
|
|
149
|
-
command = make_simple_command(:
|
|
150
|
-
command.
|
|
151
|
-
command.
|
|
273
|
+
def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
274
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
|
275
|
+
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
|
|
276
|
+
command.request_object = create_cluster_request_object
|
|
277
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
278
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
152
279
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
153
280
|
command.params['zone'] = zone unless zone.nil?
|
|
154
|
-
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
155
281
|
command.query['fields'] = fields unless fields.nil?
|
|
156
282
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
157
283
|
execute_or_queue_command(command, &block)
|
|
158
284
|
end
|
|
159
285
|
|
|
160
|
-
#
|
|
161
|
-
# Compute Engine instances. By default, the cluster is created in the project's [
|
|
162
|
-
# default network](/compute/docs/networks-and-firewalls#networks). One firewall
|
|
163
|
-
# is added for the cluster. After cluster creation, the cluster creates routes
|
|
164
|
-
# for each node to allow the containers on that node to communicate with all
|
|
165
|
-
# other instances in the cluster. Finally, an entry is added to the project's
|
|
166
|
-
# global metadata indicating which CIDR range is being used by the cluster.
|
|
286
|
+
# Sets labels on a cluster.
|
|
167
287
|
# @param [String] project_id
|
|
168
|
-
# The Google Developers Console [project ID or project
|
|
169
|
-
# google.com/
|
|
288
|
+
# The Google Developers Console [project ID or project
|
|
289
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
170
290
|
# @param [String] zone
|
|
171
|
-
# The name of the Google Compute Engine
|
|
172
|
-
# which the cluster
|
|
173
|
-
#
|
|
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
|
|
174
297
|
# @param [String] fields
|
|
175
298
|
# Selector specifying which fields to include in a partial response.
|
|
176
299
|
# @param [String] quota_user
|
|
@@ -188,29 +311,31 @@ module Google
|
|
|
188
311
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
189
312
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
190
313
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
191
|
-
def
|
|
192
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
|
193
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
194
|
-
command.request_object =
|
|
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
|
|
195
318
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
196
319
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
197
320
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
198
321
|
command.params['zone'] = zone unless zone.nil?
|
|
322
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
199
323
|
command.query['fields'] = fields unless fields.nil?
|
|
200
324
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
201
325
|
execute_or_queue_command(command, &block)
|
|
202
326
|
end
|
|
203
327
|
|
|
204
|
-
#
|
|
328
|
+
# Completes master IP rotation.
|
|
205
329
|
# @param [String] project_id
|
|
206
|
-
# The Google Developers Console [project ID or project
|
|
207
|
-
# google.com/
|
|
330
|
+
# The Google Developers Console [project ID or project
|
|
331
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
208
332
|
# @param [String] zone
|
|
209
|
-
# The name of the Google Compute Engine
|
|
210
|
-
# which the cluster
|
|
333
|
+
# The name of the Google Compute Engine
|
|
334
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
335
|
+
# resides.
|
|
211
336
|
# @param [String] cluster_id
|
|
212
|
-
# The name of the cluster
|
|
213
|
-
# @param [Google::Apis::ContainerV1::
|
|
337
|
+
# The name of the cluster.
|
|
338
|
+
# @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
|
|
214
339
|
# @param [String] fields
|
|
215
340
|
# Selector specifying which fields to include in a partial response.
|
|
216
341
|
# @param [String] quota_user
|
|
@@ -228,10 +353,10 @@ module Google
|
|
|
228
353
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
229
354
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
230
355
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
231
|
-
def
|
|
232
|
-
command = make_simple_command(:
|
|
233
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
234
|
-
command.request_object =
|
|
356
|
+
def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
357
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
|
|
358
|
+
command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
|
|
359
|
+
command.request_object = complete_ip_rotation_request_object
|
|
235
360
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
236
361
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
237
362
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -242,19 +367,17 @@ module Google
|
|
|
242
367
|
execute_or_queue_command(command, &block)
|
|
243
368
|
end
|
|
244
369
|
|
|
245
|
-
#
|
|
246
|
-
# Firewalls and routes that were configured during cluster creation are also
|
|
247
|
-
# deleted. Other Google Compute Engine resources that might be in use by the
|
|
248
|
-
# cluster (e.g. load balancer resources) will not be deleted if they weren't
|
|
249
|
-
# present at the initial create time.
|
|
370
|
+
# Enables or disables the ABAC authorization mechanism on a cluster.
|
|
250
371
|
# @param [String] project_id
|
|
251
|
-
# The Google Developers Console [project ID or project
|
|
252
|
-
# google.com/cloud/answer/6158840).
|
|
372
|
+
# The Google Developers Console [project ID or project
|
|
373
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
253
374
|
# @param [String] zone
|
|
254
|
-
# The name of the Google Compute Engine
|
|
255
|
-
# which the cluster
|
|
375
|
+
# The name of the Google Compute Engine
|
|
376
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
377
|
+
# resides.
|
|
256
378
|
# @param [String] cluster_id
|
|
257
|
-
# The name of the cluster to
|
|
379
|
+
# The name of the cluster to update.
|
|
380
|
+
# @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
|
|
258
381
|
# @param [String] fields
|
|
259
382
|
# Selector specifying which fields to include in a partial response.
|
|
260
383
|
# @param [String] quota_user
|
|
@@ -272,8 +395,10 @@ module Google
|
|
|
272
395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
273
396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
274
397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
275
|
-
def
|
|
276
|
-
command = make_simple_command(:
|
|
398
|
+
def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
399
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
|
|
400
|
+
command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
|
|
401
|
+
command.request_object = set_legacy_abac_request_object
|
|
277
402
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
278
403
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
279
404
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -284,15 +409,16 @@ module Google
|
|
|
284
409
|
execute_or_queue_command(command, &block)
|
|
285
410
|
end
|
|
286
411
|
|
|
287
|
-
#
|
|
412
|
+
# Gets the details of a specific cluster.
|
|
288
413
|
# @param [String] project_id
|
|
289
|
-
# The Google Developers Console [project ID or project
|
|
290
|
-
#
|
|
414
|
+
# The Google Developers Console [project ID or project
|
|
415
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
291
416
|
# @param [String] zone
|
|
292
|
-
# The name of the Google Compute Engine
|
|
293
|
-
# which the cluster
|
|
417
|
+
# The name of the Google Compute Engine
|
|
418
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
419
|
+
# resides.
|
|
294
420
|
# @param [String] cluster_id
|
|
295
|
-
# The name of the cluster.
|
|
421
|
+
# The name of the cluster to retrieve.
|
|
296
422
|
# @param [String] fields
|
|
297
423
|
# Selector specifying which fields to include in a partial response.
|
|
298
424
|
# @param [String] quota_user
|
|
@@ -302,18 +428,18 @@ module Google
|
|
|
302
428
|
# Request-specific options
|
|
303
429
|
#
|
|
304
430
|
# @yield [result, err] Result & error if block supplied
|
|
305
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
431
|
+
# @yieldparam result [Google::Apis::ContainerV1::Cluster] parsed result object
|
|
306
432
|
# @yieldparam err [StandardError] error object if request failed
|
|
307
433
|
#
|
|
308
|
-
# @return [Google::Apis::ContainerV1::
|
|
434
|
+
# @return [Google::Apis::ContainerV1::Cluster]
|
|
309
435
|
#
|
|
310
436
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
311
437
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
312
438
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
313
|
-
def
|
|
314
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}
|
|
315
|
-
command.response_representation = Google::Apis::ContainerV1::
|
|
316
|
-
command.response_class = Google::Apis::ContainerV1::
|
|
439
|
+
def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
440
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
|
441
|
+
command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
|
|
442
|
+
command.response_class = Google::Apis::ContainerV1::Cluster
|
|
317
443
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
318
444
|
command.params['zone'] = zone unless zone.nil?
|
|
319
445
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
@@ -322,17 +448,17 @@ module Google
|
|
|
322
448
|
execute_or_queue_command(command, &block)
|
|
323
449
|
end
|
|
324
450
|
|
|
325
|
-
#
|
|
451
|
+
# Updates the settings of a specific cluster.
|
|
326
452
|
# @param [String] project_id
|
|
327
|
-
# The Google Developers Console [project ID or project
|
|
328
|
-
#
|
|
453
|
+
# The Google Developers Console [project ID or project
|
|
454
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
329
455
|
# @param [String] zone
|
|
330
|
-
# The name of the Google Compute Engine
|
|
331
|
-
# which the cluster
|
|
456
|
+
# The name of the Google Compute Engine
|
|
457
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
458
|
+
# resides.
|
|
332
459
|
# @param [String] cluster_id
|
|
333
|
-
# The name of the cluster.
|
|
334
|
-
# @param [
|
|
335
|
-
# The name of the node pool.
|
|
460
|
+
# The name of the cluster to upgrade.
|
|
461
|
+
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
|
|
336
462
|
# @param [String] fields
|
|
337
463
|
# Selector specifying which fields to include in a partial response.
|
|
338
464
|
# @param [String] quota_user
|
|
@@ -342,37 +468,39 @@ module Google
|
|
|
342
468
|
# Request-specific options
|
|
343
469
|
#
|
|
344
470
|
# @yield [result, err] Result & error if block supplied
|
|
345
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
471
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
346
472
|
# @yieldparam err [StandardError] error object if request failed
|
|
347
473
|
#
|
|
348
|
-
# @return [Google::Apis::ContainerV1::
|
|
474
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
349
475
|
#
|
|
350
476
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
351
477
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
352
478
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
353
|
-
def
|
|
354
|
-
command = make_simple_command(:
|
|
355
|
-
command.
|
|
356
|
-
command.
|
|
479
|
+
def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
480
|
+
command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
|
481
|
+
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
|
|
482
|
+
command.request_object = update_cluster_request_object
|
|
483
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
484
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
357
485
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
358
486
|
command.params['zone'] = zone unless zone.nil?
|
|
359
487
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
360
|
-
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
361
488
|
command.query['fields'] = fields unless fields.nil?
|
|
362
489
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
363
490
|
execute_or_queue_command(command, &block)
|
|
364
491
|
end
|
|
365
492
|
|
|
366
|
-
#
|
|
493
|
+
# Start master IP rotation.
|
|
367
494
|
# @param [String] project_id
|
|
368
|
-
# The Google Developers Console [project ID or project
|
|
369
|
-
# developers.google.com/console/help/new/#projectnumber).
|
|
495
|
+
# The Google Developers Console [project ID or project
|
|
496
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
370
497
|
# @param [String] zone
|
|
371
|
-
# The name of the Google Compute Engine
|
|
372
|
-
# which the cluster
|
|
498
|
+
# The name of the Google Compute Engine
|
|
499
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
500
|
+
# resides.
|
|
373
501
|
# @param [String] cluster_id
|
|
374
502
|
# The name of the cluster.
|
|
375
|
-
# @param [Google::Apis::ContainerV1::
|
|
503
|
+
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
|
|
376
504
|
# @param [String] fields
|
|
377
505
|
# Selector specifying which fields to include in a partial response.
|
|
378
506
|
# @param [String] quota_user
|
|
@@ -390,10 +518,10 @@ module Google
|
|
|
390
518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
391
519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
392
520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
393
|
-
def
|
|
394
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}
|
|
395
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
396
|
-
command.request_object =
|
|
521
|
+
def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
522
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
|
|
523
|
+
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
|
|
524
|
+
command.request_object = start_ip_rotation_request_object
|
|
397
525
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
398
526
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
399
527
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -404,17 +532,19 @@ module Google
|
|
|
404
532
|
execute_or_queue_command(command, &block)
|
|
405
533
|
end
|
|
406
534
|
|
|
407
|
-
#
|
|
535
|
+
# Used to set master auth materials. Currently supports :-
|
|
536
|
+
# Changing the admin password of a specific cluster.
|
|
537
|
+
# This can be either via password generation or explicitly set the password.
|
|
408
538
|
# @param [String] project_id
|
|
409
|
-
# The Google Developers Console [project ID or project
|
|
410
|
-
#
|
|
539
|
+
# The Google Developers Console [project ID or project
|
|
540
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
411
541
|
# @param [String] zone
|
|
412
|
-
# The name of the Google Compute Engine
|
|
413
|
-
# which the cluster
|
|
542
|
+
# The name of the Google Compute Engine
|
|
543
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
544
|
+
# resides.
|
|
414
545
|
# @param [String] cluster_id
|
|
415
|
-
# The name of the cluster.
|
|
416
|
-
# @param [
|
|
417
|
-
# The name of the node pool to delete.
|
|
546
|
+
# The name of the cluster to upgrade.
|
|
547
|
+
# @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
|
|
418
548
|
# @param [String] fields
|
|
419
549
|
# Selector specifying which fields to include in a partial response.
|
|
420
550
|
# @param [String] quota_user
|
|
@@ -432,32 +562,36 @@ module Google
|
|
|
432
562
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
433
563
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
434
564
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
435
|
-
def
|
|
436
|
-
command = make_simple_command(:
|
|
565
|
+
def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
566
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
|
|
567
|
+
command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
|
|
568
|
+
command.request_object = set_master_auth_request_object
|
|
437
569
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
438
570
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
439
571
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
440
572
|
command.params['zone'] = zone unless zone.nil?
|
|
441
573
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
442
|
-
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
443
574
|
command.query['fields'] = fields unless fields.nil?
|
|
444
575
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
445
576
|
execute_or_queue_command(command, &block)
|
|
446
577
|
end
|
|
447
578
|
|
|
448
|
-
#
|
|
449
|
-
#
|
|
579
|
+
# Deletes the cluster, including the Kubernetes endpoint and all worker
|
|
580
|
+
# nodes.
|
|
581
|
+
# Firewalls and routes that were configured during cluster creation
|
|
582
|
+
# are also deleted.
|
|
583
|
+
# Other Google Compute Engine resources that might be in use by the cluster
|
|
584
|
+
# (e.g. load balancer resources) will not be deleted if they weren't present
|
|
585
|
+
# at the initial create time.
|
|
450
586
|
# @param [String] project_id
|
|
451
|
-
# The Google Developers Console [project ID or project
|
|
452
|
-
# google.com/cloud/answer/6158840).
|
|
587
|
+
# The Google Developers Console [project ID or project
|
|
588
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
453
589
|
# @param [String] zone
|
|
454
|
-
# The name of the Google Compute Engine
|
|
455
|
-
# which the cluster
|
|
590
|
+
# The name of the Google Compute Engine
|
|
591
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
592
|
+
# resides.
|
|
456
593
|
# @param [String] cluster_id
|
|
457
|
-
# The name of the cluster to
|
|
458
|
-
# @param [String] node_pool_id
|
|
459
|
-
# The name of the node pool to rollback.
|
|
460
|
-
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
|
594
|
+
# The name of the cluster to delete.
|
|
461
595
|
# @param [String] fields
|
|
462
596
|
# Selector specifying which fields to include in a partial response.
|
|
463
597
|
# @param [String] quota_user
|
|
@@ -475,15 +609,54 @@ module Google
|
|
|
475
609
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
476
610
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
477
611
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
478
|
-
def
|
|
479
|
-
command = make_simple_command(:
|
|
480
|
-
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
|
481
|
-
command.request_object = rollback_node_pool_upgrade_request_object
|
|
612
|
+
def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
613
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
|
482
614
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
483
615
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
484
616
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
485
617
|
command.params['zone'] = zone unless zone.nil?
|
|
486
618
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
619
|
+
command.query['fields'] = fields unless fields.nil?
|
|
620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
621
|
+
execute_or_queue_command(command, &block)
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
# Retrieves the node pool requested.
|
|
625
|
+
# @param [String] project_id
|
|
626
|
+
# The Google Developers Console [project ID or project
|
|
627
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
628
|
+
# @param [String] zone
|
|
629
|
+
# The name of the Google Compute Engine
|
|
630
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
631
|
+
# resides.
|
|
632
|
+
# @param [String] cluster_id
|
|
633
|
+
# The name of the cluster.
|
|
634
|
+
# @param [String] node_pool_id
|
|
635
|
+
# The name of the node pool.
|
|
636
|
+
# @param [String] fields
|
|
637
|
+
# Selector specifying which fields to include in a partial response.
|
|
638
|
+
# @param [String] quota_user
|
|
639
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
640
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
641
|
+
# @param [Google::Apis::RequestOptions] options
|
|
642
|
+
# Request-specific options
|
|
643
|
+
#
|
|
644
|
+
# @yield [result, err] Result & error if block supplied
|
|
645
|
+
# @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
|
|
646
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
647
|
+
#
|
|
648
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
|
649
|
+
#
|
|
650
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
651
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
652
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
653
|
+
def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
654
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
|
655
|
+
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
|
|
656
|
+
command.response_class = Google::Apis::ContainerV1::NodePool
|
|
657
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
658
|
+
command.params['zone'] = zone unless zone.nil?
|
|
659
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
487
660
|
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
488
661
|
command.query['fields'] = fields unless fields.nil?
|
|
489
662
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -492,11 +665,12 @@ module Google
|
|
|
492
665
|
|
|
493
666
|
# Sets the NodeManagement options for a node pool.
|
|
494
667
|
# @param [String] project_id
|
|
495
|
-
# The Google Developers Console [project ID or project
|
|
496
|
-
# google.com/cloud/answer/6158840).
|
|
668
|
+
# The Google Developers Console [project ID or project
|
|
669
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
497
670
|
# @param [String] zone
|
|
498
|
-
# The name of the Google Compute Engine
|
|
499
|
-
# which the cluster
|
|
671
|
+
# The name of the Google Compute Engine
|
|
672
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
673
|
+
# resides.
|
|
500
674
|
# @param [String] cluster_id
|
|
501
675
|
# The name of the cluster to update.
|
|
502
676
|
# @param [String] node_pool_id
|
|
@@ -534,13 +708,18 @@ module Google
|
|
|
534
708
|
execute_or_queue_command(command, &block)
|
|
535
709
|
end
|
|
536
710
|
|
|
537
|
-
#
|
|
711
|
+
# Deletes a node pool from a cluster.
|
|
538
712
|
# @param [String] project_id
|
|
539
|
-
# The Google Developers Console [project ID or project
|
|
540
|
-
# google.com/
|
|
713
|
+
# The Google Developers Console [project ID or project
|
|
714
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
541
715
|
# @param [String] zone
|
|
542
|
-
# The name of the Google Compute Engine
|
|
543
|
-
#
|
|
716
|
+
# The name of the Google Compute Engine
|
|
717
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
718
|
+
# resides.
|
|
719
|
+
# @param [String] cluster_id
|
|
720
|
+
# The name of the cluster.
|
|
721
|
+
# @param [String] node_pool_id
|
|
722
|
+
# The name of the node pool to delete.
|
|
544
723
|
# @param [String] fields
|
|
545
724
|
# Selector specifying which fields to include in a partial response.
|
|
546
725
|
# @param [String] quota_user
|
|
@@ -550,34 +729,80 @@ module Google
|
|
|
550
729
|
# Request-specific options
|
|
551
730
|
#
|
|
552
731
|
# @yield [result, err] Result & error if block supplied
|
|
553
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
732
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
554
733
|
# @yieldparam err [StandardError] error object if request failed
|
|
555
734
|
#
|
|
556
|
-
# @return [Google::Apis::ContainerV1::
|
|
735
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
557
736
|
#
|
|
558
737
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
559
738
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
560
739
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
561
|
-
def
|
|
562
|
-
command = make_simple_command(:
|
|
563
|
-
command.response_representation = Google::Apis::ContainerV1::
|
|
564
|
-
command.response_class = Google::Apis::ContainerV1::
|
|
740
|
+
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
741
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
|
742
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
743
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
565
744
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
566
745
|
command.params['zone'] = zone unless zone.nil?
|
|
746
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
747
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
567
748
|
command.query['fields'] = fields unless fields.nil?
|
|
568
749
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
569
750
|
execute_or_queue_command(command, &block)
|
|
570
751
|
end
|
|
571
752
|
|
|
572
|
-
#
|
|
753
|
+
# Lists the node pools for a cluster.
|
|
573
754
|
# @param [String] project_id
|
|
574
|
-
# The Google Developers Console [project ID or project
|
|
575
|
-
# google.com/
|
|
755
|
+
# The Google Developers Console [project ID or project
|
|
756
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
576
757
|
# @param [String] zone
|
|
577
|
-
# The name of the Google Compute Engine
|
|
578
|
-
# which the cluster
|
|
579
|
-
#
|
|
580
|
-
#
|
|
758
|
+
# The name of the Google Compute Engine
|
|
759
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
760
|
+
# resides.
|
|
761
|
+
# @param [String] cluster_id
|
|
762
|
+
# The name of the cluster.
|
|
763
|
+
# @param [String] fields
|
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
|
765
|
+
# @param [String] quota_user
|
|
766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
768
|
+
# @param [Google::Apis::RequestOptions] options
|
|
769
|
+
# Request-specific options
|
|
770
|
+
#
|
|
771
|
+
# @yield [result, err] Result & error if block supplied
|
|
772
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
|
|
773
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
774
|
+
#
|
|
775
|
+
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
|
776
|
+
#
|
|
777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
780
|
+
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
781
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
|
782
|
+
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
|
783
|
+
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
|
784
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
785
|
+
command.params['zone'] = zone unless zone.nil?
|
|
786
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
787
|
+
command.query['fields'] = fields unless fields.nil?
|
|
788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
789
|
+
execute_or_queue_command(command, &block)
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Roll back the previously Aborted or Failed NodePool upgrade.
|
|
793
|
+
# This will be an no-op if the last upgrade successfully completed.
|
|
794
|
+
# @param [String] project_id
|
|
795
|
+
# The Google Developers Console [project ID or project
|
|
796
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
797
|
+
# @param [String] zone
|
|
798
|
+
# The name of the Google Compute Engine
|
|
799
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
800
|
+
# resides.
|
|
801
|
+
# @param [String] cluster_id
|
|
802
|
+
# The name of the cluster to rollback.
|
|
803
|
+
# @param [String] node_pool_id
|
|
804
|
+
# The name of the node pool to rollback.
|
|
805
|
+
# @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
|
|
581
806
|
# @param [String] fields
|
|
582
807
|
# Selector specifying which fields to include in a partial response.
|
|
583
808
|
# @param [String] quota_user
|
|
@@ -595,28 +820,32 @@ module Google
|
|
|
595
820
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
596
821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
597
822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
598
|
-
def
|
|
599
|
-
command = make_simple_command(:
|
|
823
|
+
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)
|
|
824
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
|
|
825
|
+
command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
|
|
826
|
+
command.request_object = rollback_node_pool_upgrade_request_object
|
|
600
827
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
601
828
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
602
829
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
603
830
|
command.params['zone'] = zone unless zone.nil?
|
|
604
|
-
command.params['
|
|
831
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
832
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
605
833
|
command.query['fields'] = fields unless fields.nil?
|
|
606
834
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
607
835
|
execute_or_queue_command(command, &block)
|
|
608
836
|
end
|
|
609
837
|
|
|
610
|
-
#
|
|
838
|
+
# Creates a node pool for a cluster.
|
|
611
839
|
# @param [String] project_id
|
|
612
|
-
# The Google Developers Console [project ID or project
|
|
613
|
-
# google.com/
|
|
840
|
+
# The Google Developers Console [project ID or project
|
|
841
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
614
842
|
# @param [String] zone
|
|
615
|
-
# The name of the Google Compute Engine
|
|
616
|
-
# which the
|
|
617
|
-
#
|
|
618
|
-
#
|
|
619
|
-
#
|
|
843
|
+
# The name of the Google Compute Engine
|
|
844
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
845
|
+
# resides.
|
|
846
|
+
# @param [String] cluster_id
|
|
847
|
+
# The name of the cluster.
|
|
848
|
+
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
|
620
849
|
# @param [String] fields
|
|
621
850
|
# Selector specifying which fields to include in a partial response.
|
|
622
851
|
# @param [String] quota_user
|
|
@@ -626,23 +855,23 @@ module Google
|
|
|
626
855
|
# Request-specific options
|
|
627
856
|
#
|
|
628
857
|
# @yield [result, err] Result & error if block supplied
|
|
629
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
858
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
630
859
|
# @yieldparam err [StandardError] error object if request failed
|
|
631
860
|
#
|
|
632
|
-
# @return [Google::Apis::ContainerV1::
|
|
861
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
633
862
|
#
|
|
634
863
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
635
864
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
636
865
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
637
|
-
def
|
|
638
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/
|
|
639
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
640
|
-
command.request_object =
|
|
641
|
-
command.response_representation = Google::Apis::ContainerV1::
|
|
642
|
-
command.response_class = Google::Apis::ContainerV1::
|
|
866
|
+
def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
867
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
|
868
|
+
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
|
869
|
+
command.request_object = create_node_pool_request_object
|
|
870
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
871
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
643
872
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
644
873
|
command.params['zone'] = zone unless zone.nil?
|
|
645
|
-
command.params['
|
|
874
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
646
875
|
command.query['fields'] = fields unless fields.nil?
|
|
647
876
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
648
877
|
execute_or_queue_command(command, &block)
|