google-api-client 0.9.6 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/api_names.yaml +15 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
- data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +97 -61
- data/generated/google/apis/bigquery_v2/representations.rb +23 -18
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +23 -2
- data/generated/google/apis/classroom_v1/classes.rb +920 -6
- data/generated/google/apis/classroom_v1/representations.rb +419 -0
- data/generated/google/apis/classroom_v1/service.rb +507 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
- data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
- data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
- data/generated/google/apis/cloudtrace_v1.rb +11 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
- data/generated/google/apis/compute_beta.rb +2 -2
- data/generated/google/apis/compute_beta/classes.rb +162 -32
- data/generated/google/apis/compute_beta/representations.rb +58 -0
- data/generated/google/apis/compute_beta/service.rb +392 -267
- data/generated/google/apis/compute_v1.rb +2 -2
- data/generated/google/apis/compute_v1/classes.rb +21 -9
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +291 -253
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +148 -0
- data/generated/google/apis/container_v1/representations.rb +55 -0
- data/generated/google/apis/container_v1/service.rb +161 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -6
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +2 -11
- data/generated/google/apis/dataproc_v1/classes.rb +0 -19
- data/generated/google/apis/dataproc_v1/representations.rb +0 -13
- data/generated/google/apis/dataproc_v1/service.rb +8 -87
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
- data/generated/google/apis/discovery_v1.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +2 -3
- data/generated/google/apis/dns_v1/service.rb +1 -2
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +3 -2
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +3 -2
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +34 -0
- data/generated/google/apis/games_management_v1management/representations.rb +16 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +34 -0
- data/generated/google/apis/games_v1/representations.rb +16 -0
- data/generated/google/apis/games_v1/service.rb +212 -53
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +18 -0
- data/generated/google/apis/genomics_v1/representations.rb +3 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -1
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6.rb +4 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
- data/generated/google/apis/replicapool_v1beta2.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +6 -3
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +5425 -0
- data/generated/google/apis/sheets_v4/representations.rb +2070 -0
- data/generated/google/apis/sheets_v4/service.rb +402 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -1
- data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +4 -5
- data/generated/google/apis/vision_v1/classes.rb +69 -68
- data/generated/google/apis/vision_v1/representations.rb +13 -13
- data/generated/google/apis/vision_v1/service.rb +3 -4
- data/generated/google/apis/youtube_analytics_v1.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +24 -0
- data/generated/google/apis/youtube_v3/representations.rb +4 -0
- data/generated/google/apis/youtubereporting_v1.rb +3 -3
- data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -2
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/container-engine/
|
27
27
|
module ContainerV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160421'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -129,6 +129,19 @@ module Google
|
|
129
129
|
# @return [String]
|
130
130
|
attr_accessor :subnetwork
|
131
131
|
|
132
|
+
# The node pools associated with this cluster. When creating a new cluster, only
|
133
|
+
# a single node pool should be specified. This field should not be set if "
|
134
|
+
# node_config" or "initial_node_count" are specified.
|
135
|
+
# Corresponds to the JSON property `nodePools`
|
136
|
+
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
137
|
+
attr_accessor :node_pools
|
138
|
+
|
139
|
+
# The list of Google Compute Engine [locations](/compute/docs/zones#available)
|
140
|
+
# in which the cluster's nodes should be located.
|
141
|
+
# Corresponds to the JSON property `locations`
|
142
|
+
# @return [Array<String>]
|
143
|
+
attr_accessor :locations
|
144
|
+
|
132
145
|
# [Output only] Server-defined URL for the resource.
|
133
146
|
# Corresponds to the JSON property `selfLink`
|
134
147
|
# @return [String]
|
@@ -225,6 +238,8 @@ module Google
|
|
225
238
|
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
226
239
|
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
227
240
|
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
241
|
+
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
242
|
+
@locations = args[:locations] if args.key?(:locations)
|
228
243
|
@self_link = args[:self_link] if args.key?(:self_link)
|
229
244
|
@zone = args[:zone] if args.key?(:zone)
|
230
245
|
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
@@ -420,6 +435,76 @@ module Google
|
|
420
435
|
end
|
421
436
|
end
|
422
437
|
|
438
|
+
# NodePool contains the name and configuration for a cluster's node pool. Node
|
439
|
+
# pools are a set of nodes (i.e. VM's), with a common configuration and
|
440
|
+
# specification, under the control of the cluster master. They may have a set of
|
441
|
+
# Kubernetes labels applied to them, which may be used to reference them during
|
442
|
+
# pod scheduling. They may also be resized up or down, to accommodate the
|
443
|
+
# workload.
|
444
|
+
class NodePool
|
445
|
+
include Google::Apis::Core::Hashable
|
446
|
+
|
447
|
+
# The name of the node pool.
|
448
|
+
# Corresponds to the JSON property `name`
|
449
|
+
# @return [String]
|
450
|
+
attr_accessor :name
|
451
|
+
|
452
|
+
# Parameters that describe the nodes in a cluster.
|
453
|
+
# Corresponds to the JSON property `config`
|
454
|
+
# @return [Google::Apis::ContainerV1::NodeConfig]
|
455
|
+
attr_accessor :config
|
456
|
+
|
457
|
+
# The initial node count for the pool. You must ensure that your Compute Engine
|
458
|
+
# resource quota is sufficient for this number of instances. You must also have
|
459
|
+
# available firewall and routes quota.
|
460
|
+
# Corresponds to the JSON property `initialNodeCount`
|
461
|
+
# @return [Fixnum]
|
462
|
+
attr_accessor :initial_node_count
|
463
|
+
|
464
|
+
# Server-defined URL for the resource.
|
465
|
+
# Corresponds to the JSON property `selfLink`
|
466
|
+
# @return [String]
|
467
|
+
attr_accessor :self_link
|
468
|
+
|
469
|
+
# The version of the Kubernetes of this node.
|
470
|
+
# Corresponds to the JSON property `version`
|
471
|
+
# @return [String]
|
472
|
+
attr_accessor :version
|
473
|
+
|
474
|
+
# [Output only] The resource URLs of [instance groups](/compute/docs/instance-
|
475
|
+
# groups/) associated with this node pool.
|
476
|
+
# Corresponds to the JSON property `instanceGroupUrls`
|
477
|
+
# @return [Array<String>]
|
478
|
+
attr_accessor :instance_group_urls
|
479
|
+
|
480
|
+
# The status of the nodes in this pool instance.
|
481
|
+
# Corresponds to the JSON property `status`
|
482
|
+
# @return [String]
|
483
|
+
attr_accessor :status
|
484
|
+
|
485
|
+
# [Output only] Additional information about the current status of this node
|
486
|
+
# pool instance, if available.
|
487
|
+
# Corresponds to the JSON property `statusMessage`
|
488
|
+
# @return [String]
|
489
|
+
attr_accessor :status_message
|
490
|
+
|
491
|
+
def initialize(**args)
|
492
|
+
update!(**args)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Update properties of this object
|
496
|
+
def update!(**args)
|
497
|
+
@name = args[:name] if args.key?(:name)
|
498
|
+
@config = args[:config] if args.key?(:config)
|
499
|
+
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
500
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
501
|
+
@version = args[:version] if args.key?(:version)
|
502
|
+
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
503
|
+
@status = args[:status] if args.key?(:status)
|
504
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
505
|
+
end
|
506
|
+
end
|
507
|
+
|
423
508
|
# CreateClusterRequest creates a cluster.
|
424
509
|
class CreateClusterRequest
|
425
510
|
include Google::Apis::Core::Hashable
|
@@ -546,6 +631,13 @@ module Google
|
|
546
631
|
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
547
632
|
attr_accessor :desired_addons_config
|
548
633
|
|
634
|
+
# The node pool to be upgraded. This field is mandatory if the "
|
635
|
+
# desired_node_version" or "desired_image_family" is specified and there is more
|
636
|
+
# than one node pool on the cluster.
|
637
|
+
# Corresponds to the JSON property `desiredNodePoolId`
|
638
|
+
# @return [String]
|
639
|
+
attr_accessor :desired_node_pool_id
|
640
|
+
|
549
641
|
# The Kubernetes version to change the master to. The only valid value is the
|
550
642
|
# latest supported version. Use "-" to have the server automatically select the
|
551
643
|
# latest version.
|
@@ -562,6 +654,7 @@ module Google
|
|
562
654
|
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
|
563
655
|
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
564
656
|
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
657
|
+
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
|
565
658
|
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
566
659
|
end
|
567
660
|
end
|
@@ -606,6 +699,16 @@ module Google
|
|
606
699
|
# @return [Array<String>]
|
607
700
|
attr_accessor :valid_node_versions
|
608
701
|
|
702
|
+
# Default image family.
|
703
|
+
# Corresponds to the JSON property `defaultImageFamily`
|
704
|
+
# @return [String]
|
705
|
+
attr_accessor :default_image_family
|
706
|
+
|
707
|
+
# List of valid image families.
|
708
|
+
# Corresponds to the JSON property `validImageFamilies`
|
709
|
+
# @return [Array<String>]
|
710
|
+
attr_accessor :valid_image_families
|
711
|
+
|
609
712
|
def initialize(**args)
|
610
713
|
update!(**args)
|
611
714
|
end
|
@@ -614,6 +717,51 @@ module Google
|
|
614
717
|
def update!(**args)
|
615
718
|
@default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
|
616
719
|
@valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
|
720
|
+
@default_image_family = args[:default_image_family] if args.key?(:default_image_family)
|
721
|
+
@valid_image_families = args[:valid_image_families] if args.key?(:valid_image_families)
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
725
|
+
# ListNodePoolsResponse is the result of ListNodePoolsRequest.
|
726
|
+
class ListNodePoolsResponse
|
727
|
+
include Google::Apis::Core::Hashable
|
728
|
+
|
729
|
+
# A list of node pools for a cluster.
|
730
|
+
# Corresponds to the JSON property `nodePools`
|
731
|
+
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
732
|
+
attr_accessor :node_pools
|
733
|
+
|
734
|
+
def initialize(**args)
|
735
|
+
update!(**args)
|
736
|
+
end
|
737
|
+
|
738
|
+
# Update properties of this object
|
739
|
+
def update!(**args)
|
740
|
+
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
# CreateNodePoolRequest creates a node pool for a cluster.
|
745
|
+
class CreateNodePoolRequest
|
746
|
+
include Google::Apis::Core::Hashable
|
747
|
+
|
748
|
+
# NodePool contains the name and configuration for a cluster's node pool. Node
|
749
|
+
# pools are a set of nodes (i.e. VM's), with a common configuration and
|
750
|
+
# specification, under the control of the cluster master. They may have a set of
|
751
|
+
# Kubernetes labels applied to them, which may be used to reference them during
|
752
|
+
# pod scheduling. They may also be resized up or down, to accommodate the
|
753
|
+
# workload.
|
754
|
+
# Corresponds to the JSON property `nodePool`
|
755
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
756
|
+
attr_accessor :node_pool
|
757
|
+
|
758
|
+
def initialize(**args)
|
759
|
+
update!(**args)
|
760
|
+
end
|
761
|
+
|
762
|
+
# Update properties of this object
|
763
|
+
def update!(**args)
|
764
|
+
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
617
765
|
end
|
618
766
|
end
|
619
767
|
end
|
@@ -64,6 +64,12 @@ module Google
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
+
class NodePool
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
67
73
|
class CreateClusterRequest
|
68
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
75
|
|
@@ -100,6 +106,18 @@ module Google
|
|
100
106
|
include Google::Apis::Core::JsonObjectSupport
|
101
107
|
end
|
102
108
|
|
109
|
+
class ListNodePoolsResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class CreateNodePoolRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
103
121
|
class ListClustersResponse
|
104
122
|
# @private
|
105
123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -126,6 +144,9 @@ module Google
|
|
126
144
|
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
127
145
|
|
128
146
|
property :subnetwork, as: 'subnetwork'
|
147
|
+
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
148
|
+
|
149
|
+
collection :locations, as: 'locations'
|
129
150
|
property :self_link, as: 'selfLink'
|
130
151
|
property :zone, as: 'zone'
|
131
152
|
property :endpoint, as: 'endpoint'
|
@@ -187,6 +208,21 @@ module Google
|
|
187
208
|
end
|
188
209
|
end
|
189
210
|
|
211
|
+
class NodePool
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
property :name, as: 'name'
|
215
|
+
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
216
|
+
|
217
|
+
property :initial_node_count, as: 'initialNodeCount'
|
218
|
+
property :self_link, as: 'selfLink'
|
219
|
+
property :version, as: 'version'
|
220
|
+
collection :instance_group_urls, as: 'instanceGroupUrls'
|
221
|
+
property :status, as: 'status'
|
222
|
+
property :status_message, as: 'statusMessage'
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
190
226
|
class CreateClusterRequest
|
191
227
|
# @private
|
192
228
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -224,6 +260,7 @@ module Google
|
|
224
260
|
property :desired_monitoring_service, as: 'desiredMonitoringService'
|
225
261
|
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
226
262
|
|
263
|
+
property :desired_node_pool_id, as: 'desiredNodePoolId'
|
227
264
|
property :desired_master_version, as: 'desiredMasterVersion'
|
228
265
|
end
|
229
266
|
end
|
@@ -242,6 +279,24 @@ module Google
|
|
242
279
|
class Representation < Google::Apis::Core::JsonRepresentation
|
243
280
|
property :default_cluster_version, as: 'defaultClusterVersion'
|
244
281
|
collection :valid_node_versions, as: 'validNodeVersions'
|
282
|
+
property :default_image_family, as: 'defaultImageFamily'
|
283
|
+
collection :valid_image_families, as: 'validImageFamilies'
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
class ListNodePoolsResponse
|
288
|
+
# @private
|
289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
290
|
+
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
291
|
+
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
class CreateNodePoolRequest
|
296
|
+
# @private
|
297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
+
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
299
|
+
|
245
300
|
end
|
246
301
|
end
|
247
302
|
end
|
@@ -283,6 +283,167 @@ module Google
|
|
283
283
|
execute_or_queue_command(command, &block)
|
284
284
|
end
|
285
285
|
|
286
|
+
# Lists the node pools for a cluster.
|
287
|
+
# @param [String] project_id
|
288
|
+
# The Google Developers Console [project ID or project number](https://
|
289
|
+
# developers.google.com/console/help/new/#projectnumber).
|
290
|
+
# @param [String] zone
|
291
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
292
|
+
# which the cluster resides.
|
293
|
+
# @param [String] cluster_id
|
294
|
+
# The name of the cluster.
|
295
|
+
# @param [String] fields
|
296
|
+
# Selector specifying which fields to include in a partial response.
|
297
|
+
# @param [String] quota_user
|
298
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
299
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
300
|
+
# @param [Google::Apis::RequestOptions] options
|
301
|
+
# Request-specific options
|
302
|
+
#
|
303
|
+
# @yield [result, err] Result & error if block supplied
|
304
|
+
# @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
|
305
|
+
# @yieldparam err [StandardError] error object if request failed
|
306
|
+
#
|
307
|
+
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
308
|
+
#
|
309
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
310
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
311
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
312
|
+
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
313
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
314
|
+
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
315
|
+
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
316
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
317
|
+
command.params['zone'] = zone unless zone.nil?
|
318
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
|
+
execute_or_queue_command(command, &block)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Retrieves the node pool requested.
|
325
|
+
# @param [String] project_id
|
326
|
+
# The Google Developers Console [project ID or project number](https://
|
327
|
+
# developers.google.com/console/help/new/#projectnumber).
|
328
|
+
# @param [String] zone
|
329
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
330
|
+
# which the cluster resides.
|
331
|
+
# @param [String] cluster_id
|
332
|
+
# The name of the cluster.
|
333
|
+
# @param [String] node_pool_id
|
334
|
+
# The name of the node pool.
|
335
|
+
# @param [String] fields
|
336
|
+
# Selector specifying which fields to include in a partial response.
|
337
|
+
# @param [String] quota_user
|
338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
341
|
+
# Request-specific options
|
342
|
+
#
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
344
|
+
# @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
346
|
+
#
|
347
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
348
|
+
#
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
+
def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
353
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
354
|
+
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
|
355
|
+
command.response_class = Google::Apis::ContainerV1::NodePool
|
356
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
357
|
+
command.params['zone'] = zone unless zone.nil?
|
358
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
359
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
360
|
+
command.query['fields'] = fields unless fields.nil?
|
361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
362
|
+
execute_or_queue_command(command, &block)
|
363
|
+
end
|
364
|
+
|
365
|
+
# Creates a node pool for a cluster.
|
366
|
+
# @param [String] project_id
|
367
|
+
# The Google Developers Console [project ID or project number](https://
|
368
|
+
# developers.google.com/console/help/new/#projectnumber).
|
369
|
+
# @param [String] zone
|
370
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
371
|
+
# which the cluster resides.
|
372
|
+
# @param [String] cluster_id
|
373
|
+
# The name of the cluster.
|
374
|
+
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
|
375
|
+
# @param [String] fields
|
376
|
+
# Selector specifying which fields to include in a partial response.
|
377
|
+
# @param [String] quota_user
|
378
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
379
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
380
|
+
# @param [Google::Apis::RequestOptions] options
|
381
|
+
# Request-specific options
|
382
|
+
#
|
383
|
+
# @yield [result, err] Result & error if block supplied
|
384
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
385
|
+
# @yieldparam err [StandardError] error object if request failed
|
386
|
+
#
|
387
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
388
|
+
#
|
389
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
390
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
391
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
392
|
+
def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
393
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
394
|
+
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
395
|
+
command.request_object = create_node_pool_request_object
|
396
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
397
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
398
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
399
|
+
command.params['zone'] = zone unless zone.nil?
|
400
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
403
|
+
execute_or_queue_command(command, &block)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Deletes a node pool from a cluster.
|
407
|
+
# @param [String] project_id
|
408
|
+
# The Google Developers Console [project ID or project number](https://
|
409
|
+
# developers.google.com/console/help/new/#projectnumber).
|
410
|
+
# @param [String] zone
|
411
|
+
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
412
|
+
# which the cluster resides.
|
413
|
+
# @param [String] cluster_id
|
414
|
+
# The name of the cluster.
|
415
|
+
# @param [String] node_pool_id
|
416
|
+
# The name of the node pool to delete.
|
417
|
+
# @param [String] fields
|
418
|
+
# Selector specifying which fields to include in a partial response.
|
419
|
+
# @param [String] quota_user
|
420
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
421
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
422
|
+
# @param [Google::Apis::RequestOptions] options
|
423
|
+
# Request-specific options
|
424
|
+
#
|
425
|
+
# @yield [result, err] Result & error if block supplied
|
426
|
+
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
427
|
+
# @yieldparam err [StandardError] error object if request failed
|
428
|
+
#
|
429
|
+
# @return [Google::Apis::ContainerV1::Operation]
|
430
|
+
#
|
431
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
432
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
433
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
434
|
+
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
435
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
436
|
+
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
437
|
+
command.response_class = Google::Apis::ContainerV1::Operation
|
438
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
439
|
+
command.params['zone'] = zone unless zone.nil?
|
440
|
+
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
441
|
+
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
286
447
|
# Lists all operations in a project in a specific zone or all zones.
|
287
448
|
# @param [String] project_id
|
288
449
|
# The Google Developers Console [project ID or project number](https://support.
|