google-api-client 0.13.0 → 0.13.1
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 +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- 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 +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- 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 +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- 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 +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- 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 +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- 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 +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- 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 +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- 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 +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
|
@@ -83,17 +83,17 @@ module Google
|
|
|
83
83
|
execute_or_queue_command(command, &block)
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
#
|
|
86
|
+
# Updates the settings of a specific cluster.
|
|
87
87
|
# @param [String] project_id
|
|
88
88
|
# The Google Developers Console [project ID or project
|
|
89
|
-
# number](https://
|
|
89
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
90
90
|
# @param [String] zone
|
|
91
91
|
# The name of the Google Compute Engine
|
|
92
92
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
93
93
|
# resides.
|
|
94
94
|
# @param [String] cluster_id
|
|
95
|
-
# The name of the cluster.
|
|
96
|
-
# @param [Google::Apis::ContainerV1::
|
|
95
|
+
# The name of the cluster to upgrade.
|
|
96
|
+
# @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
|
|
97
97
|
# @param [String] fields
|
|
98
98
|
# Selector specifying which fields to include in a partial response.
|
|
99
99
|
# @param [String] quota_user
|
|
@@ -111,10 +111,94 @@ module Google
|
|
|
111
111
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
112
112
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
113
113
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
114
|
-
def
|
|
115
|
-
command = make_simple_command(:
|
|
116
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
117
|
-
command.request_object =
|
|
114
|
+
def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
115
|
+
command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
|
116
|
+
command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
|
|
117
|
+
command.request_object = update_cluster_request_object
|
|
118
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
119
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
120
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
121
|
+
command.params['zone'] = zone unless zone.nil?
|
|
122
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
123
|
+
command.query['fields'] = fields unless fields.nil?
|
|
124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
125
|
+
execute_or_queue_command(command, &block)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Sets the monitoring service of a specific cluster.
|
|
129
|
+
# @param [String] project_id
|
|
130
|
+
# The Google Developers Console [project ID or project
|
|
131
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
132
|
+
# @param [String] zone
|
|
133
|
+
# The name of the Google Compute Engine
|
|
134
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
135
|
+
# resides.
|
|
136
|
+
# @param [String] cluster_id
|
|
137
|
+
# The name of the cluster to upgrade.
|
|
138
|
+
# @param [Google::Apis::ContainerV1::SetMonitoringServiceRequest] set_monitoring_service_request_object
|
|
139
|
+
# @param [String] fields
|
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
|
141
|
+
# @param [String] quota_user
|
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
|
145
|
+
# Request-specific options
|
|
146
|
+
#
|
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
|
148
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
150
|
+
#
|
|
151
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
152
|
+
#
|
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
156
|
+
def monitoring_project_zone_cluster(project_id, zone, cluster_id, set_monitoring_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
157
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring', options)
|
|
158
|
+
command.request_representation = Google::Apis::ContainerV1::SetMonitoringServiceRequest::Representation
|
|
159
|
+
command.request_object = set_monitoring_service_request_object
|
|
160
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
161
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
162
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
163
|
+
command.params['zone'] = zone unless zone.nil?
|
|
164
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
167
|
+
execute_or_queue_command(command, &block)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Updates the master of a specific cluster.
|
|
171
|
+
# @param [String] project_id
|
|
172
|
+
# The Google Developers Console [project ID or project
|
|
173
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
174
|
+
# @param [String] zone
|
|
175
|
+
# The name of the Google Compute Engine
|
|
176
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
177
|
+
# resides.
|
|
178
|
+
# @param [String] cluster_id
|
|
179
|
+
# The name of the cluster to upgrade.
|
|
180
|
+
# @param [Google::Apis::ContainerV1::UpdateMasterRequest] update_master_request_object
|
|
181
|
+
# @param [String] fields
|
|
182
|
+
# Selector specifying which fields to include in a partial response.
|
|
183
|
+
# @param [String] quota_user
|
|
184
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
185
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
186
|
+
# @param [Google::Apis::RequestOptions] options
|
|
187
|
+
# Request-specific options
|
|
188
|
+
#
|
|
189
|
+
# @yield [result, err] Result & error if block supplied
|
|
190
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
191
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
192
|
+
#
|
|
193
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
194
|
+
#
|
|
195
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
196
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
197
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
198
|
+
def master_project_zone_cluster(project_id, zone, cluster_id, update_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
199
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master', options)
|
|
200
|
+
command.request_representation = Google::Apis::ContainerV1::UpdateMasterRequest::Representation
|
|
201
|
+
command.request_object = update_master_request_object
|
|
118
202
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
119
203
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
120
204
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -169,13 +253,7 @@ module Google
|
|
|
169
253
|
execute_or_queue_command(command, &block)
|
|
170
254
|
end
|
|
171
255
|
|
|
172
|
-
#
|
|
173
|
-
# nodes.
|
|
174
|
-
# Firewalls and routes that were configured during cluster creation
|
|
175
|
-
# are also deleted.
|
|
176
|
-
# Other Google Compute Engine resources that might be in use by the cluster
|
|
177
|
-
# (e.g. load balancer resources) will not be deleted if they weren't present
|
|
178
|
-
# at the initial create time.
|
|
256
|
+
# Sets the logging service of a specific cluster.
|
|
179
257
|
# @param [String] project_id
|
|
180
258
|
# The Google Developers Console [project ID or project
|
|
181
259
|
# number](https://support.google.com/cloud/answer/6158840).
|
|
@@ -184,7 +262,8 @@ module Google
|
|
|
184
262
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
185
263
|
# resides.
|
|
186
264
|
# @param [String] cluster_id
|
|
187
|
-
# The name of the cluster to
|
|
265
|
+
# The name of the cluster to upgrade.
|
|
266
|
+
# @param [Google::Apis::ContainerV1::SetLoggingServiceRequest] set_logging_service_request_object
|
|
188
267
|
# @param [String] fields
|
|
189
268
|
# Selector specifying which fields to include in a partial response.
|
|
190
269
|
# @param [String] quota_user
|
|
@@ -202,8 +281,10 @@ module Google
|
|
|
202
281
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
203
282
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
204
283
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
205
|
-
def
|
|
206
|
-
command = make_simple_command(:
|
|
284
|
+
def logging_project_zone_cluster(project_id, zone, cluster_id, set_logging_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
285
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging', options)
|
|
286
|
+
command.request_representation = Google::Apis::ContainerV1::SetLoggingServiceRequest::Representation
|
|
287
|
+
command.request_object = set_logging_service_request_object
|
|
207
288
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
208
289
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
209
290
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -251,24 +332,17 @@ module Google
|
|
|
251
332
|
execute_or_queue_command(command, &block)
|
|
252
333
|
end
|
|
253
334
|
|
|
254
|
-
#
|
|
255
|
-
# Compute Engine instances.
|
|
256
|
-
# By default, the cluster is created in the project's
|
|
257
|
-
# [default network](/compute/docs/networks-and-firewalls#networks).
|
|
258
|
-
# One firewall is added for the cluster. After cluster creation,
|
|
259
|
-
# the cluster creates routes for each node to allow the containers
|
|
260
|
-
# on that node to communicate with all other instances in the
|
|
261
|
-
# cluster.
|
|
262
|
-
# Finally, an entry is added to the project's global metadata indicating
|
|
263
|
-
# which CIDR range is being used by the cluster.
|
|
335
|
+
# Sets labels on a cluster.
|
|
264
336
|
# @param [String] project_id
|
|
265
337
|
# The Google Developers Console [project ID or project
|
|
266
|
-
# number](https://
|
|
338
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
267
339
|
# @param [String] zone
|
|
268
340
|
# The name of the Google Compute Engine
|
|
269
341
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
270
342
|
# resides.
|
|
271
|
-
# @param [
|
|
343
|
+
# @param [String] cluster_id
|
|
344
|
+
# The name of the cluster.
|
|
345
|
+
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
|
|
272
346
|
# @param [String] fields
|
|
273
347
|
# Selector specifying which fields to include in a partial response.
|
|
274
348
|
# @param [String] quota_user
|
|
@@ -286,30 +360,38 @@ module Google
|
|
|
286
360
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
287
361
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
288
362
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
289
|
-
def
|
|
290
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
|
291
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
292
|
-
command.request_object =
|
|
363
|
+
def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
364
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
|
|
365
|
+
command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
|
|
366
|
+
command.request_object = set_labels_request_object
|
|
293
367
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
294
368
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
295
369
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
296
370
|
command.params['zone'] = zone unless zone.nil?
|
|
371
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
297
372
|
command.query['fields'] = fields unless fields.nil?
|
|
298
373
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
299
374
|
execute_or_queue_command(command, &block)
|
|
300
375
|
end
|
|
301
376
|
|
|
302
|
-
#
|
|
377
|
+
# Creates a cluster, consisting of the specified number and type of Google
|
|
378
|
+
# Compute Engine instances.
|
|
379
|
+
# By default, the cluster is created in the project's
|
|
380
|
+
# [default network](/compute/docs/networks-and-firewalls#networks).
|
|
381
|
+
# One firewall is added for the cluster. After cluster creation,
|
|
382
|
+
# the cluster creates routes for each node to allow the containers
|
|
383
|
+
# on that node to communicate with all other instances in the
|
|
384
|
+
# cluster.
|
|
385
|
+
# Finally, an entry is added to the project's global metadata indicating
|
|
386
|
+
# which CIDR range is being used by the cluster.
|
|
303
387
|
# @param [String] project_id
|
|
304
388
|
# The Google Developers Console [project ID or project
|
|
305
|
-
# number](https://
|
|
389
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
306
390
|
# @param [String] zone
|
|
307
391
|
# The name of the Google Compute Engine
|
|
308
392
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
309
393
|
# resides.
|
|
310
|
-
# @param [
|
|
311
|
-
# The name of the cluster.
|
|
312
|
-
# @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
|
|
394
|
+
# @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
|
|
313
395
|
# @param [String] fields
|
|
314
396
|
# Selector specifying which fields to include in a partial response.
|
|
315
397
|
# @param [String] quota_user
|
|
@@ -327,15 +409,14 @@ module Google
|
|
|
327
409
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
328
410
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
329
411
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
330
|
-
def
|
|
331
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters
|
|
332
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
333
|
-
command.request_object =
|
|
412
|
+
def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
413
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
|
|
414
|
+
command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
|
|
415
|
+
command.request_object = create_cluster_request_object
|
|
334
416
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
335
417
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
336
418
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
337
419
|
command.params['zone'] = zone unless zone.nil?
|
|
338
|
-
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
339
420
|
command.query['fields'] = fields unless fields.nil?
|
|
340
421
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
341
422
|
execute_or_queue_command(command, &block)
|
|
@@ -464,17 +545,17 @@ module Google
|
|
|
464
545
|
execute_or_queue_command(command, &block)
|
|
465
546
|
end
|
|
466
547
|
|
|
467
|
-
#
|
|
548
|
+
# Enables/Disables Network Policy for a cluster.
|
|
468
549
|
# @param [String] project_id
|
|
469
550
|
# The Google Developers Console [project ID or project
|
|
470
|
-
# number](https://
|
|
551
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
471
552
|
# @param [String] zone
|
|
472
553
|
# The name of the Google Compute Engine
|
|
473
554
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
474
555
|
# resides.
|
|
475
556
|
# @param [String] cluster_id
|
|
476
|
-
# The name of the cluster
|
|
477
|
-
# @param [Google::Apis::ContainerV1::
|
|
557
|
+
# The name of the cluster.
|
|
558
|
+
# @param [Google::Apis::ContainerV1::SetNetworkPolicyRequest] set_network_policy_request_object
|
|
478
559
|
# @param [String] fields
|
|
479
560
|
# Selector specifying which fields to include in a partial response.
|
|
480
561
|
# @param [String] quota_user
|
|
@@ -492,10 +573,10 @@ module Google
|
|
|
492
573
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
493
574
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
494
575
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
495
|
-
def
|
|
496
|
-
command = make_simple_command(:
|
|
497
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
498
|
-
command.request_object =
|
|
576
|
+
def set_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
577
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
|
|
578
|
+
command.request_representation = Google::Apis::ContainerV1::SetNetworkPolicyRequest::Representation
|
|
579
|
+
command.request_object = set_network_policy_request_object
|
|
499
580
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
500
581
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
501
582
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -506,7 +587,7 @@ module Google
|
|
|
506
587
|
execute_or_queue_command(command, &block)
|
|
507
588
|
end
|
|
508
589
|
|
|
509
|
-
#
|
|
590
|
+
# Start master IP rotation.
|
|
510
591
|
# @param [String] project_id
|
|
511
592
|
# The Google Developers Console [project ID or project
|
|
512
593
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
@@ -516,8 +597,7 @@ module Google
|
|
|
516
597
|
# resides.
|
|
517
598
|
# @param [String] cluster_id
|
|
518
599
|
# The name of the cluster.
|
|
519
|
-
# @param [
|
|
520
|
-
# The name of the node pool to delete.
|
|
600
|
+
# @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
|
|
521
601
|
# @param [String] fields
|
|
522
602
|
# Selector specifying which fields to include in a partial response.
|
|
523
603
|
# @param [String] quota_user
|
|
@@ -535,20 +615,21 @@ module Google
|
|
|
535
615
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
536
616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
537
617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
538
|
-
def
|
|
539
|
-
command = make_simple_command(:
|
|
618
|
+
def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
619
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
|
|
620
|
+
command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
|
|
621
|
+
command.request_object = start_ip_rotation_request_object
|
|
540
622
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
541
623
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
542
624
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
543
625
|
command.params['zone'] = zone unless zone.nil?
|
|
544
626
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
545
|
-
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
546
627
|
command.query['fields'] = fields unless fields.nil?
|
|
547
628
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
548
629
|
execute_or_queue_command(command, &block)
|
|
549
630
|
end
|
|
550
631
|
|
|
551
|
-
# Sets the
|
|
632
|
+
# Sets the addons of a specific cluster.
|
|
552
633
|
# @param [String] project_id
|
|
553
634
|
# The Google Developers Console [project ID or project
|
|
554
635
|
# number](https://support.google.com/cloud/answer/6158840).
|
|
@@ -557,10 +638,8 @@ module Google
|
|
|
557
638
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
558
639
|
# resides.
|
|
559
640
|
# @param [String] cluster_id
|
|
560
|
-
# The name of the cluster to
|
|
561
|
-
# @param [
|
|
562
|
-
# The name of the node pool to update.
|
|
563
|
-
# @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
|
|
641
|
+
# The name of the cluster to upgrade.
|
|
642
|
+
# @param [Google::Apis::ContainerV1::SetAddonsConfigRequest] set_addons_config_request_object
|
|
564
643
|
# @param [String] fields
|
|
565
644
|
# Selector specifying which fields to include in a partial response.
|
|
566
645
|
# @param [String] quota_user
|
|
@@ -578,22 +657,27 @@ module Google
|
|
|
578
657
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
579
658
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
580
659
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
581
|
-
def
|
|
582
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/
|
|
583
|
-
command.request_representation = Google::Apis::ContainerV1::
|
|
584
|
-
command.request_object =
|
|
660
|
+
def addons_project_zone_cluster(project_id, zone, cluster_id, set_addons_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
661
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons', options)
|
|
662
|
+
command.request_representation = Google::Apis::ContainerV1::SetAddonsConfigRequest::Representation
|
|
663
|
+
command.request_object = set_addons_config_request_object
|
|
585
664
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
586
665
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
587
666
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
588
667
|
command.params['zone'] = zone unless zone.nil?
|
|
589
668
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
590
|
-
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
591
669
|
command.query['fields'] = fields unless fields.nil?
|
|
592
670
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
593
671
|
execute_or_queue_command(command, &block)
|
|
594
672
|
end
|
|
595
673
|
|
|
596
|
-
#
|
|
674
|
+
# Deletes the cluster, including the Kubernetes endpoint and all worker
|
|
675
|
+
# nodes.
|
|
676
|
+
# Firewalls and routes that were configured during cluster creation
|
|
677
|
+
# are also deleted.
|
|
678
|
+
# Other Google Compute Engine resources that might be in use by the cluster
|
|
679
|
+
# (e.g. load balancer resources) will not be deleted if they weren't present
|
|
680
|
+
# at the initial create time.
|
|
597
681
|
# @param [String] project_id
|
|
598
682
|
# The Google Developers Console [project ID or project
|
|
599
683
|
# number](https://support.google.com/cloud/answer/6158840).
|
|
@@ -602,10 +686,7 @@ module Google
|
|
|
602
686
|
# [zone](/compute/docs/zones#available) in which the cluster
|
|
603
687
|
# resides.
|
|
604
688
|
# @param [String] cluster_id
|
|
605
|
-
# The name of the cluster to
|
|
606
|
-
# @param [String] node_pool_id
|
|
607
|
-
# The name of the node pool to update.
|
|
608
|
-
# @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object
|
|
689
|
+
# The name of the cluster to delete.
|
|
609
690
|
# @param [String] fields
|
|
610
691
|
# Selector specifying which fields to include in a partial response.
|
|
611
692
|
# @param [String] quota_user
|
|
@@ -623,16 +704,55 @@ module Google
|
|
|
623
704
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
624
705
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
625
706
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
626
|
-
def
|
|
627
|
-
command = make_simple_command(:
|
|
628
|
-
command.
|
|
629
|
-
command.
|
|
707
|
+
def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
708
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
|
|
709
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
710
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
711
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
712
|
+
command.params['zone'] = zone unless zone.nil?
|
|
713
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
714
|
+
command.query['fields'] = fields unless fields.nil?
|
|
715
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
716
|
+
execute_or_queue_command(command, &block)
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
# Sets the locations of a specific cluster.
|
|
720
|
+
# @param [String] project_id
|
|
721
|
+
# The Google Developers Console [project ID or project
|
|
722
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
723
|
+
# @param [String] zone
|
|
724
|
+
# The name of the Google Compute Engine
|
|
725
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
726
|
+
# resides.
|
|
727
|
+
# @param [String] cluster_id
|
|
728
|
+
# The name of the cluster to upgrade.
|
|
729
|
+
# @param [Google::Apis::ContainerV1::SetLocationsRequest] set_locations_request_object
|
|
730
|
+
# @param [String] fields
|
|
731
|
+
# Selector specifying which fields to include in a partial response.
|
|
732
|
+
# @param [String] quota_user
|
|
733
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
734
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
735
|
+
# @param [Google::Apis::RequestOptions] options
|
|
736
|
+
# Request-specific options
|
|
737
|
+
#
|
|
738
|
+
# @yield [result, err] Result & error if block supplied
|
|
739
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
740
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
741
|
+
#
|
|
742
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
743
|
+
#
|
|
744
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
745
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
746
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
747
|
+
def locations_project_zone_cluster(project_id, zone, cluster_id, set_locations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
748
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations', options)
|
|
749
|
+
command.request_representation = Google::Apis::ContainerV1::SetLocationsRequest::Representation
|
|
750
|
+
command.request_object = set_locations_request_object
|
|
630
751
|
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
631
752
|
command.response_class = Google::Apis::ContainerV1::Operation
|
|
632
753
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
633
754
|
command.params['zone'] = zone unless zone.nil?
|
|
634
755
|
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
635
|
-
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
636
756
|
command.query['fields'] = fields unless fields.nil?
|
|
637
757
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
638
758
|
execute_or_queue_command(command, &block)
|
|
@@ -765,6 +885,51 @@ module Google
|
|
|
765
885
|
execute_or_queue_command(command, &block)
|
|
766
886
|
end
|
|
767
887
|
|
|
888
|
+
# Sets the autoscaling settings of a specific node pool.
|
|
889
|
+
# @param [String] project_id
|
|
890
|
+
# The Google Developers Console [project ID or project
|
|
891
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
892
|
+
# @param [String] zone
|
|
893
|
+
# The name of the Google Compute Engine
|
|
894
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
895
|
+
# resides.
|
|
896
|
+
# @param [String] cluster_id
|
|
897
|
+
# The name of the cluster to upgrade.
|
|
898
|
+
# @param [String] node_pool_id
|
|
899
|
+
# The name of the node pool to upgrade.
|
|
900
|
+
# @param [Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest] set_node_pool_autoscaling_request_object
|
|
901
|
+
# @param [String] fields
|
|
902
|
+
# Selector specifying which fields to include in a partial response.
|
|
903
|
+
# @param [String] quota_user
|
|
904
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
905
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
906
|
+
# @param [Google::Apis::RequestOptions] options
|
|
907
|
+
# Request-specific options
|
|
908
|
+
#
|
|
909
|
+
# @yield [result, err] Result & error if block supplied
|
|
910
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
911
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
912
|
+
#
|
|
913
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
914
|
+
#
|
|
915
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
916
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
917
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
918
|
+
def autoscaling_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, set_node_pool_autoscaling_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
919
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling', options)
|
|
920
|
+
command.request_representation = Google::Apis::ContainerV1::SetNodePoolAutoscalingRequest::Representation
|
|
921
|
+
command.request_object = set_node_pool_autoscaling_request_object
|
|
922
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
923
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
924
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
925
|
+
command.params['zone'] = zone unless zone.nil?
|
|
926
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
927
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
928
|
+
command.query['fields'] = fields unless fields.nil?
|
|
929
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
930
|
+
execute_or_queue_command(command, &block)
|
|
931
|
+
end
|
|
932
|
+
|
|
768
933
|
# Retrieves the node pool requested.
|
|
769
934
|
# @param [String] project_id
|
|
770
935
|
# The Google Developers Console [project ID or project
|
|
@@ -807,16 +972,193 @@ module Google
|
|
|
807
972
|
execute_or_queue_command(command, &block)
|
|
808
973
|
end
|
|
809
974
|
|
|
810
|
-
#
|
|
975
|
+
# Updates the version and/or image type of a specific node pool.
|
|
811
976
|
# @param [String] project_id
|
|
812
977
|
# The Google Developers Console [project ID or project
|
|
813
978
|
# number](https://support.google.com/cloud/answer/6158840).
|
|
814
979
|
# @param [String] zone
|
|
815
980
|
# The name of the Google Compute Engine
|
|
816
|
-
# [zone](/compute/docs/zones#available) in which the
|
|
981
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
982
|
+
# resides.
|
|
983
|
+
# @param [String] cluster_id
|
|
984
|
+
# The name of the cluster to upgrade.
|
|
985
|
+
# @param [String] node_pool_id
|
|
986
|
+
# The name of the node pool to upgrade.
|
|
987
|
+
# @param [Google::Apis::ContainerV1::UpdateNodePoolRequest] update_node_pool_request_object
|
|
988
|
+
# @param [String] fields
|
|
989
|
+
# Selector specifying which fields to include in a partial response.
|
|
990
|
+
# @param [String] quota_user
|
|
991
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
992
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
993
|
+
# @param [Google::Apis::RequestOptions] options
|
|
994
|
+
# Request-specific options
|
|
995
|
+
#
|
|
996
|
+
# @yield [result, err] Result & error if block supplied
|
|
997
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
998
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
999
|
+
#
|
|
1000
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
1001
|
+
#
|
|
1002
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1003
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1004
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1005
|
+
def update_node_pool(project_id, zone, cluster_id, node_pool_id, update_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1006
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update', options)
|
|
1007
|
+
command.request_representation = Google::Apis::ContainerV1::UpdateNodePoolRequest::Representation
|
|
1008
|
+
command.request_object = update_node_pool_request_object
|
|
1009
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
1010
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
1011
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
1012
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1013
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
1014
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
1015
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1016
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1017
|
+
execute_or_queue_command(command, &block)
|
|
1018
|
+
end
|
|
1019
|
+
|
|
1020
|
+
# Deletes a node pool from a cluster.
|
|
1021
|
+
# @param [String] project_id
|
|
1022
|
+
# The Google Developers Console [project ID or project
|
|
1023
|
+
# number](https://developers.google.com/console/help/new/#projectnumber).
|
|
1024
|
+
# @param [String] zone
|
|
1025
|
+
# The name of the Google Compute Engine
|
|
1026
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
1027
|
+
# resides.
|
|
1028
|
+
# @param [String] cluster_id
|
|
1029
|
+
# The name of the cluster.
|
|
1030
|
+
# @param [String] node_pool_id
|
|
1031
|
+
# The name of the node pool to delete.
|
|
1032
|
+
# @param [String] fields
|
|
1033
|
+
# Selector specifying which fields to include in a partial response.
|
|
1034
|
+
# @param [String] quota_user
|
|
1035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1037
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1038
|
+
# Request-specific options
|
|
1039
|
+
#
|
|
1040
|
+
# @yield [result, err] Result & error if block supplied
|
|
1041
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
1042
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1043
|
+
#
|
|
1044
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
1045
|
+
#
|
|
1046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1049
|
+
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
1050
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
|
1051
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
1052
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
1053
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
1054
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1055
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
1056
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
1057
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1058
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1059
|
+
execute_or_queue_command(command, &block)
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
# Sets the NodeManagement options for a node pool.
|
|
1063
|
+
# @param [String] project_id
|
|
1064
|
+
# The Google Developers Console [project ID or project
|
|
1065
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
1066
|
+
# @param [String] zone
|
|
1067
|
+
# The name of the Google Compute Engine
|
|
1068
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
1069
|
+
# resides.
|
|
1070
|
+
# @param [String] cluster_id
|
|
1071
|
+
# The name of the cluster to update.
|
|
1072
|
+
# @param [String] node_pool_id
|
|
1073
|
+
# The name of the node pool to update.
|
|
1074
|
+
# @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
|
|
1075
|
+
# @param [String] fields
|
|
1076
|
+
# Selector specifying which fields to include in a partial response.
|
|
1077
|
+
# @param [String] quota_user
|
|
1078
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1079
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1080
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1081
|
+
# Request-specific options
|
|
1082
|
+
#
|
|
1083
|
+
# @yield [result, err] Result & error if block supplied
|
|
1084
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
1085
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1086
|
+
#
|
|
1087
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
1088
|
+
#
|
|
1089
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1090
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1091
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1092
|
+
def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1093
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
|
|
1094
|
+
command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
|
|
1095
|
+
command.request_object = set_node_pool_management_request_object
|
|
1096
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
1097
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
1098
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
1099
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1100
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
1101
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
1102
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1104
|
+
execute_or_queue_command(command, &block)
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# Sets the size of a specific node pool.
|
|
1108
|
+
# @param [String] project_id
|
|
1109
|
+
# The Google Developers Console [project ID or project
|
|
1110
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
1111
|
+
# @param [String] zone
|
|
1112
|
+
# The name of the Google Compute Engine
|
|
1113
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
1114
|
+
# resides.
|
|
1115
|
+
# @param [String] cluster_id
|
|
1116
|
+
# The name of the cluster to update.
|
|
1117
|
+
# @param [String] node_pool_id
|
|
1118
|
+
# The name of the node pool to update.
|
|
1119
|
+
# @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object
|
|
1120
|
+
# @param [String] fields
|
|
1121
|
+
# Selector specifying which fields to include in a partial response.
|
|
1122
|
+
# @param [String] quota_user
|
|
1123
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1124
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1125
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1126
|
+
# Request-specific options
|
|
1127
|
+
#
|
|
1128
|
+
# @yield [result, err] Result & error if block supplied
|
|
1129
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
1130
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1131
|
+
#
|
|
1132
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
1133
|
+
#
|
|
1134
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1135
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1136
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1137
|
+
def set_project_zone_cluster_node_pool_size(project_id, zone, cluster_id, node_pool_id, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1138
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
|
|
1139
|
+
command.request_representation = Google::Apis::ContainerV1::SetNodePoolSizeRequest::Representation
|
|
1140
|
+
command.request_object = set_node_pool_size_request_object
|
|
1141
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
1142
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
1143
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
1144
|
+
command.params['zone'] = zone unless zone.nil?
|
|
1145
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
|
1146
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
|
1147
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1149
|
+
execute_or_queue_command(command, &block)
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# Gets the specified operation.
|
|
1153
|
+
# @param [String] project_id
|
|
1154
|
+
# The Google Developers Console [project ID or project
|
|
1155
|
+
# number](https://support.google.com/cloud/answer/6158840).
|
|
1156
|
+
# @param [String] zone
|
|
1157
|
+
# The name of the Google Compute Engine
|
|
1158
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
1159
|
+
# resides.
|
|
817
1160
|
# @param [String] operation_id
|
|
818
1161
|
# The server-assigned `name` of the operation.
|
|
819
|
-
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
|
820
1162
|
# @param [String] fields
|
|
821
1163
|
# Selector specifying which fields to include in a partial response.
|
|
822
1164
|
# @param [String] quota_user
|
|
@@ -826,20 +1168,18 @@ module Google
|
|
|
826
1168
|
# Request-specific options
|
|
827
1169
|
#
|
|
828
1170
|
# @yield [result, err] Result & error if block supplied
|
|
829
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
1171
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
|
830
1172
|
# @yieldparam err [StandardError] error object if request failed
|
|
831
1173
|
#
|
|
832
|
-
# @return [Google::Apis::ContainerV1::
|
|
1174
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
|
833
1175
|
#
|
|
834
1176
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
835
1177
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
836
1178
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
837
|
-
def
|
|
838
|
-
command = make_simple_command(:
|
|
839
|
-
command.
|
|
840
|
-
command.
|
|
841
|
-
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
|
842
|
-
command.response_class = Google::Apis::ContainerV1::Empty
|
|
1179
|
+
def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
1180
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
|
|
1181
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
|
1182
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
|
843
1183
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
844
1184
|
command.params['zone'] = zone unless zone.nil?
|
|
845
1185
|
command.params['operationId'] = operation_id unless operation_id.nil?
|
|
@@ -883,16 +1223,16 @@ module Google
|
|
|
883
1223
|
execute_or_queue_command(command, &block)
|
|
884
1224
|
end
|
|
885
1225
|
|
|
886
|
-
#
|
|
1226
|
+
# Cancels the specified operation.
|
|
887
1227
|
# @param [String] project_id
|
|
888
1228
|
# The Google Developers Console [project ID or project
|
|
889
1229
|
# number](https://support.google.com/cloud/answer/6158840).
|
|
890
1230
|
# @param [String] zone
|
|
891
1231
|
# The name of the Google Compute Engine
|
|
892
|
-
# [zone](/compute/docs/zones#available) in which the
|
|
893
|
-
# resides.
|
|
1232
|
+
# [zone](/compute/docs/zones#available) in which the operation resides.
|
|
894
1233
|
# @param [String] operation_id
|
|
895
1234
|
# The server-assigned `name` of the operation.
|
|
1235
|
+
# @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
|
|
896
1236
|
# @param [String] fields
|
|
897
1237
|
# Selector specifying which fields to include in a partial response.
|
|
898
1238
|
# @param [String] quota_user
|
|
@@ -902,18 +1242,20 @@ module Google
|
|
|
902
1242
|
# Request-specific options
|
|
903
1243
|
#
|
|
904
1244
|
# @yield [result, err] Result & error if block supplied
|
|
905
|
-
# @yieldparam result [Google::Apis::ContainerV1::
|
|
1245
|
+
# @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
|
|
906
1246
|
# @yieldparam err [StandardError] error object if request failed
|
|
907
1247
|
#
|
|
908
|
-
# @return [Google::Apis::ContainerV1::
|
|
1248
|
+
# @return [Google::Apis::ContainerV1::Empty]
|
|
909
1249
|
#
|
|
910
1250
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
911
1251
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
912
1252
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
913
|
-
def
|
|
914
|
-
command = make_simple_command(:
|
|
915
|
-
command.
|
|
916
|
-
command.
|
|
1253
|
+
def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1254
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
|
|
1255
|
+
command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
|
|
1256
|
+
command.request_object = cancel_operation_request_object
|
|
1257
|
+
command.response_representation = Google::Apis::ContainerV1::Empty::Representation
|
|
1258
|
+
command.response_class = Google::Apis::ContainerV1::Empty
|
|
917
1259
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
918
1260
|
command.params['zone'] = zone unless zone.nil?
|
|
919
1261
|
command.params['operationId'] = operation_id unless operation_id.nil?
|