google-cloud-container-v1 0.0.1 → 0.1.0
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/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/container/v1.rb +1 -1
- data/lib/google/cloud/container/v1/cluster_manager.rb +1 -1
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +650 -650
- data/lib/google/cloud/container/v1/cluster_manager/credentials.rb +1 -1
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/container/v1/cluster_service.rb +553 -553
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4789f775e62395077b7d45951a19f40125506d73fb08cd4201784bb6a97da7ac
|
4
|
+
data.tar.gz: f9573ba194fa53bb3bbd9d5f036323afcaac5e90fb5134b725d7ea3fc32590d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c7a6d3f2bcf77ffb692c9446e86eb9ac26ed67898971493e5ebfa52a2d35ab7ee2d462b738606899485cf78fc894eb3f49908dd982f244a0d3374d6cf00fce
|
7
|
+
data.tar.gz: dac5769ea0eca9040508987e5d69b961530b0b1e8d357785f5680a9949803984771b27f66cc020c41c788a324aa0df01c2a2cec342767cf7d2b03d52cb950269
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export CONTAINER_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/container/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
30
|
+
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-container-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::Container::V1::ClusterManager::Credentials}):
|
67
|
+
{::Google::Cloud::Container::V1::ClusterManager::Credentials}):
|
68
68
|
|
69
69
|
1. `CONTAINER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `CONTAINER_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/container/v1"
|
|
77
77
|
|
78
78
|
ENV["CONTAINER_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
80
|
+
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/container/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/container/v1"
|
100
100
|
|
101
|
-
Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
101
|
+
::Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
105
|
+
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
25
|
```ruby
|
26
26
|
require "google/cloud/container/v1"
|
27
27
|
|
28
|
-
client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
28
|
+
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
29
29
|
request = my_create_request
|
30
30
|
response = client.list_clusters request
|
31
31
|
```
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
27
27
|
#
|
28
28
|
# require "google/cloud/container/v1"
|
29
|
-
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
29
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
30
30
|
#
|
31
31
|
module V1
|
32
32
|
end
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# To load this service and instantiate a client:
|
36
36
|
#
|
37
37
|
# require "google/cloud/container/v1/cluster_manager"
|
38
|
-
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
38
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
39
39
|
#
|
40
40
|
module ClusterManager
|
41
41
|
end
|
@@ -36,15 +36,15 @@ module Google
|
|
36
36
|
##
|
37
37
|
# Configure the ClusterManager Client class.
|
38
38
|
#
|
39
|
-
# See {Google::Cloud::Container::V1::ClusterManager::Client::Configuration}
|
39
|
+
# See {::Google::Cloud::Container::V1::ClusterManager::Client::Configuration}
|
40
40
|
# for a description of the configuration fields.
|
41
41
|
#
|
42
42
|
# ## Example
|
43
43
|
#
|
44
44
|
# To modify the configuration for all ClusterManager clients:
|
45
45
|
#
|
46
|
-
# Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
47
|
-
# config.timeout =
|
46
|
+
# ::Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
47
|
+
# config.timeout = 10.0
|
48
48
|
# end
|
49
49
|
#
|
50
50
|
# @yield [config] Configure the Client client.
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
191
191
|
# should be made on {Client.configure}.
|
192
192
|
#
|
193
|
-
# See {Google::Cloud::Container::V1::ClusterManager::Client::Configuration}
|
193
|
+
# See {::Google::Cloud::Container::V1::ClusterManager::Client::Configuration}
|
194
194
|
# for a description of the configuration fields.
|
195
195
|
#
|
196
196
|
# @yield [config] Configure the Client client.
|
@@ -211,13 +211,13 @@ module Google
|
|
211
211
|
# To create a new ClusterManager client with the default
|
212
212
|
# configuration:
|
213
213
|
#
|
214
|
-
# client = Google::Cloud::Container::V1::ClusterManager::Client.new
|
214
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
215
215
|
#
|
216
216
|
# To create a new ClusterManager client with a custom
|
217
217
|
# configuration:
|
218
218
|
#
|
219
|
-
# client = Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
220
|
-
# config.timeout =
|
219
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
220
|
+
# config.timeout = 10.0
|
221
221
|
# end
|
222
222
|
#
|
223
223
|
# @yield [config] Configure the ClusterManager client.
|
@@ -244,8 +244,8 @@ module Google
|
|
244
244
|
end
|
245
245
|
@quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
|
246
246
|
|
247
|
-
@cluster_manager_stub = Gapic::ServiceStub.new(
|
248
|
-
Google::Cloud::Container::V1::ClusterManager::Stub,
|
247
|
+
@cluster_manager_stub = ::Gapic::ServiceStub.new(
|
248
|
+
::Google::Cloud::Container::V1::ClusterManager::Stub,
|
249
249
|
credentials: credentials,
|
250
250
|
endpoint: @config.endpoint,
|
251
251
|
channel_args: @config.channel_args,
|
@@ -261,12 +261,12 @@ module Google
|
|
261
261
|
#
|
262
262
|
# @overload list_clusters(request, options = nil)
|
263
263
|
# Pass arguments to `list_clusters` via a request object, either of type
|
264
|
-
# {Google::Cloud::Container::V1::ListClustersRequest} or an equivalent Hash.
|
264
|
+
# {::Google::Cloud::Container::V1::ListClustersRequest} or an equivalent Hash.
|
265
265
|
#
|
266
|
-
# @param request [Google::Cloud::Container::V1::ListClustersRequest, Hash]
|
266
|
+
# @param request [::Google::Cloud::Container::V1::ListClustersRequest, ::Hash]
|
267
267
|
# A request object representing the call parameters. Required. To specify no
|
268
268
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
269
|
-
# @param options [Gapic::CallOptions, Hash]
|
269
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
270
270
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
271
271
|
#
|
272
272
|
# @overload list_clusters(project_id: nil, zone: nil, parent: nil)
|
@@ -274,41 +274,41 @@ module Google
|
|
274
274
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
275
275
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
276
276
|
#
|
277
|
-
# @param project_id [String]
|
277
|
+
# @param project_id [::String]
|
278
278
|
# Deprecated. The Google Developers Console [project ID or project
|
279
279
|
# number](https://support.google.com/cloud/answer/6158840).
|
280
280
|
# This field has been deprecated and replaced by the parent field.
|
281
|
-
# @param zone [String]
|
281
|
+
# @param zone [::String]
|
282
282
|
# Deprecated. The name of the Google Compute Engine
|
283
283
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
284
284
|
# resides, or "-" for all zones.
|
285
285
|
# This field has been deprecated and replaced by the parent field.
|
286
|
-
# @param parent [String]
|
286
|
+
# @param parent [::String]
|
287
287
|
# The parent (project and location) where the clusters will be listed.
|
288
288
|
# Specified in the format `projects/*/locations/*`.
|
289
289
|
# Location "-" matches all zones and all regions.
|
290
290
|
#
|
291
291
|
# @yield [response, operation] Access the result along with the RPC operation
|
292
|
-
# @yieldparam response [Google::Cloud::Container::V1::ListClustersResponse]
|
293
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
292
|
+
# @yieldparam response [::Google::Cloud::Container::V1::ListClustersResponse]
|
293
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
294
294
|
#
|
295
|
-
# @return [Google::Cloud::Container::V1::ListClustersResponse]
|
295
|
+
# @return [::Google::Cloud::Container::V1::ListClustersResponse]
|
296
296
|
#
|
297
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
297
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
298
298
|
#
|
299
299
|
def list_clusters request, options = nil
|
300
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
300
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
301
301
|
|
302
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::ListClustersRequest
|
302
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::ListClustersRequest
|
303
303
|
|
304
304
|
# Converts hash and nil to an options object
|
305
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
305
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
306
306
|
|
307
307
|
# Customize the options with defaults
|
308
308
|
metadata = @config.rpcs.list_clusters.metadata.to_h
|
309
309
|
|
310
310
|
# Set x-goog-api-client and x-goog-user-project headers
|
311
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
311
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
312
312
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
313
313
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
314
314
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -329,8 +329,8 @@ module Google
|
|
329
329
|
yield response, operation if block_given?
|
330
330
|
return response
|
331
331
|
end
|
332
|
-
rescue GRPC::BadStatus => e
|
333
|
-
raise Google::Cloud::Error.from_error(e)
|
332
|
+
rescue ::GRPC::BadStatus => e
|
333
|
+
raise ::Google::Cloud::Error.from_error(e)
|
334
334
|
end
|
335
335
|
|
336
336
|
##
|
@@ -338,12 +338,12 @@ module Google
|
|
338
338
|
#
|
339
339
|
# @overload get_cluster(request, options = nil)
|
340
340
|
# Pass arguments to `get_cluster` via a request object, either of type
|
341
|
-
# {Google::Cloud::Container::V1::GetClusterRequest} or an equivalent Hash.
|
341
|
+
# {::Google::Cloud::Container::V1::GetClusterRequest} or an equivalent Hash.
|
342
342
|
#
|
343
|
-
# @param request [Google::Cloud::Container::V1::GetClusterRequest, Hash]
|
343
|
+
# @param request [::Google::Cloud::Container::V1::GetClusterRequest, ::Hash]
|
344
344
|
# A request object representing the call parameters. Required. To specify no
|
345
345
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
346
|
-
# @param options [Gapic::CallOptions, Hash]
|
346
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
347
347
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
348
348
|
#
|
349
349
|
# @overload get_cluster(project_id: nil, zone: nil, cluster_id: nil, name: nil)
|
@@ -351,43 +351,43 @@ module Google
|
|
351
351
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
352
352
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
353
353
|
#
|
354
|
-
# @param project_id [String]
|
354
|
+
# @param project_id [::String]
|
355
355
|
# Deprecated. The Google Developers Console [project ID or project
|
356
356
|
# number](https://support.google.com/cloud/answer/6158840).
|
357
357
|
# This field has been deprecated and replaced by the name field.
|
358
|
-
# @param zone [String]
|
358
|
+
# @param zone [::String]
|
359
359
|
# Deprecated. The name of the Google Compute Engine
|
360
360
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
361
361
|
# resides.
|
362
362
|
# This field has been deprecated and replaced by the name field.
|
363
|
-
# @param cluster_id [String]
|
363
|
+
# @param cluster_id [::String]
|
364
364
|
# Deprecated. The name of the cluster to retrieve.
|
365
365
|
# This field has been deprecated and replaced by the name field.
|
366
|
-
# @param name [String]
|
366
|
+
# @param name [::String]
|
367
367
|
# The name (project, location, cluster) of the cluster to retrieve.
|
368
368
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
369
369
|
#
|
370
370
|
# @yield [response, operation] Access the result along with the RPC operation
|
371
|
-
# @yieldparam response [Google::Cloud::Container::V1::Cluster]
|
372
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
371
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Cluster]
|
372
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
373
373
|
#
|
374
|
-
# @return [Google::Cloud::Container::V1::Cluster]
|
374
|
+
# @return [::Google::Cloud::Container::V1::Cluster]
|
375
375
|
#
|
376
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
376
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
377
377
|
#
|
378
378
|
def get_cluster request, options = nil
|
379
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
379
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
380
380
|
|
381
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::GetClusterRequest
|
381
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::GetClusterRequest
|
382
382
|
|
383
383
|
# Converts hash and nil to an options object
|
384
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
384
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
385
385
|
|
386
386
|
# Customize the options with defaults
|
387
387
|
metadata = @config.rpcs.get_cluster.metadata.to_h
|
388
388
|
|
389
389
|
# Set x-goog-api-client and x-goog-user-project headers
|
390
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
390
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
391
391
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
392
392
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
393
393
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -408,8 +408,8 @@ module Google
|
|
408
408
|
yield response, operation if block_given?
|
409
409
|
return response
|
410
410
|
end
|
411
|
-
rescue GRPC::BadStatus => e
|
412
|
-
raise Google::Cloud::Error.from_error(e)
|
411
|
+
rescue ::GRPC::BadStatus => e
|
412
|
+
raise ::Google::Cloud::Error.from_error(e)
|
413
413
|
end
|
414
414
|
|
415
415
|
##
|
@@ -429,12 +429,12 @@ module Google
|
|
429
429
|
#
|
430
430
|
# @overload create_cluster(request, options = nil)
|
431
431
|
# Pass arguments to `create_cluster` via a request object, either of type
|
432
|
-
# {Google::Cloud::Container::V1::CreateClusterRequest} or an equivalent Hash.
|
432
|
+
# {::Google::Cloud::Container::V1::CreateClusterRequest} or an equivalent Hash.
|
433
433
|
#
|
434
|
-
# @param request [Google::Cloud::Container::V1::CreateClusterRequest, Hash]
|
434
|
+
# @param request [::Google::Cloud::Container::V1::CreateClusterRequest, ::Hash]
|
435
435
|
# A request object representing the call parameters. Required. To specify no
|
436
436
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
437
|
-
# @param options [Gapic::CallOptions, Hash]
|
437
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
438
438
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
439
439
|
#
|
440
440
|
# @overload create_cluster(project_id: nil, zone: nil, cluster: nil, parent: nil)
|
@@ -442,43 +442,43 @@ module Google
|
|
442
442
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
443
443
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
444
444
|
#
|
445
|
-
# @param project_id [String]
|
445
|
+
# @param project_id [::String]
|
446
446
|
# Deprecated. The Google Developers Console [project ID or project
|
447
447
|
# number](https://support.google.com/cloud/answer/6158840).
|
448
448
|
# This field has been deprecated and replaced by the parent field.
|
449
|
-
# @param zone [String]
|
449
|
+
# @param zone [::String]
|
450
450
|
# Deprecated. The name of the Google Compute Engine
|
451
451
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
452
452
|
# resides.
|
453
453
|
# This field has been deprecated and replaced by the parent field.
|
454
|
-
# @param cluster [Google::Cloud::Container::V1::Cluster, Hash]
|
454
|
+
# @param cluster [::Google::Cloud::Container::V1::Cluster, ::Hash]
|
455
455
|
# Required. A [cluster
|
456
456
|
# resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters)
|
457
|
-
# @param parent [String]
|
457
|
+
# @param parent [::String]
|
458
458
|
# The parent (project and location) where the cluster will be created.
|
459
459
|
# Specified in the format `projects/*/locations/*`.
|
460
460
|
#
|
461
461
|
# @yield [response, operation] Access the result along with the RPC operation
|
462
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
463
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
462
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
463
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
464
464
|
#
|
465
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
465
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
466
466
|
#
|
467
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
467
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
468
468
|
#
|
469
469
|
def create_cluster request, options = nil
|
470
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
470
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
471
471
|
|
472
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::CreateClusterRequest
|
472
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CreateClusterRequest
|
473
473
|
|
474
474
|
# Converts hash and nil to an options object
|
475
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
475
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
476
476
|
|
477
477
|
# Customize the options with defaults
|
478
478
|
metadata = @config.rpcs.create_cluster.metadata.to_h
|
479
479
|
|
480
480
|
# Set x-goog-api-client and x-goog-user-project headers
|
481
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
481
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
483
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
484
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -499,8 +499,8 @@ module Google
|
|
499
499
|
yield response, operation if block_given?
|
500
500
|
return response
|
501
501
|
end
|
502
|
-
rescue GRPC::BadStatus => e
|
503
|
-
raise Google::Cloud::Error.from_error(e)
|
502
|
+
rescue ::GRPC::BadStatus => e
|
503
|
+
raise ::Google::Cloud::Error.from_error(e)
|
504
504
|
end
|
505
505
|
|
506
506
|
##
|
@@ -508,12 +508,12 @@ module Google
|
|
508
508
|
#
|
509
509
|
# @overload update_cluster(request, options = nil)
|
510
510
|
# Pass arguments to `update_cluster` via a request object, either of type
|
511
|
-
# {Google::Cloud::Container::V1::UpdateClusterRequest} or an equivalent Hash.
|
511
|
+
# {::Google::Cloud::Container::V1::UpdateClusterRequest} or an equivalent Hash.
|
512
512
|
#
|
513
|
-
# @param request [Google::Cloud::Container::V1::UpdateClusterRequest, Hash]
|
513
|
+
# @param request [::Google::Cloud::Container::V1::UpdateClusterRequest, ::Hash]
|
514
514
|
# A request object representing the call parameters. Required. To specify no
|
515
515
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
516
|
-
# @param options [Gapic::CallOptions, Hash]
|
516
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
517
517
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
518
518
|
#
|
519
519
|
# @overload update_cluster(project_id: nil, zone: nil, cluster_id: nil, update: nil, name: nil)
|
@@ -521,45 +521,45 @@ module Google
|
|
521
521
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
522
522
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
523
523
|
#
|
524
|
-
# @param project_id [String]
|
524
|
+
# @param project_id [::String]
|
525
525
|
# Deprecated. The Google Developers Console [project ID or project
|
526
526
|
# number](https://support.google.com/cloud/answer/6158840).
|
527
527
|
# This field has been deprecated and replaced by the name field.
|
528
|
-
# @param zone [String]
|
528
|
+
# @param zone [::String]
|
529
529
|
# Deprecated. The name of the Google Compute Engine
|
530
530
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
531
531
|
# resides.
|
532
532
|
# This field has been deprecated and replaced by the name field.
|
533
|
-
# @param cluster_id [String]
|
533
|
+
# @param cluster_id [::String]
|
534
534
|
# Deprecated. The name of the cluster to upgrade.
|
535
535
|
# This field has been deprecated and replaced by the name field.
|
536
|
-
# @param update [Google::Cloud::Container::V1::ClusterUpdate, Hash]
|
536
|
+
# @param update [::Google::Cloud::Container::V1::ClusterUpdate, ::Hash]
|
537
537
|
# Required. A description of the update.
|
538
|
-
# @param name [String]
|
538
|
+
# @param name [::String]
|
539
539
|
# The name (project, location, cluster) of the cluster to update.
|
540
540
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
541
541
|
#
|
542
542
|
# @yield [response, operation] Access the result along with the RPC operation
|
543
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
544
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
543
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
544
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
545
545
|
#
|
546
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
546
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
547
547
|
#
|
548
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
548
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
549
549
|
#
|
550
550
|
def update_cluster request, options = nil
|
551
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
551
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
552
552
|
|
553
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::UpdateClusterRequest
|
553
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::UpdateClusterRequest
|
554
554
|
|
555
555
|
# Converts hash and nil to an options object
|
556
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
556
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
557
557
|
|
558
558
|
# Customize the options with defaults
|
559
559
|
metadata = @config.rpcs.update_cluster.metadata.to_h
|
560
560
|
|
561
561
|
# Set x-goog-api-client and x-goog-user-project headers
|
562
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
562
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
564
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
565
565
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -580,8 +580,8 @@ module Google
|
|
580
580
|
yield response, operation if block_given?
|
581
581
|
return response
|
582
582
|
end
|
583
|
-
rescue GRPC::BadStatus => e
|
584
|
-
raise Google::Cloud::Error.from_error(e)
|
583
|
+
rescue ::GRPC::BadStatus => e
|
584
|
+
raise ::Google::Cloud::Error.from_error(e)
|
585
585
|
end
|
586
586
|
|
587
587
|
##
|
@@ -589,12 +589,12 @@ module Google
|
|
589
589
|
#
|
590
590
|
# @overload update_node_pool(request, options = nil)
|
591
591
|
# Pass arguments to `update_node_pool` via a request object, either of type
|
592
|
-
# {Google::Cloud::Container::V1::UpdateNodePoolRequest} or an equivalent Hash.
|
592
|
+
# {::Google::Cloud::Container::V1::UpdateNodePoolRequest} or an equivalent Hash.
|
593
593
|
#
|
594
|
-
# @param request [Google::Cloud::Container::V1::UpdateNodePoolRequest, Hash]
|
594
|
+
# @param request [::Google::Cloud::Container::V1::UpdateNodePoolRequest, ::Hash]
|
595
595
|
# A request object representing the call parameters. Required. To specify no
|
596
596
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
597
|
-
# @param options [Gapic::CallOptions, Hash]
|
597
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
598
598
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
599
599
|
#
|
600
600
|
# @overload update_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_version: nil, image_type: nil, name: nil)
|
@@ -602,22 +602,22 @@ module Google
|
|
602
602
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
603
603
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
604
604
|
#
|
605
|
-
# @param project_id [String]
|
605
|
+
# @param project_id [::String]
|
606
606
|
# Deprecated. The Google Developers Console [project ID or project
|
607
607
|
# number](https://support.google.com/cloud/answer/6158840).
|
608
608
|
# This field has been deprecated and replaced by the name field.
|
609
|
-
# @param zone [String]
|
609
|
+
# @param zone [::String]
|
610
610
|
# Deprecated. The name of the Google Compute Engine
|
611
611
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
612
612
|
# resides.
|
613
613
|
# This field has been deprecated and replaced by the name field.
|
614
|
-
# @param cluster_id [String]
|
614
|
+
# @param cluster_id [::String]
|
615
615
|
# Deprecated. The name of the cluster to upgrade.
|
616
616
|
# This field has been deprecated and replaced by the name field.
|
617
|
-
# @param node_pool_id [String]
|
617
|
+
# @param node_pool_id [::String]
|
618
618
|
# Deprecated. The name of the node pool to upgrade.
|
619
619
|
# This field has been deprecated and replaced by the name field.
|
620
|
-
# @param node_version [String]
|
620
|
+
# @param node_version [::String]
|
621
621
|
# Required. The Kubernetes version to change the nodes to (typically an
|
622
622
|
# upgrade).
|
623
623
|
#
|
@@ -629,34 +629,34 @@ module Google
|
|
629
629
|
# - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
|
630
630
|
# - "1.X.Y-gke.N": picks an explicit Kubernetes version
|
631
631
|
# - "-": picks the Kubernetes master version
|
632
|
-
# @param image_type [String]
|
632
|
+
# @param image_type [::String]
|
633
633
|
# Required. The desired image type for the node pool.
|
634
|
-
# @param name [String]
|
634
|
+
# @param name [::String]
|
635
635
|
# The name (project, location, cluster, node pool) of the node pool to
|
636
636
|
# update. Specified in the format
|
637
637
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
638
638
|
#
|
639
639
|
# @yield [response, operation] Access the result along with the RPC operation
|
640
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
641
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
640
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
641
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
642
642
|
#
|
643
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
643
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
644
644
|
#
|
645
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
645
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
646
646
|
#
|
647
647
|
def update_node_pool request, options = nil
|
648
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
648
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
649
649
|
|
650
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::UpdateNodePoolRequest
|
650
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::UpdateNodePoolRequest
|
651
651
|
|
652
652
|
# Converts hash and nil to an options object
|
653
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
653
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
654
654
|
|
655
655
|
# Customize the options with defaults
|
656
656
|
metadata = @config.rpcs.update_node_pool.metadata.to_h
|
657
657
|
|
658
658
|
# Set x-goog-api-client and x-goog-user-project headers
|
659
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
659
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
660
660
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
661
661
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
662
662
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -677,8 +677,8 @@ module Google
|
|
677
677
|
yield response, operation if block_given?
|
678
678
|
return response
|
679
679
|
end
|
680
|
-
rescue GRPC::BadStatus => e
|
681
|
-
raise Google::Cloud::Error.from_error(e)
|
680
|
+
rescue ::GRPC::BadStatus => e
|
681
|
+
raise ::Google::Cloud::Error.from_error(e)
|
682
682
|
end
|
683
683
|
|
684
684
|
##
|
@@ -686,12 +686,12 @@ module Google
|
|
686
686
|
#
|
687
687
|
# @overload set_node_pool_autoscaling(request, options = nil)
|
688
688
|
# Pass arguments to `set_node_pool_autoscaling` via a request object, either of type
|
689
|
-
# {Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest} or an equivalent Hash.
|
689
|
+
# {::Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest} or an equivalent Hash.
|
690
690
|
#
|
691
|
-
# @param request [Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest, Hash]
|
691
|
+
# @param request [::Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest, ::Hash]
|
692
692
|
# A request object representing the call parameters. Required. To specify no
|
693
693
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
694
|
-
# @param options [Gapic::CallOptions, Hash]
|
694
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
695
695
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
696
696
|
#
|
697
697
|
# @overload set_node_pool_autoscaling(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, autoscaling: nil, name: nil)
|
@@ -699,49 +699,49 @@ module Google
|
|
699
699
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
700
700
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
701
701
|
#
|
702
|
-
# @param project_id [String]
|
702
|
+
# @param project_id [::String]
|
703
703
|
# Deprecated. The Google Developers Console [project ID or project
|
704
704
|
# number](https://support.google.com/cloud/answer/6158840).
|
705
705
|
# This field has been deprecated and replaced by the name field.
|
706
|
-
# @param zone [String]
|
706
|
+
# @param zone [::String]
|
707
707
|
# Deprecated. The name of the Google Compute Engine
|
708
708
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
709
709
|
# resides.
|
710
710
|
# This field has been deprecated and replaced by the name field.
|
711
|
-
# @param cluster_id [String]
|
711
|
+
# @param cluster_id [::String]
|
712
712
|
# Deprecated. The name of the cluster to upgrade.
|
713
713
|
# This field has been deprecated and replaced by the name field.
|
714
|
-
# @param node_pool_id [String]
|
714
|
+
# @param node_pool_id [::String]
|
715
715
|
# Deprecated. The name of the node pool to upgrade.
|
716
716
|
# This field has been deprecated and replaced by the name field.
|
717
|
-
# @param autoscaling [Google::Cloud::Container::V1::NodePoolAutoscaling, Hash]
|
717
|
+
# @param autoscaling [::Google::Cloud::Container::V1::NodePoolAutoscaling, ::Hash]
|
718
718
|
# Required. Autoscaling configuration for the node pool.
|
719
|
-
# @param name [String]
|
719
|
+
# @param name [::String]
|
720
720
|
# The name (project, location, cluster, node pool) of the node pool to set
|
721
721
|
# autoscaler settings. Specified in the format
|
722
722
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
723
723
|
#
|
724
724
|
# @yield [response, operation] Access the result along with the RPC operation
|
725
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
726
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
725
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
726
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
727
727
|
#
|
728
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
728
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
729
729
|
#
|
730
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
730
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
731
731
|
#
|
732
732
|
def set_node_pool_autoscaling request, options = nil
|
733
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
733
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
734
734
|
|
735
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest
|
735
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetNodePoolAutoscalingRequest
|
736
736
|
|
737
737
|
# Converts hash and nil to an options object
|
738
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
738
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
739
739
|
|
740
740
|
# Customize the options with defaults
|
741
741
|
metadata = @config.rpcs.set_node_pool_autoscaling.metadata.to_h
|
742
742
|
|
743
743
|
# Set x-goog-api-client and x-goog-user-project headers
|
744
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
744
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
745
745
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
746
746
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
747
747
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -762,8 +762,8 @@ module Google
|
|
762
762
|
yield response, operation if block_given?
|
763
763
|
return response
|
764
764
|
end
|
765
|
-
rescue GRPC::BadStatus => e
|
766
|
-
raise Google::Cloud::Error.from_error(e)
|
765
|
+
rescue ::GRPC::BadStatus => e
|
766
|
+
raise ::Google::Cloud::Error.from_error(e)
|
767
767
|
end
|
768
768
|
|
769
769
|
##
|
@@ -771,12 +771,12 @@ module Google
|
|
771
771
|
#
|
772
772
|
# @overload set_logging_service(request, options = nil)
|
773
773
|
# Pass arguments to `set_logging_service` via a request object, either of type
|
774
|
-
# {Google::Cloud::Container::V1::SetLoggingServiceRequest} or an equivalent Hash.
|
774
|
+
# {::Google::Cloud::Container::V1::SetLoggingServiceRequest} or an equivalent Hash.
|
775
775
|
#
|
776
|
-
# @param request [Google::Cloud::Container::V1::SetLoggingServiceRequest, Hash]
|
776
|
+
# @param request [::Google::Cloud::Container::V1::SetLoggingServiceRequest, ::Hash]
|
777
777
|
# A request object representing the call parameters. Required. To specify no
|
778
778
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
779
|
-
# @param options [Gapic::CallOptions, Hash]
|
779
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
780
780
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
781
781
|
#
|
782
782
|
# @overload set_logging_service(project_id: nil, zone: nil, cluster_id: nil, logging_service: nil, name: nil)
|
@@ -784,49 +784,49 @@ module Google
|
|
784
784
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
785
785
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
786
786
|
#
|
787
|
-
# @param project_id [String]
|
787
|
+
# @param project_id [::String]
|
788
788
|
# Deprecated. The Google Developers Console [project ID or project
|
789
789
|
# number](https://support.google.com/cloud/answer/6158840).
|
790
790
|
# This field has been deprecated and replaced by the name field.
|
791
|
-
# @param zone [String]
|
791
|
+
# @param zone [::String]
|
792
792
|
# Deprecated. The name of the Google Compute Engine
|
793
793
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
794
794
|
# resides.
|
795
795
|
# This field has been deprecated and replaced by the name field.
|
796
|
-
# @param cluster_id [String]
|
796
|
+
# @param cluster_id [::String]
|
797
797
|
# Deprecated. The name of the cluster to upgrade.
|
798
798
|
# This field has been deprecated and replaced by the name field.
|
799
|
-
# @param logging_service [String]
|
799
|
+
# @param logging_service [::String]
|
800
800
|
# Required. The logging service the cluster should use to write metrics.
|
801
801
|
# Currently available options:
|
802
802
|
#
|
803
803
|
# * "logging.googleapis.com" - the Google Cloud Logging service
|
804
804
|
# * "none" - no metrics will be exported from the cluster
|
805
|
-
# @param name [String]
|
805
|
+
# @param name [::String]
|
806
806
|
# The name (project, location, cluster) of the cluster to set logging.
|
807
807
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
808
808
|
#
|
809
809
|
# @yield [response, operation] Access the result along with the RPC operation
|
810
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
811
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
810
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
811
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
812
812
|
#
|
813
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
813
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
814
814
|
#
|
815
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
815
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
816
816
|
#
|
817
817
|
def set_logging_service request, options = nil
|
818
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
818
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
819
819
|
|
820
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetLoggingServiceRequest
|
820
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetLoggingServiceRequest
|
821
821
|
|
822
822
|
# Converts hash and nil to an options object
|
823
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
823
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
824
824
|
|
825
825
|
# Customize the options with defaults
|
826
826
|
metadata = @config.rpcs.set_logging_service.metadata.to_h
|
827
827
|
|
828
828
|
# Set x-goog-api-client and x-goog-user-project headers
|
829
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
829
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
830
830
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
831
831
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
832
832
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -847,8 +847,8 @@ module Google
|
|
847
847
|
yield response, operation if block_given?
|
848
848
|
return response
|
849
849
|
end
|
850
|
-
rescue GRPC::BadStatus => e
|
851
|
-
raise Google::Cloud::Error.from_error(e)
|
850
|
+
rescue ::GRPC::BadStatus => e
|
851
|
+
raise ::Google::Cloud::Error.from_error(e)
|
852
852
|
end
|
853
853
|
|
854
854
|
##
|
@@ -856,12 +856,12 @@ module Google
|
|
856
856
|
#
|
857
857
|
# @overload set_monitoring_service(request, options = nil)
|
858
858
|
# Pass arguments to `set_monitoring_service` via a request object, either of type
|
859
|
-
# {Google::Cloud::Container::V1::SetMonitoringServiceRequest} or an equivalent Hash.
|
859
|
+
# {::Google::Cloud::Container::V1::SetMonitoringServiceRequest} or an equivalent Hash.
|
860
860
|
#
|
861
|
-
# @param request [Google::Cloud::Container::V1::SetMonitoringServiceRequest, Hash]
|
861
|
+
# @param request [::Google::Cloud::Container::V1::SetMonitoringServiceRequest, ::Hash]
|
862
862
|
# A request object representing the call parameters. Required. To specify no
|
863
863
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
864
|
-
# @param options [Gapic::CallOptions, Hash]
|
864
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
865
865
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
866
866
|
#
|
867
867
|
# @overload set_monitoring_service(project_id: nil, zone: nil, cluster_id: nil, monitoring_service: nil, name: nil)
|
@@ -869,19 +869,19 @@ module Google
|
|
869
869
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
870
870
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
871
871
|
#
|
872
|
-
# @param project_id [String]
|
872
|
+
# @param project_id [::String]
|
873
873
|
# Deprecated. The Google Developers Console [project ID or project
|
874
874
|
# number](https://support.google.com/cloud/answer/6158840).
|
875
875
|
# This field has been deprecated and replaced by the name field.
|
876
|
-
# @param zone [String]
|
876
|
+
# @param zone [::String]
|
877
877
|
# Deprecated. The name of the Google Compute Engine
|
878
878
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
879
879
|
# resides.
|
880
880
|
# This field has been deprecated and replaced by the name field.
|
881
|
-
# @param cluster_id [String]
|
881
|
+
# @param cluster_id [::String]
|
882
882
|
# Deprecated. The name of the cluster to upgrade.
|
883
883
|
# This field has been deprecated and replaced by the name field.
|
884
|
-
# @param monitoring_service [String]
|
884
|
+
# @param monitoring_service [::String]
|
885
885
|
# Required. The monitoring service the cluster should use to write metrics.
|
886
886
|
# Currently available options:
|
887
887
|
#
|
@@ -889,31 +889,31 @@ module Google
|
|
889
889
|
# service with Kubernetes-native resource model
|
890
890
|
# * "monitoring.googleapis.com" - the Google Cloud Monitoring service
|
891
891
|
# * "none" - no metrics will be exported from the cluster
|
892
|
-
# @param name [String]
|
892
|
+
# @param name [::String]
|
893
893
|
# The name (project, location, cluster) of the cluster to set monitoring.
|
894
894
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
895
895
|
#
|
896
896
|
# @yield [response, operation] Access the result along with the RPC operation
|
897
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
898
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
897
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
898
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
899
899
|
#
|
900
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
900
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
901
901
|
#
|
902
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
902
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
903
903
|
#
|
904
904
|
def set_monitoring_service request, options = nil
|
905
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
905
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
906
906
|
|
907
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetMonitoringServiceRequest
|
907
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetMonitoringServiceRequest
|
908
908
|
|
909
909
|
# Converts hash and nil to an options object
|
910
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
910
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
911
911
|
|
912
912
|
# Customize the options with defaults
|
913
913
|
metadata = @config.rpcs.set_monitoring_service.metadata.to_h
|
914
914
|
|
915
915
|
# Set x-goog-api-client and x-goog-user-project headers
|
916
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
916
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
917
917
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
918
918
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
919
919
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -934,8 +934,8 @@ module Google
|
|
934
934
|
yield response, operation if block_given?
|
935
935
|
return response
|
936
936
|
end
|
937
|
-
rescue GRPC::BadStatus => e
|
938
|
-
raise Google::Cloud::Error.from_error(e)
|
937
|
+
rescue ::GRPC::BadStatus => e
|
938
|
+
raise ::Google::Cloud::Error.from_error(e)
|
939
939
|
end
|
940
940
|
|
941
941
|
##
|
@@ -943,12 +943,12 @@ module Google
|
|
943
943
|
#
|
944
944
|
# @overload set_addons_config(request, options = nil)
|
945
945
|
# Pass arguments to `set_addons_config` via a request object, either of type
|
946
|
-
# {Google::Cloud::Container::V1::SetAddonsConfigRequest} or an equivalent Hash.
|
946
|
+
# {::Google::Cloud::Container::V1::SetAddonsConfigRequest} or an equivalent Hash.
|
947
947
|
#
|
948
|
-
# @param request [Google::Cloud::Container::V1::SetAddonsConfigRequest, Hash]
|
948
|
+
# @param request [::Google::Cloud::Container::V1::SetAddonsConfigRequest, ::Hash]
|
949
949
|
# A request object representing the call parameters. Required. To specify no
|
950
950
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
951
|
-
# @param options [Gapic::CallOptions, Hash]
|
951
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
952
952
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
953
953
|
#
|
954
954
|
# @overload set_addons_config(project_id: nil, zone: nil, cluster_id: nil, addons_config: nil, name: nil)
|
@@ -956,46 +956,46 @@ module Google
|
|
956
956
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
957
957
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
958
958
|
#
|
959
|
-
# @param project_id [String]
|
959
|
+
# @param project_id [::String]
|
960
960
|
# Deprecated. The Google Developers Console [project ID or project
|
961
961
|
# number](https://support.google.com/cloud/answer/6158840).
|
962
962
|
# This field has been deprecated and replaced by the name field.
|
963
|
-
# @param zone [String]
|
963
|
+
# @param zone [::String]
|
964
964
|
# Deprecated. The name of the Google Compute Engine
|
965
965
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
966
966
|
# resides.
|
967
967
|
# This field has been deprecated and replaced by the name field.
|
968
|
-
# @param cluster_id [String]
|
968
|
+
# @param cluster_id [::String]
|
969
969
|
# Deprecated. The name of the cluster to upgrade.
|
970
970
|
# This field has been deprecated and replaced by the name field.
|
971
|
-
# @param addons_config [Google::Cloud::Container::V1::AddonsConfig, Hash]
|
971
|
+
# @param addons_config [::Google::Cloud::Container::V1::AddonsConfig, ::Hash]
|
972
972
|
# Required. The desired configurations for the various addons available to run in the
|
973
973
|
# cluster.
|
974
|
-
# @param name [String]
|
974
|
+
# @param name [::String]
|
975
975
|
# The name (project, location, cluster) of the cluster to set addons.
|
976
976
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
977
977
|
#
|
978
978
|
# @yield [response, operation] Access the result along with the RPC operation
|
979
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
980
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
979
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
980
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
981
981
|
#
|
982
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
982
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
983
983
|
#
|
984
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
984
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
985
985
|
#
|
986
986
|
def set_addons_config request, options = nil
|
987
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
987
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
988
988
|
|
989
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetAddonsConfigRequest
|
989
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetAddonsConfigRequest
|
990
990
|
|
991
991
|
# Converts hash and nil to an options object
|
992
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
992
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
993
993
|
|
994
994
|
# Customize the options with defaults
|
995
995
|
metadata = @config.rpcs.set_addons_config.metadata.to_h
|
996
996
|
|
997
997
|
# Set x-goog-api-client and x-goog-user-project headers
|
998
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
998
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
999
999
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1000
1000
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1001
1001
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1016,8 +1016,8 @@ module Google
|
|
1016
1016
|
yield response, operation if block_given?
|
1017
1017
|
return response
|
1018
1018
|
end
|
1019
|
-
rescue GRPC::BadStatus => e
|
1020
|
-
raise Google::Cloud::Error.from_error(e)
|
1019
|
+
rescue ::GRPC::BadStatus => e
|
1020
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1021
1021
|
end
|
1022
1022
|
|
1023
1023
|
##
|
@@ -1025,12 +1025,12 @@ module Google
|
|
1025
1025
|
#
|
1026
1026
|
# @overload set_locations(request, options = nil)
|
1027
1027
|
# Pass arguments to `set_locations` via a request object, either of type
|
1028
|
-
# {Google::Cloud::Container::V1::SetLocationsRequest} or an equivalent Hash.
|
1028
|
+
# {::Google::Cloud::Container::V1::SetLocationsRequest} or an equivalent Hash.
|
1029
1029
|
#
|
1030
|
-
# @param request [Google::Cloud::Container::V1::SetLocationsRequest, Hash]
|
1030
|
+
# @param request [::Google::Cloud::Container::V1::SetLocationsRequest, ::Hash]
|
1031
1031
|
# A request object representing the call parameters. Required. To specify no
|
1032
1032
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1033
|
-
# @param options [Gapic::CallOptions, Hash]
|
1033
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1034
1034
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1035
1035
|
#
|
1036
1036
|
# @overload set_locations(project_id: nil, zone: nil, cluster_id: nil, locations: nil, name: nil)
|
@@ -1038,19 +1038,19 @@ module Google
|
|
1038
1038
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1039
1039
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1040
1040
|
#
|
1041
|
-
# @param project_id [String]
|
1041
|
+
# @param project_id [::String]
|
1042
1042
|
# Deprecated. The Google Developers Console [project ID or project
|
1043
1043
|
# number](https://support.google.com/cloud/answer/6158840).
|
1044
1044
|
# This field has been deprecated and replaced by the name field.
|
1045
|
-
# @param zone [String]
|
1045
|
+
# @param zone [::String]
|
1046
1046
|
# Deprecated. The name of the Google Compute Engine
|
1047
1047
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1048
1048
|
# resides.
|
1049
1049
|
# This field has been deprecated and replaced by the name field.
|
1050
|
-
# @param cluster_id [String]
|
1050
|
+
# @param cluster_id [::String]
|
1051
1051
|
# Deprecated. The name of the cluster to upgrade.
|
1052
1052
|
# This field has been deprecated and replaced by the name field.
|
1053
|
-
# @param locations [Array
|
1053
|
+
# @param locations [::Array<::String>]
|
1054
1054
|
# Required. The desired list of Google Compute Engine
|
1055
1055
|
# [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
|
1056
1056
|
# should be located. Changing the locations a cluster is in will result
|
@@ -1058,31 +1058,31 @@ module Google
|
|
1058
1058
|
# whether locations are being added or removed.
|
1059
1059
|
#
|
1060
1060
|
# This list must always include the cluster's primary zone.
|
1061
|
-
# @param name [String]
|
1061
|
+
# @param name [::String]
|
1062
1062
|
# The name (project, location, cluster) of the cluster to set locations.
|
1063
1063
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
1064
1064
|
#
|
1065
1065
|
# @yield [response, operation] Access the result along with the RPC operation
|
1066
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1067
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1066
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1067
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1068
1068
|
#
|
1069
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1069
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1070
1070
|
#
|
1071
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1071
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1072
1072
|
#
|
1073
1073
|
def set_locations request, options = nil
|
1074
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1074
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1075
1075
|
|
1076
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetLocationsRequest
|
1076
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetLocationsRequest
|
1077
1077
|
|
1078
1078
|
# Converts hash and nil to an options object
|
1079
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1079
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1080
1080
|
|
1081
1081
|
# Customize the options with defaults
|
1082
1082
|
metadata = @config.rpcs.set_locations.metadata.to_h
|
1083
1083
|
|
1084
1084
|
# Set x-goog-api-client and x-goog-user-project headers
|
1085
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1085
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1086
1086
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1087
1087
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1088
1088
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1103,8 +1103,8 @@ module Google
|
|
1103
1103
|
yield response, operation if block_given?
|
1104
1104
|
return response
|
1105
1105
|
end
|
1106
|
-
rescue GRPC::BadStatus => e
|
1107
|
-
raise Google::Cloud::Error.from_error(e)
|
1106
|
+
rescue ::GRPC::BadStatus => e
|
1107
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1108
1108
|
end
|
1109
1109
|
|
1110
1110
|
##
|
@@ -1112,12 +1112,12 @@ module Google
|
|
1112
1112
|
#
|
1113
1113
|
# @overload update_master(request, options = nil)
|
1114
1114
|
# Pass arguments to `update_master` via a request object, either of type
|
1115
|
-
# {Google::Cloud::Container::V1::UpdateMasterRequest} or an equivalent Hash.
|
1115
|
+
# {::Google::Cloud::Container::V1::UpdateMasterRequest} or an equivalent Hash.
|
1116
1116
|
#
|
1117
|
-
# @param request [Google::Cloud::Container::V1::UpdateMasterRequest, Hash]
|
1117
|
+
# @param request [::Google::Cloud::Container::V1::UpdateMasterRequest, ::Hash]
|
1118
1118
|
# A request object representing the call parameters. Required. To specify no
|
1119
1119
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1120
|
-
# @param options [Gapic::CallOptions, Hash]
|
1120
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1121
1121
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1122
1122
|
#
|
1123
1123
|
# @overload update_master(project_id: nil, zone: nil, cluster_id: nil, master_version: nil, name: nil)
|
@@ -1125,19 +1125,19 @@ module Google
|
|
1125
1125
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1126
1126
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1127
1127
|
#
|
1128
|
-
# @param project_id [String]
|
1128
|
+
# @param project_id [::String]
|
1129
1129
|
# Deprecated. The Google Developers Console [project ID or project
|
1130
1130
|
# number](https://support.google.com/cloud/answer/6158840).
|
1131
1131
|
# This field has been deprecated and replaced by the name field.
|
1132
|
-
# @param zone [String]
|
1132
|
+
# @param zone [::String]
|
1133
1133
|
# Deprecated. The name of the Google Compute Engine
|
1134
1134
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1135
1135
|
# resides.
|
1136
1136
|
# This field has been deprecated and replaced by the name field.
|
1137
|
-
# @param cluster_id [String]
|
1137
|
+
# @param cluster_id [::String]
|
1138
1138
|
# Deprecated. The name of the cluster to upgrade.
|
1139
1139
|
# This field has been deprecated and replaced by the name field.
|
1140
|
-
# @param master_version [String]
|
1140
|
+
# @param master_version [::String]
|
1141
1141
|
# Required. The Kubernetes version to change the master to.
|
1142
1142
|
#
|
1143
1143
|
# Users may specify either explicit versions offered by Kubernetes Engine or
|
@@ -1148,31 +1148,31 @@ module Google
|
|
1148
1148
|
# - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
|
1149
1149
|
# - "1.X.Y-gke.N": picks an explicit Kubernetes version
|
1150
1150
|
# - "-": picks the default Kubernetes version
|
1151
|
-
# @param name [String]
|
1151
|
+
# @param name [::String]
|
1152
1152
|
# The name (project, location, cluster) of the cluster to update.
|
1153
1153
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
1154
1154
|
#
|
1155
1155
|
# @yield [response, operation] Access the result along with the RPC operation
|
1156
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1157
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1156
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1157
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1158
1158
|
#
|
1159
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1159
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1160
1160
|
#
|
1161
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1161
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1162
1162
|
#
|
1163
1163
|
def update_master request, options = nil
|
1164
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1164
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1165
1165
|
|
1166
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::UpdateMasterRequest
|
1166
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::UpdateMasterRequest
|
1167
1167
|
|
1168
1168
|
# Converts hash and nil to an options object
|
1169
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1169
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1170
1170
|
|
1171
1171
|
# Customize the options with defaults
|
1172
1172
|
metadata = @config.rpcs.update_master.metadata.to_h
|
1173
1173
|
|
1174
1174
|
# Set x-goog-api-client and x-goog-user-project headers
|
1175
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1175
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1176
1176
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1177
1177
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1178
1178
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1193,8 +1193,8 @@ module Google
|
|
1193
1193
|
yield response, operation if block_given?
|
1194
1194
|
return response
|
1195
1195
|
end
|
1196
|
-
rescue GRPC::BadStatus => e
|
1197
|
-
raise Google::Cloud::Error.from_error(e)
|
1196
|
+
rescue ::GRPC::BadStatus => e
|
1197
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1198
1198
|
end
|
1199
1199
|
|
1200
1200
|
##
|
@@ -1204,12 +1204,12 @@ module Google
|
|
1204
1204
|
#
|
1205
1205
|
# @overload set_master_auth(request, options = nil)
|
1206
1206
|
# Pass arguments to `set_master_auth` via a request object, either of type
|
1207
|
-
# {Google::Cloud::Container::V1::SetMasterAuthRequest} or an equivalent Hash.
|
1207
|
+
# {::Google::Cloud::Container::V1::SetMasterAuthRequest} or an equivalent Hash.
|
1208
1208
|
#
|
1209
|
-
# @param request [Google::Cloud::Container::V1::SetMasterAuthRequest, Hash]
|
1209
|
+
# @param request [::Google::Cloud::Container::V1::SetMasterAuthRequest, ::Hash]
|
1210
1210
|
# A request object representing the call parameters. Required. To specify no
|
1211
1211
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1212
|
-
# @param options [Gapic::CallOptions, Hash]
|
1212
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1213
1213
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1214
1214
|
#
|
1215
1215
|
# @overload set_master_auth(project_id: nil, zone: nil, cluster_id: nil, action: nil, update: nil, name: nil)
|
@@ -1217,47 +1217,47 @@ module Google
|
|
1217
1217
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1218
1218
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1219
1219
|
#
|
1220
|
-
# @param project_id [String]
|
1220
|
+
# @param project_id [::String]
|
1221
1221
|
# Deprecated. The Google Developers Console [project ID or project
|
1222
1222
|
# number](https://support.google.com/cloud/answer/6158840).
|
1223
1223
|
# This field has been deprecated and replaced by the name field.
|
1224
|
-
# @param zone [String]
|
1224
|
+
# @param zone [::String]
|
1225
1225
|
# Deprecated. The name of the Google Compute Engine
|
1226
1226
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1227
1227
|
# resides.
|
1228
1228
|
# This field has been deprecated and replaced by the name field.
|
1229
|
-
# @param cluster_id [String]
|
1229
|
+
# @param cluster_id [::String]
|
1230
1230
|
# Deprecated. The name of the cluster to upgrade.
|
1231
1231
|
# This field has been deprecated and replaced by the name field.
|
1232
|
-
# @param action [Google::Cloud::Container::V1::SetMasterAuthRequest::Action]
|
1232
|
+
# @param action [::Google::Cloud::Container::V1::SetMasterAuthRequest::Action]
|
1233
1233
|
# Required. The exact form of action to be taken on the master auth.
|
1234
|
-
# @param update [Google::Cloud::Container::V1::MasterAuth, Hash]
|
1234
|
+
# @param update [::Google::Cloud::Container::V1::MasterAuth, ::Hash]
|
1235
1235
|
# Required. A description of the update.
|
1236
|
-
# @param name [String]
|
1236
|
+
# @param name [::String]
|
1237
1237
|
# The name (project, location, cluster) of the cluster to set auth.
|
1238
1238
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
1239
1239
|
#
|
1240
1240
|
# @yield [response, operation] Access the result along with the RPC operation
|
1241
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1242
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1241
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1242
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1243
1243
|
#
|
1244
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1244
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1245
1245
|
#
|
1246
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1246
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1247
1247
|
#
|
1248
1248
|
def set_master_auth request, options = nil
|
1249
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1249
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1250
1250
|
|
1251
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetMasterAuthRequest
|
1251
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetMasterAuthRequest
|
1252
1252
|
|
1253
1253
|
# Converts hash and nil to an options object
|
1254
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1254
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1255
1255
|
|
1256
1256
|
# Customize the options with defaults
|
1257
1257
|
metadata = @config.rpcs.set_master_auth.metadata.to_h
|
1258
1258
|
|
1259
1259
|
# Set x-goog-api-client and x-goog-user-project headers
|
1260
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1260
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1261
1261
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1262
1262
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1263
1263
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1278,8 +1278,8 @@ module Google
|
|
1278
1278
|
yield response, operation if block_given?
|
1279
1279
|
return response
|
1280
1280
|
end
|
1281
|
-
rescue GRPC::BadStatus => e
|
1282
|
-
raise Google::Cloud::Error.from_error(e)
|
1281
|
+
rescue ::GRPC::BadStatus => e
|
1282
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1283
1283
|
end
|
1284
1284
|
|
1285
1285
|
##
|
@@ -1295,12 +1295,12 @@ module Google
|
|
1295
1295
|
#
|
1296
1296
|
# @overload delete_cluster(request, options = nil)
|
1297
1297
|
# Pass arguments to `delete_cluster` via a request object, either of type
|
1298
|
-
# {Google::Cloud::Container::V1::DeleteClusterRequest} or an equivalent Hash.
|
1298
|
+
# {::Google::Cloud::Container::V1::DeleteClusterRequest} or an equivalent Hash.
|
1299
1299
|
#
|
1300
|
-
# @param request [Google::Cloud::Container::V1::DeleteClusterRequest, Hash]
|
1300
|
+
# @param request [::Google::Cloud::Container::V1::DeleteClusterRequest, ::Hash]
|
1301
1301
|
# A request object representing the call parameters. Required. To specify no
|
1302
1302
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1303
|
-
# @param options [Gapic::CallOptions, Hash]
|
1303
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1304
1304
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1305
1305
|
#
|
1306
1306
|
# @overload delete_cluster(project_id: nil, zone: nil, cluster_id: nil, name: nil)
|
@@ -1308,43 +1308,43 @@ module Google
|
|
1308
1308
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1309
1309
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1310
1310
|
#
|
1311
|
-
# @param project_id [String]
|
1311
|
+
# @param project_id [::String]
|
1312
1312
|
# Deprecated. The Google Developers Console [project ID or project
|
1313
1313
|
# number](https://support.google.com/cloud/answer/6158840).
|
1314
1314
|
# This field has been deprecated and replaced by the name field.
|
1315
|
-
# @param zone [String]
|
1315
|
+
# @param zone [::String]
|
1316
1316
|
# Deprecated. The name of the Google Compute Engine
|
1317
1317
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1318
1318
|
# resides.
|
1319
1319
|
# This field has been deprecated and replaced by the name field.
|
1320
|
-
# @param cluster_id [String]
|
1320
|
+
# @param cluster_id [::String]
|
1321
1321
|
# Deprecated. The name of the cluster to delete.
|
1322
1322
|
# This field has been deprecated and replaced by the name field.
|
1323
|
-
# @param name [String]
|
1323
|
+
# @param name [::String]
|
1324
1324
|
# The name (project, location, cluster) of the cluster to delete.
|
1325
1325
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
1326
1326
|
#
|
1327
1327
|
# @yield [response, operation] Access the result along with the RPC operation
|
1328
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1329
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1328
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1329
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1330
1330
|
#
|
1331
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1331
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1332
1332
|
#
|
1333
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1333
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1334
1334
|
#
|
1335
1335
|
def delete_cluster request, options = nil
|
1336
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1336
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1337
1337
|
|
1338
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::DeleteClusterRequest
|
1338
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::DeleteClusterRequest
|
1339
1339
|
|
1340
1340
|
# Converts hash and nil to an options object
|
1341
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1341
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1342
1342
|
|
1343
1343
|
# Customize the options with defaults
|
1344
1344
|
metadata = @config.rpcs.delete_cluster.metadata.to_h
|
1345
1345
|
|
1346
1346
|
# Set x-goog-api-client and x-goog-user-project headers
|
1347
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1347
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1348
1348
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1349
1349
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1350
1350
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1365,8 +1365,8 @@ module Google
|
|
1365
1365
|
yield response, operation if block_given?
|
1366
1366
|
return response
|
1367
1367
|
end
|
1368
|
-
rescue GRPC::BadStatus => e
|
1369
|
-
raise Google::Cloud::Error.from_error(e)
|
1368
|
+
rescue ::GRPC::BadStatus => e
|
1369
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1370
1370
|
end
|
1371
1371
|
|
1372
1372
|
##
|
@@ -1374,12 +1374,12 @@ module Google
|
|
1374
1374
|
#
|
1375
1375
|
# @overload list_operations(request, options = nil)
|
1376
1376
|
# Pass arguments to `list_operations` via a request object, either of type
|
1377
|
-
# {Google::Cloud::Container::V1::ListOperationsRequest} or an equivalent Hash.
|
1377
|
+
# {::Google::Cloud::Container::V1::ListOperationsRequest} or an equivalent Hash.
|
1378
1378
|
#
|
1379
|
-
# @param request [Google::Cloud::Container::V1::ListOperationsRequest, Hash]
|
1379
|
+
# @param request [::Google::Cloud::Container::V1::ListOperationsRequest, ::Hash]
|
1380
1380
|
# A request object representing the call parameters. Required. To specify no
|
1381
1381
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1382
|
-
# @param options [Gapic::CallOptions, Hash]
|
1382
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1383
1383
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1384
1384
|
#
|
1385
1385
|
# @overload list_operations(project_id: nil, zone: nil, parent: nil)
|
@@ -1387,40 +1387,40 @@ module Google
|
|
1387
1387
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1388
1388
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1389
1389
|
#
|
1390
|
-
# @param project_id [String]
|
1390
|
+
# @param project_id [::String]
|
1391
1391
|
# Deprecated. The Google Developers Console [project ID or project
|
1392
1392
|
# number](https://support.google.com/cloud/answer/6158840).
|
1393
1393
|
# This field has been deprecated and replaced by the parent field.
|
1394
|
-
# @param zone [String]
|
1394
|
+
# @param zone [::String]
|
1395
1395
|
# Deprecated. The name of the Google Compute Engine
|
1396
1396
|
# [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
|
1397
1397
|
# all zones. This field has been deprecated and replaced by the parent field.
|
1398
|
-
# @param parent [String]
|
1398
|
+
# @param parent [::String]
|
1399
1399
|
# The parent (project and location) where the operations will be listed.
|
1400
1400
|
# Specified in the format `projects/*/locations/*`.
|
1401
1401
|
# Location "-" matches all zones and all regions.
|
1402
1402
|
#
|
1403
1403
|
# @yield [response, operation] Access the result along with the RPC operation
|
1404
|
-
# @yieldparam response [Google::Cloud::Container::V1::ListOperationsResponse]
|
1405
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1404
|
+
# @yieldparam response [::Google::Cloud::Container::V1::ListOperationsResponse]
|
1405
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1406
1406
|
#
|
1407
|
-
# @return [Google::Cloud::Container::V1::ListOperationsResponse]
|
1407
|
+
# @return [::Google::Cloud::Container::V1::ListOperationsResponse]
|
1408
1408
|
#
|
1409
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1409
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1410
1410
|
#
|
1411
1411
|
def list_operations request, options = nil
|
1412
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1412
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1413
1413
|
|
1414
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::ListOperationsRequest
|
1414
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::ListOperationsRequest
|
1415
1415
|
|
1416
1416
|
# Converts hash and nil to an options object
|
1417
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1417
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1418
1418
|
|
1419
1419
|
# Customize the options with defaults
|
1420
1420
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
1421
1421
|
|
1422
1422
|
# Set x-goog-api-client and x-goog-user-project headers
|
1423
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1423
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1424
1424
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1425
1425
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1426
1426
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1441,8 +1441,8 @@ module Google
|
|
1441
1441
|
yield response, operation if block_given?
|
1442
1442
|
return response
|
1443
1443
|
end
|
1444
|
-
rescue GRPC::BadStatus => e
|
1445
|
-
raise Google::Cloud::Error.from_error(e)
|
1444
|
+
rescue ::GRPC::BadStatus => e
|
1445
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1446
1446
|
end
|
1447
1447
|
|
1448
1448
|
##
|
@@ -1450,12 +1450,12 @@ module Google
|
|
1450
1450
|
#
|
1451
1451
|
# @overload get_operation(request, options = nil)
|
1452
1452
|
# Pass arguments to `get_operation` via a request object, either of type
|
1453
|
-
# {Google::Cloud::Container::V1::GetOperationRequest} or an equivalent Hash.
|
1453
|
+
# {::Google::Cloud::Container::V1::GetOperationRequest} or an equivalent Hash.
|
1454
1454
|
#
|
1455
|
-
# @param request [Google::Cloud::Container::V1::GetOperationRequest, Hash]
|
1455
|
+
# @param request [::Google::Cloud::Container::V1::GetOperationRequest, ::Hash]
|
1456
1456
|
# A request object representing the call parameters. Required. To specify no
|
1457
1457
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1458
|
-
# @param options [Gapic::CallOptions, Hash]
|
1458
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1459
1459
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1460
1460
|
#
|
1461
1461
|
# @overload get_operation(project_id: nil, zone: nil, operation_id: nil, name: nil)
|
@@ -1463,43 +1463,43 @@ module Google
|
|
1463
1463
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1464
1464
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1465
1465
|
#
|
1466
|
-
# @param project_id [String]
|
1466
|
+
# @param project_id [::String]
|
1467
1467
|
# Deprecated. The Google Developers Console [project ID or project
|
1468
1468
|
# number](https://support.google.com/cloud/answer/6158840).
|
1469
1469
|
# This field has been deprecated and replaced by the name field.
|
1470
|
-
# @param zone [String]
|
1470
|
+
# @param zone [::String]
|
1471
1471
|
# Deprecated. The name of the Google Compute Engine
|
1472
1472
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1473
1473
|
# resides.
|
1474
1474
|
# This field has been deprecated and replaced by the name field.
|
1475
|
-
# @param operation_id [String]
|
1475
|
+
# @param operation_id [::String]
|
1476
1476
|
# Deprecated. The server-assigned `name` of the operation.
|
1477
1477
|
# This field has been deprecated and replaced by the name field.
|
1478
|
-
# @param name [String]
|
1478
|
+
# @param name [::String]
|
1479
1479
|
# The name (project, location, operation id) of the operation to get.
|
1480
1480
|
# Specified in the format `projects/*/locations/*/operations/*`.
|
1481
1481
|
#
|
1482
1482
|
# @yield [response, operation] Access the result along with the RPC operation
|
1483
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1484
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1483
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1484
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1485
1485
|
#
|
1486
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1486
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1487
1487
|
#
|
1488
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1488
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1489
1489
|
#
|
1490
1490
|
def get_operation request, options = nil
|
1491
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1492
1492
|
|
1493
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::GetOperationRequest
|
1493
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::GetOperationRequest
|
1494
1494
|
|
1495
1495
|
# Converts hash and nil to an options object
|
1496
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1496
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1497
1497
|
|
1498
1498
|
# Customize the options with defaults
|
1499
1499
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
1500
1500
|
|
1501
1501
|
# Set x-goog-api-client and x-goog-user-project headers
|
1502
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1502
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1503
1503
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1504
1504
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1505
1505
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1520,8 +1520,8 @@ module Google
|
|
1520
1520
|
yield response, operation if block_given?
|
1521
1521
|
return response
|
1522
1522
|
end
|
1523
|
-
rescue GRPC::BadStatus => e
|
1524
|
-
raise Google::Cloud::Error.from_error(e)
|
1523
|
+
rescue ::GRPC::BadStatus => e
|
1524
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1525
1525
|
end
|
1526
1526
|
|
1527
1527
|
##
|
@@ -1529,12 +1529,12 @@ module Google
|
|
1529
1529
|
#
|
1530
1530
|
# @overload cancel_operation(request, options = nil)
|
1531
1531
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
1532
|
-
# {Google::Cloud::Container::V1::CancelOperationRequest} or an equivalent Hash.
|
1532
|
+
# {::Google::Cloud::Container::V1::CancelOperationRequest} or an equivalent Hash.
|
1533
1533
|
#
|
1534
|
-
# @param request [Google::Cloud::Container::V1::CancelOperationRequest, Hash]
|
1534
|
+
# @param request [::Google::Cloud::Container::V1::CancelOperationRequest, ::Hash]
|
1535
1535
|
# A request object representing the call parameters. Required. To specify no
|
1536
1536
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1537
|
-
# @param options [Gapic::CallOptions, Hash]
|
1537
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1538
1538
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1539
1539
|
#
|
1540
1540
|
# @overload cancel_operation(project_id: nil, zone: nil, operation_id: nil, name: nil)
|
@@ -1542,42 +1542,42 @@ module Google
|
|
1542
1542
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1543
1543
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1544
1544
|
#
|
1545
|
-
# @param project_id [String]
|
1545
|
+
# @param project_id [::String]
|
1546
1546
|
# Deprecated. The Google Developers Console [project ID or project
|
1547
1547
|
# number](https://support.google.com/cloud/answer/6158840).
|
1548
1548
|
# This field has been deprecated and replaced by the name field.
|
1549
|
-
# @param zone [String]
|
1549
|
+
# @param zone [::String]
|
1550
1550
|
# Deprecated. The name of the Google Compute Engine
|
1551
1551
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
|
1552
1552
|
# This field has been deprecated and replaced by the name field.
|
1553
|
-
# @param operation_id [String]
|
1553
|
+
# @param operation_id [::String]
|
1554
1554
|
# Deprecated. The server-assigned `name` of the operation.
|
1555
1555
|
# This field has been deprecated and replaced by the name field.
|
1556
|
-
# @param name [String]
|
1556
|
+
# @param name [::String]
|
1557
1557
|
# The name (project, location, operation id) of the operation to cancel.
|
1558
1558
|
# Specified in the format `projects/*/locations/*/operations/*`.
|
1559
1559
|
#
|
1560
1560
|
# @yield [response, operation] Access the result along with the RPC operation
|
1561
|
-
# @yieldparam response [Google::Protobuf::Empty]
|
1562
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1561
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
1562
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1563
1563
|
#
|
1564
|
-
# @return [Google::Protobuf::Empty]
|
1564
|
+
# @return [::Google::Protobuf::Empty]
|
1565
1565
|
#
|
1566
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1566
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1567
1567
|
#
|
1568
1568
|
def cancel_operation request, options = nil
|
1569
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1569
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1570
1570
|
|
1571
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::CancelOperationRequest
|
1571
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CancelOperationRequest
|
1572
1572
|
|
1573
1573
|
# Converts hash and nil to an options object
|
1574
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1574
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1575
1575
|
|
1576
1576
|
# Customize the options with defaults
|
1577
1577
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
1578
1578
|
|
1579
1579
|
# Set x-goog-api-client and x-goog-user-project headers
|
1580
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1580
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1581
1581
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1582
1582
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1583
1583
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1598,8 +1598,8 @@ module Google
|
|
1598
1598
|
yield response, operation if block_given?
|
1599
1599
|
return response
|
1600
1600
|
end
|
1601
|
-
rescue GRPC::BadStatus => e
|
1602
|
-
raise Google::Cloud::Error.from_error(e)
|
1601
|
+
rescue ::GRPC::BadStatus => e
|
1602
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1603
1603
|
end
|
1604
1604
|
|
1605
1605
|
##
|
@@ -1607,12 +1607,12 @@ module Google
|
|
1607
1607
|
#
|
1608
1608
|
# @overload get_server_config(request, options = nil)
|
1609
1609
|
# Pass arguments to `get_server_config` via a request object, either of type
|
1610
|
-
# {Google::Cloud::Container::V1::GetServerConfigRequest} or an equivalent Hash.
|
1610
|
+
# {::Google::Cloud::Container::V1::GetServerConfigRequest} or an equivalent Hash.
|
1611
1611
|
#
|
1612
|
-
# @param request [Google::Cloud::Container::V1::GetServerConfigRequest, Hash]
|
1612
|
+
# @param request [::Google::Cloud::Container::V1::GetServerConfigRequest, ::Hash]
|
1613
1613
|
# A request object representing the call parameters. Required. To specify no
|
1614
1614
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1615
|
-
# @param options [Gapic::CallOptions, Hash]
|
1615
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1616
1616
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1617
1617
|
#
|
1618
1618
|
# @overload get_server_config(project_id: nil, zone: nil, name: nil)
|
@@ -1620,39 +1620,39 @@ module Google
|
|
1620
1620
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1621
1621
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1622
1622
|
#
|
1623
|
-
# @param project_id [String]
|
1623
|
+
# @param project_id [::String]
|
1624
1624
|
# Deprecated. The Google Developers Console [project ID or project
|
1625
1625
|
# number](https://support.google.com/cloud/answer/6158840).
|
1626
1626
|
# This field has been deprecated and replaced by the name field.
|
1627
|
-
# @param zone [String]
|
1627
|
+
# @param zone [::String]
|
1628
1628
|
# Deprecated. The name of the Google Compute Engine
|
1629
1629
|
# [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
|
1630
1630
|
# This field has been deprecated and replaced by the name field.
|
1631
|
-
# @param name [String]
|
1631
|
+
# @param name [::String]
|
1632
1632
|
# The name (project and location) of the server config to get,
|
1633
1633
|
# specified in the format `projects/*/locations/*`.
|
1634
1634
|
#
|
1635
1635
|
# @yield [response, operation] Access the result along with the RPC operation
|
1636
|
-
# @yieldparam response [Google::Cloud::Container::V1::ServerConfig]
|
1637
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1636
|
+
# @yieldparam response [::Google::Cloud::Container::V1::ServerConfig]
|
1637
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1638
1638
|
#
|
1639
|
-
# @return [Google::Cloud::Container::V1::ServerConfig]
|
1639
|
+
# @return [::Google::Cloud::Container::V1::ServerConfig]
|
1640
1640
|
#
|
1641
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1641
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1642
1642
|
#
|
1643
1643
|
def get_server_config request, options = nil
|
1644
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1644
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1645
1645
|
|
1646
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::GetServerConfigRequest
|
1646
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::GetServerConfigRequest
|
1647
1647
|
|
1648
1648
|
# Converts hash and nil to an options object
|
1649
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1649
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1650
1650
|
|
1651
1651
|
# Customize the options with defaults
|
1652
1652
|
metadata = @config.rpcs.get_server_config.metadata.to_h
|
1653
1653
|
|
1654
1654
|
# Set x-goog-api-client and x-goog-user-project headers
|
1655
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1655
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1656
1656
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1657
1657
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1658
1658
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1673,8 +1673,8 @@ module Google
|
|
1673
1673
|
yield response, operation if block_given?
|
1674
1674
|
return response
|
1675
1675
|
end
|
1676
|
-
rescue GRPC::BadStatus => e
|
1677
|
-
raise Google::Cloud::Error.from_error(e)
|
1676
|
+
rescue ::GRPC::BadStatus => e
|
1677
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1678
1678
|
end
|
1679
1679
|
|
1680
1680
|
##
|
@@ -1682,12 +1682,12 @@ module Google
|
|
1682
1682
|
#
|
1683
1683
|
# @overload list_node_pools(request, options = nil)
|
1684
1684
|
# Pass arguments to `list_node_pools` via a request object, either of type
|
1685
|
-
# {Google::Cloud::Container::V1::ListNodePoolsRequest} or an equivalent Hash.
|
1685
|
+
# {::Google::Cloud::Container::V1::ListNodePoolsRequest} or an equivalent Hash.
|
1686
1686
|
#
|
1687
|
-
# @param request [Google::Cloud::Container::V1::ListNodePoolsRequest, Hash]
|
1687
|
+
# @param request [::Google::Cloud::Container::V1::ListNodePoolsRequest, ::Hash]
|
1688
1688
|
# A request object representing the call parameters. Required. To specify no
|
1689
1689
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1690
|
-
# @param options [Gapic::CallOptions, Hash]
|
1690
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1691
1691
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1692
1692
|
#
|
1693
1693
|
# @overload list_node_pools(project_id: nil, zone: nil, cluster_id: nil, parent: nil)
|
@@ -1695,43 +1695,43 @@ module Google
|
|
1695
1695
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1696
1696
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1697
1697
|
#
|
1698
|
-
# @param project_id [String]
|
1698
|
+
# @param project_id [::String]
|
1699
1699
|
# Deprecated. The Google Developers Console [project ID or project
|
1700
1700
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1701
1701
|
# This field has been deprecated and replaced by the parent field.
|
1702
|
-
# @param zone [String]
|
1702
|
+
# @param zone [::String]
|
1703
1703
|
# Deprecated. The name of the Google Compute Engine
|
1704
1704
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1705
1705
|
# resides.
|
1706
1706
|
# This field has been deprecated and replaced by the parent field.
|
1707
|
-
# @param cluster_id [String]
|
1707
|
+
# @param cluster_id [::String]
|
1708
1708
|
# Deprecated. The name of the cluster.
|
1709
1709
|
# This field has been deprecated and replaced by the parent field.
|
1710
|
-
# @param parent [String]
|
1710
|
+
# @param parent [::String]
|
1711
1711
|
# The parent (project, location, cluster id) where the node pools will be
|
1712
1712
|
# listed. Specified in the format `projects/*/locations/*/clusters/*`.
|
1713
1713
|
#
|
1714
1714
|
# @yield [response, operation] Access the result along with the RPC operation
|
1715
|
-
# @yieldparam response [Google::Cloud::Container::V1::ListNodePoolsResponse]
|
1716
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1715
|
+
# @yieldparam response [::Google::Cloud::Container::V1::ListNodePoolsResponse]
|
1716
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1717
1717
|
#
|
1718
|
-
# @return [Google::Cloud::Container::V1::ListNodePoolsResponse]
|
1718
|
+
# @return [::Google::Cloud::Container::V1::ListNodePoolsResponse]
|
1719
1719
|
#
|
1720
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1720
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1721
1721
|
#
|
1722
1722
|
def list_node_pools request, options = nil
|
1723
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1723
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1724
1724
|
|
1725
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::ListNodePoolsRequest
|
1725
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::ListNodePoolsRequest
|
1726
1726
|
|
1727
1727
|
# Converts hash and nil to an options object
|
1728
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1728
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1729
1729
|
|
1730
1730
|
# Customize the options with defaults
|
1731
1731
|
metadata = @config.rpcs.list_node_pools.metadata.to_h
|
1732
1732
|
|
1733
1733
|
# Set x-goog-api-client and x-goog-user-project headers
|
1734
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1734
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1735
1735
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1736
1736
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1737
1737
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1752,8 +1752,8 @@ module Google
|
|
1752
1752
|
yield response, operation if block_given?
|
1753
1753
|
return response
|
1754
1754
|
end
|
1755
|
-
rescue GRPC::BadStatus => e
|
1756
|
-
raise Google::Cloud::Error.from_error(e)
|
1755
|
+
rescue ::GRPC::BadStatus => e
|
1756
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1757
1757
|
end
|
1758
1758
|
|
1759
1759
|
##
|
@@ -1761,12 +1761,12 @@ module Google
|
|
1761
1761
|
#
|
1762
1762
|
# @overload get_node_pool(request, options = nil)
|
1763
1763
|
# Pass arguments to `get_node_pool` via a request object, either of type
|
1764
|
-
# {Google::Cloud::Container::V1::GetNodePoolRequest} or an equivalent Hash.
|
1764
|
+
# {::Google::Cloud::Container::V1::GetNodePoolRequest} or an equivalent Hash.
|
1765
1765
|
#
|
1766
|
-
# @param request [Google::Cloud::Container::V1::GetNodePoolRequest, Hash]
|
1766
|
+
# @param request [::Google::Cloud::Container::V1::GetNodePoolRequest, ::Hash]
|
1767
1767
|
# A request object representing the call parameters. Required. To specify no
|
1768
1768
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1769
|
-
# @param options [Gapic::CallOptions, Hash]
|
1769
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1770
1770
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1771
1771
|
#
|
1772
1772
|
# @overload get_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
|
@@ -1774,47 +1774,47 @@ module Google
|
|
1774
1774
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1775
1775
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1776
1776
|
#
|
1777
|
-
# @param project_id [String]
|
1777
|
+
# @param project_id [::String]
|
1778
1778
|
# Deprecated. The Google Developers Console [project ID or project
|
1779
1779
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1780
1780
|
# This field has been deprecated and replaced by the name field.
|
1781
|
-
# @param zone [String]
|
1781
|
+
# @param zone [::String]
|
1782
1782
|
# Deprecated. The name of the Google Compute Engine
|
1783
1783
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1784
1784
|
# resides.
|
1785
1785
|
# This field has been deprecated and replaced by the name field.
|
1786
|
-
# @param cluster_id [String]
|
1786
|
+
# @param cluster_id [::String]
|
1787
1787
|
# Deprecated. The name of the cluster.
|
1788
1788
|
# This field has been deprecated and replaced by the name field.
|
1789
|
-
# @param node_pool_id [String]
|
1789
|
+
# @param node_pool_id [::String]
|
1790
1790
|
# Deprecated. The name of the node pool.
|
1791
1791
|
# This field has been deprecated and replaced by the name field.
|
1792
|
-
# @param name [String]
|
1792
|
+
# @param name [::String]
|
1793
1793
|
# The name (project, location, cluster, node pool id) of the node pool to
|
1794
1794
|
# get. Specified in the format
|
1795
1795
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
1796
1796
|
#
|
1797
1797
|
# @yield [response, operation] Access the result along with the RPC operation
|
1798
|
-
# @yieldparam response [Google::Cloud::Container::V1::NodePool]
|
1799
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1798
|
+
# @yieldparam response [::Google::Cloud::Container::V1::NodePool]
|
1799
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1800
1800
|
#
|
1801
|
-
# @return [Google::Cloud::Container::V1::NodePool]
|
1801
|
+
# @return [::Google::Cloud::Container::V1::NodePool]
|
1802
1802
|
#
|
1803
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1803
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1804
1804
|
#
|
1805
1805
|
def get_node_pool request, options = nil
|
1806
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1807
1807
|
|
1808
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::GetNodePoolRequest
|
1808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::GetNodePoolRequest
|
1809
1809
|
|
1810
1810
|
# Converts hash and nil to an options object
|
1811
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1812
1812
|
|
1813
1813
|
# Customize the options with defaults
|
1814
1814
|
metadata = @config.rpcs.get_node_pool.metadata.to_h
|
1815
1815
|
|
1816
1816
|
# Set x-goog-api-client and x-goog-user-project headers
|
1817
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1817
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1818
1818
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1819
1819
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1820
1820
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1835,8 +1835,8 @@ module Google
|
|
1835
1835
|
yield response, operation if block_given?
|
1836
1836
|
return response
|
1837
1837
|
end
|
1838
|
-
rescue GRPC::BadStatus => e
|
1839
|
-
raise Google::Cloud::Error.from_error(e)
|
1838
|
+
rescue ::GRPC::BadStatus => e
|
1839
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1840
1840
|
end
|
1841
1841
|
|
1842
1842
|
##
|
@@ -1844,12 +1844,12 @@ module Google
|
|
1844
1844
|
#
|
1845
1845
|
# @overload create_node_pool(request, options = nil)
|
1846
1846
|
# Pass arguments to `create_node_pool` via a request object, either of type
|
1847
|
-
# {Google::Cloud::Container::V1::CreateNodePoolRequest} or an equivalent Hash.
|
1847
|
+
# {::Google::Cloud::Container::V1::CreateNodePoolRequest} or an equivalent Hash.
|
1848
1848
|
#
|
1849
|
-
# @param request [Google::Cloud::Container::V1::CreateNodePoolRequest, Hash]
|
1849
|
+
# @param request [::Google::Cloud::Container::V1::CreateNodePoolRequest, ::Hash]
|
1850
1850
|
# A request object representing the call parameters. Required. To specify no
|
1851
1851
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1852
|
-
# @param options [Gapic::CallOptions, Hash]
|
1852
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1853
1853
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1854
1854
|
#
|
1855
1855
|
# @overload create_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool: nil, parent: nil)
|
@@ -1857,46 +1857,46 @@ module Google
|
|
1857
1857
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1858
1858
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1859
1859
|
#
|
1860
|
-
# @param project_id [String]
|
1860
|
+
# @param project_id [::String]
|
1861
1861
|
# Deprecated. The Google Developers Console [project ID or project
|
1862
1862
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1863
1863
|
# This field has been deprecated and replaced by the parent field.
|
1864
|
-
# @param zone [String]
|
1864
|
+
# @param zone [::String]
|
1865
1865
|
# Deprecated. The name of the Google Compute Engine
|
1866
1866
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1867
1867
|
# resides.
|
1868
1868
|
# This field has been deprecated and replaced by the parent field.
|
1869
|
-
# @param cluster_id [String]
|
1869
|
+
# @param cluster_id [::String]
|
1870
1870
|
# Deprecated. The name of the cluster.
|
1871
1871
|
# This field has been deprecated and replaced by the parent field.
|
1872
|
-
# @param node_pool [Google::Cloud::Container::V1::NodePool, Hash]
|
1872
|
+
# @param node_pool [::Google::Cloud::Container::V1::NodePool, ::Hash]
|
1873
1873
|
# Required. The node pool to create.
|
1874
|
-
# @param parent [String]
|
1874
|
+
# @param parent [::String]
|
1875
1875
|
# The parent (project, location, cluster id) where the node pool will be
|
1876
1876
|
# created. Specified in the format
|
1877
1877
|
# `projects/*/locations/*/clusters/*`.
|
1878
1878
|
#
|
1879
1879
|
# @yield [response, operation] Access the result along with the RPC operation
|
1880
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1881
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1880
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1881
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1882
1882
|
#
|
1883
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1883
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1884
1884
|
#
|
1885
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1885
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1886
1886
|
#
|
1887
1887
|
def create_node_pool request, options = nil
|
1888
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1888
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1889
1889
|
|
1890
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::CreateNodePoolRequest
|
1890
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CreateNodePoolRequest
|
1891
1891
|
|
1892
1892
|
# Converts hash and nil to an options object
|
1893
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1893
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1894
1894
|
|
1895
1895
|
# Customize the options with defaults
|
1896
1896
|
metadata = @config.rpcs.create_node_pool.metadata.to_h
|
1897
1897
|
|
1898
1898
|
# Set x-goog-api-client and x-goog-user-project headers
|
1899
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1899
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1900
1900
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1901
1901
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1902
1902
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1917,8 +1917,8 @@ module Google
|
|
1917
1917
|
yield response, operation if block_given?
|
1918
1918
|
return response
|
1919
1919
|
end
|
1920
|
-
rescue GRPC::BadStatus => e
|
1921
|
-
raise Google::Cloud::Error.from_error(e)
|
1920
|
+
rescue ::GRPC::BadStatus => e
|
1921
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1922
1922
|
end
|
1923
1923
|
|
1924
1924
|
##
|
@@ -1926,12 +1926,12 @@ module Google
|
|
1926
1926
|
#
|
1927
1927
|
# @overload delete_node_pool(request, options = nil)
|
1928
1928
|
# Pass arguments to `delete_node_pool` via a request object, either of type
|
1929
|
-
# {Google::Cloud::Container::V1::DeleteNodePoolRequest} or an equivalent Hash.
|
1929
|
+
# {::Google::Cloud::Container::V1::DeleteNodePoolRequest} or an equivalent Hash.
|
1930
1930
|
#
|
1931
|
-
# @param request [Google::Cloud::Container::V1::DeleteNodePoolRequest, Hash]
|
1931
|
+
# @param request [::Google::Cloud::Container::V1::DeleteNodePoolRequest, ::Hash]
|
1932
1932
|
# A request object representing the call parameters. Required. To specify no
|
1933
1933
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1934
|
-
# @param options [Gapic::CallOptions, Hash]
|
1934
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1935
1935
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1936
1936
|
#
|
1937
1937
|
# @overload delete_node_pool(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
|
@@ -1939,47 +1939,47 @@ module Google
|
|
1939
1939
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1940
1940
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1941
1941
|
#
|
1942
|
-
# @param project_id [String]
|
1942
|
+
# @param project_id [::String]
|
1943
1943
|
# Deprecated. The Google Developers Console [project ID or project
|
1944
1944
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1945
1945
|
# This field has been deprecated and replaced by the name field.
|
1946
|
-
# @param zone [String]
|
1946
|
+
# @param zone [::String]
|
1947
1947
|
# Deprecated. The name of the Google Compute Engine
|
1948
1948
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1949
1949
|
# resides.
|
1950
1950
|
# This field has been deprecated and replaced by the name field.
|
1951
|
-
# @param cluster_id [String]
|
1951
|
+
# @param cluster_id [::String]
|
1952
1952
|
# Deprecated. The name of the cluster.
|
1953
1953
|
# This field has been deprecated and replaced by the name field.
|
1954
|
-
# @param node_pool_id [String]
|
1954
|
+
# @param node_pool_id [::String]
|
1955
1955
|
# Deprecated. The name of the node pool to delete.
|
1956
1956
|
# This field has been deprecated and replaced by the name field.
|
1957
|
-
# @param name [String]
|
1957
|
+
# @param name [::String]
|
1958
1958
|
# The name (project, location, cluster, node pool id) of the node pool to
|
1959
1959
|
# delete. Specified in the format
|
1960
1960
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
1961
1961
|
#
|
1962
1962
|
# @yield [response, operation] Access the result along with the RPC operation
|
1963
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
1964
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1963
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
1964
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1965
1965
|
#
|
1966
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
1966
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
1967
1967
|
#
|
1968
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1968
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1969
1969
|
#
|
1970
1970
|
def delete_node_pool request, options = nil
|
1971
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1971
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1972
1972
|
|
1973
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::DeleteNodePoolRequest
|
1973
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::DeleteNodePoolRequest
|
1974
1974
|
|
1975
1975
|
# Converts hash and nil to an options object
|
1976
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1976
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1977
1977
|
|
1978
1978
|
# Customize the options with defaults
|
1979
1979
|
metadata = @config.rpcs.delete_node_pool.metadata.to_h
|
1980
1980
|
|
1981
1981
|
# Set x-goog-api-client and x-goog-user-project headers
|
1982
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1982
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1983
1983
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1984
1984
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
1985
1985
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2000,8 +2000,8 @@ module Google
|
|
2000
2000
|
yield response, operation if block_given?
|
2001
2001
|
return response
|
2002
2002
|
end
|
2003
|
-
rescue GRPC::BadStatus => e
|
2004
|
-
raise Google::Cloud::Error.from_error(e)
|
2003
|
+
rescue ::GRPC::BadStatus => e
|
2004
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2005
2005
|
end
|
2006
2006
|
|
2007
2007
|
##
|
@@ -2010,12 +2010,12 @@ module Google
|
|
2010
2010
|
#
|
2011
2011
|
# @overload rollback_node_pool_upgrade(request, options = nil)
|
2012
2012
|
# Pass arguments to `rollback_node_pool_upgrade` via a request object, either of type
|
2013
|
-
# {Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest} or an equivalent Hash.
|
2013
|
+
# {::Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest} or an equivalent Hash.
|
2014
2014
|
#
|
2015
|
-
# @param request [Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest, Hash]
|
2015
|
+
# @param request [::Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest, ::Hash]
|
2016
2016
|
# A request object representing the call parameters. Required. To specify no
|
2017
2017
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2018
|
-
# @param options [Gapic::CallOptions, Hash]
|
2018
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2019
2019
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2020
2020
|
#
|
2021
2021
|
# @overload rollback_node_pool_upgrade(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, name: nil)
|
@@ -2023,47 +2023,47 @@ module Google
|
|
2023
2023
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2024
2024
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2025
2025
|
#
|
2026
|
-
# @param project_id [String]
|
2026
|
+
# @param project_id [::String]
|
2027
2027
|
# Deprecated. The Google Developers Console [project ID or project
|
2028
2028
|
# number](https://support.google.com/cloud/answer/6158840).
|
2029
2029
|
# This field has been deprecated and replaced by the name field.
|
2030
|
-
# @param zone [String]
|
2030
|
+
# @param zone [::String]
|
2031
2031
|
# Deprecated. The name of the Google Compute Engine
|
2032
2032
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2033
2033
|
# resides.
|
2034
2034
|
# This field has been deprecated and replaced by the name field.
|
2035
|
-
# @param cluster_id [String]
|
2035
|
+
# @param cluster_id [::String]
|
2036
2036
|
# Deprecated. The name of the cluster to rollback.
|
2037
2037
|
# This field has been deprecated and replaced by the name field.
|
2038
|
-
# @param node_pool_id [String]
|
2038
|
+
# @param node_pool_id [::String]
|
2039
2039
|
# Deprecated. The name of the node pool to rollback.
|
2040
2040
|
# This field has been deprecated and replaced by the name field.
|
2041
|
-
# @param name [String]
|
2041
|
+
# @param name [::String]
|
2042
2042
|
# The name (project, location, cluster, node pool id) of the node poll to
|
2043
2043
|
# rollback upgrade.
|
2044
2044
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2045
2045
|
#
|
2046
2046
|
# @yield [response, operation] Access the result along with the RPC operation
|
2047
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2048
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2047
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2048
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2049
2049
|
#
|
2050
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2050
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2051
2051
|
#
|
2052
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2052
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2053
2053
|
#
|
2054
2054
|
def rollback_node_pool_upgrade request, options = nil
|
2055
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2055
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2056
2056
|
|
2057
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest
|
2057
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::RollbackNodePoolUpgradeRequest
|
2058
2058
|
|
2059
2059
|
# Converts hash and nil to an options object
|
2060
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2060
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2061
2061
|
|
2062
2062
|
# Customize the options with defaults
|
2063
2063
|
metadata = @config.rpcs.rollback_node_pool_upgrade.metadata.to_h
|
2064
2064
|
|
2065
2065
|
# Set x-goog-api-client and x-goog-user-project headers
|
2066
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2066
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2067
2067
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2068
2068
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2069
2069
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2084,8 +2084,8 @@ module Google
|
|
2084
2084
|
yield response, operation if block_given?
|
2085
2085
|
return response
|
2086
2086
|
end
|
2087
|
-
rescue GRPC::BadStatus => e
|
2088
|
-
raise Google::Cloud::Error.from_error(e)
|
2087
|
+
rescue ::GRPC::BadStatus => e
|
2088
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2089
2089
|
end
|
2090
2090
|
|
2091
2091
|
##
|
@@ -2093,12 +2093,12 @@ module Google
|
|
2093
2093
|
#
|
2094
2094
|
# @overload set_node_pool_management(request, options = nil)
|
2095
2095
|
# Pass arguments to `set_node_pool_management` via a request object, either of type
|
2096
|
-
# {Google::Cloud::Container::V1::SetNodePoolManagementRequest} or an equivalent Hash.
|
2096
|
+
# {::Google::Cloud::Container::V1::SetNodePoolManagementRequest} or an equivalent Hash.
|
2097
2097
|
#
|
2098
|
-
# @param request [Google::Cloud::Container::V1::SetNodePoolManagementRequest, Hash]
|
2098
|
+
# @param request [::Google::Cloud::Container::V1::SetNodePoolManagementRequest, ::Hash]
|
2099
2099
|
# A request object representing the call parameters. Required. To specify no
|
2100
2100
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2101
|
-
# @param options [Gapic::CallOptions, Hash]
|
2101
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2102
2102
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2103
2103
|
#
|
2104
2104
|
# @overload set_node_pool_management(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, management: nil, name: nil)
|
@@ -2106,49 +2106,49 @@ module Google
|
|
2106
2106
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2107
2107
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2108
2108
|
#
|
2109
|
-
# @param project_id [String]
|
2109
|
+
# @param project_id [::String]
|
2110
2110
|
# Deprecated. The Google Developers Console [project ID or project
|
2111
2111
|
# number](https://support.google.com/cloud/answer/6158840).
|
2112
2112
|
# This field has been deprecated and replaced by the name field.
|
2113
|
-
# @param zone [String]
|
2113
|
+
# @param zone [::String]
|
2114
2114
|
# Deprecated. The name of the Google Compute Engine
|
2115
2115
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2116
2116
|
# resides.
|
2117
2117
|
# This field has been deprecated and replaced by the name field.
|
2118
|
-
# @param cluster_id [String]
|
2118
|
+
# @param cluster_id [::String]
|
2119
2119
|
# Deprecated. The name of the cluster to update.
|
2120
2120
|
# This field has been deprecated and replaced by the name field.
|
2121
|
-
# @param node_pool_id [String]
|
2121
|
+
# @param node_pool_id [::String]
|
2122
2122
|
# Deprecated. The name of the node pool to update.
|
2123
2123
|
# This field has been deprecated and replaced by the name field.
|
2124
|
-
# @param management [Google::Cloud::Container::V1::NodeManagement, Hash]
|
2124
|
+
# @param management [::Google::Cloud::Container::V1::NodeManagement, ::Hash]
|
2125
2125
|
# Required. NodeManagement configuration for the node pool.
|
2126
|
-
# @param name [String]
|
2126
|
+
# @param name [::String]
|
2127
2127
|
# The name (project, location, cluster, node pool id) of the node pool to set
|
2128
2128
|
# management properties. Specified in the format
|
2129
2129
|
# `projects/*/locations/*/clusters/*/nodePools/*`.
|
2130
2130
|
#
|
2131
2131
|
# @yield [response, operation] Access the result along with the RPC operation
|
2132
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2133
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2132
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2133
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2134
2134
|
#
|
2135
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2135
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2136
2136
|
#
|
2137
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2137
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2138
2138
|
#
|
2139
2139
|
def set_node_pool_management request, options = nil
|
2140
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2140
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2141
2141
|
|
2142
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetNodePoolManagementRequest
|
2142
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetNodePoolManagementRequest
|
2143
2143
|
|
2144
2144
|
# Converts hash and nil to an options object
|
2145
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2145
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2146
2146
|
|
2147
2147
|
# Customize the options with defaults
|
2148
2148
|
metadata = @config.rpcs.set_node_pool_management.metadata.to_h
|
2149
2149
|
|
2150
2150
|
# Set x-goog-api-client and x-goog-user-project headers
|
2151
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2151
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2152
2152
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2153
2153
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2154
2154
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2169,8 +2169,8 @@ module Google
|
|
2169
2169
|
yield response, operation if block_given?
|
2170
2170
|
return response
|
2171
2171
|
end
|
2172
|
-
rescue GRPC::BadStatus => e
|
2173
|
-
raise Google::Cloud::Error.from_error(e)
|
2172
|
+
rescue ::GRPC::BadStatus => e
|
2173
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2174
2174
|
end
|
2175
2175
|
|
2176
2176
|
##
|
@@ -2178,12 +2178,12 @@ module Google
|
|
2178
2178
|
#
|
2179
2179
|
# @overload set_labels(request, options = nil)
|
2180
2180
|
# Pass arguments to `set_labels` via a request object, either of type
|
2181
|
-
# {Google::Cloud::Container::V1::SetLabelsRequest} or an equivalent Hash.
|
2181
|
+
# {::Google::Cloud::Container::V1::SetLabelsRequest} or an equivalent Hash.
|
2182
2182
|
#
|
2183
|
-
# @param request [Google::Cloud::Container::V1::SetLabelsRequest, Hash]
|
2183
|
+
# @param request [::Google::Cloud::Container::V1::SetLabelsRequest, ::Hash]
|
2184
2184
|
# A request object representing the call parameters. Required. To specify no
|
2185
2185
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2186
|
-
# @param options [Gapic::CallOptions, Hash]
|
2186
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2187
2187
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2188
2188
|
#
|
2189
2189
|
# @overload set_labels(project_id: nil, zone: nil, cluster_id: nil, resource_labels: nil, label_fingerprint: nil, name: nil)
|
@@ -2191,52 +2191,52 @@ module Google
|
|
2191
2191
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2192
2192
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2193
2193
|
#
|
2194
|
-
# @param project_id [String]
|
2194
|
+
# @param project_id [::String]
|
2195
2195
|
# Deprecated. The Google Developers Console [project ID or project
|
2196
2196
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2197
2197
|
# This field has been deprecated and replaced by the name field.
|
2198
|
-
# @param zone [String]
|
2198
|
+
# @param zone [::String]
|
2199
2199
|
# Deprecated. The name of the Google Compute Engine
|
2200
2200
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2201
2201
|
# resides.
|
2202
2202
|
# This field has been deprecated and replaced by the name field.
|
2203
|
-
# @param cluster_id [String]
|
2203
|
+
# @param cluster_id [::String]
|
2204
2204
|
# Deprecated. The name of the cluster.
|
2205
2205
|
# This field has been deprecated and replaced by the name field.
|
2206
|
-
# @param resource_labels [Hash{String => String}]
|
2206
|
+
# @param resource_labels [::Hash{::String => ::String}]
|
2207
2207
|
# Required. The labels to set for that cluster.
|
2208
|
-
# @param label_fingerprint [String]
|
2208
|
+
# @param label_fingerprint [::String]
|
2209
2209
|
# Required. The fingerprint of the previous set of labels for this resource,
|
2210
2210
|
# used to detect conflicts. The fingerprint is initially generated by
|
2211
2211
|
# Kubernetes Engine and changes after every request to modify or update
|
2212
2212
|
# labels. You must always provide an up-to-date fingerprint hash when
|
2213
2213
|
# updating or changing labels. Make a <code>get()</code> request to the
|
2214
2214
|
# resource to get the latest fingerprint.
|
2215
|
-
# @param name [String]
|
2215
|
+
# @param name [::String]
|
2216
2216
|
# The name (project, location, cluster id) of the cluster to set labels.
|
2217
2217
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2218
2218
|
#
|
2219
2219
|
# @yield [response, operation] Access the result along with the RPC operation
|
2220
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2221
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2220
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2221
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2222
2222
|
#
|
2223
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2223
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2224
2224
|
#
|
2225
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2225
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2226
2226
|
#
|
2227
2227
|
def set_labels request, options = nil
|
2228
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2228
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2229
2229
|
|
2230
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetLabelsRequest
|
2230
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetLabelsRequest
|
2231
2231
|
|
2232
2232
|
# Converts hash and nil to an options object
|
2233
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2233
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2234
2234
|
|
2235
2235
|
# Customize the options with defaults
|
2236
2236
|
metadata = @config.rpcs.set_labels.metadata.to_h
|
2237
2237
|
|
2238
2238
|
# Set x-goog-api-client and x-goog-user-project headers
|
2239
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2239
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2240
2240
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2241
2241
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2242
2242
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2257,8 +2257,8 @@ module Google
|
|
2257
2257
|
yield response, operation if block_given?
|
2258
2258
|
return response
|
2259
2259
|
end
|
2260
|
-
rescue GRPC::BadStatus => e
|
2261
|
-
raise Google::Cloud::Error.from_error(e)
|
2260
|
+
rescue ::GRPC::BadStatus => e
|
2261
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2262
2262
|
end
|
2263
2263
|
|
2264
2264
|
##
|
@@ -2266,12 +2266,12 @@ module Google
|
|
2266
2266
|
#
|
2267
2267
|
# @overload set_legacy_abac(request, options = nil)
|
2268
2268
|
# Pass arguments to `set_legacy_abac` via a request object, either of type
|
2269
|
-
# {Google::Cloud::Container::V1::SetLegacyAbacRequest} or an equivalent Hash.
|
2269
|
+
# {::Google::Cloud::Container::V1::SetLegacyAbacRequest} or an equivalent Hash.
|
2270
2270
|
#
|
2271
|
-
# @param request [Google::Cloud::Container::V1::SetLegacyAbacRequest, Hash]
|
2271
|
+
# @param request [::Google::Cloud::Container::V1::SetLegacyAbacRequest, ::Hash]
|
2272
2272
|
# A request object representing the call parameters. Required. To specify no
|
2273
2273
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2274
|
-
# @param options [Gapic::CallOptions, Hash]
|
2274
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2275
2275
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2276
2276
|
#
|
2277
2277
|
# @overload set_legacy_abac(project_id: nil, zone: nil, cluster_id: nil, enabled: nil, name: nil)
|
@@ -2279,45 +2279,45 @@ module Google
|
|
2279
2279
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2280
2280
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2281
2281
|
#
|
2282
|
-
# @param project_id [String]
|
2282
|
+
# @param project_id [::String]
|
2283
2283
|
# Deprecated. The Google Developers Console [project ID or project
|
2284
2284
|
# number](https://support.google.com/cloud/answer/6158840).
|
2285
2285
|
# This field has been deprecated and replaced by the name field.
|
2286
|
-
# @param zone [String]
|
2286
|
+
# @param zone [::String]
|
2287
2287
|
# Deprecated. The name of the Google Compute Engine
|
2288
2288
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2289
2289
|
# resides.
|
2290
2290
|
# This field has been deprecated and replaced by the name field.
|
2291
|
-
# @param cluster_id [String]
|
2291
|
+
# @param cluster_id [::String]
|
2292
2292
|
# Deprecated. The name of the cluster to update.
|
2293
2293
|
# This field has been deprecated and replaced by the name field.
|
2294
|
-
# @param enabled [Boolean]
|
2294
|
+
# @param enabled [::Boolean]
|
2295
2295
|
# Required. Whether ABAC authorization will be enabled in the cluster.
|
2296
|
-
# @param name [String]
|
2296
|
+
# @param name [::String]
|
2297
2297
|
# The name (project, location, cluster id) of the cluster to set legacy abac.
|
2298
2298
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2299
2299
|
#
|
2300
2300
|
# @yield [response, operation] Access the result along with the RPC operation
|
2301
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2302
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2301
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2302
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2303
2303
|
#
|
2304
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2304
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2305
2305
|
#
|
2306
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2306
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2307
2307
|
#
|
2308
2308
|
def set_legacy_abac request, options = nil
|
2309
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2309
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2310
2310
|
|
2311
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetLegacyAbacRequest
|
2311
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetLegacyAbacRequest
|
2312
2312
|
|
2313
2313
|
# Converts hash and nil to an options object
|
2314
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2314
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2315
2315
|
|
2316
2316
|
# Customize the options with defaults
|
2317
2317
|
metadata = @config.rpcs.set_legacy_abac.metadata.to_h
|
2318
2318
|
|
2319
2319
|
# Set x-goog-api-client and x-goog-user-project headers
|
2320
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2320
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2321
2321
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2322
2322
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2323
2323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2338,8 +2338,8 @@ module Google
|
|
2338
2338
|
yield response, operation if block_given?
|
2339
2339
|
return response
|
2340
2340
|
end
|
2341
|
-
rescue GRPC::BadStatus => e
|
2342
|
-
raise Google::Cloud::Error.from_error(e)
|
2341
|
+
rescue ::GRPC::BadStatus => e
|
2342
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2343
2343
|
end
|
2344
2344
|
|
2345
2345
|
##
|
@@ -2347,12 +2347,12 @@ module Google
|
|
2347
2347
|
#
|
2348
2348
|
# @overload start_ip_rotation(request, options = nil)
|
2349
2349
|
# Pass arguments to `start_ip_rotation` via a request object, either of type
|
2350
|
-
# {Google::Cloud::Container::V1::StartIPRotationRequest} or an equivalent Hash.
|
2350
|
+
# {::Google::Cloud::Container::V1::StartIPRotationRequest} or an equivalent Hash.
|
2351
2351
|
#
|
2352
|
-
# @param request [Google::Cloud::Container::V1::StartIPRotationRequest, Hash]
|
2352
|
+
# @param request [::Google::Cloud::Container::V1::StartIPRotationRequest, ::Hash]
|
2353
2353
|
# A request object representing the call parameters. Required. To specify no
|
2354
2354
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2355
|
-
# @param options [Gapic::CallOptions, Hash]
|
2355
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2356
2356
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2357
2357
|
#
|
2358
2358
|
# @overload start_ip_rotation(project_id: nil, zone: nil, cluster_id: nil, name: nil, rotate_credentials: nil)
|
@@ -2360,45 +2360,45 @@ module Google
|
|
2360
2360
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2361
2361
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2362
2362
|
#
|
2363
|
-
# @param project_id [String]
|
2363
|
+
# @param project_id [::String]
|
2364
2364
|
# Deprecated. The Google Developers Console [project ID or project
|
2365
2365
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2366
2366
|
# This field has been deprecated and replaced by the name field.
|
2367
|
-
# @param zone [String]
|
2367
|
+
# @param zone [::String]
|
2368
2368
|
# Deprecated. The name of the Google Compute Engine
|
2369
2369
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2370
2370
|
# resides.
|
2371
2371
|
# This field has been deprecated and replaced by the name field.
|
2372
|
-
# @param cluster_id [String]
|
2372
|
+
# @param cluster_id [::String]
|
2373
2373
|
# Deprecated. The name of the cluster.
|
2374
2374
|
# This field has been deprecated and replaced by the name field.
|
2375
|
-
# @param name [String]
|
2375
|
+
# @param name [::String]
|
2376
2376
|
# The name (project, location, cluster id) of the cluster to start IP
|
2377
2377
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
2378
|
-
# @param rotate_credentials [Boolean]
|
2378
|
+
# @param rotate_credentials [::Boolean]
|
2379
2379
|
# Whether to rotate credentials during IP rotation.
|
2380
2380
|
#
|
2381
2381
|
# @yield [response, operation] Access the result along with the RPC operation
|
2382
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2383
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2382
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2383
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2384
2384
|
#
|
2385
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2385
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2386
2386
|
#
|
2387
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2387
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2388
2388
|
#
|
2389
2389
|
def start_ip_rotation request, options = nil
|
2390
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2390
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2391
2391
|
|
2392
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::StartIPRotationRequest
|
2392
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::StartIPRotationRequest
|
2393
2393
|
|
2394
2394
|
# Converts hash and nil to an options object
|
2395
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2395
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2396
2396
|
|
2397
2397
|
# Customize the options with defaults
|
2398
2398
|
metadata = @config.rpcs.start_ip_rotation.metadata.to_h
|
2399
2399
|
|
2400
2400
|
# Set x-goog-api-client and x-goog-user-project headers
|
2401
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2401
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2402
2402
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2403
2403
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2404
2404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2419,8 +2419,8 @@ module Google
|
|
2419
2419
|
yield response, operation if block_given?
|
2420
2420
|
return response
|
2421
2421
|
end
|
2422
|
-
rescue GRPC::BadStatus => e
|
2423
|
-
raise Google::Cloud::Error.from_error(e)
|
2422
|
+
rescue ::GRPC::BadStatus => e
|
2423
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2424
2424
|
end
|
2425
2425
|
|
2426
2426
|
##
|
@@ -2428,12 +2428,12 @@ module Google
|
|
2428
2428
|
#
|
2429
2429
|
# @overload complete_ip_rotation(request, options = nil)
|
2430
2430
|
# Pass arguments to `complete_ip_rotation` via a request object, either of type
|
2431
|
-
# {Google::Cloud::Container::V1::CompleteIPRotationRequest} or an equivalent Hash.
|
2431
|
+
# {::Google::Cloud::Container::V1::CompleteIPRotationRequest} or an equivalent Hash.
|
2432
2432
|
#
|
2433
|
-
# @param request [Google::Cloud::Container::V1::CompleteIPRotationRequest, Hash]
|
2433
|
+
# @param request [::Google::Cloud::Container::V1::CompleteIPRotationRequest, ::Hash]
|
2434
2434
|
# A request object representing the call parameters. Required. To specify no
|
2435
2435
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2436
|
-
# @param options [Gapic::CallOptions, Hash]
|
2436
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2437
2437
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2438
2438
|
#
|
2439
2439
|
# @overload complete_ip_rotation(project_id: nil, zone: nil, cluster_id: nil, name: nil)
|
@@ -2441,43 +2441,43 @@ module Google
|
|
2441
2441
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2442
2442
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2443
2443
|
#
|
2444
|
-
# @param project_id [String]
|
2444
|
+
# @param project_id [::String]
|
2445
2445
|
# Deprecated. The Google Developers Console [project ID or project
|
2446
2446
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2447
2447
|
# This field has been deprecated and replaced by the name field.
|
2448
|
-
# @param zone [String]
|
2448
|
+
# @param zone [::String]
|
2449
2449
|
# Deprecated. The name of the Google Compute Engine
|
2450
2450
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2451
2451
|
# resides.
|
2452
2452
|
# This field has been deprecated and replaced by the name field.
|
2453
|
-
# @param cluster_id [String]
|
2453
|
+
# @param cluster_id [::String]
|
2454
2454
|
# Deprecated. The name of the cluster.
|
2455
2455
|
# This field has been deprecated and replaced by the name field.
|
2456
|
-
# @param name [String]
|
2456
|
+
# @param name [::String]
|
2457
2457
|
# The name (project, location, cluster id) of the cluster to complete IP
|
2458
2458
|
# rotation. Specified in the format `projects/*/locations/*/clusters/*`.
|
2459
2459
|
#
|
2460
2460
|
# @yield [response, operation] Access the result along with the RPC operation
|
2461
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2462
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2461
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2462
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2463
2463
|
#
|
2464
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2464
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2465
2465
|
#
|
2466
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2466
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2467
2467
|
#
|
2468
2468
|
def complete_ip_rotation request, options = nil
|
2469
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2469
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2470
2470
|
|
2471
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::CompleteIPRotationRequest
|
2471
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::CompleteIPRotationRequest
|
2472
2472
|
|
2473
2473
|
# Converts hash and nil to an options object
|
2474
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2474
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2475
2475
|
|
2476
2476
|
# Customize the options with defaults
|
2477
2477
|
metadata = @config.rpcs.complete_ip_rotation.metadata.to_h
|
2478
2478
|
|
2479
2479
|
# Set x-goog-api-client and x-goog-user-project headers
|
2480
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2480
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2481
2481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2482
2482
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2483
2483
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2498,8 +2498,8 @@ module Google
|
|
2498
2498
|
yield response, operation if block_given?
|
2499
2499
|
return response
|
2500
2500
|
end
|
2501
|
-
rescue GRPC::BadStatus => e
|
2502
|
-
raise Google::Cloud::Error.from_error(e)
|
2501
|
+
rescue ::GRPC::BadStatus => e
|
2502
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2503
2503
|
end
|
2504
2504
|
|
2505
2505
|
##
|
@@ -2507,12 +2507,12 @@ module Google
|
|
2507
2507
|
#
|
2508
2508
|
# @overload set_node_pool_size(request, options = nil)
|
2509
2509
|
# Pass arguments to `set_node_pool_size` via a request object, either of type
|
2510
|
-
# {Google::Cloud::Container::V1::SetNodePoolSizeRequest} or an equivalent Hash.
|
2510
|
+
# {::Google::Cloud::Container::V1::SetNodePoolSizeRequest} or an equivalent Hash.
|
2511
2511
|
#
|
2512
|
-
# @param request [Google::Cloud::Container::V1::SetNodePoolSizeRequest, Hash]
|
2512
|
+
# @param request [::Google::Cloud::Container::V1::SetNodePoolSizeRequest, ::Hash]
|
2513
2513
|
# A request object representing the call parameters. Required. To specify no
|
2514
2514
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2515
|
-
# @param options [Gapic::CallOptions, Hash]
|
2515
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2516
2516
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2517
2517
|
#
|
2518
2518
|
# @overload set_node_pool_size(project_id: nil, zone: nil, cluster_id: nil, node_pool_id: nil, node_count: nil, name: nil)
|
@@ -2520,49 +2520,49 @@ module Google
|
|
2520
2520
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2521
2521
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2522
2522
|
#
|
2523
|
-
# @param project_id [String]
|
2523
|
+
# @param project_id [::String]
|
2524
2524
|
# Deprecated. The Google Developers Console [project ID or project
|
2525
2525
|
# number](https://support.google.com/cloud/answer/6158840).
|
2526
2526
|
# This field has been deprecated and replaced by the name field.
|
2527
|
-
# @param zone [String]
|
2527
|
+
# @param zone [::String]
|
2528
2528
|
# Deprecated. The name of the Google Compute Engine
|
2529
2529
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2530
2530
|
# resides.
|
2531
2531
|
# This field has been deprecated and replaced by the name field.
|
2532
|
-
# @param cluster_id [String]
|
2532
|
+
# @param cluster_id [::String]
|
2533
2533
|
# Deprecated. The name of the cluster to update.
|
2534
2534
|
# This field has been deprecated and replaced by the name field.
|
2535
|
-
# @param node_pool_id [String]
|
2535
|
+
# @param node_pool_id [::String]
|
2536
2536
|
# Deprecated. The name of the node pool to update.
|
2537
2537
|
# This field has been deprecated and replaced by the name field.
|
2538
|
-
# @param node_count [Integer]
|
2538
|
+
# @param node_count [::Integer]
|
2539
2539
|
# Required. The desired node count for the pool.
|
2540
|
-
# @param name [String]
|
2540
|
+
# @param name [::String]
|
2541
2541
|
# The name (project, location, cluster, node pool id) of the node pool to set
|
2542
2542
|
# size.
|
2543
2543
|
# Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
|
2544
2544
|
#
|
2545
2545
|
# @yield [response, operation] Access the result along with the RPC operation
|
2546
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2547
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2546
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2547
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2548
2548
|
#
|
2549
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2549
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2550
2550
|
#
|
2551
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2551
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2552
2552
|
#
|
2553
2553
|
def set_node_pool_size request, options = nil
|
2554
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2554
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2555
2555
|
|
2556
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetNodePoolSizeRequest
|
2556
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetNodePoolSizeRequest
|
2557
2557
|
|
2558
2558
|
# Converts hash and nil to an options object
|
2559
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2559
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2560
2560
|
|
2561
2561
|
# Customize the options with defaults
|
2562
2562
|
metadata = @config.rpcs.set_node_pool_size.metadata.to_h
|
2563
2563
|
|
2564
2564
|
# Set x-goog-api-client and x-goog-user-project headers
|
2565
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2565
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2566
2566
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2567
2567
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2568
2568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2583,8 +2583,8 @@ module Google
|
|
2583
2583
|
yield response, operation if block_given?
|
2584
2584
|
return response
|
2585
2585
|
end
|
2586
|
-
rescue GRPC::BadStatus => e
|
2587
|
-
raise Google::Cloud::Error.from_error(e)
|
2586
|
+
rescue ::GRPC::BadStatus => e
|
2587
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2588
2588
|
end
|
2589
2589
|
|
2590
2590
|
##
|
@@ -2592,12 +2592,12 @@ module Google
|
|
2592
2592
|
#
|
2593
2593
|
# @overload set_network_policy(request, options = nil)
|
2594
2594
|
# Pass arguments to `set_network_policy` via a request object, either of type
|
2595
|
-
# {Google::Cloud::Container::V1::SetNetworkPolicyRequest} or an equivalent Hash.
|
2595
|
+
# {::Google::Cloud::Container::V1::SetNetworkPolicyRequest} or an equivalent Hash.
|
2596
2596
|
#
|
2597
|
-
# @param request [Google::Cloud::Container::V1::SetNetworkPolicyRequest, Hash]
|
2597
|
+
# @param request [::Google::Cloud::Container::V1::SetNetworkPolicyRequest, ::Hash]
|
2598
2598
|
# A request object representing the call parameters. Required. To specify no
|
2599
2599
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2600
|
-
# @param options [Gapic::CallOptions, Hash]
|
2600
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2601
2601
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2602
2602
|
#
|
2603
2603
|
# @overload set_network_policy(project_id: nil, zone: nil, cluster_id: nil, network_policy: nil, name: nil)
|
@@ -2605,45 +2605,45 @@ module Google
|
|
2605
2605
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2606
2606
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2607
2607
|
#
|
2608
|
-
# @param project_id [String]
|
2608
|
+
# @param project_id [::String]
|
2609
2609
|
# Deprecated. The Google Developers Console [project ID or project
|
2610
2610
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2611
2611
|
# This field has been deprecated and replaced by the name field.
|
2612
|
-
# @param zone [String]
|
2612
|
+
# @param zone [::String]
|
2613
2613
|
# Deprecated. The name of the Google Compute Engine
|
2614
2614
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2615
2615
|
# resides.
|
2616
2616
|
# This field has been deprecated and replaced by the name field.
|
2617
|
-
# @param cluster_id [String]
|
2617
|
+
# @param cluster_id [::String]
|
2618
2618
|
# Deprecated. The name of the cluster.
|
2619
2619
|
# This field has been deprecated and replaced by the name field.
|
2620
|
-
# @param network_policy [Google::Cloud::Container::V1::NetworkPolicy, Hash]
|
2620
|
+
# @param network_policy [::Google::Cloud::Container::V1::NetworkPolicy, ::Hash]
|
2621
2621
|
# Required. Configuration options for the NetworkPolicy feature.
|
2622
|
-
# @param name [String]
|
2622
|
+
# @param name [::String]
|
2623
2623
|
# The name (project, location, cluster id) of the cluster to set networking
|
2624
2624
|
# policy. Specified in the format `projects/*/locations/*/clusters/*`.
|
2625
2625
|
#
|
2626
2626
|
# @yield [response, operation] Access the result along with the RPC operation
|
2627
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2628
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2627
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2628
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2629
2629
|
#
|
2630
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2630
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2631
2631
|
#
|
2632
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2632
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2633
2633
|
#
|
2634
2634
|
def set_network_policy request, options = nil
|
2635
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2635
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2636
2636
|
|
2637
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetNetworkPolicyRequest
|
2637
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetNetworkPolicyRequest
|
2638
2638
|
|
2639
2639
|
# Converts hash and nil to an options object
|
2640
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2640
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2641
2641
|
|
2642
2642
|
# Customize the options with defaults
|
2643
2643
|
metadata = @config.rpcs.set_network_policy.metadata.to_h
|
2644
2644
|
|
2645
2645
|
# Set x-goog-api-client and x-goog-user-project headers
|
2646
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2646
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2647
2647
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2648
2648
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2649
2649
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2664,8 +2664,8 @@ module Google
|
|
2664
2664
|
yield response, operation if block_given?
|
2665
2665
|
return response
|
2666
2666
|
end
|
2667
|
-
rescue GRPC::BadStatus => e
|
2668
|
-
raise Google::Cloud::Error.from_error(e)
|
2667
|
+
rescue ::GRPC::BadStatus => e
|
2668
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2669
2669
|
end
|
2670
2670
|
|
2671
2671
|
##
|
@@ -2673,12 +2673,12 @@ module Google
|
|
2673
2673
|
#
|
2674
2674
|
# @overload set_maintenance_policy(request, options = nil)
|
2675
2675
|
# Pass arguments to `set_maintenance_policy` via a request object, either of type
|
2676
|
-
# {Google::Cloud::Container::V1::SetMaintenancePolicyRequest} or an equivalent Hash.
|
2676
|
+
# {::Google::Cloud::Container::V1::SetMaintenancePolicyRequest} or an equivalent Hash.
|
2677
2677
|
#
|
2678
|
-
# @param request [Google::Cloud::Container::V1::SetMaintenancePolicyRequest, Hash]
|
2678
|
+
# @param request [::Google::Cloud::Container::V1::SetMaintenancePolicyRequest, ::Hash]
|
2679
2679
|
# A request object representing the call parameters. Required. To specify no
|
2680
2680
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2681
|
-
# @param options [Gapic::CallOptions, Hash]
|
2681
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2682
2682
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2683
2683
|
#
|
2684
2684
|
# @overload set_maintenance_policy(project_id: nil, zone: nil, cluster_id: nil, maintenance_policy: nil, name: nil)
|
@@ -2686,44 +2686,44 @@ module Google
|
|
2686
2686
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2687
2687
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2688
2688
|
#
|
2689
|
-
# @param project_id [String]
|
2689
|
+
# @param project_id [::String]
|
2690
2690
|
# Required. The Google Developers Console [project ID or project
|
2691
2691
|
# number](https://support.google.com/cloud/answer/6158840).
|
2692
|
-
# @param zone [String]
|
2692
|
+
# @param zone [::String]
|
2693
2693
|
# Required. The name of the Google Compute Engine
|
2694
2694
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
2695
2695
|
# resides.
|
2696
|
-
# @param cluster_id [String]
|
2696
|
+
# @param cluster_id [::String]
|
2697
2697
|
# Required. The name of the cluster to update.
|
2698
|
-
# @param maintenance_policy [Google::Cloud::Container::V1::MaintenancePolicy, Hash]
|
2698
|
+
# @param maintenance_policy [::Google::Cloud::Container::V1::MaintenancePolicy, ::Hash]
|
2699
2699
|
# Required. The maintenance policy to be set for the cluster. An empty field
|
2700
2700
|
# clears the existing maintenance policy.
|
2701
|
-
# @param name [String]
|
2701
|
+
# @param name [::String]
|
2702
2702
|
# The name (project, location, cluster id) of the cluster to set maintenance
|
2703
2703
|
# policy.
|
2704
2704
|
# Specified in the format `projects/*/locations/*/clusters/*`.
|
2705
2705
|
#
|
2706
2706
|
# @yield [response, operation] Access the result along with the RPC operation
|
2707
|
-
# @yieldparam response [Google::Cloud::Container::V1::Operation]
|
2708
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2707
|
+
# @yieldparam response [::Google::Cloud::Container::V1::Operation]
|
2708
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2709
2709
|
#
|
2710
|
-
# @return [Google::Cloud::Container::V1::Operation]
|
2710
|
+
# @return [::Google::Cloud::Container::V1::Operation]
|
2711
2711
|
#
|
2712
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2712
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2713
2713
|
#
|
2714
2714
|
def set_maintenance_policy request, options = nil
|
2715
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2715
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2716
2716
|
|
2717
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::SetMaintenancePolicyRequest
|
2717
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::SetMaintenancePolicyRequest
|
2718
2718
|
|
2719
2719
|
# Converts hash and nil to an options object
|
2720
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2720
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2721
2721
|
|
2722
2722
|
# Customize the options with defaults
|
2723
2723
|
metadata = @config.rpcs.set_maintenance_policy.metadata.to_h
|
2724
2724
|
|
2725
2725
|
# Set x-goog-api-client and x-goog-user-project headers
|
2726
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2726
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2727
2727
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2728
2728
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2729
2729
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2744,8 +2744,8 @@ module Google
|
|
2744
2744
|
yield response, operation if block_given?
|
2745
2745
|
return response
|
2746
2746
|
end
|
2747
|
-
rescue GRPC::BadStatus => e
|
2748
|
-
raise Google::Cloud::Error.from_error(e)
|
2747
|
+
rescue ::GRPC::BadStatus => e
|
2748
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2749
2749
|
end
|
2750
2750
|
|
2751
2751
|
##
|
@@ -2753,12 +2753,12 @@ module Google
|
|
2753
2753
|
#
|
2754
2754
|
# @overload list_usable_subnetworks(request, options = nil)
|
2755
2755
|
# Pass arguments to `list_usable_subnetworks` via a request object, either of type
|
2756
|
-
# {Google::Cloud::Container::V1::ListUsableSubnetworksRequest} or an equivalent Hash.
|
2756
|
+
# {::Google::Cloud::Container::V1::ListUsableSubnetworksRequest} or an equivalent Hash.
|
2757
2757
|
#
|
2758
|
-
# @param request [Google::Cloud::Container::V1::ListUsableSubnetworksRequest, Hash]
|
2758
|
+
# @param request [::Google::Cloud::Container::V1::ListUsableSubnetworksRequest, ::Hash]
|
2759
2759
|
# A request object representing the call parameters. Required. To specify no
|
2760
2760
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2761
|
-
# @param options [Gapic::CallOptions, Hash]
|
2761
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2762
2762
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2763
2763
|
#
|
2764
2764
|
# @overload list_usable_subnetworks(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -2766,44 +2766,44 @@ module Google
|
|
2766
2766
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2767
2767
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2768
2768
|
#
|
2769
|
-
# @param parent [String]
|
2769
|
+
# @param parent [::String]
|
2770
2770
|
# The parent project where subnetworks are usable.
|
2771
2771
|
# Specified in the format `projects/*`.
|
2772
|
-
# @param filter [String]
|
2772
|
+
# @param filter [::String]
|
2773
2773
|
# Filtering currently only supports equality on the networkProjectId and must
|
2774
2774
|
# be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
|
2775
2775
|
# is the project which owns the listed subnetworks. This defaults to the
|
2776
2776
|
# parent project ID.
|
2777
|
-
# @param page_size [Integer]
|
2777
|
+
# @param page_size [::Integer]
|
2778
2778
|
# The max number of results per page that should be returned. If the number
|
2779
2779
|
# of available results is larger than `page_size`, a `next_page_token` is
|
2780
2780
|
# returned which can be used to get the next page of results in subsequent
|
2781
2781
|
# requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
|
2782
|
-
# @param page_token [String]
|
2782
|
+
# @param page_token [::String]
|
2783
2783
|
# Specifies a page token to use. Set this to the nextPageToken returned by
|
2784
2784
|
# previous list requests to get the next page of results.
|
2785
2785
|
#
|
2786
2786
|
# @yield [response, operation] Access the result along with the RPC operation
|
2787
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
2788
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2787
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Container::V1::UsableSubnetwork>]
|
2788
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2789
2789
|
#
|
2790
|
-
# @return [Gapic::PagedEnumerable
|
2790
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Container::V1::UsableSubnetwork>]
|
2791
2791
|
#
|
2792
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2792
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2793
2793
|
#
|
2794
2794
|
def list_usable_subnetworks request, options = nil
|
2795
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2795
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2796
2796
|
|
2797
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::Container::V1::ListUsableSubnetworksRequest
|
2797
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Container::V1::ListUsableSubnetworksRequest
|
2798
2798
|
|
2799
2799
|
# Converts hash and nil to an options object
|
2800
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2800
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2801
2801
|
|
2802
2802
|
# Customize the options with defaults
|
2803
2803
|
metadata = @config.rpcs.list_usable_subnetworks.metadata.to_h
|
2804
2804
|
|
2805
2805
|
# Set x-goog-api-client and x-goog-user-project headers
|
2806
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2806
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2807
2807
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2808
2808
|
gapic_version: ::Google::Cloud::Container::V1::VERSION
|
2809
2809
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2821,12 +2821,12 @@ module Google
|
|
2821
2821
|
retry_policy: @config.retry_policy
|
2822
2822
|
|
2823
2823
|
@cluster_manager_stub.call_rpc :list_usable_subnetworks, request, options: options do |response, operation|
|
2824
|
-
response = Gapic::PagedEnumerable.new @cluster_manager_stub, :list_usable_subnetworks, request, response, operation, options
|
2824
|
+
response = ::Gapic::PagedEnumerable.new @cluster_manager_stub, :list_usable_subnetworks, request, response, operation, options
|
2825
2825
|
yield response, operation if block_given?
|
2826
2826
|
return response
|
2827
2827
|
end
|
2828
|
-
rescue GRPC::BadStatus => e
|
2829
|
-
raise Google::Cloud::Error.from_error(e)
|
2828
|
+
rescue ::GRPC::BadStatus => e
|
2829
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2830
2830
|
end
|
2831
2831
|
|
2832
2832
|
##
|
@@ -2836,7 +2836,7 @@ module Google
|
|
2836
2836
|
# providing control over timeouts, retry behavior, logging, transport
|
2837
2837
|
# parameters, and other low-level controls. Certain parameters can also be
|
2838
2838
|
# applied individually to specific RPCs. See
|
2839
|
-
# {Google::Cloud::Container::V1::ClusterManager::Client::Configuration::Rpcs}
|
2839
|
+
# {::Google::Cloud::Container::V1::ClusterManager::Client::Configuration::Rpcs}
|
2840
2840
|
# for a list of RPCs that can be configured independently.
|
2841
2841
|
#
|
2842
2842
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -2847,22 +2847,22 @@ module Google
|
|
2847
2847
|
# To modify the global config, setting the timeout for list_clusters
|
2848
2848
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2849
2849
|
#
|
2850
|
-
# Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
2851
|
-
# config.timeout =
|
2852
|
-
# config.rpcs.list_clusters.timeout =
|
2850
|
+
# ::Google::Cloud::Container::V1::ClusterManager::Client.configure do |config|
|
2851
|
+
# config.timeout = 10.0
|
2852
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
2853
2853
|
# end
|
2854
2854
|
#
|
2855
2855
|
# To apply the above configuration only to a new client:
|
2856
2856
|
#
|
2857
|
-
# client = Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
2858
|
-
# config.timeout =
|
2859
|
-
# config.rpcs.list_clusters.timeout =
|
2857
|
+
# client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
2858
|
+
# config.timeout = 10.0
|
2859
|
+
# config.rpcs.list_clusters.timeout = 20.0
|
2860
2860
|
# end
|
2861
2861
|
#
|
2862
2862
|
# @!attribute [rw] endpoint
|
2863
2863
|
# The hostname or hostname:port of the service endpoint.
|
2864
2864
|
# Defaults to `"container.googleapis.com"`.
|
2865
|
-
# @return [String]
|
2865
|
+
# @return [::String]
|
2866
2866
|
# @!attribute [rw] credentials
|
2867
2867
|
# Credentials to send with calls. You may provide any of the following types:
|
2868
2868
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2874,29 +2874,29 @@ module Google
|
|
2874
2874
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2875
2875
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2876
2876
|
# * (`nil`) indicating no credentials
|
2877
|
-
# @return [Object]
|
2877
|
+
# @return [::Object]
|
2878
2878
|
# @!attribute [rw] scope
|
2879
2879
|
# The OAuth scopes
|
2880
|
-
# @return [Array
|
2880
|
+
# @return [::Array<::String>]
|
2881
2881
|
# @!attribute [rw] lib_name
|
2882
2882
|
# The library name as recorded in instrumentation and logging
|
2883
|
-
# @return [String]
|
2883
|
+
# @return [::String]
|
2884
2884
|
# @!attribute [rw] lib_version
|
2885
2885
|
# The library version as recorded in instrumentation and logging
|
2886
|
-
# @return [String]
|
2886
|
+
# @return [::String]
|
2887
2887
|
# @!attribute [rw] channel_args
|
2888
2888
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2889
2889
|
# `GRPC::Core::Channel` object is provided as the credential.
|
2890
|
-
# @return [Hash]
|
2890
|
+
# @return [::Hash]
|
2891
2891
|
# @!attribute [rw] interceptors
|
2892
2892
|
# An array of interceptors that are run before calls are executed.
|
2893
|
-
# @return [Array
|
2893
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2894
2894
|
# @!attribute [rw] timeout
|
2895
|
-
# The call timeout in
|
2896
|
-
# @return [Numeric]
|
2895
|
+
# The call timeout in seconds.
|
2896
|
+
# @return [::Numeric]
|
2897
2897
|
# @!attribute [rw] metadata
|
2898
2898
|
# Additional gRPC headers to be sent with the call.
|
2899
|
-
# @return [Hash{Symbol
|
2899
|
+
# @return [::Hash{::Symbol=>::String}]
|
2900
2900
|
# @!attribute [rw] retry_policy
|
2901
2901
|
# The retry policy. The value is a hash with the following keys:
|
2902
2902
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -2904,10 +2904,10 @@ module Google
|
|
2904
2904
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2905
2905
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2906
2906
|
# trigger a retry.
|
2907
|
-
# @return [Hash]
|
2907
|
+
# @return [::Hash]
|
2908
2908
|
#
|
2909
2909
|
class Configuration
|
2910
|
-
extend Gapic::Config
|
2910
|
+
extend ::Gapic::Config
|
2911
2911
|
|
2912
2912
|
config_attr :endpoint, "container.googleapis.com", String
|
2913
2913
|
config_attr :credentials, nil do |value|
|
@@ -2915,14 +2915,14 @@ module Google
|
|
2915
2915
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2916
2916
|
allowed.any? { |klass| klass === value }
|
2917
2917
|
end
|
2918
|
-
config_attr :scope, nil, String, Array, nil
|
2919
|
-
config_attr :lib_name, nil, String, nil
|
2920
|
-
config_attr :lib_version, nil, String, nil
|
2921
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
|
2922
|
-
config_attr :interceptors, nil, Array, nil
|
2923
|
-
config_attr :timeout, nil, Numeric, nil
|
2924
|
-
config_attr :metadata, nil, Hash, nil
|
2925
|
-
config_attr :retry_policy, nil, Hash, Proc, nil
|
2918
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2919
|
+
config_attr :lib_name, nil, ::String, nil
|
2920
|
+
config_attr :lib_version, nil, ::String, nil
|
2921
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2922
|
+
config_attr :interceptors, nil, ::Array, nil
|
2923
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2924
|
+
config_attr :metadata, nil, ::Hash, nil
|
2925
|
+
config_attr :retry_policy, nil, ::Hash, Proc, nil
|
2926
2926
|
|
2927
2927
|
# @private
|
2928
2928
|
def initialize parent_config = nil
|
@@ -2963,224 +2963,224 @@ module Google
|
|
2963
2963
|
class Rpcs
|
2964
2964
|
##
|
2965
2965
|
# RPC-specific configuration for `list_clusters`
|
2966
|
-
# @return [Gapic::Config::Method]
|
2966
|
+
# @return [::Gapic::Config::Method]
|
2967
2967
|
#
|
2968
2968
|
attr_reader :list_clusters
|
2969
2969
|
##
|
2970
2970
|
# RPC-specific configuration for `get_cluster`
|
2971
|
-
# @return [Gapic::Config::Method]
|
2971
|
+
# @return [::Gapic::Config::Method]
|
2972
2972
|
#
|
2973
2973
|
attr_reader :get_cluster
|
2974
2974
|
##
|
2975
2975
|
# RPC-specific configuration for `create_cluster`
|
2976
|
-
# @return [Gapic::Config::Method]
|
2976
|
+
# @return [::Gapic::Config::Method]
|
2977
2977
|
#
|
2978
2978
|
attr_reader :create_cluster
|
2979
2979
|
##
|
2980
2980
|
# RPC-specific configuration for `update_cluster`
|
2981
|
-
# @return [Gapic::Config::Method]
|
2981
|
+
# @return [::Gapic::Config::Method]
|
2982
2982
|
#
|
2983
2983
|
attr_reader :update_cluster
|
2984
2984
|
##
|
2985
2985
|
# RPC-specific configuration for `update_node_pool`
|
2986
|
-
# @return [Gapic::Config::Method]
|
2986
|
+
# @return [::Gapic::Config::Method]
|
2987
2987
|
#
|
2988
2988
|
attr_reader :update_node_pool
|
2989
2989
|
##
|
2990
2990
|
# RPC-specific configuration for `set_node_pool_autoscaling`
|
2991
|
-
# @return [Gapic::Config::Method]
|
2991
|
+
# @return [::Gapic::Config::Method]
|
2992
2992
|
#
|
2993
2993
|
attr_reader :set_node_pool_autoscaling
|
2994
2994
|
##
|
2995
2995
|
# RPC-specific configuration for `set_logging_service`
|
2996
|
-
# @return [Gapic::Config::Method]
|
2996
|
+
# @return [::Gapic::Config::Method]
|
2997
2997
|
#
|
2998
2998
|
attr_reader :set_logging_service
|
2999
2999
|
##
|
3000
3000
|
# RPC-specific configuration for `set_monitoring_service`
|
3001
|
-
# @return [Gapic::Config::Method]
|
3001
|
+
# @return [::Gapic::Config::Method]
|
3002
3002
|
#
|
3003
3003
|
attr_reader :set_monitoring_service
|
3004
3004
|
##
|
3005
3005
|
# RPC-specific configuration for `set_addons_config`
|
3006
|
-
# @return [Gapic::Config::Method]
|
3006
|
+
# @return [::Gapic::Config::Method]
|
3007
3007
|
#
|
3008
3008
|
attr_reader :set_addons_config
|
3009
3009
|
##
|
3010
3010
|
# RPC-specific configuration for `set_locations`
|
3011
|
-
# @return [Gapic::Config::Method]
|
3011
|
+
# @return [::Gapic::Config::Method]
|
3012
3012
|
#
|
3013
3013
|
attr_reader :set_locations
|
3014
3014
|
##
|
3015
3015
|
# RPC-specific configuration for `update_master`
|
3016
|
-
# @return [Gapic::Config::Method]
|
3016
|
+
# @return [::Gapic::Config::Method]
|
3017
3017
|
#
|
3018
3018
|
attr_reader :update_master
|
3019
3019
|
##
|
3020
3020
|
# RPC-specific configuration for `set_master_auth`
|
3021
|
-
# @return [Gapic::Config::Method]
|
3021
|
+
# @return [::Gapic::Config::Method]
|
3022
3022
|
#
|
3023
3023
|
attr_reader :set_master_auth
|
3024
3024
|
##
|
3025
3025
|
# RPC-specific configuration for `delete_cluster`
|
3026
|
-
# @return [Gapic::Config::Method]
|
3026
|
+
# @return [::Gapic::Config::Method]
|
3027
3027
|
#
|
3028
3028
|
attr_reader :delete_cluster
|
3029
3029
|
##
|
3030
3030
|
# RPC-specific configuration for `list_operations`
|
3031
|
-
# @return [Gapic::Config::Method]
|
3031
|
+
# @return [::Gapic::Config::Method]
|
3032
3032
|
#
|
3033
3033
|
attr_reader :list_operations
|
3034
3034
|
##
|
3035
3035
|
# RPC-specific configuration for `get_operation`
|
3036
|
-
# @return [Gapic::Config::Method]
|
3036
|
+
# @return [::Gapic::Config::Method]
|
3037
3037
|
#
|
3038
3038
|
attr_reader :get_operation
|
3039
3039
|
##
|
3040
3040
|
# RPC-specific configuration for `cancel_operation`
|
3041
|
-
# @return [Gapic::Config::Method]
|
3041
|
+
# @return [::Gapic::Config::Method]
|
3042
3042
|
#
|
3043
3043
|
attr_reader :cancel_operation
|
3044
3044
|
##
|
3045
3045
|
# RPC-specific configuration for `get_server_config`
|
3046
|
-
# @return [Gapic::Config::Method]
|
3046
|
+
# @return [::Gapic::Config::Method]
|
3047
3047
|
#
|
3048
3048
|
attr_reader :get_server_config
|
3049
3049
|
##
|
3050
3050
|
# RPC-specific configuration for `list_node_pools`
|
3051
|
-
# @return [Gapic::Config::Method]
|
3051
|
+
# @return [::Gapic::Config::Method]
|
3052
3052
|
#
|
3053
3053
|
attr_reader :list_node_pools
|
3054
3054
|
##
|
3055
3055
|
# RPC-specific configuration for `get_node_pool`
|
3056
|
-
# @return [Gapic::Config::Method]
|
3056
|
+
# @return [::Gapic::Config::Method]
|
3057
3057
|
#
|
3058
3058
|
attr_reader :get_node_pool
|
3059
3059
|
##
|
3060
3060
|
# RPC-specific configuration for `create_node_pool`
|
3061
|
-
# @return [Gapic::Config::Method]
|
3061
|
+
# @return [::Gapic::Config::Method]
|
3062
3062
|
#
|
3063
3063
|
attr_reader :create_node_pool
|
3064
3064
|
##
|
3065
3065
|
# RPC-specific configuration for `delete_node_pool`
|
3066
|
-
# @return [Gapic::Config::Method]
|
3066
|
+
# @return [::Gapic::Config::Method]
|
3067
3067
|
#
|
3068
3068
|
attr_reader :delete_node_pool
|
3069
3069
|
##
|
3070
3070
|
# RPC-specific configuration for `rollback_node_pool_upgrade`
|
3071
|
-
# @return [Gapic::Config::Method]
|
3071
|
+
# @return [::Gapic::Config::Method]
|
3072
3072
|
#
|
3073
3073
|
attr_reader :rollback_node_pool_upgrade
|
3074
3074
|
##
|
3075
3075
|
# RPC-specific configuration for `set_node_pool_management`
|
3076
|
-
# @return [Gapic::Config::Method]
|
3076
|
+
# @return [::Gapic::Config::Method]
|
3077
3077
|
#
|
3078
3078
|
attr_reader :set_node_pool_management
|
3079
3079
|
##
|
3080
3080
|
# RPC-specific configuration for `set_labels`
|
3081
|
-
# @return [Gapic::Config::Method]
|
3081
|
+
# @return [::Gapic::Config::Method]
|
3082
3082
|
#
|
3083
3083
|
attr_reader :set_labels
|
3084
3084
|
##
|
3085
3085
|
# RPC-specific configuration for `set_legacy_abac`
|
3086
|
-
# @return [Gapic::Config::Method]
|
3086
|
+
# @return [::Gapic::Config::Method]
|
3087
3087
|
#
|
3088
3088
|
attr_reader :set_legacy_abac
|
3089
3089
|
##
|
3090
3090
|
# RPC-specific configuration for `start_ip_rotation`
|
3091
|
-
# @return [Gapic::Config::Method]
|
3091
|
+
# @return [::Gapic::Config::Method]
|
3092
3092
|
#
|
3093
3093
|
attr_reader :start_ip_rotation
|
3094
3094
|
##
|
3095
3095
|
# RPC-specific configuration for `complete_ip_rotation`
|
3096
|
-
# @return [Gapic::Config::Method]
|
3096
|
+
# @return [::Gapic::Config::Method]
|
3097
3097
|
#
|
3098
3098
|
attr_reader :complete_ip_rotation
|
3099
3099
|
##
|
3100
3100
|
# RPC-specific configuration for `set_node_pool_size`
|
3101
|
-
# @return [Gapic::Config::Method]
|
3101
|
+
# @return [::Gapic::Config::Method]
|
3102
3102
|
#
|
3103
3103
|
attr_reader :set_node_pool_size
|
3104
3104
|
##
|
3105
3105
|
# RPC-specific configuration for `set_network_policy`
|
3106
|
-
# @return [Gapic::Config::Method]
|
3106
|
+
# @return [::Gapic::Config::Method]
|
3107
3107
|
#
|
3108
3108
|
attr_reader :set_network_policy
|
3109
3109
|
##
|
3110
3110
|
# RPC-specific configuration for `set_maintenance_policy`
|
3111
|
-
# @return [Gapic::Config::Method]
|
3111
|
+
# @return [::Gapic::Config::Method]
|
3112
3112
|
#
|
3113
3113
|
attr_reader :set_maintenance_policy
|
3114
3114
|
##
|
3115
3115
|
# RPC-specific configuration for `list_usable_subnetworks`
|
3116
|
-
# @return [Gapic::Config::Method]
|
3116
|
+
# @return [::Gapic::Config::Method]
|
3117
3117
|
#
|
3118
3118
|
attr_reader :list_usable_subnetworks
|
3119
3119
|
|
3120
3120
|
# @private
|
3121
3121
|
def initialize parent_rpcs = nil
|
3122
3122
|
list_clusters_config = parent_rpcs&.list_clusters if parent_rpcs&.respond_to? :list_clusters
|
3123
|
-
@list_clusters = Gapic::Config::Method.new list_clusters_config
|
3123
|
+
@list_clusters = ::Gapic::Config::Method.new list_clusters_config
|
3124
3124
|
get_cluster_config = parent_rpcs&.get_cluster if parent_rpcs&.respond_to? :get_cluster
|
3125
|
-
@get_cluster = Gapic::Config::Method.new get_cluster_config
|
3125
|
+
@get_cluster = ::Gapic::Config::Method.new get_cluster_config
|
3126
3126
|
create_cluster_config = parent_rpcs&.create_cluster if parent_rpcs&.respond_to? :create_cluster
|
3127
|
-
@create_cluster = Gapic::Config::Method.new create_cluster_config
|
3127
|
+
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
3128
3128
|
update_cluster_config = parent_rpcs&.update_cluster if parent_rpcs&.respond_to? :update_cluster
|
3129
|
-
@update_cluster = Gapic::Config::Method.new update_cluster_config
|
3129
|
+
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
3130
3130
|
update_node_pool_config = parent_rpcs&.update_node_pool if parent_rpcs&.respond_to? :update_node_pool
|
3131
|
-
@update_node_pool = Gapic::Config::Method.new update_node_pool_config
|
3131
|
+
@update_node_pool = ::Gapic::Config::Method.new update_node_pool_config
|
3132
3132
|
set_node_pool_autoscaling_config = parent_rpcs&.set_node_pool_autoscaling if parent_rpcs&.respond_to? :set_node_pool_autoscaling
|
3133
|
-
@set_node_pool_autoscaling = Gapic::Config::Method.new set_node_pool_autoscaling_config
|
3133
|
+
@set_node_pool_autoscaling = ::Gapic::Config::Method.new set_node_pool_autoscaling_config
|
3134
3134
|
set_logging_service_config = parent_rpcs&.set_logging_service if parent_rpcs&.respond_to? :set_logging_service
|
3135
|
-
@set_logging_service = Gapic::Config::Method.new set_logging_service_config
|
3135
|
+
@set_logging_service = ::Gapic::Config::Method.new set_logging_service_config
|
3136
3136
|
set_monitoring_service_config = parent_rpcs&.set_monitoring_service if parent_rpcs&.respond_to? :set_monitoring_service
|
3137
|
-
@set_monitoring_service = Gapic::Config::Method.new set_monitoring_service_config
|
3137
|
+
@set_monitoring_service = ::Gapic::Config::Method.new set_monitoring_service_config
|
3138
3138
|
set_addons_config_config = parent_rpcs&.set_addons_config if parent_rpcs&.respond_to? :set_addons_config
|
3139
|
-
@set_addons_config = Gapic::Config::Method.new set_addons_config_config
|
3139
|
+
@set_addons_config = ::Gapic::Config::Method.new set_addons_config_config
|
3140
3140
|
set_locations_config = parent_rpcs&.set_locations if parent_rpcs&.respond_to? :set_locations
|
3141
|
-
@set_locations = Gapic::Config::Method.new set_locations_config
|
3141
|
+
@set_locations = ::Gapic::Config::Method.new set_locations_config
|
3142
3142
|
update_master_config = parent_rpcs&.update_master if parent_rpcs&.respond_to? :update_master
|
3143
|
-
@update_master = Gapic::Config::Method.new update_master_config
|
3143
|
+
@update_master = ::Gapic::Config::Method.new update_master_config
|
3144
3144
|
set_master_auth_config = parent_rpcs&.set_master_auth if parent_rpcs&.respond_to? :set_master_auth
|
3145
|
-
@set_master_auth = Gapic::Config::Method.new set_master_auth_config
|
3145
|
+
@set_master_auth = ::Gapic::Config::Method.new set_master_auth_config
|
3146
3146
|
delete_cluster_config = parent_rpcs&.delete_cluster if parent_rpcs&.respond_to? :delete_cluster
|
3147
|
-
@delete_cluster = Gapic::Config::Method.new delete_cluster_config
|
3147
|
+
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
3148
3148
|
list_operations_config = parent_rpcs&.list_operations if parent_rpcs&.respond_to? :list_operations
|
3149
|
-
@list_operations = Gapic::Config::Method.new list_operations_config
|
3149
|
+
@list_operations = ::Gapic::Config::Method.new list_operations_config
|
3150
3150
|
get_operation_config = parent_rpcs&.get_operation if parent_rpcs&.respond_to? :get_operation
|
3151
|
-
@get_operation = Gapic::Config::Method.new get_operation_config
|
3151
|
+
@get_operation = ::Gapic::Config::Method.new get_operation_config
|
3152
3152
|
cancel_operation_config = parent_rpcs&.cancel_operation if parent_rpcs&.respond_to? :cancel_operation
|
3153
|
-
@cancel_operation = Gapic::Config::Method.new cancel_operation_config
|
3153
|
+
@cancel_operation = ::Gapic::Config::Method.new cancel_operation_config
|
3154
3154
|
get_server_config_config = parent_rpcs&.get_server_config if parent_rpcs&.respond_to? :get_server_config
|
3155
|
-
@get_server_config = Gapic::Config::Method.new get_server_config_config
|
3155
|
+
@get_server_config = ::Gapic::Config::Method.new get_server_config_config
|
3156
3156
|
list_node_pools_config = parent_rpcs&.list_node_pools if parent_rpcs&.respond_to? :list_node_pools
|
3157
|
-
@list_node_pools = Gapic::Config::Method.new list_node_pools_config
|
3157
|
+
@list_node_pools = ::Gapic::Config::Method.new list_node_pools_config
|
3158
3158
|
get_node_pool_config = parent_rpcs&.get_node_pool if parent_rpcs&.respond_to? :get_node_pool
|
3159
|
-
@get_node_pool = Gapic::Config::Method.new get_node_pool_config
|
3159
|
+
@get_node_pool = ::Gapic::Config::Method.new get_node_pool_config
|
3160
3160
|
create_node_pool_config = parent_rpcs&.create_node_pool if parent_rpcs&.respond_to? :create_node_pool
|
3161
|
-
@create_node_pool = Gapic::Config::Method.new create_node_pool_config
|
3161
|
+
@create_node_pool = ::Gapic::Config::Method.new create_node_pool_config
|
3162
3162
|
delete_node_pool_config = parent_rpcs&.delete_node_pool if parent_rpcs&.respond_to? :delete_node_pool
|
3163
|
-
@delete_node_pool = Gapic::Config::Method.new delete_node_pool_config
|
3163
|
+
@delete_node_pool = ::Gapic::Config::Method.new delete_node_pool_config
|
3164
3164
|
rollback_node_pool_upgrade_config = parent_rpcs&.rollback_node_pool_upgrade if parent_rpcs&.respond_to? :rollback_node_pool_upgrade
|
3165
|
-
@rollback_node_pool_upgrade = Gapic::Config::Method.new rollback_node_pool_upgrade_config
|
3165
|
+
@rollback_node_pool_upgrade = ::Gapic::Config::Method.new rollback_node_pool_upgrade_config
|
3166
3166
|
set_node_pool_management_config = parent_rpcs&.set_node_pool_management if parent_rpcs&.respond_to? :set_node_pool_management
|
3167
|
-
@set_node_pool_management = Gapic::Config::Method.new set_node_pool_management_config
|
3167
|
+
@set_node_pool_management = ::Gapic::Config::Method.new set_node_pool_management_config
|
3168
3168
|
set_labels_config = parent_rpcs&.set_labels if parent_rpcs&.respond_to? :set_labels
|
3169
|
-
@set_labels = Gapic::Config::Method.new set_labels_config
|
3169
|
+
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
3170
3170
|
set_legacy_abac_config = parent_rpcs&.set_legacy_abac if parent_rpcs&.respond_to? :set_legacy_abac
|
3171
|
-
@set_legacy_abac = Gapic::Config::Method.new set_legacy_abac_config
|
3171
|
+
@set_legacy_abac = ::Gapic::Config::Method.new set_legacy_abac_config
|
3172
3172
|
start_ip_rotation_config = parent_rpcs&.start_ip_rotation if parent_rpcs&.respond_to? :start_ip_rotation
|
3173
|
-
@start_ip_rotation = Gapic::Config::Method.new start_ip_rotation_config
|
3173
|
+
@start_ip_rotation = ::Gapic::Config::Method.new start_ip_rotation_config
|
3174
3174
|
complete_ip_rotation_config = parent_rpcs&.complete_ip_rotation if parent_rpcs&.respond_to? :complete_ip_rotation
|
3175
|
-
@complete_ip_rotation = Gapic::Config::Method.new complete_ip_rotation_config
|
3175
|
+
@complete_ip_rotation = ::Gapic::Config::Method.new complete_ip_rotation_config
|
3176
3176
|
set_node_pool_size_config = parent_rpcs&.set_node_pool_size if parent_rpcs&.respond_to? :set_node_pool_size
|
3177
|
-
@set_node_pool_size = Gapic::Config::Method.new set_node_pool_size_config
|
3177
|
+
@set_node_pool_size = ::Gapic::Config::Method.new set_node_pool_size_config
|
3178
3178
|
set_network_policy_config = parent_rpcs&.set_network_policy if parent_rpcs&.respond_to? :set_network_policy
|
3179
|
-
@set_network_policy = Gapic::Config::Method.new set_network_policy_config
|
3179
|
+
@set_network_policy = ::Gapic::Config::Method.new set_network_policy_config
|
3180
3180
|
set_maintenance_policy_config = parent_rpcs&.set_maintenance_policy if parent_rpcs&.respond_to? :set_maintenance_policy
|
3181
|
-
@set_maintenance_policy = Gapic::Config::Method.new set_maintenance_policy_config
|
3181
|
+
@set_maintenance_policy = ::Gapic::Config::Method.new set_maintenance_policy_config
|
3182
3182
|
list_usable_subnetworks_config = parent_rpcs&.list_usable_subnetworks if parent_rpcs&.respond_to? :list_usable_subnetworks
|
3183
|
-
@list_usable_subnetworks = Gapic::Config::Method.new list_usable_subnetworks_config
|
3183
|
+
@list_usable_subnetworks = ::Gapic::Config::Method.new list_usable_subnetworks_config
|
3184
3184
|
|
3185
3185
|
yield self if block_given?
|
3186
3186
|
end
|