google-cloud-container 0.2.2 → 0.3.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/.yardopts +1 -1
- data/README.md +5 -5
- data/lib/google/cloud/container.rb +5 -5
- data/lib/google/cloud/container/v1.rb +5 -5
- data/lib/google/cloud/container/v1/cluster_manager_client.rb +409 -139
- data/lib/google/cloud/container/v1/cluster_manager_client_config.json +30 -30
- data/lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb +457 -117
- data/lib/google/container/v1/cluster_service_pb.rb +50 -0
- data/lib/google/container/v1/cluster_service_services_pb.rb +13 -12
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d20ed47fd78b3e17a067eb6979ea18a9c878a4e87c2a714ae9a00b19ae1e469
|
4
|
+
data.tar.gz: 33bb3e6dfa88b6fc20125474d58d3a640e7b2f95f1d562a1e8d1d7697a7376b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8c555a8faa79e9f48f03a609061cb4e6cae5a4a6370fd40344f93bf9c8db2fc8bf2afc0b39daad0bb065d5a6d9b0b47e5c673dbbadb974caa1ecb4fb572ae86
|
7
|
+
data.tar.gz: 9b220d323bb6727f5a058264404374b72d6078c6af0f026309856151cbd6cc2f7b066911063c77e83141ca07ca1cac5f1db50ad2d0d2a123f793e1763d4a7c4b
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Ruby Client for
|
1
|
+
# Ruby Client for Kubernetes Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
2
2
|
|
3
|
-
[
|
3
|
+
[Kubernetes Engine API][Product Documentation]:
|
4
4
|
The Google Kubernetes Engine API is used for building and managing container
|
5
5
|
based applications, powered by the open source Kubernetes technology.
|
6
6
|
- [Client Library Documentation][]
|
@@ -12,7 +12,7 @@ steps:
|
|
12
12
|
|
13
13
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
14
14
|
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
15
|
-
3. [Enable the
|
15
|
+
3. [Enable the Kubernetes Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
16
16
|
4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
17
17
|
|
18
18
|
### Installation
|
@@ -32,9 +32,9 @@ response = cluster_manager_client.list_clusters(project_id_2, zone)
|
|
32
32
|
```
|
33
33
|
|
34
34
|
### Next Steps
|
35
|
-
- Read the [Client Library Documentation][] for
|
35
|
+
- Read the [Client Library Documentation][] for Kubernetes Engine API
|
36
36
|
to see other available methods on the client.
|
37
|
-
- Read the [
|
37
|
+
- Read the [Kubernetes Engine API Product documentation][Product Documentation]
|
38
38
|
to learn more about the product and see How-to Guides.
|
39
39
|
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
40
40
|
to see the full list of Cloud APIs that we cover.
|
@@ -21,9 +21,9 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for
|
24
|
+
# # Ruby Client for Kubernetes Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
|
-
# [
|
26
|
+
# [Kubernetes Engine API][Product Documentation]:
|
27
27
|
# The Google Kubernetes Engine API is used for building and managing container
|
28
28
|
# based applications, powered by the open source Kubernetes technology.
|
29
29
|
# - [Product Documentation][]
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
#
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
|
-
# 3. [Enable the
|
37
|
+
# 3. [Enable the Kubernetes Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
38
38
|
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
39
|
#
|
40
40
|
# ### Installation
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# ```
|
55
55
|
#
|
56
56
|
# ### Next Steps
|
57
|
-
# - Read the [
|
57
|
+
# - Read the [Kubernetes Engine API Product documentation][Product Documentation]
|
58
58
|
# to learn more about the product and see How-to Guides.
|
59
59
|
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
60
60
|
# to see the full list of Cloud APIs that we cover.
|
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
.map { |dir| File.basename(dir) }
|
100
100
|
|
101
101
|
##
|
102
|
-
# Google
|
102
|
+
# Google Kubernetes Engine Cluster Manager v1
|
103
103
|
#
|
104
104
|
# @param version [Symbol, String]
|
105
105
|
# The major version of the service to be used. By default :v1
|
@@ -21,9 +21,9 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for
|
24
|
+
# # Ruby Client for Kubernetes Engine API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
|
25
25
|
#
|
26
|
-
# [
|
26
|
+
# [Kubernetes Engine API][Product Documentation]:
|
27
27
|
# The Google Kubernetes Engine API is used for building and managing container
|
28
28
|
# based applications, powered by the open source Kubernetes technology.
|
29
29
|
# - [Product Documentation][]
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
#
|
35
35
|
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
36
36
|
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
37
|
-
# 3. [Enable the
|
37
|
+
# 3. [Enable the Kubernetes Engine API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
38
38
|
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
39
39
|
#
|
40
40
|
# ### Installation
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# ```
|
55
55
|
#
|
56
56
|
# ### Next Steps
|
57
|
-
# - Read the [
|
57
|
+
# - Read the [Kubernetes Engine API Product documentation][Product Documentation]
|
58
58
|
# to learn more about the product and see How-to Guides.
|
59
59
|
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
60
60
|
# to see the full list of Cloud APIs that we cover.
|
@@ -91,7 +91,7 @@ module Google
|
|
91
91
|
# rubocop:enable LineLength
|
92
92
|
|
93
93
|
##
|
94
|
-
# Google
|
94
|
+
# Google Kubernetes Engine Cluster Manager v1
|
95
95
|
#
|
96
96
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
97
97
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -32,7 +32,7 @@ module Google
|
|
32
32
|
module Cloud
|
33
33
|
module Container
|
34
34
|
module V1
|
35
|
-
# Google
|
35
|
+
# Google Kubernetes Engine Cluster Manager v1
|
36
36
|
#
|
37
37
|
# @!attribute [r] cluster_manager_stub
|
38
38
|
# @return [Google::Container::V1::ClusterManager::Stub]
|
@@ -318,12 +318,18 @@ module Google
|
|
318
318
|
# zones.
|
319
319
|
#
|
320
320
|
# @param project_id [String]
|
321
|
-
# The Google Developers Console [project ID or project
|
321
|
+
# Deprecated. The Google Developers Console [project ID or project
|
322
322
|
# number](https://support.google.com/cloud/answer/6158840).
|
323
|
+
# This field has been deprecated and replaced by the parent field.
|
323
324
|
# @param zone [String]
|
324
|
-
# The name of the Google Compute Engine
|
325
|
+
# Deprecated. The name of the Google Compute Engine
|
325
326
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
326
327
|
# resides, or "-" for all zones.
|
328
|
+
# This field has been deprecated and replaced by the parent field.
|
329
|
+
# @param parent [String]
|
330
|
+
# The parent (project and location) where the clusters will be listed.
|
331
|
+
# Specified in the format 'projects/*/locations/*'.
|
332
|
+
# Location "-" matches all zones and all regions.
|
327
333
|
# @param options [Google::Gax::CallOptions]
|
328
334
|
# Overrides the default settings for this call, e.g, timeout,
|
329
335
|
# retries, etc.
|
@@ -347,11 +353,13 @@ module Google
|
|
347
353
|
def list_clusters \
|
348
354
|
project_id,
|
349
355
|
zone,
|
356
|
+
parent: nil,
|
350
357
|
options: nil,
|
351
358
|
&block
|
352
359
|
req = {
|
353
360
|
project_id: project_id,
|
354
|
-
zone: zone
|
361
|
+
zone: zone,
|
362
|
+
parent: parent
|
355
363
|
}.delete_if { |_, v| v.nil? }
|
356
364
|
req = Google::Gax::to_proto(req, Google::Container::V1::ListClustersRequest)
|
357
365
|
@list_clusters.call(req, options, &block)
|
@@ -360,14 +368,20 @@ module Google
|
|
360
368
|
# Gets the details of a specific cluster.
|
361
369
|
#
|
362
370
|
# @param project_id [String]
|
363
|
-
# The Google Developers Console [project ID or project
|
371
|
+
# Deprecated. The Google Developers Console [project ID or project
|
364
372
|
# number](https://support.google.com/cloud/answer/6158840).
|
373
|
+
# This field has been deprecated and replaced by the name field.
|
365
374
|
# @param zone [String]
|
366
|
-
# The name of the Google Compute Engine
|
375
|
+
# Deprecated. The name of the Google Compute Engine
|
367
376
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
368
377
|
# resides.
|
378
|
+
# This field has been deprecated and replaced by the name field.
|
369
379
|
# @param cluster_id [String]
|
370
|
-
# The name of the cluster to retrieve.
|
380
|
+
# Deprecated. The name of the cluster to retrieve.
|
381
|
+
# This field has been deprecated and replaced by the name field.
|
382
|
+
# @param name [String]
|
383
|
+
# The name (project, location, cluster) of the cluster to retrieve.
|
384
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
371
385
|
# @param options [Google::Gax::CallOptions]
|
372
386
|
# Overrides the default settings for this call, e.g, timeout,
|
373
387
|
# retries, etc.
|
@@ -395,12 +409,14 @@ module Google
|
|
395
409
|
project_id,
|
396
410
|
zone,
|
397
411
|
cluster_id,
|
412
|
+
name: nil,
|
398
413
|
options: nil,
|
399
414
|
&block
|
400
415
|
req = {
|
401
416
|
project_id: project_id,
|
402
417
|
zone: zone,
|
403
|
-
cluster_id: cluster_id
|
418
|
+
cluster_id: cluster_id,
|
419
|
+
name: name
|
404
420
|
}.delete_if { |_, v| v.nil? }
|
405
421
|
req = Google::Gax::to_proto(req, Google::Container::V1::GetClusterRequest)
|
406
422
|
@get_cluster.call(req, options, &block)
|
@@ -421,17 +437,22 @@ module Google
|
|
421
437
|
# which CIDR range is being used by the cluster.
|
422
438
|
#
|
423
439
|
# @param project_id [String]
|
424
|
-
# The Google Developers Console [project ID or project
|
440
|
+
# Deprecated. The Google Developers Console [project ID or project
|
425
441
|
# number](https://support.google.com/cloud/answer/6158840).
|
442
|
+
# This field has been deprecated and replaced by the parent field.
|
426
443
|
# @param zone [String]
|
427
|
-
# The name of the Google Compute Engine
|
444
|
+
# Deprecated. The name of the Google Compute Engine
|
428
445
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
429
446
|
# resides.
|
447
|
+
# This field has been deprecated and replaced by the parent field.
|
430
448
|
# @param cluster [Google::Container::V1::Cluster | Hash]
|
431
449
|
# A [cluster
|
432
450
|
# resource](/container-engine/reference/rest/v1/projects.zones.clusters)
|
433
451
|
# A hash of the same form as `Google::Container::V1::Cluster`
|
434
452
|
# can also be provided.
|
453
|
+
# @param parent [String]
|
454
|
+
# The parent (project and location) where the cluster will be created.
|
455
|
+
# Specified in the format 'projects/*/locations/*'.
|
435
456
|
# @param options [Google::Gax::CallOptions]
|
436
457
|
# Overrides the default settings for this call, e.g, timeout,
|
437
458
|
# retries, etc.
|
@@ -459,12 +480,14 @@ module Google
|
|
459
480
|
project_id,
|
460
481
|
zone,
|
461
482
|
cluster,
|
483
|
+
parent: nil,
|
462
484
|
options: nil,
|
463
485
|
&block
|
464
486
|
req = {
|
465
487
|
project_id: project_id,
|
466
488
|
zone: zone,
|
467
|
-
cluster: cluster
|
489
|
+
cluster: cluster,
|
490
|
+
parent: parent
|
468
491
|
}.delete_if { |_, v| v.nil? }
|
469
492
|
req = Google::Gax::to_proto(req, Google::Container::V1::CreateClusterRequest)
|
470
493
|
@create_cluster.call(req, options, &block)
|
@@ -473,18 +496,24 @@ module Google
|
|
473
496
|
# Updates the settings of a specific cluster.
|
474
497
|
#
|
475
498
|
# @param project_id [String]
|
476
|
-
# The Google Developers Console [project ID or project
|
499
|
+
# Deprecated. The Google Developers Console [project ID or project
|
477
500
|
# number](https://support.google.com/cloud/answer/6158840).
|
501
|
+
# This field has been deprecated and replaced by the name field.
|
478
502
|
# @param zone [String]
|
479
|
-
# The name of the Google Compute Engine
|
503
|
+
# Deprecated. The name of the Google Compute Engine
|
480
504
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
481
505
|
# resides.
|
506
|
+
# This field has been deprecated and replaced by the name field.
|
482
507
|
# @param cluster_id [String]
|
483
|
-
# The name of the cluster to upgrade.
|
508
|
+
# Deprecated. The name of the cluster to upgrade.
|
509
|
+
# This field has been deprecated and replaced by the name field.
|
484
510
|
# @param update [Google::Container::V1::ClusterUpdate | Hash]
|
485
511
|
# A description of the update.
|
486
512
|
# A hash of the same form as `Google::Container::V1::ClusterUpdate`
|
487
513
|
# can also be provided.
|
514
|
+
# @param name [String]
|
515
|
+
# The name (project, location, cluster) of the cluster to update.
|
516
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
488
517
|
# @param options [Google::Gax::CallOptions]
|
489
518
|
# Overrides the default settings for this call, e.g, timeout,
|
490
519
|
# retries, etc.
|
@@ -516,37 +545,55 @@ module Google
|
|
516
545
|
zone,
|
517
546
|
cluster_id,
|
518
547
|
update,
|
548
|
+
name: nil,
|
519
549
|
options: nil,
|
520
550
|
&block
|
521
551
|
req = {
|
522
552
|
project_id: project_id,
|
523
553
|
zone: zone,
|
524
554
|
cluster_id: cluster_id,
|
525
|
-
update: update
|
555
|
+
update: update,
|
556
|
+
name: name
|
526
557
|
}.delete_if { |_, v| v.nil? }
|
527
558
|
req = Google::Gax::to_proto(req, Google::Container::V1::UpdateClusterRequest)
|
528
559
|
@update_cluster.call(req, options, &block)
|
529
560
|
end
|
530
561
|
|
531
|
-
# Updates the version and/or image type
|
562
|
+
# Updates the version and/or image type for a specific node pool.
|
532
563
|
#
|
533
564
|
# @param project_id [String]
|
534
|
-
# The Google Developers Console [project ID or project
|
565
|
+
# Deprecated. The Google Developers Console [project ID or project
|
535
566
|
# number](https://support.google.com/cloud/answer/6158840).
|
567
|
+
# This field has been deprecated and replaced by the name field.
|
536
568
|
# @param zone [String]
|
537
|
-
# The name of the Google Compute Engine
|
569
|
+
# Deprecated. The name of the Google Compute Engine
|
538
570
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
539
571
|
# resides.
|
572
|
+
# This field has been deprecated and replaced by the name field.
|
540
573
|
# @param cluster_id [String]
|
541
|
-
# The name of the cluster to upgrade.
|
574
|
+
# Deprecated. The name of the cluster to upgrade.
|
575
|
+
# This field has been deprecated and replaced by the name field.
|
542
576
|
# @param node_pool_id [String]
|
543
|
-
# The name of the node pool to upgrade.
|
577
|
+
# Deprecated. The name of the node pool to upgrade.
|
578
|
+
# This field has been deprecated and replaced by the name field.
|
544
579
|
# @param node_version [String]
|
545
580
|
# The Kubernetes version to change the nodes to (typically an
|
546
|
-
# upgrade).
|
547
|
-
#
|
581
|
+
# upgrade).
|
582
|
+
#
|
583
|
+
# Users may specify either explicit versions offered by Kubernetes Engine or
|
584
|
+
# version aliases, which have the following behavior:
|
585
|
+
#
|
586
|
+
# * "latest": picks the highest valid Kubernetes version
|
587
|
+
# * "1.X": picks the highest valid patch+gke.N patch in the 1.X version
|
588
|
+
# * "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
|
589
|
+
# * "1.X.Y-gke.N": picks an explicit Kubernetes version
|
590
|
+
# * "-": picks the Kubernetes master version
|
548
591
|
# @param image_type [String]
|
549
592
|
# The desired image type for the node pool.
|
593
|
+
# @param name [String]
|
594
|
+
# The name (project, location, cluster, node pool) of the node pool to
|
595
|
+
# update. Specified in the format
|
596
|
+
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
550
597
|
# @param options [Google::Gax::CallOptions]
|
551
598
|
# Overrides the default settings for this call, e.g, timeout,
|
552
599
|
# retries, etc.
|
@@ -586,6 +633,7 @@ module Google
|
|
586
633
|
node_pool_id,
|
587
634
|
node_version,
|
588
635
|
image_type,
|
636
|
+
name: nil,
|
589
637
|
options: nil,
|
590
638
|
&block
|
591
639
|
req = {
|
@@ -594,29 +642,38 @@ module Google
|
|
594
642
|
cluster_id: cluster_id,
|
595
643
|
node_pool_id: node_pool_id,
|
596
644
|
node_version: node_version,
|
597
|
-
image_type: image_type
|
645
|
+
image_type: image_type,
|
646
|
+
name: name
|
598
647
|
}.delete_if { |_, v| v.nil? }
|
599
648
|
req = Google::Gax::to_proto(req, Google::Container::V1::UpdateNodePoolRequest)
|
600
649
|
@update_node_pool.call(req, options, &block)
|
601
650
|
end
|
602
651
|
|
603
|
-
# Sets the autoscaling settings
|
652
|
+
# Sets the autoscaling settings for a specific node pool.
|
604
653
|
#
|
605
654
|
# @param project_id [String]
|
606
|
-
# The Google Developers Console [project ID or project
|
655
|
+
# Deprecated. The Google Developers Console [project ID or project
|
607
656
|
# number](https://support.google.com/cloud/answer/6158840).
|
657
|
+
# This field has been deprecated and replaced by the name field.
|
608
658
|
# @param zone [String]
|
609
|
-
# The name of the Google Compute Engine
|
659
|
+
# Deprecated. The name of the Google Compute Engine
|
610
660
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
611
661
|
# resides.
|
662
|
+
# This field has been deprecated and replaced by the name field.
|
612
663
|
# @param cluster_id [String]
|
613
|
-
# The name of the cluster to upgrade.
|
664
|
+
# Deprecated. The name of the cluster to upgrade.
|
665
|
+
# This field has been deprecated and replaced by the name field.
|
614
666
|
# @param node_pool_id [String]
|
615
|
-
# The name of the node pool to upgrade.
|
667
|
+
# Deprecated. The name of the node pool to upgrade.
|
668
|
+
# This field has been deprecated and replaced by the name field.
|
616
669
|
# @param autoscaling [Google::Container::V1::NodePoolAutoscaling | Hash]
|
617
670
|
# Autoscaling configuration for the node pool.
|
618
671
|
# A hash of the same form as `Google::Container::V1::NodePoolAutoscaling`
|
619
672
|
# can also be provided.
|
673
|
+
# @param name [String]
|
674
|
+
# The name (project, location, cluster, node pool) of the node pool to set
|
675
|
+
# autoscaler settings. Specified in the format
|
676
|
+
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
620
677
|
# @param options [Google::Gax::CallOptions]
|
621
678
|
# Overrides the default settings for this call, e.g, timeout,
|
622
679
|
# retries, etc.
|
@@ -652,6 +709,7 @@ module Google
|
|
652
709
|
cluster_id,
|
653
710
|
node_pool_id,
|
654
711
|
autoscaling,
|
712
|
+
name: nil,
|
655
713
|
options: nil,
|
656
714
|
&block
|
657
715
|
req = {
|
@@ -659,29 +717,36 @@ module Google
|
|
659
717
|
zone: zone,
|
660
718
|
cluster_id: cluster_id,
|
661
719
|
node_pool_id: node_pool_id,
|
662
|
-
autoscaling: autoscaling
|
720
|
+
autoscaling: autoscaling,
|
721
|
+
name: name
|
663
722
|
}.delete_if { |_, v| v.nil? }
|
664
723
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolAutoscalingRequest)
|
665
724
|
@set_node_pool_autoscaling.call(req, options, &block)
|
666
725
|
end
|
667
726
|
|
668
|
-
# Sets the logging service
|
727
|
+
# Sets the logging service for a specific cluster.
|
669
728
|
#
|
670
729
|
# @param project_id [String]
|
671
|
-
# The Google Developers Console [project ID or project
|
730
|
+
# Deprecated. The Google Developers Console [project ID or project
|
672
731
|
# number](https://support.google.com/cloud/answer/6158840).
|
732
|
+
# This field has been deprecated and replaced by the name field.
|
673
733
|
# @param zone [String]
|
674
|
-
# The name of the Google Compute Engine
|
734
|
+
# Deprecated. The name of the Google Compute Engine
|
675
735
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
676
736
|
# resides.
|
737
|
+
# This field has been deprecated and replaced by the name field.
|
677
738
|
# @param cluster_id [String]
|
678
|
-
# The name of the cluster to upgrade.
|
739
|
+
# Deprecated. The name of the cluster to upgrade.
|
740
|
+
# This field has been deprecated and replaced by the name field.
|
679
741
|
# @param logging_service [String]
|
680
742
|
# The logging service the cluster should use to write metrics.
|
681
743
|
# Currently available options:
|
682
744
|
#
|
683
745
|
# * "logging.googleapis.com" - the Google Cloud Logging service
|
684
746
|
# * "none" - no metrics will be exported from the cluster
|
747
|
+
# @param name [String]
|
748
|
+
# The name (project, location, cluster) of the cluster to set logging.
|
749
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
685
750
|
# @param options [Google::Gax::CallOptions]
|
686
751
|
# Overrides the default settings for this call, e.g, timeout,
|
687
752
|
# retries, etc.
|
@@ -713,35 +778,43 @@ module Google
|
|
713
778
|
zone,
|
714
779
|
cluster_id,
|
715
780
|
logging_service,
|
781
|
+
name: nil,
|
716
782
|
options: nil,
|
717
783
|
&block
|
718
784
|
req = {
|
719
785
|
project_id: project_id,
|
720
786
|
zone: zone,
|
721
787
|
cluster_id: cluster_id,
|
722
|
-
logging_service: logging_service
|
788
|
+
logging_service: logging_service,
|
789
|
+
name: name
|
723
790
|
}.delete_if { |_, v| v.nil? }
|
724
791
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetLoggingServiceRequest)
|
725
792
|
@set_logging_service.call(req, options, &block)
|
726
793
|
end
|
727
794
|
|
728
|
-
# Sets the monitoring service
|
795
|
+
# Sets the monitoring service for a specific cluster.
|
729
796
|
#
|
730
797
|
# @param project_id [String]
|
731
|
-
# The Google Developers Console [project ID or project
|
798
|
+
# Deprecated. The Google Developers Console [project ID or project
|
732
799
|
# number](https://support.google.com/cloud/answer/6158840).
|
800
|
+
# This field has been deprecated and replaced by the name field.
|
733
801
|
# @param zone [String]
|
734
|
-
# The name of the Google Compute Engine
|
802
|
+
# Deprecated. The name of the Google Compute Engine
|
735
803
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
736
804
|
# resides.
|
805
|
+
# This field has been deprecated and replaced by the name field.
|
737
806
|
# @param cluster_id [String]
|
738
|
-
# The name of the cluster to upgrade.
|
807
|
+
# Deprecated. The name of the cluster to upgrade.
|
808
|
+
# This field has been deprecated and replaced by the name field.
|
739
809
|
# @param monitoring_service [String]
|
740
810
|
# The monitoring service the cluster should use to write metrics.
|
741
811
|
# Currently available options:
|
742
812
|
#
|
743
813
|
# * "monitoring.googleapis.com" - the Google Cloud Monitoring service
|
744
814
|
# * "none" - no metrics will be exported from the cluster
|
815
|
+
# @param name [String]
|
816
|
+
# The name (project, location, cluster) of the cluster to set monitoring.
|
817
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
745
818
|
# @param options [Google::Gax::CallOptions]
|
746
819
|
# Overrides the default settings for this call, e.g, timeout,
|
747
820
|
# retries, etc.
|
@@ -773,34 +846,42 @@ module Google
|
|
773
846
|
zone,
|
774
847
|
cluster_id,
|
775
848
|
monitoring_service,
|
849
|
+
name: nil,
|
776
850
|
options: nil,
|
777
851
|
&block
|
778
852
|
req = {
|
779
853
|
project_id: project_id,
|
780
854
|
zone: zone,
|
781
855
|
cluster_id: cluster_id,
|
782
|
-
monitoring_service: monitoring_service
|
856
|
+
monitoring_service: monitoring_service,
|
857
|
+
name: name
|
783
858
|
}.delete_if { |_, v| v.nil? }
|
784
859
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetMonitoringServiceRequest)
|
785
860
|
@set_monitoring_service.call(req, options, &block)
|
786
861
|
end
|
787
862
|
|
788
|
-
# Sets the addons
|
863
|
+
# Sets the addons for a specific cluster.
|
789
864
|
#
|
790
865
|
# @param project_id [String]
|
791
|
-
# The Google Developers Console [project ID or project
|
866
|
+
# Deprecated. The Google Developers Console [project ID or project
|
792
867
|
# number](https://support.google.com/cloud/answer/6158840).
|
868
|
+
# This field has been deprecated and replaced by the name field.
|
793
869
|
# @param zone [String]
|
794
|
-
# The name of the Google Compute Engine
|
870
|
+
# Deprecated. The name of the Google Compute Engine
|
795
871
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
796
872
|
# resides.
|
873
|
+
# This field has been deprecated and replaced by the name field.
|
797
874
|
# @param cluster_id [String]
|
798
|
-
# The name of the cluster to upgrade.
|
875
|
+
# Deprecated. The name of the cluster to upgrade.
|
876
|
+
# This field has been deprecated and replaced by the name field.
|
799
877
|
# @param addons_config [Google::Container::V1::AddonsConfig | Hash]
|
800
878
|
# The desired configurations for the various addons available to run in the
|
801
879
|
# cluster.
|
802
880
|
# A hash of the same form as `Google::Container::V1::AddonsConfig`
|
803
881
|
# can also be provided.
|
882
|
+
# @param name [String]
|
883
|
+
# The name (project, location, cluster) of the cluster to set addons.
|
884
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
804
885
|
# @param options [Google::Gax::CallOptions]
|
805
886
|
# Overrides the default settings for this call, e.g, timeout,
|
806
887
|
# retries, etc.
|
@@ -832,29 +913,34 @@ module Google
|
|
832
913
|
zone,
|
833
914
|
cluster_id,
|
834
915
|
addons_config,
|
916
|
+
name: nil,
|
835
917
|
options: nil,
|
836
918
|
&block
|
837
919
|
req = {
|
838
920
|
project_id: project_id,
|
839
921
|
zone: zone,
|
840
922
|
cluster_id: cluster_id,
|
841
|
-
addons_config: addons_config
|
923
|
+
addons_config: addons_config,
|
924
|
+
name: name
|
842
925
|
}.delete_if { |_, v| v.nil? }
|
843
926
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetAddonsConfigRequest)
|
844
927
|
@set_addons_config.call(req, options, &block)
|
845
928
|
end
|
846
929
|
|
847
|
-
# Sets the locations
|
930
|
+
# Sets the locations for a specific cluster.
|
848
931
|
#
|
849
932
|
# @param project_id [String]
|
850
|
-
# The Google Developers Console [project ID or project
|
933
|
+
# Deprecated. The Google Developers Console [project ID or project
|
851
934
|
# number](https://support.google.com/cloud/answer/6158840).
|
935
|
+
# This field has been deprecated and replaced by the name field.
|
852
936
|
# @param zone [String]
|
853
|
-
# The name of the Google Compute Engine
|
937
|
+
# Deprecated. The name of the Google Compute Engine
|
854
938
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
855
939
|
# resides.
|
940
|
+
# This field has been deprecated and replaced by the name field.
|
856
941
|
# @param cluster_id [String]
|
857
|
-
# The name of the cluster to upgrade.
|
942
|
+
# Deprecated. The name of the cluster to upgrade.
|
943
|
+
# This field has been deprecated and replaced by the name field.
|
858
944
|
# @param locations [Array<String>]
|
859
945
|
# The desired list of Google Compute Engine
|
860
946
|
# [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes
|
@@ -863,6 +949,9 @@ module Google
|
|
863
949
|
# whether locations are being added or removed.
|
864
950
|
#
|
865
951
|
# This list must always include the cluster's primary zone.
|
952
|
+
# @param name [String]
|
953
|
+
# The name (project, location, cluster) of the cluster to set locations.
|
954
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
866
955
|
# @param options [Google::Gax::CallOptions]
|
867
956
|
# Overrides the default settings for this call, e.g, timeout,
|
868
957
|
# retries, etc.
|
@@ -894,33 +983,48 @@ module Google
|
|
894
983
|
zone,
|
895
984
|
cluster_id,
|
896
985
|
locations,
|
986
|
+
name: nil,
|
897
987
|
options: nil,
|
898
988
|
&block
|
899
989
|
req = {
|
900
990
|
project_id: project_id,
|
901
991
|
zone: zone,
|
902
992
|
cluster_id: cluster_id,
|
903
|
-
locations: locations
|
993
|
+
locations: locations,
|
994
|
+
name: name
|
904
995
|
}.delete_if { |_, v| v.nil? }
|
905
996
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetLocationsRequest)
|
906
997
|
@set_locations.call(req, options, &block)
|
907
998
|
end
|
908
999
|
|
909
|
-
# Updates the master
|
1000
|
+
# Updates the master for a specific cluster.
|
910
1001
|
#
|
911
1002
|
# @param project_id [String]
|
912
|
-
# The Google Developers Console [project ID or project
|
1003
|
+
# Deprecated. The Google Developers Console [project ID or project
|
913
1004
|
# number](https://support.google.com/cloud/answer/6158840).
|
1005
|
+
# This field has been deprecated and replaced by the name field.
|
914
1006
|
# @param zone [String]
|
915
|
-
# The name of the Google Compute Engine
|
1007
|
+
# Deprecated. The name of the Google Compute Engine
|
916
1008
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
917
1009
|
# resides.
|
1010
|
+
# This field has been deprecated and replaced by the name field.
|
918
1011
|
# @param cluster_id [String]
|
919
|
-
# The name of the cluster to upgrade.
|
1012
|
+
# Deprecated. The name of the cluster to upgrade.
|
1013
|
+
# This field has been deprecated and replaced by the name field.
|
920
1014
|
# @param master_version [String]
|
921
|
-
# The Kubernetes version to change the master to.
|
922
|
-
#
|
923
|
-
#
|
1015
|
+
# The Kubernetes version to change the master to.
|
1016
|
+
#
|
1017
|
+
# Users may specify either explicit versions offered by Kubernetes Engine or
|
1018
|
+
# version aliases, which have the following behavior:
|
1019
|
+
#
|
1020
|
+
# * "latest": picks the highest valid Kubernetes version
|
1021
|
+
# * "1.X": picks the highest valid patch+gke.N patch in the 1.X version
|
1022
|
+
# * "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
|
1023
|
+
# * "1.X.Y-gke.N": picks an explicit Kubernetes version
|
1024
|
+
# * "-": picks the default Kubernetes version
|
1025
|
+
# @param name [String]
|
1026
|
+
# The name (project, location, cluster) of the cluster to update.
|
1027
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
924
1028
|
# @param options [Google::Gax::CallOptions]
|
925
1029
|
# Overrides the default settings for this call, e.g, timeout,
|
926
1030
|
# retries, etc.
|
@@ -952,37 +1056,45 @@ module Google
|
|
952
1056
|
zone,
|
953
1057
|
cluster_id,
|
954
1058
|
master_version,
|
1059
|
+
name: nil,
|
955
1060
|
options: nil,
|
956
1061
|
&block
|
957
1062
|
req = {
|
958
1063
|
project_id: project_id,
|
959
1064
|
zone: zone,
|
960
1065
|
cluster_id: cluster_id,
|
961
|
-
master_version: master_version
|
1066
|
+
master_version: master_version,
|
1067
|
+
name: name
|
962
1068
|
}.delete_if { |_, v| v.nil? }
|
963
1069
|
req = Google::Gax::to_proto(req, Google::Container::V1::UpdateMasterRequest)
|
964
1070
|
@update_master.call(req, options, &block)
|
965
1071
|
end
|
966
1072
|
|
967
1073
|
# Used to set master auth materials. Currently supports :-
|
968
|
-
# Changing the admin password
|
1074
|
+
# Changing the admin password for a specific cluster.
|
969
1075
|
# This can be either via password generation or explicitly set the password.
|
970
1076
|
#
|
971
1077
|
# @param project_id [String]
|
972
|
-
# The Google Developers Console [project ID or project
|
1078
|
+
# Deprecated. The Google Developers Console [project ID or project
|
973
1079
|
# number](https://support.google.com/cloud/answer/6158840).
|
1080
|
+
# This field has been deprecated and replaced by the name field.
|
974
1081
|
# @param zone [String]
|
975
|
-
# The name of the Google Compute Engine
|
1082
|
+
# Deprecated. The name of the Google Compute Engine
|
976
1083
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
977
1084
|
# resides.
|
1085
|
+
# This field has been deprecated and replaced by the name field.
|
978
1086
|
# @param cluster_id [String]
|
979
|
-
# The name of the cluster to upgrade.
|
1087
|
+
# Deprecated. The name of the cluster to upgrade.
|
1088
|
+
# This field has been deprecated and replaced by the name field.
|
980
1089
|
# @param action [Google::Container::V1::SetMasterAuthRequest::Action]
|
981
1090
|
# The exact form of action to be taken on the master auth.
|
982
1091
|
# @param update [Google::Container::V1::MasterAuth | Hash]
|
983
1092
|
# A description of the update.
|
984
1093
|
# A hash of the same form as `Google::Container::V1::MasterAuth`
|
985
1094
|
# can also be provided.
|
1095
|
+
# @param name [String]
|
1096
|
+
# The name (project, location, cluster) of the cluster to set auth.
|
1097
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
986
1098
|
# @param options [Google::Gax::CallOptions]
|
987
1099
|
# Overrides the default settings for this call, e.g, timeout,
|
988
1100
|
# retries, etc.
|
@@ -1018,6 +1130,7 @@ module Google
|
|
1018
1130
|
cluster_id,
|
1019
1131
|
action,
|
1020
1132
|
update,
|
1133
|
+
name: nil,
|
1021
1134
|
options: nil,
|
1022
1135
|
&block
|
1023
1136
|
req = {
|
@@ -1025,7 +1138,8 @@ module Google
|
|
1025
1138
|
zone: zone,
|
1026
1139
|
cluster_id: cluster_id,
|
1027
1140
|
action: action,
|
1028
|
-
update: update
|
1141
|
+
update: update,
|
1142
|
+
name: name
|
1029
1143
|
}.delete_if { |_, v| v.nil? }
|
1030
1144
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetMasterAuthRequest)
|
1031
1145
|
@set_master_auth.call(req, options, &block)
|
@@ -1042,14 +1156,20 @@ module Google
|
|
1042
1156
|
# at the initial create time.
|
1043
1157
|
#
|
1044
1158
|
# @param project_id [String]
|
1045
|
-
# The Google Developers Console [project ID or project
|
1159
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1046
1160
|
# number](https://support.google.com/cloud/answer/6158840).
|
1161
|
+
# This field has been deprecated and replaced by the name field.
|
1047
1162
|
# @param zone [String]
|
1048
|
-
# The name of the Google Compute Engine
|
1163
|
+
# Deprecated. The name of the Google Compute Engine
|
1049
1164
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1050
1165
|
# resides.
|
1166
|
+
# This field has been deprecated and replaced by the name field.
|
1051
1167
|
# @param cluster_id [String]
|
1052
|
-
# The name of the cluster to delete.
|
1168
|
+
# Deprecated. The name of the cluster to delete.
|
1169
|
+
# This field has been deprecated and replaced by the name field.
|
1170
|
+
# @param name [String]
|
1171
|
+
# The name (project, location, cluster) of the cluster to delete.
|
1172
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
1053
1173
|
# @param options [Google::Gax::CallOptions]
|
1054
1174
|
# Overrides the default settings for this call, e.g, timeout,
|
1055
1175
|
# retries, etc.
|
@@ -1077,12 +1197,14 @@ module Google
|
|
1077
1197
|
project_id,
|
1078
1198
|
zone,
|
1079
1199
|
cluster_id,
|
1200
|
+
name: nil,
|
1080
1201
|
options: nil,
|
1081
1202
|
&block
|
1082
1203
|
req = {
|
1083
1204
|
project_id: project_id,
|
1084
1205
|
zone: zone,
|
1085
|
-
cluster_id: cluster_id
|
1206
|
+
cluster_id: cluster_id,
|
1207
|
+
name: name
|
1086
1208
|
}.delete_if { |_, v| v.nil? }
|
1087
1209
|
req = Google::Gax::to_proto(req, Google::Container::V1::DeleteClusterRequest)
|
1088
1210
|
@delete_cluster.call(req, options, &block)
|
@@ -1091,11 +1213,17 @@ module Google
|
|
1091
1213
|
# Lists all operations in a project in a specific zone or all zones.
|
1092
1214
|
#
|
1093
1215
|
# @param project_id [String]
|
1094
|
-
# The Google Developers Console [project ID or project
|
1216
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1095
1217
|
# number](https://support.google.com/cloud/answer/6158840).
|
1218
|
+
# This field has been deprecated and replaced by the parent field.
|
1096
1219
|
# @param zone [String]
|
1097
|
-
# The name of the Google Compute Engine
|
1098
|
-
# to return operations for, or `-` for
|
1220
|
+
# Deprecated. The name of the Google Compute Engine
|
1221
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for
|
1222
|
+
# all zones. This field has been deprecated and replaced by the parent field.
|
1223
|
+
# @param parent [String]
|
1224
|
+
# The parent (project and location) where the operations will be listed.
|
1225
|
+
# Specified in the format 'projects/*/locations/*'.
|
1226
|
+
# Location "-" matches all zones and all regions.
|
1099
1227
|
# @param options [Google::Gax::CallOptions]
|
1100
1228
|
# Overrides the default settings for this call, e.g, timeout,
|
1101
1229
|
# retries, etc.
|
@@ -1119,11 +1247,13 @@ module Google
|
|
1119
1247
|
def list_operations \
|
1120
1248
|
project_id,
|
1121
1249
|
zone,
|
1250
|
+
parent: nil,
|
1122
1251
|
options: nil,
|
1123
1252
|
&block
|
1124
1253
|
req = {
|
1125
1254
|
project_id: project_id,
|
1126
|
-
zone: zone
|
1255
|
+
zone: zone,
|
1256
|
+
parent: parent
|
1127
1257
|
}.delete_if { |_, v| v.nil? }
|
1128
1258
|
req = Google::Gax::to_proto(req, Google::Container::V1::ListOperationsRequest)
|
1129
1259
|
@list_operations.call(req, options, &block)
|
@@ -1132,14 +1262,20 @@ module Google
|
|
1132
1262
|
# Gets the specified operation.
|
1133
1263
|
#
|
1134
1264
|
# @param project_id [String]
|
1135
|
-
# The Google Developers Console [project ID or project
|
1265
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1136
1266
|
# number](https://support.google.com/cloud/answer/6158840).
|
1267
|
+
# This field has been deprecated and replaced by the name field.
|
1137
1268
|
# @param zone [String]
|
1138
|
-
# The name of the Google Compute Engine
|
1269
|
+
# Deprecated. The name of the Google Compute Engine
|
1139
1270
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1140
1271
|
# resides.
|
1272
|
+
# This field has been deprecated and replaced by the name field.
|
1141
1273
|
# @param operation_id [String]
|
1142
|
-
# The server-assigned `name` of the operation.
|
1274
|
+
# Deprecated. The server-assigned `name` of the operation.
|
1275
|
+
# This field has been deprecated and replaced by the name field.
|
1276
|
+
# @param name [String]
|
1277
|
+
# The name (project, location, operation id) of the operation to get.
|
1278
|
+
# Specified in the format 'projects/*/locations/*/operations/*'.
|
1143
1279
|
# @param options [Google::Gax::CallOptions]
|
1144
1280
|
# Overrides the default settings for this call, e.g, timeout,
|
1145
1281
|
# retries, etc.
|
@@ -1167,12 +1303,14 @@ module Google
|
|
1167
1303
|
project_id,
|
1168
1304
|
zone,
|
1169
1305
|
operation_id,
|
1306
|
+
name: nil,
|
1170
1307
|
options: nil,
|
1171
1308
|
&block
|
1172
1309
|
req = {
|
1173
1310
|
project_id: project_id,
|
1174
1311
|
zone: zone,
|
1175
|
-
operation_id: operation_id
|
1312
|
+
operation_id: operation_id,
|
1313
|
+
name: name
|
1176
1314
|
}.delete_if { |_, v| v.nil? }
|
1177
1315
|
req = Google::Gax::to_proto(req, Google::Container::V1::GetOperationRequest)
|
1178
1316
|
@get_operation.call(req, options, &block)
|
@@ -1181,13 +1319,19 @@ module Google
|
|
1181
1319
|
# Cancels the specified operation.
|
1182
1320
|
#
|
1183
1321
|
# @param project_id [String]
|
1184
|
-
# The Google Developers Console [project ID or project
|
1322
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1185
1323
|
# number](https://support.google.com/cloud/answer/6158840).
|
1324
|
+
# This field has been deprecated and replaced by the name field.
|
1186
1325
|
# @param zone [String]
|
1187
|
-
# The name of the Google Compute Engine
|
1326
|
+
# Deprecated. The name of the Google Compute Engine
|
1188
1327
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides.
|
1328
|
+
# This field has been deprecated and replaced by the name field.
|
1189
1329
|
# @param operation_id [String]
|
1190
|
-
# The server-assigned `name` of the operation.
|
1330
|
+
# Deprecated. The server-assigned `name` of the operation.
|
1331
|
+
# This field has been deprecated and replaced by the name field.
|
1332
|
+
# @param name [String]
|
1333
|
+
# The name (project, location, operation id) of the operation to cancel.
|
1334
|
+
# Specified in the format 'projects/*/locations/*/operations/*'.
|
1191
1335
|
# @param options [Google::Gax::CallOptions]
|
1192
1336
|
# Overrides the default settings for this call, e.g, timeout,
|
1193
1337
|
# retries, etc.
|
@@ -1214,26 +1358,33 @@ module Google
|
|
1214
1358
|
project_id,
|
1215
1359
|
zone,
|
1216
1360
|
operation_id,
|
1361
|
+
name: nil,
|
1217
1362
|
options: nil,
|
1218
1363
|
&block
|
1219
1364
|
req = {
|
1220
1365
|
project_id: project_id,
|
1221
1366
|
zone: zone,
|
1222
|
-
operation_id: operation_id
|
1367
|
+
operation_id: operation_id,
|
1368
|
+
name: name
|
1223
1369
|
}.delete_if { |_, v| v.nil? }
|
1224
1370
|
req = Google::Gax::to_proto(req, Google::Container::V1::CancelOperationRequest)
|
1225
1371
|
@cancel_operation.call(req, options, &block)
|
1226
1372
|
nil
|
1227
1373
|
end
|
1228
1374
|
|
1229
|
-
# Returns configuration info about the
|
1375
|
+
# Returns configuration info about the Kubernetes Engine service.
|
1230
1376
|
#
|
1231
1377
|
# @param project_id [String]
|
1232
|
-
# The Google Developers Console [project ID or project
|
1378
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1233
1379
|
# number](https://support.google.com/cloud/answer/6158840).
|
1380
|
+
# This field has been deprecated and replaced by the name field.
|
1234
1381
|
# @param zone [String]
|
1235
|
-
# The name of the Google Compute Engine
|
1236
|
-
# to return operations for.
|
1382
|
+
# Deprecated. The name of the Google Compute Engine
|
1383
|
+
# [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for.
|
1384
|
+
# This field has been deprecated and replaced by the name field.
|
1385
|
+
# @param name [String]
|
1386
|
+
# The name (project and location) of the server config to get
|
1387
|
+
# Specified in the format 'projects/*/locations/*'.
|
1237
1388
|
# @param options [Google::Gax::CallOptions]
|
1238
1389
|
# Overrides the default settings for this call, e.g, timeout,
|
1239
1390
|
# retries, etc.
|
@@ -1257,11 +1408,13 @@ module Google
|
|
1257
1408
|
def get_server_config \
|
1258
1409
|
project_id,
|
1259
1410
|
zone,
|
1411
|
+
name: nil,
|
1260
1412
|
options: nil,
|
1261
1413
|
&block
|
1262
1414
|
req = {
|
1263
1415
|
project_id: project_id,
|
1264
|
-
zone: zone
|
1416
|
+
zone: zone,
|
1417
|
+
name: name
|
1265
1418
|
}.delete_if { |_, v| v.nil? }
|
1266
1419
|
req = Google::Gax::to_proto(req, Google::Container::V1::GetServerConfigRequest)
|
1267
1420
|
@get_server_config.call(req, options, &block)
|
@@ -1270,14 +1423,20 @@ module Google
|
|
1270
1423
|
# Lists the node pools for a cluster.
|
1271
1424
|
#
|
1272
1425
|
# @param project_id [String]
|
1273
|
-
# The Google Developers Console [project ID or project
|
1426
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1274
1427
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1428
|
+
# This field has been deprecated and replaced by the parent field.
|
1275
1429
|
# @param zone [String]
|
1276
|
-
# The name of the Google Compute Engine
|
1430
|
+
# Deprecated. The name of the Google Compute Engine
|
1277
1431
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1278
1432
|
# resides.
|
1433
|
+
# This field has been deprecated and replaced by the parent field.
|
1279
1434
|
# @param cluster_id [String]
|
1280
|
-
# The name of the cluster.
|
1435
|
+
# Deprecated. The name of the cluster.
|
1436
|
+
# This field has been deprecated and replaced by the parent field.
|
1437
|
+
# @param parent [String]
|
1438
|
+
# The parent (project, location, cluster id) where the node pools will be
|
1439
|
+
# listed. Specified in the format 'projects/*/locations/*/clusters/*'.
|
1281
1440
|
# @param options [Google::Gax::CallOptions]
|
1282
1441
|
# Overrides the default settings for this call, e.g, timeout,
|
1283
1442
|
# retries, etc.
|
@@ -1305,12 +1464,14 @@ module Google
|
|
1305
1464
|
project_id,
|
1306
1465
|
zone,
|
1307
1466
|
cluster_id,
|
1467
|
+
parent: nil,
|
1308
1468
|
options: nil,
|
1309
1469
|
&block
|
1310
1470
|
req = {
|
1311
1471
|
project_id: project_id,
|
1312
1472
|
zone: zone,
|
1313
|
-
cluster_id: cluster_id
|
1473
|
+
cluster_id: cluster_id,
|
1474
|
+
parent: parent
|
1314
1475
|
}.delete_if { |_, v| v.nil? }
|
1315
1476
|
req = Google::Gax::to_proto(req, Google::Container::V1::ListNodePoolsRequest)
|
1316
1477
|
@list_node_pools.call(req, options, &block)
|
@@ -1319,16 +1480,24 @@ module Google
|
|
1319
1480
|
# Retrieves the node pool requested.
|
1320
1481
|
#
|
1321
1482
|
# @param project_id [String]
|
1322
|
-
# The Google Developers Console [project ID or project
|
1483
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1323
1484
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1485
|
+
# This field has been deprecated and replaced by the name field.
|
1324
1486
|
# @param zone [String]
|
1325
|
-
# The name of the Google Compute Engine
|
1487
|
+
# Deprecated. The name of the Google Compute Engine
|
1326
1488
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1327
1489
|
# resides.
|
1490
|
+
# This field has been deprecated and replaced by the name field.
|
1328
1491
|
# @param cluster_id [String]
|
1329
|
-
# The name of the cluster.
|
1492
|
+
# Deprecated. The name of the cluster.
|
1493
|
+
# This field has been deprecated and replaced by the name field.
|
1330
1494
|
# @param node_pool_id [String]
|
1331
|
-
# The name of the node pool.
|
1495
|
+
# Deprecated. The name of the node pool.
|
1496
|
+
# This field has been deprecated and replaced by the name field.
|
1497
|
+
# @param name [String]
|
1498
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
1499
|
+
# get. Specified in the format
|
1500
|
+
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
1332
1501
|
# @param options [Google::Gax::CallOptions]
|
1333
1502
|
# Overrides the default settings for this call, e.g, timeout,
|
1334
1503
|
# retries, etc.
|
@@ -1360,13 +1529,15 @@ module Google
|
|
1360
1529
|
zone,
|
1361
1530
|
cluster_id,
|
1362
1531
|
node_pool_id,
|
1532
|
+
name: nil,
|
1363
1533
|
options: nil,
|
1364
1534
|
&block
|
1365
1535
|
req = {
|
1366
1536
|
project_id: project_id,
|
1367
1537
|
zone: zone,
|
1368
1538
|
cluster_id: cluster_id,
|
1369
|
-
node_pool_id: node_pool_id
|
1539
|
+
node_pool_id: node_pool_id,
|
1540
|
+
name: name
|
1370
1541
|
}.delete_if { |_, v| v.nil? }
|
1371
1542
|
req = Google::Gax::to_proto(req, Google::Container::V1::GetNodePoolRequest)
|
1372
1543
|
@get_node_pool.call(req, options, &block)
|
@@ -1375,18 +1546,25 @@ module Google
|
|
1375
1546
|
# Creates a node pool for a cluster.
|
1376
1547
|
#
|
1377
1548
|
# @param project_id [String]
|
1378
|
-
# The Google Developers Console [project ID or project
|
1549
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1379
1550
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1551
|
+
# This field has been deprecated and replaced by the parent field.
|
1380
1552
|
# @param zone [String]
|
1381
|
-
# The name of the Google Compute Engine
|
1553
|
+
# Deprecated. The name of the Google Compute Engine
|
1382
1554
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1383
1555
|
# resides.
|
1556
|
+
# This field has been deprecated and replaced by the parent field.
|
1384
1557
|
# @param cluster_id [String]
|
1385
|
-
# The name of the cluster.
|
1558
|
+
# Deprecated. The name of the cluster.
|
1559
|
+
# This field has been deprecated and replaced by the parent field.
|
1386
1560
|
# @param node_pool [Google::Container::V1::NodePool | Hash]
|
1387
1561
|
# The node pool to create.
|
1388
1562
|
# A hash of the same form as `Google::Container::V1::NodePool`
|
1389
1563
|
# can also be provided.
|
1564
|
+
# @param parent [String]
|
1565
|
+
# The parent (project, location, cluster id) where the node pool will be
|
1566
|
+
# created. Specified in the format
|
1567
|
+
# 'projects/*/locations/*/clusters/*'.
|
1390
1568
|
# @param options [Google::Gax::CallOptions]
|
1391
1569
|
# Overrides the default settings for this call, e.g, timeout,
|
1392
1570
|
# retries, etc.
|
@@ -1418,13 +1596,15 @@ module Google
|
|
1418
1596
|
zone,
|
1419
1597
|
cluster_id,
|
1420
1598
|
node_pool,
|
1599
|
+
parent: nil,
|
1421
1600
|
options: nil,
|
1422
1601
|
&block
|
1423
1602
|
req = {
|
1424
1603
|
project_id: project_id,
|
1425
1604
|
zone: zone,
|
1426
1605
|
cluster_id: cluster_id,
|
1427
|
-
node_pool: node_pool
|
1606
|
+
node_pool: node_pool,
|
1607
|
+
parent: parent
|
1428
1608
|
}.delete_if { |_, v| v.nil? }
|
1429
1609
|
req = Google::Gax::to_proto(req, Google::Container::V1::CreateNodePoolRequest)
|
1430
1610
|
@create_node_pool.call(req, options, &block)
|
@@ -1433,16 +1613,24 @@ module Google
|
|
1433
1613
|
# Deletes a node pool from a cluster.
|
1434
1614
|
#
|
1435
1615
|
# @param project_id [String]
|
1436
|
-
# The Google Developers Console [project ID or project
|
1616
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1437
1617
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1618
|
+
# This field has been deprecated and replaced by the name field.
|
1438
1619
|
# @param zone [String]
|
1439
|
-
# The name of the Google Compute Engine
|
1620
|
+
# Deprecated. The name of the Google Compute Engine
|
1440
1621
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1441
1622
|
# resides.
|
1623
|
+
# This field has been deprecated and replaced by the name field.
|
1442
1624
|
# @param cluster_id [String]
|
1443
|
-
# The name of the cluster.
|
1625
|
+
# Deprecated. The name of the cluster.
|
1626
|
+
# This field has been deprecated and replaced by the name field.
|
1444
1627
|
# @param node_pool_id [String]
|
1445
|
-
# The name of the node pool to delete.
|
1628
|
+
# Deprecated. The name of the node pool to delete.
|
1629
|
+
# This field has been deprecated and replaced by the name field.
|
1630
|
+
# @param name [String]
|
1631
|
+
# The name (project, location, cluster, node pool id) of the node pool to
|
1632
|
+
# delete. Specified in the format
|
1633
|
+
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
1446
1634
|
# @param options [Google::Gax::CallOptions]
|
1447
1635
|
# Overrides the default settings for this call, e.g, timeout,
|
1448
1636
|
# retries, etc.
|
@@ -1474,13 +1662,15 @@ module Google
|
|
1474
1662
|
zone,
|
1475
1663
|
cluster_id,
|
1476
1664
|
node_pool_id,
|
1665
|
+
name: nil,
|
1477
1666
|
options: nil,
|
1478
1667
|
&block
|
1479
1668
|
req = {
|
1480
1669
|
project_id: project_id,
|
1481
1670
|
zone: zone,
|
1482
1671
|
cluster_id: cluster_id,
|
1483
|
-
node_pool_id: node_pool_id
|
1672
|
+
node_pool_id: node_pool_id,
|
1673
|
+
name: name
|
1484
1674
|
}.delete_if { |_, v| v.nil? }
|
1485
1675
|
req = Google::Gax::to_proto(req, Google::Container::V1::DeleteNodePoolRequest)
|
1486
1676
|
@delete_node_pool.call(req, options, &block)
|
@@ -1490,16 +1680,24 @@ module Google
|
|
1490
1680
|
# This will be an no-op if the last upgrade successfully completed.
|
1491
1681
|
#
|
1492
1682
|
# @param project_id [String]
|
1493
|
-
# The Google Developers Console [project ID or project
|
1683
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1494
1684
|
# number](https://support.google.com/cloud/answer/6158840).
|
1685
|
+
# This field has been deprecated and replaced by the name field.
|
1495
1686
|
# @param zone [String]
|
1496
|
-
# The name of the Google Compute Engine
|
1687
|
+
# Deprecated. The name of the Google Compute Engine
|
1497
1688
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1498
1689
|
# resides.
|
1690
|
+
# This field has been deprecated and replaced by the name field.
|
1499
1691
|
# @param cluster_id [String]
|
1500
|
-
# The name of the cluster to rollback.
|
1692
|
+
# Deprecated. The name of the cluster to rollback.
|
1693
|
+
# This field has been deprecated and replaced by the name field.
|
1501
1694
|
# @param node_pool_id [String]
|
1502
|
-
# The name of the node pool to rollback.
|
1695
|
+
# Deprecated. The name of the node pool to rollback.
|
1696
|
+
# This field has been deprecated and replaced by the name field.
|
1697
|
+
# @param name [String]
|
1698
|
+
# The name (project, location, cluster, node pool id) of the node poll to
|
1699
|
+
# rollback upgrade.
|
1700
|
+
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
|
1503
1701
|
# @param options [Google::Gax::CallOptions]
|
1504
1702
|
# Overrides the default settings for this call, e.g, timeout,
|
1505
1703
|
# retries, etc.
|
@@ -1531,13 +1729,15 @@ module Google
|
|
1531
1729
|
zone,
|
1532
1730
|
cluster_id,
|
1533
1731
|
node_pool_id,
|
1732
|
+
name: nil,
|
1534
1733
|
options: nil,
|
1535
1734
|
&block
|
1536
1735
|
req = {
|
1537
1736
|
project_id: project_id,
|
1538
1737
|
zone: zone,
|
1539
1738
|
cluster_id: cluster_id,
|
1540
|
-
node_pool_id: node_pool_id
|
1739
|
+
node_pool_id: node_pool_id,
|
1740
|
+
name: name
|
1541
1741
|
}.delete_if { |_, v| v.nil? }
|
1542
1742
|
req = Google::Gax::to_proto(req, Google::Container::V1::RollbackNodePoolUpgradeRequest)
|
1543
1743
|
@rollback_node_pool_upgrade.call(req, options, &block)
|
@@ -1546,20 +1746,28 @@ module Google
|
|
1546
1746
|
# Sets the NodeManagement options for a node pool.
|
1547
1747
|
#
|
1548
1748
|
# @param project_id [String]
|
1549
|
-
# The Google Developers Console [project ID or project
|
1749
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1550
1750
|
# number](https://support.google.com/cloud/answer/6158840).
|
1751
|
+
# This field has been deprecated and replaced by the name field.
|
1551
1752
|
# @param zone [String]
|
1552
|
-
# The name of the Google Compute Engine
|
1753
|
+
# Deprecated. The name of the Google Compute Engine
|
1553
1754
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1554
1755
|
# resides.
|
1756
|
+
# This field has been deprecated and replaced by the name field.
|
1555
1757
|
# @param cluster_id [String]
|
1556
|
-
# The name of the cluster to update.
|
1758
|
+
# Deprecated. The name of the cluster to update.
|
1759
|
+
# This field has been deprecated and replaced by the name field.
|
1557
1760
|
# @param node_pool_id [String]
|
1558
|
-
# The name of the node pool to update.
|
1761
|
+
# Deprecated. The name of the node pool to update.
|
1762
|
+
# This field has been deprecated and replaced by the name field.
|
1559
1763
|
# @param management [Google::Container::V1::NodeManagement | Hash]
|
1560
1764
|
# NodeManagement configuration for the node pool.
|
1561
1765
|
# A hash of the same form as `Google::Container::V1::NodeManagement`
|
1562
1766
|
# can also be provided.
|
1767
|
+
# @param name [String]
|
1768
|
+
# The name (project, location, cluster, node pool id) of the node pool to set
|
1769
|
+
# management properties. Specified in the format
|
1770
|
+
# 'projects/*/locations/*/clusters/*/nodePools/*'.
|
1563
1771
|
# @param options [Google::Gax::CallOptions]
|
1564
1772
|
# Overrides the default settings for this call, e.g, timeout,
|
1565
1773
|
# retries, etc.
|
@@ -1595,6 +1803,7 @@ module Google
|
|
1595
1803
|
cluster_id,
|
1596
1804
|
node_pool_id,
|
1597
1805
|
management,
|
1806
|
+
name: nil,
|
1598
1807
|
options: nil,
|
1599
1808
|
&block
|
1600
1809
|
req = {
|
@@ -1602,7 +1811,8 @@ module Google
|
|
1602
1811
|
zone: zone,
|
1603
1812
|
cluster_id: cluster_id,
|
1604
1813
|
node_pool_id: node_pool_id,
|
1605
|
-
management: management
|
1814
|
+
management: management,
|
1815
|
+
name: name
|
1606
1816
|
}.delete_if { |_, v| v.nil? }
|
1607
1817
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolManagementRequest)
|
1608
1818
|
@set_node_pool_management.call(req, options, &block)
|
@@ -1611,23 +1821,29 @@ module Google
|
|
1611
1821
|
# Sets labels on a cluster.
|
1612
1822
|
#
|
1613
1823
|
# @param project_id [String]
|
1614
|
-
# The Google Developers Console [project ID or project
|
1824
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1615
1825
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1826
|
+
# This field has been deprecated and replaced by the name field.
|
1616
1827
|
# @param zone [String]
|
1617
|
-
# The name of the Google Compute Engine
|
1828
|
+
# Deprecated. The name of the Google Compute Engine
|
1618
1829
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1619
1830
|
# resides.
|
1831
|
+
# This field has been deprecated and replaced by the name field.
|
1620
1832
|
# @param cluster_id [String]
|
1621
|
-
# The name of the cluster.
|
1833
|
+
# Deprecated. The name of the cluster.
|
1834
|
+
# This field has been deprecated and replaced by the name field.
|
1622
1835
|
# @param resource_labels [Hash{String => String}]
|
1623
1836
|
# The labels to set for that cluster.
|
1624
1837
|
# @param label_fingerprint [String]
|
1625
1838
|
# The fingerprint of the previous set of labels for this resource,
|
1626
1839
|
# used to detect conflicts. The fingerprint is initially generated by
|
1627
|
-
#
|
1840
|
+
# Kubernetes Engine and changes after every request to modify or update
|
1628
1841
|
# labels. You must always provide an up-to-date fingerprint hash when
|
1629
1842
|
# updating or changing labels. Make a <code>get()</code> request to the
|
1630
1843
|
# resource to get the latest fingerprint.
|
1844
|
+
# @param name [String]
|
1845
|
+
# The name (project, location, cluster id) of the cluster to set labels.
|
1846
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
1631
1847
|
# @param options [Google::Gax::CallOptions]
|
1632
1848
|
# Overrides the default settings for this call, e.g, timeout,
|
1633
1849
|
# retries, etc.
|
@@ -1663,6 +1879,7 @@ module Google
|
|
1663
1879
|
cluster_id,
|
1664
1880
|
resource_labels,
|
1665
1881
|
label_fingerprint,
|
1882
|
+
name: nil,
|
1666
1883
|
options: nil,
|
1667
1884
|
&block
|
1668
1885
|
req = {
|
@@ -1670,7 +1887,8 @@ module Google
|
|
1670
1887
|
zone: zone,
|
1671
1888
|
cluster_id: cluster_id,
|
1672
1889
|
resource_labels: resource_labels,
|
1673
|
-
label_fingerprint: label_fingerprint
|
1890
|
+
label_fingerprint: label_fingerprint,
|
1891
|
+
name: name
|
1674
1892
|
}.delete_if { |_, v| v.nil? }
|
1675
1893
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetLabelsRequest)
|
1676
1894
|
@set_labels.call(req, options, &block)
|
@@ -1679,16 +1897,22 @@ module Google
|
|
1679
1897
|
# Enables or disables the ABAC authorization mechanism on a cluster.
|
1680
1898
|
#
|
1681
1899
|
# @param project_id [String]
|
1682
|
-
# The Google Developers Console [project ID or project
|
1900
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1683
1901
|
# number](https://support.google.com/cloud/answer/6158840).
|
1902
|
+
# This field has been deprecated and replaced by the name field.
|
1684
1903
|
# @param zone [String]
|
1685
|
-
# The name of the Google Compute Engine
|
1904
|
+
# Deprecated. The name of the Google Compute Engine
|
1686
1905
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1687
1906
|
# resides.
|
1907
|
+
# This field has been deprecated and replaced by the name field.
|
1688
1908
|
# @param cluster_id [String]
|
1689
|
-
# The name of the cluster to update.
|
1909
|
+
# Deprecated. The name of the cluster to update.
|
1910
|
+
# This field has been deprecated and replaced by the name field.
|
1690
1911
|
# @param enabled [true, false]
|
1691
1912
|
# Whether ABAC authorization will be enabled in the cluster.
|
1913
|
+
# @param name [String]
|
1914
|
+
# The name (project, location, cluster id) of the cluster to set legacy abac.
|
1915
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
1692
1916
|
# @param options [Google::Gax::CallOptions]
|
1693
1917
|
# Overrides the default settings for this call, e.g, timeout,
|
1694
1918
|
# retries, etc.
|
@@ -1720,13 +1944,15 @@ module Google
|
|
1720
1944
|
zone,
|
1721
1945
|
cluster_id,
|
1722
1946
|
enabled,
|
1947
|
+
name: nil,
|
1723
1948
|
options: nil,
|
1724
1949
|
&block
|
1725
1950
|
req = {
|
1726
1951
|
project_id: project_id,
|
1727
1952
|
zone: zone,
|
1728
1953
|
cluster_id: cluster_id,
|
1729
|
-
enabled: enabled
|
1954
|
+
enabled: enabled,
|
1955
|
+
name: name
|
1730
1956
|
}.delete_if { |_, v| v.nil? }
|
1731
1957
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetLegacyAbacRequest)
|
1732
1958
|
@set_legacy_abac.call(req, options, &block)
|
@@ -1735,14 +1961,22 @@ module Google
|
|
1735
1961
|
# Start master IP rotation.
|
1736
1962
|
#
|
1737
1963
|
# @param project_id [String]
|
1738
|
-
# The Google Developers Console [project ID or project
|
1964
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1739
1965
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
1966
|
+
# This field has been deprecated and replaced by the name field.
|
1740
1967
|
# @param zone [String]
|
1741
|
-
# The name of the Google Compute Engine
|
1968
|
+
# Deprecated. The name of the Google Compute Engine
|
1742
1969
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1743
1970
|
# resides.
|
1971
|
+
# This field has been deprecated and replaced by the name field.
|
1744
1972
|
# @param cluster_id [String]
|
1745
|
-
# The name of the cluster.
|
1973
|
+
# Deprecated. The name of the cluster.
|
1974
|
+
# This field has been deprecated and replaced by the name field.
|
1975
|
+
# @param name [String]
|
1976
|
+
# The name (project, location, cluster id) of the cluster to start IP
|
1977
|
+
# rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
|
1978
|
+
# @param rotate_credentials [true, false]
|
1979
|
+
# Whether to rotate credentials during IP rotation.
|
1746
1980
|
# @param options [Google::Gax::CallOptions]
|
1747
1981
|
# Overrides the default settings for this call, e.g, timeout,
|
1748
1982
|
# retries, etc.
|
@@ -1770,12 +2004,16 @@ module Google
|
|
1770
2004
|
project_id,
|
1771
2005
|
zone,
|
1772
2006
|
cluster_id,
|
2007
|
+
name: nil,
|
2008
|
+
rotate_credentials: nil,
|
1773
2009
|
options: nil,
|
1774
2010
|
&block
|
1775
2011
|
req = {
|
1776
2012
|
project_id: project_id,
|
1777
2013
|
zone: zone,
|
1778
|
-
cluster_id: cluster_id
|
2014
|
+
cluster_id: cluster_id,
|
2015
|
+
name: name,
|
2016
|
+
rotate_credentials: rotate_credentials
|
1779
2017
|
}.delete_if { |_, v| v.nil? }
|
1780
2018
|
req = Google::Gax::to_proto(req, Google::Container::V1::StartIPRotationRequest)
|
1781
2019
|
@start_ip_rotation.call(req, options, &block)
|
@@ -1784,14 +2022,20 @@ module Google
|
|
1784
2022
|
# Completes master IP rotation.
|
1785
2023
|
#
|
1786
2024
|
# @param project_id [String]
|
1787
|
-
# The Google Developers Console [project ID or project
|
2025
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1788
2026
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2027
|
+
# This field has been deprecated and replaced by the name field.
|
1789
2028
|
# @param zone [String]
|
1790
|
-
# The name of the Google Compute Engine
|
2029
|
+
# Deprecated. The name of the Google Compute Engine
|
1791
2030
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1792
2031
|
# resides.
|
2032
|
+
# This field has been deprecated and replaced by the name field.
|
1793
2033
|
# @param cluster_id [String]
|
1794
|
-
# The name of the cluster.
|
2034
|
+
# Deprecated. The name of the cluster.
|
2035
|
+
# This field has been deprecated and replaced by the name field.
|
2036
|
+
# @param name [String]
|
2037
|
+
# The name (project, location, cluster id) of the cluster to complete IP
|
2038
|
+
# rotation. Specified in the format 'projects/*/locations/*/clusters/*'.
|
1795
2039
|
# @param options [Google::Gax::CallOptions]
|
1796
2040
|
# Overrides the default settings for this call, e.g, timeout,
|
1797
2041
|
# retries, etc.
|
@@ -1819,32 +2063,42 @@ module Google
|
|
1819
2063
|
project_id,
|
1820
2064
|
zone,
|
1821
2065
|
cluster_id,
|
2066
|
+
name: nil,
|
1822
2067
|
options: nil,
|
1823
2068
|
&block
|
1824
2069
|
req = {
|
1825
2070
|
project_id: project_id,
|
1826
2071
|
zone: zone,
|
1827
|
-
cluster_id: cluster_id
|
2072
|
+
cluster_id: cluster_id,
|
2073
|
+
name: name
|
1828
2074
|
}.delete_if { |_, v| v.nil? }
|
1829
2075
|
req = Google::Gax::to_proto(req, Google::Container::V1::CompleteIPRotationRequest)
|
1830
2076
|
@complete_ip_rotation.call(req, options, &block)
|
1831
2077
|
end
|
1832
2078
|
|
1833
|
-
# Sets the size
|
2079
|
+
# Sets the size for a specific node pool.
|
1834
2080
|
#
|
1835
2081
|
# @param project_id [String]
|
1836
|
-
# The Google Developers Console [project ID or project
|
2082
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1837
2083
|
# number](https://support.google.com/cloud/answer/6158840).
|
2084
|
+
# This field has been deprecated and replaced by the name field.
|
1838
2085
|
# @param zone [String]
|
1839
|
-
# The name of the Google Compute Engine
|
2086
|
+
# Deprecated. The name of the Google Compute Engine
|
1840
2087
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1841
2088
|
# resides.
|
2089
|
+
# This field has been deprecated and replaced by the name field.
|
1842
2090
|
# @param cluster_id [String]
|
1843
|
-
# The name of the cluster to update.
|
2091
|
+
# Deprecated. The name of the cluster to update.
|
2092
|
+
# This field has been deprecated and replaced by the name field.
|
1844
2093
|
# @param node_pool_id [String]
|
1845
|
-
# The name of the node pool to update.
|
2094
|
+
# Deprecated. The name of the node pool to update.
|
2095
|
+
# This field has been deprecated and replaced by the name field.
|
1846
2096
|
# @param node_count [Integer]
|
1847
2097
|
# The desired node count for the pool.
|
2098
|
+
# @param name [String]
|
2099
|
+
# The name (project, location, cluster, node pool id) of the node pool to set
|
2100
|
+
# size.
|
2101
|
+
# Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
|
1848
2102
|
# @param options [Google::Gax::CallOptions]
|
1849
2103
|
# Overrides the default settings for this call, e.g, timeout,
|
1850
2104
|
# retries, etc.
|
@@ -1880,6 +2134,7 @@ module Google
|
|
1880
2134
|
cluster_id,
|
1881
2135
|
node_pool_id,
|
1882
2136
|
node_count,
|
2137
|
+
name: nil,
|
1883
2138
|
options: nil,
|
1884
2139
|
&block
|
1885
2140
|
req = {
|
@@ -1887,7 +2142,8 @@ module Google
|
|
1887
2142
|
zone: zone,
|
1888
2143
|
cluster_id: cluster_id,
|
1889
2144
|
node_pool_id: node_pool_id,
|
1890
|
-
node_count: node_count
|
2145
|
+
node_count: node_count,
|
2146
|
+
name: name
|
1891
2147
|
}.delete_if { |_, v| v.nil? }
|
1892
2148
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetNodePoolSizeRequest)
|
1893
2149
|
@set_node_pool_size.call(req, options, &block)
|
@@ -1896,18 +2152,24 @@ module Google
|
|
1896
2152
|
# Enables/Disables Network Policy for a cluster.
|
1897
2153
|
#
|
1898
2154
|
# @param project_id [String]
|
1899
|
-
# The Google Developers Console [project ID or project
|
2155
|
+
# Deprecated. The Google Developers Console [project ID or project
|
1900
2156
|
# number](https://developers.google.com/console/help/new/#projectnumber).
|
2157
|
+
# This field has been deprecated and replaced by the name field.
|
1901
2158
|
# @param zone [String]
|
1902
|
-
# The name of the Google Compute Engine
|
2159
|
+
# Deprecated. The name of the Google Compute Engine
|
1903
2160
|
# [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster
|
1904
2161
|
# resides.
|
2162
|
+
# This field has been deprecated and replaced by the name field.
|
1905
2163
|
# @param cluster_id [String]
|
1906
|
-
# The name of the cluster.
|
2164
|
+
# Deprecated. The name of the cluster.
|
2165
|
+
# This field has been deprecated and replaced by the name field.
|
1907
2166
|
# @param network_policy [Google::Container::V1::NetworkPolicy | Hash]
|
1908
2167
|
# Configuration options for the NetworkPolicy feature.
|
1909
2168
|
# A hash of the same form as `Google::Container::V1::NetworkPolicy`
|
1910
2169
|
# can also be provided.
|
2170
|
+
# @param name [String]
|
2171
|
+
# The name (project, location, cluster id) of the cluster to set networking
|
2172
|
+
# policy. Specified in the format 'projects/*/locations/*/clusters/*'.
|
1911
2173
|
# @param options [Google::Gax::CallOptions]
|
1912
2174
|
# Overrides the default settings for this call, e.g, timeout,
|
1913
2175
|
# retries, etc.
|
@@ -1939,13 +2201,15 @@ module Google
|
|
1939
2201
|
zone,
|
1940
2202
|
cluster_id,
|
1941
2203
|
network_policy,
|
2204
|
+
name: nil,
|
1942
2205
|
options: nil,
|
1943
2206
|
&block
|
1944
2207
|
req = {
|
1945
2208
|
project_id: project_id,
|
1946
2209
|
zone: zone,
|
1947
2210
|
cluster_id: cluster_id,
|
1948
|
-
network_policy: network_policy
|
2211
|
+
network_policy: network_policy,
|
2212
|
+
name: name
|
1949
2213
|
}.delete_if { |_, v| v.nil? }
|
1950
2214
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetNetworkPolicyRequest)
|
1951
2215
|
@set_network_policy.call(req, options, &block)
|
@@ -1967,6 +2231,10 @@ module Google
|
|
1967
2231
|
# clears the existing maintenance policy.
|
1968
2232
|
# A hash of the same form as `Google::Container::V1::MaintenancePolicy`
|
1969
2233
|
# can also be provided.
|
2234
|
+
# @param name [String]
|
2235
|
+
# The name (project, location, cluster id) of the cluster to set maintenance
|
2236
|
+
# policy.
|
2237
|
+
# Specified in the format 'projects/*/locations/*/clusters/*'.
|
1970
2238
|
# @param options [Google::Gax::CallOptions]
|
1971
2239
|
# Overrides the default settings for this call, e.g, timeout,
|
1972
2240
|
# retries, etc.
|
@@ -1998,13 +2266,15 @@ module Google
|
|
1998
2266
|
zone,
|
1999
2267
|
cluster_id,
|
2000
2268
|
maintenance_policy,
|
2269
|
+
name: nil,
|
2001
2270
|
options: nil,
|
2002
2271
|
&block
|
2003
2272
|
req = {
|
2004
2273
|
project_id: project_id,
|
2005
2274
|
zone: zone,
|
2006
2275
|
cluster_id: cluster_id,
|
2007
|
-
maintenance_policy: maintenance_policy
|
2276
|
+
maintenance_policy: maintenance_policy,
|
2277
|
+
name: name
|
2008
2278
|
}.delete_if { |_, v| v.nil? }
|
2009
2279
|
req = Google::Gax::to_proto(req, Google::Container::V1::SetMaintenancePolicyRequest)
|
2010
2280
|
@set_maintenance_policy.call(req, options, &block)
|