google-api-client 0.11.2 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +6 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
- data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
- data/generated/google/apis/appengine_v1/representations.rb +229 -229
- data/generated/google/apis/appengine_v1/service.rb +188 -188
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +10 -4
- data/generated/google/apis/classroom_v1.rb +26 -17
- data/generated/google/apis/classroom_v1/classes.rb +990 -990
- data/generated/google/apis/classroom_v1/representations.rb +239 -239
- data/generated/google/apis/classroom_v1/service.rb +853 -853
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
- data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
- data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
- data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
- data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
- data/generated/google/apis/cloudkms_v1/service.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
- data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +66 -25
- data/generated/google/apis/compute_beta/representations.rb +16 -0
- data/generated/google/apis/compute_beta/service.rb +85 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +375 -24
- data/generated/google/apis/compute_v1/representations.rb +155 -0
- data/generated/google/apis/compute_v1/service.rb +481 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +301 -301
- data/generated/google/apis/container_v1/representations.rb +59 -59
- data/generated/google/apis/container_v1/service.rb +178 -178
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +37 -2
- data/generated/google/apis/content_v2/representations.rb +15 -0
- data/generated/google/apis/content_v2/service.rb +58 -3
- data/generated/google/apis/dataflow_v1b3.rb +4 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
- data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
- data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +446 -446
- data/generated/google/apis/dataproc_v1/representations.rb +96 -96
- data/generated/google/apis/dataproc_v1/service.rb +302 -302
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +370 -374
- data/generated/google/apis/datastore_v1/representations.rb +120 -120
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +24 -21
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +24 -22
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
- data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
- data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
- data/generated/google/apis/firebaserules_v1/service.rb +68 -68
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
- data/generated/google/apis/genomics_v1/representations.rb +430 -430
- data/generated/google/apis/genomics_v1/service.rb +1159 -1159
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +2 -2
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +305 -298
- data/generated/google/apis/iam_v1/representations.rb +97 -96
- data/generated/google/apis/iam_v1/service.rb +86 -86
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/classes.rb +452 -452
- data/generated/google/apis/language_v1/representations.rb +93 -93
- data/generated/google/apis/language_v1/service.rb +48 -48
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/classes.rb +84 -84
- data/generated/google/apis/language_v1beta1/representations.rb +22 -22
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +884 -873
- data/generated/google/apis/logging_v2/representations.rb +167 -166
- data/generated/google/apis/logging_v2/service.rb +430 -430
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
- data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
- data/generated/google/apis/logging_v2beta1/service.rb +292 -292
- data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
- data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +501 -494
- data/generated/google/apis/ml_v1/representations.rb +92 -91
- data/generated/google/apis/ml_v1/service.rb +190 -190
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +878 -878
- data/generated/google/apis/monitoring_v3/representations.rb +176 -176
- data/generated/google/apis/monitoring_v3/service.rb +223 -262
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1506 -1506
- data/generated/google/apis/partners_v2/representations.rb +370 -370
- data/generated/google/apis/partners_v2/service.rb +393 -393
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +597 -594
- data/generated/google/apis/people_v1/representations.rb +121 -121
- data/generated/google/apis/people_v1/service.rb +39 -48
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +178 -178
- data/generated/google/apis/pubsub_v1/representations.rb +55 -55
- data/generated/google/apis/pubsub_v1/service.rb +357 -357
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
- data/generated/google/apis/script_v1.rb +16 -16
- data/generated/google/apis/script_v1/classes.rb +113 -113
- data/generated/google/apis/script_v1/representations.rb +28 -28
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
- data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +4 -4
- data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
- data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
- data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
- data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
- data/generated/google/apis/sheets_v4/representations.rb +548 -548
- data/generated/google/apis/sheets_v4/service.rb +170 -170
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2945 -2916
- data/generated/google/apis/slides_v1/representations.rb +700 -697
- data/generated/google/apis/slides_v1/service.rb +44 -44
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
- data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
- data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
- data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
- data/generated/google/apis/spanner_v1/representations.rb +323 -323
- data/generated/google/apis/spanner_v1/service.rb +383 -383
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
- data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
- data/generated/google/apis/speech_v1beta1/service.rb +37 -32
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +26 -0
- data/generated/google/apis/storage_v1/representations.rb +15 -0
- data/generated/google/apis/storage_v1/service.rb +168 -42
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
- data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
- data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
- data/generated/google/apis/translate_v2.rb +11 -4
- data/generated/google/apis/translate_v2/classes.rb +140 -37
- data/generated/google/apis/translate_v2/representations.rb +62 -15
- data/generated/google/apis/translate_v2/service.rb +119 -66
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1265 -1273
- data/generated/google/apis/vision_v1/representations.rb +202 -202
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/core/api_command.rb +43 -10
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/options.rb +6 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
|
@@ -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 = '20170430'
|
|
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'
|
|
@@ -22,6 +22,21 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ContainerV1
|
|
24
24
|
|
|
25
|
+
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
|
|
26
|
+
# NodePool upgrade. This will be an no-op if the last upgrade successfully
|
|
27
|
+
# completed.
|
|
28
|
+
class RollbackNodePoolUpgradeRequest
|
|
29
|
+
include Google::Apis::Core::Hashable
|
|
30
|
+
|
|
31
|
+
def initialize(**args)
|
|
32
|
+
update!(**args)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Update properties of this object
|
|
36
|
+
def update!(**args)
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
25
40
|
# UpdateClusterRequest updates the settings of a cluster.
|
|
26
41
|
class UpdateClusterRequest
|
|
27
42
|
include Google::Apis::Core::Hashable
|
|
@@ -47,6 +62,80 @@ module Google
|
|
|
47
62
|
class Cluster
|
|
48
63
|
include Google::Apis::Core::Hashable
|
|
49
64
|
|
|
65
|
+
# [Output only] The number of nodes currently in the cluster.
|
|
66
|
+
# Corresponds to the JSON property `currentNodeCount`
|
|
67
|
+
# @return [Fixnum]
|
|
68
|
+
attr_accessor :current_node_count
|
|
69
|
+
|
|
70
|
+
# The monitoring service the cluster should use to write metrics.
|
|
71
|
+
# Currently available options:
|
|
72
|
+
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
|
73
|
+
# * `none` - no metrics will be exported from the cluster.
|
|
74
|
+
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
|
75
|
+
# Corresponds to the JSON property `monitoringService`
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :monitoring_service
|
|
78
|
+
|
|
79
|
+
# The name of the Google Compute Engine
|
|
80
|
+
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
|
81
|
+
# cluster is connected. If left unspecified, the `default` network
|
|
82
|
+
# will be used.
|
|
83
|
+
# Corresponds to the JSON property `network`
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :network
|
|
86
|
+
|
|
87
|
+
# The fingerprint of the set of labels for this cluster.
|
|
88
|
+
# Corresponds to the JSON property `labelFingerprint`
|
|
89
|
+
# @return [String]
|
|
90
|
+
attr_accessor :label_fingerprint
|
|
91
|
+
|
|
92
|
+
# [Output only] The name of the Google Compute Engine
|
|
93
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
94
|
+
# resides.
|
|
95
|
+
# Corresponds to the JSON property `zone`
|
|
96
|
+
# @return [String]
|
|
97
|
+
attr_accessor :zone
|
|
98
|
+
|
|
99
|
+
# [Output only] The time the cluster will be automatically
|
|
100
|
+
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
101
|
+
# Corresponds to the JSON property `expireTime`
|
|
102
|
+
# @return [String]
|
|
103
|
+
attr_accessor :expire_time
|
|
104
|
+
|
|
105
|
+
# [Output only] The size of the address space on each node for hosting
|
|
106
|
+
# containers. This is provisioned from within the `container_ipv4_cidr`
|
|
107
|
+
# range.
|
|
108
|
+
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
|
109
|
+
# @return [Fixnum]
|
|
110
|
+
attr_accessor :node_ipv4_cidr_size
|
|
111
|
+
|
|
112
|
+
# The logging service the cluster should use to write logs.
|
|
113
|
+
# Currently available options:
|
|
114
|
+
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
|
115
|
+
# * `none` - no logs will be exported from the cluster.
|
|
116
|
+
# * if left as an empty string,`logging.googleapis.com` will be used.
|
|
117
|
+
# Corresponds to the JSON property `loggingService`
|
|
118
|
+
# @return [String]
|
|
119
|
+
attr_accessor :logging_service
|
|
120
|
+
|
|
121
|
+
# [Output only] Additional information about the current status of this
|
|
122
|
+
# cluster, if available.
|
|
123
|
+
# Corresponds to the JSON property `statusMessage`
|
|
124
|
+
# @return [String]
|
|
125
|
+
attr_accessor :status_message
|
|
126
|
+
|
|
127
|
+
# The authentication information for accessing the master endpoint.
|
|
128
|
+
# Authentication can be done using HTTP basic auth or using client
|
|
129
|
+
# certificates.
|
|
130
|
+
# Corresponds to the JSON property `masterAuth`
|
|
131
|
+
# @return [Google::Apis::ContainerV1::MasterAuth]
|
|
132
|
+
attr_accessor :master_auth
|
|
133
|
+
|
|
134
|
+
# [Output only] The current software version of the master endpoint.
|
|
135
|
+
# Corresponds to the JSON property `currentMasterVersion`
|
|
136
|
+
# @return [String]
|
|
137
|
+
attr_accessor :current_master_version
|
|
138
|
+
|
|
50
139
|
# Parameters that describe the nodes in a cluster.
|
|
51
140
|
# Corresponds to the JSON property `nodeConfig`
|
|
52
141
|
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
@@ -63,13 +152,6 @@ module Google
|
|
|
63
152
|
# @return [String]
|
|
64
153
|
attr_accessor :status
|
|
65
154
|
|
|
66
|
-
# The name of the Google Compute Engine
|
|
67
|
-
# [subnetwork](/compute/docs/subnetworks) to which the
|
|
68
|
-
# cluster is connected.
|
|
69
|
-
# Corresponds to the JSON property `subnetwork`
|
|
70
|
-
# @return [String]
|
|
71
|
-
attr_accessor :subnetwork
|
|
72
|
-
|
|
73
155
|
# [Output only] The current version of the node software components.
|
|
74
156
|
# If they are currently at multiple versions because they're in the process
|
|
75
157
|
# of being upgraded, this reflects the minimum version of all nodes.
|
|
@@ -77,6 +159,13 @@ module Google
|
|
|
77
159
|
# @return [String]
|
|
78
160
|
attr_accessor :current_node_version
|
|
79
161
|
|
|
162
|
+
# The name of the Google Compute Engine
|
|
163
|
+
# [subnetwork](/compute/docs/subnetworks) to which the
|
|
164
|
+
# cluster is connected.
|
|
165
|
+
# Corresponds to the JSON property `subnetwork`
|
|
166
|
+
# @return [String]
|
|
167
|
+
attr_accessor :subnetwork
|
|
168
|
+
|
|
80
169
|
# The resource labels for the cluster to use to annotate any related GCE
|
|
81
170
|
# resources.
|
|
82
171
|
# Corresponds to the JSON property `resourceLabels`
|
|
@@ -100,6 +189,12 @@ module Google
|
|
|
100
189
|
# @return [String]
|
|
101
190
|
attr_accessor :initial_cluster_version
|
|
102
191
|
|
|
192
|
+
# Configuration for the legacy Attribute Based Access Control authorization
|
|
193
|
+
# mode.
|
|
194
|
+
# Corresponds to the JSON property `legacyAbac`
|
|
195
|
+
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
|
196
|
+
attr_accessor :legacy_abac
|
|
197
|
+
|
|
103
198
|
# [Output only] The IP address of this cluster's master endpoint.
|
|
104
199
|
# The endpoint can be accessed from the internet at
|
|
105
200
|
# `https://username:password@endpoint/`.
|
|
@@ -109,12 +204,6 @@ module Google
|
|
|
109
204
|
# @return [String]
|
|
110
205
|
attr_accessor :endpoint
|
|
111
206
|
|
|
112
|
-
# Configuration for the legacy Attribute Based Access Control authorization
|
|
113
|
-
# mode.
|
|
114
|
-
# Corresponds to the JSON property `legacyAbac`
|
|
115
|
-
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
|
116
|
-
attr_accessor :legacy_abac
|
|
117
|
-
|
|
118
207
|
# [Output only] The time the cluster was created, in
|
|
119
208
|
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
120
209
|
# Corresponds to the JSON property `createTime`
|
|
@@ -192,96 +281,33 @@ module Google
|
|
|
192
281
|
# @return [String]
|
|
193
282
|
attr_accessor :description
|
|
194
283
|
|
|
195
|
-
# [Output only] The number of nodes currently in the cluster.
|
|
196
|
-
# Corresponds to the JSON property `currentNodeCount`
|
|
197
|
-
# @return [Fixnum]
|
|
198
|
-
attr_accessor :current_node_count
|
|
199
|
-
|
|
200
|
-
# The monitoring service the cluster should use to write metrics.
|
|
201
|
-
# Currently available options:
|
|
202
|
-
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
|
203
|
-
# * `none` - no metrics will be exported from the cluster.
|
|
204
|
-
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
|
205
|
-
# Corresponds to the JSON property `monitoringService`
|
|
206
|
-
# @return [String]
|
|
207
|
-
attr_accessor :monitoring_service
|
|
208
|
-
|
|
209
|
-
# The name of the Google Compute Engine
|
|
210
|
-
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
|
211
|
-
# cluster is connected. If left unspecified, the `default` network
|
|
212
|
-
# will be used.
|
|
213
|
-
# Corresponds to the JSON property `network`
|
|
214
|
-
# @return [String]
|
|
215
|
-
attr_accessor :network
|
|
216
|
-
|
|
217
|
-
# The fingerprint of the set of labels for this cluster.
|
|
218
|
-
# Corresponds to the JSON property `labelFingerprint`
|
|
219
|
-
# @return [String]
|
|
220
|
-
attr_accessor :label_fingerprint
|
|
221
|
-
|
|
222
|
-
# [Output only] The name of the Google Compute Engine
|
|
223
|
-
# [zone](/compute/docs/zones#available) in which the cluster
|
|
224
|
-
# resides.
|
|
225
|
-
# Corresponds to the JSON property `zone`
|
|
226
|
-
# @return [String]
|
|
227
|
-
attr_accessor :zone
|
|
228
|
-
|
|
229
|
-
# The logging service the cluster should use to write logs.
|
|
230
|
-
# Currently available options:
|
|
231
|
-
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
|
232
|
-
# * `none` - no logs will be exported from the cluster.
|
|
233
|
-
# * if left as an empty string,`logging.googleapis.com` will be used.
|
|
234
|
-
# Corresponds to the JSON property `loggingService`
|
|
235
|
-
# @return [String]
|
|
236
|
-
attr_accessor :logging_service
|
|
237
|
-
|
|
238
|
-
# [Output only] The size of the address space on each node for hosting
|
|
239
|
-
# containers. This is provisioned from within the `container_ipv4_cidr`
|
|
240
|
-
# range.
|
|
241
|
-
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
|
242
|
-
# @return [Fixnum]
|
|
243
|
-
attr_accessor :node_ipv4_cidr_size
|
|
244
|
-
|
|
245
|
-
# [Output only] The time the cluster will be automatically
|
|
246
|
-
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
247
|
-
# Corresponds to the JSON property `expireTime`
|
|
248
|
-
# @return [String]
|
|
249
|
-
attr_accessor :expire_time
|
|
250
|
-
|
|
251
|
-
# [Output only] Additional information about the current status of this
|
|
252
|
-
# cluster, if available.
|
|
253
|
-
# Corresponds to the JSON property `statusMessage`
|
|
254
|
-
# @return [String]
|
|
255
|
-
attr_accessor :status_message
|
|
256
|
-
|
|
257
|
-
# The authentication information for accessing the master endpoint.
|
|
258
|
-
# Authentication can be done using HTTP basic auth or using client
|
|
259
|
-
# certificates.
|
|
260
|
-
# Corresponds to the JSON property `masterAuth`
|
|
261
|
-
# @return [Google::Apis::ContainerV1::MasterAuth]
|
|
262
|
-
attr_accessor :master_auth
|
|
263
|
-
|
|
264
|
-
# [Output only] The current software version of the master endpoint.
|
|
265
|
-
# Corresponds to the JSON property `currentMasterVersion`
|
|
266
|
-
# @return [String]
|
|
267
|
-
attr_accessor :current_master_version
|
|
268
|
-
|
|
269
284
|
def initialize(**args)
|
|
270
285
|
update!(**args)
|
|
271
286
|
end
|
|
272
287
|
|
|
273
288
|
# Update properties of this object
|
|
274
289
|
def update!(**args)
|
|
290
|
+
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
|
291
|
+
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
|
292
|
+
@network = args[:network] if args.key?(:network)
|
|
293
|
+
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
294
|
+
@zone = args[:zone] if args.key?(:zone)
|
|
295
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
296
|
+
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
|
297
|
+
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
|
298
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
299
|
+
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
|
300
|
+
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
|
275
301
|
@node_config = args[:node_config] if args.key?(:node_config)
|
|
276
302
|
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
|
277
303
|
@status = args[:status] if args.key?(:status)
|
|
278
|
-
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
279
304
|
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
|
|
305
|
+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
280
306
|
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
|
281
307
|
@name = args[:name] if args.key?(:name)
|
|
282
308
|
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
|
|
283
|
-
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
|
284
309
|
@legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
|
|
310
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
|
285
311
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
286
312
|
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
|
287
313
|
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
@@ -292,41 +318,6 @@ module Google
|
|
|
292
318
|
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
|
293
319
|
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
|
|
294
320
|
@description = args[:description] if args.key?(:description)
|
|
295
|
-
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
|
296
|
-
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
|
297
|
-
@network = args[:network] if args.key?(:network)
|
|
298
|
-
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
299
|
-
@zone = args[:zone] if args.key?(:zone)
|
|
300
|
-
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
|
301
|
-
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
|
302
|
-
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
303
|
-
@status_message = args[:status_message] if args.key?(:status_message)
|
|
304
|
-
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
|
305
|
-
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
|
306
|
-
end
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
# CreateNodePoolRequest creates a node pool for a cluster.
|
|
310
|
-
class CreateNodePoolRequest
|
|
311
|
-
include Google::Apis::Core::Hashable
|
|
312
|
-
|
|
313
|
-
# NodePool contains the name and configuration for a cluster's node pool.
|
|
314
|
-
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
|
315
|
-
# specification, under the control of the cluster master. They may have a set
|
|
316
|
-
# of Kubernetes labels applied to them, which may be used to reference them
|
|
317
|
-
# during pod scheduling. They may also be resized up or down, to accommodate
|
|
318
|
-
# the workload.
|
|
319
|
-
# Corresponds to the JSON property `nodePool`
|
|
320
|
-
# @return [Google::Apis::ContainerV1::NodePool]
|
|
321
|
-
attr_accessor :node_pool
|
|
322
|
-
|
|
323
|
-
def initialize(**args)
|
|
324
|
-
update!(**args)
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
# Update properties of this object
|
|
328
|
-
def update!(**args)
|
|
329
|
-
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
|
330
321
|
end
|
|
331
322
|
end
|
|
332
323
|
|
|
@@ -356,6 +347,30 @@ module Google
|
|
|
356
347
|
end
|
|
357
348
|
end
|
|
358
349
|
|
|
350
|
+
# CreateNodePoolRequest creates a node pool for a cluster.
|
|
351
|
+
class CreateNodePoolRequest
|
|
352
|
+
include Google::Apis::Core::Hashable
|
|
353
|
+
|
|
354
|
+
# NodePool contains the name and configuration for a cluster's node pool.
|
|
355
|
+
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
|
356
|
+
# specification, under the control of the cluster master. They may have a set
|
|
357
|
+
# of Kubernetes labels applied to them, which may be used to reference them
|
|
358
|
+
# during pod scheduling. They may also be resized up or down, to accommodate
|
|
359
|
+
# the workload.
|
|
360
|
+
# Corresponds to the JSON property `nodePool`
|
|
361
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
|
362
|
+
attr_accessor :node_pool
|
|
363
|
+
|
|
364
|
+
def initialize(**args)
|
|
365
|
+
update!(**args)
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# Update properties of this object
|
|
369
|
+
def update!(**args)
|
|
370
|
+
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
359
374
|
# Container Engine service configuration.
|
|
360
375
|
class ServerConfig
|
|
361
376
|
include Google::Apis::Core::Hashable
|
|
@@ -403,50 +418,6 @@ module Google
|
|
|
403
418
|
class NodeConfig
|
|
404
419
|
include Google::Apis::Core::Hashable
|
|
405
420
|
|
|
406
|
-
# The set of Google API scopes to be made available on all of the
|
|
407
|
-
# node VMs under the "default" service account.
|
|
408
|
-
# The following scopes are recommended, but not required, and by default are
|
|
409
|
-
# not included:
|
|
410
|
-
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
|
411
|
-
# persistent storage on your nodes.
|
|
412
|
-
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
|
413
|
-
# communicating with **gcr.io**
|
|
414
|
-
# (the [Google Container Registry](/container-registry/)).
|
|
415
|
-
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
|
416
|
-
# Monitoring are enabled, in which case their required scopes will be added.
|
|
417
|
-
# Corresponds to the JSON property `oauthScopes`
|
|
418
|
-
# @return [Array<String>]
|
|
419
|
-
attr_accessor :oauth_scopes
|
|
420
|
-
|
|
421
|
-
# Whether the nodes are created as preemptible VM instances. See:
|
|
422
|
-
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
|
423
|
-
# inforamtion about preemptible VM instances.
|
|
424
|
-
# Corresponds to the JSON property `preemptible`
|
|
425
|
-
# @return [Boolean]
|
|
426
|
-
attr_accessor :preemptible
|
|
427
|
-
alias_method :preemptible?, :preemptible
|
|
428
|
-
|
|
429
|
-
# The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
|
430
|
-
# These will added in addition to any default label(s) that
|
|
431
|
-
# Kubernetes may apply to the node.
|
|
432
|
-
# In case of conflict in label keys, the applied set may differ depending on
|
|
433
|
-
# the Kubernetes version -- it's best to assume the behavior is undefined
|
|
434
|
-
# and conflicts should be avoided.
|
|
435
|
-
# For more information, including usage and the valid values, see:
|
|
436
|
-
# http://kubernetes.io/v1.1/docs/user-guide/labels.html
|
|
437
|
-
# Corresponds to the JSON property `labels`
|
|
438
|
-
# @return [Hash<String,String>]
|
|
439
|
-
attr_accessor :labels
|
|
440
|
-
|
|
441
|
-
# The number of local SSD disks to be attached to the node.
|
|
442
|
-
# The limit for this value is dependant upon the maximum number of
|
|
443
|
-
# disks available on a machine per zone. See:
|
|
444
|
-
# https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
|
|
445
|
-
# for more information.
|
|
446
|
-
# Corresponds to the JSON property `localSsdCount`
|
|
447
|
-
# @return [Fixnum]
|
|
448
|
-
attr_accessor :local_ssd_count
|
|
449
|
-
|
|
450
421
|
# The metadata key/value pairs assigned to instances in the cluster.
|
|
451
422
|
# Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes
|
|
452
423
|
# in length. These are reflected as part of a URL in the metadata server.
|
|
@@ -497,22 +468,66 @@ module Google
|
|
|
497
468
|
# @return [String]
|
|
498
469
|
attr_accessor :image_type
|
|
499
470
|
|
|
471
|
+
# The set of Google API scopes to be made available on all of the
|
|
472
|
+
# node VMs under the "default" service account.
|
|
473
|
+
# The following scopes are recommended, but not required, and by default are
|
|
474
|
+
# not included:
|
|
475
|
+
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
|
476
|
+
# persistent storage on your nodes.
|
|
477
|
+
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
|
478
|
+
# communicating with **gcr.io**
|
|
479
|
+
# (the [Google Container Registry](/container-registry/)).
|
|
480
|
+
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
|
481
|
+
# Monitoring are enabled, in which case their required scopes will be added.
|
|
482
|
+
# Corresponds to the JSON property `oauthScopes`
|
|
483
|
+
# @return [Array<String>]
|
|
484
|
+
attr_accessor :oauth_scopes
|
|
485
|
+
|
|
486
|
+
# Whether the nodes are created as preemptible VM instances. See:
|
|
487
|
+
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
|
488
|
+
# inforamtion about preemptible VM instances.
|
|
489
|
+
# Corresponds to the JSON property `preemptible`
|
|
490
|
+
# @return [Boolean]
|
|
491
|
+
attr_accessor :preemptible
|
|
492
|
+
alias_method :preemptible?, :preemptible
|
|
493
|
+
|
|
494
|
+
# The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
|
495
|
+
# These will added in addition to any default label(s) that
|
|
496
|
+
# Kubernetes may apply to the node.
|
|
497
|
+
# In case of conflict in label keys, the applied set may differ depending on
|
|
498
|
+
# the Kubernetes version -- it's best to assume the behavior is undefined
|
|
499
|
+
# and conflicts should be avoided.
|
|
500
|
+
# For more information, including usage and the valid values, see:
|
|
501
|
+
# http://kubernetes.io/v1.1/docs/user-guide/labels.html
|
|
502
|
+
# Corresponds to the JSON property `labels`
|
|
503
|
+
# @return [Hash<String,String>]
|
|
504
|
+
attr_accessor :labels
|
|
505
|
+
|
|
506
|
+
# The number of local SSD disks to be attached to the node.
|
|
507
|
+
# The limit for this value is dependant upon the maximum number of
|
|
508
|
+
# disks available on a machine per zone. See:
|
|
509
|
+
# https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits
|
|
510
|
+
# for more information.
|
|
511
|
+
# Corresponds to the JSON property `localSsdCount`
|
|
512
|
+
# @return [Fixnum]
|
|
513
|
+
attr_accessor :local_ssd_count
|
|
514
|
+
|
|
500
515
|
def initialize(**args)
|
|
501
516
|
update!(**args)
|
|
502
517
|
end
|
|
503
518
|
|
|
504
519
|
# Update properties of this object
|
|
505
520
|
def update!(**args)
|
|
506
|
-
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
|
507
|
-
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
|
508
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
509
|
-
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
|
510
521
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
511
522
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
512
523
|
@tags = args[:tags] if args.key?(:tags)
|
|
513
524
|
@service_account = args[:service_account] if args.key?(:service_account)
|
|
514
525
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
|
515
526
|
@image_type = args[:image_type] if args.key?(:image_type)
|
|
527
|
+
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
|
528
|
+
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
|
529
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
530
|
+
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
|
516
531
|
end
|
|
517
532
|
end
|
|
518
533
|
|
|
@@ -522,6 +537,19 @@ module Google
|
|
|
522
537
|
class MasterAuth
|
|
523
538
|
include Google::Apis::Core::Hashable
|
|
524
539
|
|
|
540
|
+
# The username to use for HTTP basic authentication to the master endpoint.
|
|
541
|
+
# For clusters v1.6.0 and later, you can disable basic authentication by
|
|
542
|
+
# providing an empty username.
|
|
543
|
+
# Corresponds to the JSON property `username`
|
|
544
|
+
# @return [String]
|
|
545
|
+
attr_accessor :username
|
|
546
|
+
|
|
547
|
+
# [Output only] Base64-encoded private key used by clients to authenticate
|
|
548
|
+
# to the cluster endpoint.
|
|
549
|
+
# Corresponds to the JSON property `clientKey`
|
|
550
|
+
# @return [String]
|
|
551
|
+
attr_accessor :client_key
|
|
552
|
+
|
|
525
553
|
# [Output only] Base64-encoded public certificate that is the root of
|
|
526
554
|
# trust for the cluster.
|
|
527
555
|
# Corresponds to the JSON property `clusterCaCertificate`
|
|
@@ -542,30 +570,17 @@ module Google
|
|
|
542
570
|
# @return [String]
|
|
543
571
|
attr_accessor :client_certificate
|
|
544
572
|
|
|
545
|
-
# The username to use for HTTP basic authentication to the master endpoint.
|
|
546
|
-
# For clusters v1.6.0 and later, you can disable basic authentication by
|
|
547
|
-
# providing an empty username.
|
|
548
|
-
# Corresponds to the JSON property `username`
|
|
549
|
-
# @return [String]
|
|
550
|
-
attr_accessor :username
|
|
551
|
-
|
|
552
|
-
# [Output only] Base64-encoded private key used by clients to authenticate
|
|
553
|
-
# to the cluster endpoint.
|
|
554
|
-
# Corresponds to the JSON property `clientKey`
|
|
555
|
-
# @return [String]
|
|
556
|
-
attr_accessor :client_key
|
|
557
|
-
|
|
558
573
|
def initialize(**args)
|
|
559
574
|
update!(**args)
|
|
560
575
|
end
|
|
561
576
|
|
|
562
577
|
# Update properties of this object
|
|
563
578
|
def update!(**args)
|
|
579
|
+
@username = args[:username] if args.key?(:username)
|
|
580
|
+
@client_key = args[:client_key] if args.key?(:client_key)
|
|
564
581
|
@cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
|
|
565
582
|
@password = args[:password] if args.key?(:password)
|
|
566
583
|
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
567
|
-
@username = args[:username] if args.key?(:username)
|
|
568
|
-
@client_key = args[:client_key] if args.key?(:client_key)
|
|
569
584
|
end
|
|
570
585
|
end
|
|
571
586
|
|
|
@@ -680,12 +695,6 @@ module Google
|
|
|
680
695
|
class NodePoolAutoscaling
|
|
681
696
|
include Google::Apis::Core::Hashable
|
|
682
697
|
|
|
683
|
-
# Is autoscaling enabled for this node pool.
|
|
684
|
-
# Corresponds to the JSON property `enabled`
|
|
685
|
-
# @return [Boolean]
|
|
686
|
-
attr_accessor :enabled
|
|
687
|
-
alias_method :enabled?, :enabled
|
|
688
|
-
|
|
689
698
|
# Maximum number of nodes in the NodePool. Must be >= min_node_count. There
|
|
690
699
|
# has to enough quota to scale up the cluster.
|
|
691
700
|
# Corresponds to the JSON property `maxNodeCount`
|
|
@@ -698,15 +707,21 @@ module Google
|
|
|
698
707
|
# @return [Fixnum]
|
|
699
708
|
attr_accessor :min_node_count
|
|
700
709
|
|
|
710
|
+
# Is autoscaling enabled for this node pool.
|
|
711
|
+
# Corresponds to the JSON property `enabled`
|
|
712
|
+
# @return [Boolean]
|
|
713
|
+
attr_accessor :enabled
|
|
714
|
+
alias_method :enabled?, :enabled
|
|
715
|
+
|
|
701
716
|
def initialize(**args)
|
|
702
717
|
update!(**args)
|
|
703
718
|
end
|
|
704
719
|
|
|
705
720
|
# Update properties of this object
|
|
706
721
|
def update!(**args)
|
|
707
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
|
708
722
|
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
|
709
723
|
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
|
|
724
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
710
725
|
end
|
|
711
726
|
end
|
|
712
727
|
|
|
@@ -716,6 +731,22 @@ module Google
|
|
|
716
731
|
class ClusterUpdate
|
|
717
732
|
include Google::Apis::Core::Hashable
|
|
718
733
|
|
|
734
|
+
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
|
735
|
+
# adjust the size of the node pool to the current cluster usage.
|
|
736
|
+
# Corresponds to the JSON property `desiredNodePoolAutoscaling`
|
|
737
|
+
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
|
|
738
|
+
attr_accessor :desired_node_pool_autoscaling
|
|
739
|
+
|
|
740
|
+
# The desired list of Google Compute Engine
|
|
741
|
+
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
|
742
|
+
# should be located. Changing the locations a cluster is in will result
|
|
743
|
+
# in nodes being either created or removed from the cluster, depending on
|
|
744
|
+
# whether locations are being added or removed.
|
|
745
|
+
# This list must always include the cluster's primary zone.
|
|
746
|
+
# Corresponds to the JSON property `desiredLocations`
|
|
747
|
+
# @return [Array<String>]
|
|
748
|
+
attr_accessor :desired_locations
|
|
749
|
+
|
|
719
750
|
# The monitoring service the cluster should use to write metrics.
|
|
720
751
|
# Currently available options:
|
|
721
752
|
# * "monitoring.googleapis.com" - the Google Cloud Monitoring service
|
|
@@ -758,36 +789,20 @@ module Google
|
|
|
758
789
|
# @return [String]
|
|
759
790
|
attr_accessor :desired_master_version
|
|
760
791
|
|
|
761
|
-
# The desired list of Google Compute Engine
|
|
762
|
-
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
|
763
|
-
# should be located. Changing the locations a cluster is in will result
|
|
764
|
-
# in nodes being either created or removed from the cluster, depending on
|
|
765
|
-
# whether locations are being added or removed.
|
|
766
|
-
# This list must always include the cluster's primary zone.
|
|
767
|
-
# Corresponds to the JSON property `desiredLocations`
|
|
768
|
-
# @return [Array<String>]
|
|
769
|
-
attr_accessor :desired_locations
|
|
770
|
-
|
|
771
|
-
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
|
772
|
-
# adjust the size of the node pool to the current cluster usage.
|
|
773
|
-
# Corresponds to the JSON property `desiredNodePoolAutoscaling`
|
|
774
|
-
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
|
|
775
|
-
attr_accessor :desired_node_pool_autoscaling
|
|
776
|
-
|
|
777
792
|
def initialize(**args)
|
|
778
793
|
update!(**args)
|
|
779
794
|
end
|
|
780
795
|
|
|
781
796
|
# Update properties of this object
|
|
782
797
|
def update!(**args)
|
|
798
|
+
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
|
799
|
+
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
|
783
800
|
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
|
784
801
|
@desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type)
|
|
785
802
|
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
|
786
803
|
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
|
|
787
804
|
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
|
|
788
805
|
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
|
789
|
-
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
|
790
|
-
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
|
791
806
|
end
|
|
792
807
|
end
|
|
793
808
|
|
|
@@ -944,6 +959,38 @@ module Google
|
|
|
944
959
|
end
|
|
945
960
|
end
|
|
946
961
|
|
|
962
|
+
# SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
|
|
963
|
+
# Engine cluster, which will in turn set them for Google Compute Engine
|
|
964
|
+
# resources used by that cluster
|
|
965
|
+
class SetLabelsRequest
|
|
966
|
+
include Google::Apis::Core::Hashable
|
|
967
|
+
|
|
968
|
+
# The labels to set for that cluster.
|
|
969
|
+
# Corresponds to the JSON property `resourceLabels`
|
|
970
|
+
# @return [Hash<String,String>]
|
|
971
|
+
attr_accessor :resource_labels
|
|
972
|
+
|
|
973
|
+
# The fingerprint of the previous set of labels for this resource,
|
|
974
|
+
# used to detect conflicts. The fingerprint is initially generated by
|
|
975
|
+
# Container Engine and changes after every request to modify or update
|
|
976
|
+
# labels. You must always provide an up-to-date fingerprint hash when
|
|
977
|
+
# updating or changing labels. Make a <code>get()</code> request to the
|
|
978
|
+
# resource to get the latest fingerprint.
|
|
979
|
+
# Corresponds to the JSON property `labelFingerprint`
|
|
980
|
+
# @return [String]
|
|
981
|
+
attr_accessor :label_fingerprint
|
|
982
|
+
|
|
983
|
+
def initialize(**args)
|
|
984
|
+
update!(**args)
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# Update properties of this object
|
|
988
|
+
def update!(**args)
|
|
989
|
+
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
|
990
|
+
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
991
|
+
end
|
|
992
|
+
end
|
|
993
|
+
|
|
947
994
|
# NodePool contains the name and configuration for a cluster's node pool.
|
|
948
995
|
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
|
949
996
|
# specification, under the control of the cluster master. They may have a set
|
|
@@ -953,6 +1000,27 @@ module Google
|
|
|
953
1000
|
class NodePool
|
|
954
1001
|
include Google::Apis::Core::Hashable
|
|
955
1002
|
|
|
1003
|
+
# [Output only] The status of the nodes in this pool instance.
|
|
1004
|
+
# Corresponds to the JSON property `status`
|
|
1005
|
+
# @return [String]
|
|
1006
|
+
attr_accessor :status
|
|
1007
|
+
|
|
1008
|
+
# Parameters that describe the nodes in a cluster.
|
|
1009
|
+
# Corresponds to the JSON property `config`
|
|
1010
|
+
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
1011
|
+
attr_accessor :config
|
|
1012
|
+
|
|
1013
|
+
# [Output only] Additional information about the current status of this
|
|
1014
|
+
# node pool instance, if available.
|
|
1015
|
+
# Corresponds to the JSON property `statusMessage`
|
|
1016
|
+
# @return [String]
|
|
1017
|
+
attr_accessor :status_message
|
|
1018
|
+
|
|
1019
|
+
# The name of the node pool.
|
|
1020
|
+
# Corresponds to the JSON property `name`
|
|
1021
|
+
# @return [String]
|
|
1022
|
+
attr_accessor :name
|
|
1023
|
+
|
|
956
1024
|
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
|
957
1025
|
# adjust the size of the node pool to the current cluster usage.
|
|
958
1026
|
# Corresponds to the JSON property `autoscaling`
|
|
@@ -990,75 +1058,22 @@ module Google
|
|
|
990
1058
|
# @return [Array<String>]
|
|
991
1059
|
attr_accessor :instance_group_urls
|
|
992
1060
|
|
|
993
|
-
# [Output only] The status of the nodes in this pool instance.
|
|
994
|
-
# Corresponds to the JSON property `status`
|
|
995
|
-
# @return [String]
|
|
996
|
-
attr_accessor :status
|
|
997
|
-
|
|
998
|
-
# Parameters that describe the nodes in a cluster.
|
|
999
|
-
# Corresponds to the JSON property `config`
|
|
1000
|
-
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
1001
|
-
attr_accessor :config
|
|
1002
|
-
|
|
1003
|
-
# [Output only] Additional information about the current status of this
|
|
1004
|
-
# node pool instance, if available.
|
|
1005
|
-
# Corresponds to the JSON property `statusMessage`
|
|
1006
|
-
# @return [String]
|
|
1007
|
-
attr_accessor :status_message
|
|
1008
|
-
|
|
1009
|
-
# The name of the node pool.
|
|
1010
|
-
# Corresponds to the JSON property `name`
|
|
1011
|
-
# @return [String]
|
|
1012
|
-
attr_accessor :name
|
|
1013
|
-
|
|
1014
1061
|
def initialize(**args)
|
|
1015
1062
|
update!(**args)
|
|
1016
1063
|
end
|
|
1017
1064
|
|
|
1018
1065
|
# Update properties of this object
|
|
1019
1066
|
def update!(**args)
|
|
1067
|
+
@status = args[:status] if args.key?(:status)
|
|
1068
|
+
@config = args[:config] if args.key?(:config)
|
|
1069
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1070
|
+
@name = args[:name] if args.key?(:name)
|
|
1020
1071
|
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
|
|
1021
1072
|
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
1022
1073
|
@management = args[:management] if args.key?(:management)
|
|
1023
1074
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
1024
1075
|
@version = args[:version] if args.key?(:version)
|
|
1025
1076
|
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
|
1026
|
-
@status = args[:status] if args.key?(:status)
|
|
1027
|
-
@config = args[:config] if args.key?(:config)
|
|
1028
|
-
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1029
|
-
@name = args[:name] if args.key?(:name)
|
|
1030
|
-
end
|
|
1031
|
-
end
|
|
1032
|
-
|
|
1033
|
-
# SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
|
|
1034
|
-
# Engine cluster, which will in turn set them for Google Compute Engine
|
|
1035
|
-
# resources used by that cluster
|
|
1036
|
-
class SetLabelsRequest
|
|
1037
|
-
include Google::Apis::Core::Hashable
|
|
1038
|
-
|
|
1039
|
-
# The labels to set for that cluster.
|
|
1040
|
-
# Corresponds to the JSON property `resourceLabels`
|
|
1041
|
-
# @return [Hash<String,String>]
|
|
1042
|
-
attr_accessor :resource_labels
|
|
1043
|
-
|
|
1044
|
-
# The fingerprint of the previous set of labels for this resource,
|
|
1045
|
-
# used to detect conflicts. The fingerprint is initially generated by
|
|
1046
|
-
# Container Engine and changes after every request to modify or update
|
|
1047
|
-
# labels. You must always provide an up-to-date fingerprint hash when
|
|
1048
|
-
# updating or changing labels. Make a <code>get()</code> request to the
|
|
1049
|
-
# resource to get the latest fingerprint.
|
|
1050
|
-
# Corresponds to the JSON property `labelFingerprint`
|
|
1051
|
-
# @return [String]
|
|
1052
|
-
attr_accessor :label_fingerprint
|
|
1053
|
-
|
|
1054
|
-
def initialize(**args)
|
|
1055
|
-
update!(**args)
|
|
1056
|
-
end
|
|
1057
|
-
|
|
1058
|
-
# Update properties of this object
|
|
1059
|
-
def update!(**args)
|
|
1060
|
-
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
|
1061
|
-
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
1062
1077
|
end
|
|
1063
1078
|
end
|
|
1064
1079
|
|
|
@@ -1067,6 +1082,12 @@ module Google
|
|
|
1067
1082
|
class NodeManagement
|
|
1068
1083
|
include Google::Apis::Core::Hashable
|
|
1069
1084
|
|
|
1085
|
+
# AutoUpgradeOptions defines the set of options for the user to control how
|
|
1086
|
+
# the Auto Upgrades will proceed.
|
|
1087
|
+
# Corresponds to the JSON property `upgradeOptions`
|
|
1088
|
+
# @return [Google::Apis::ContainerV1::AutoUpgradeOptions]
|
|
1089
|
+
attr_accessor :upgrade_options
|
|
1090
|
+
|
|
1070
1091
|
# A flag that specifies whether node auto-upgrade is enabled for the node
|
|
1071
1092
|
# pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
|
|
1072
1093
|
# up to date with the latest release version of Kubernetes.
|
|
@@ -1084,21 +1105,15 @@ module Google
|
|
|
1084
1105
|
attr_accessor :auto_repair
|
|
1085
1106
|
alias_method :auto_repair?, :auto_repair
|
|
1086
1107
|
|
|
1087
|
-
# AutoUpgradeOptions defines the set of options for the user to control how
|
|
1088
|
-
# the Auto Upgrades will proceed.
|
|
1089
|
-
# Corresponds to the JSON property `upgradeOptions`
|
|
1090
|
-
# @return [Google::Apis::ContainerV1::AutoUpgradeOptions]
|
|
1091
|
-
attr_accessor :upgrade_options
|
|
1092
|
-
|
|
1093
1108
|
def initialize(**args)
|
|
1094
1109
|
update!(**args)
|
|
1095
1110
|
end
|
|
1096
1111
|
|
|
1097
1112
|
# Update properties of this object
|
|
1098
1113
|
def update!(**args)
|
|
1114
|
+
@upgrade_options = args[:upgrade_options] if args.key?(:upgrade_options)
|
|
1099
1115
|
@auto_upgrade = args[:auto_upgrade] if args.key?(:auto_upgrade)
|
|
1100
1116
|
@auto_repair = args[:auto_repair] if args.key?(:auto_repair)
|
|
1101
|
-
@upgrade_options = args[:upgrade_options] if args.key?(:upgrade_options)
|
|
1102
1117
|
end
|
|
1103
1118
|
end
|
|
1104
1119
|
|
|
@@ -1141,16 +1156,21 @@ module Google
|
|
|
1141
1156
|
class Operation
|
|
1142
1157
|
include Google::Apis::Core::Hashable
|
|
1143
1158
|
|
|
1144
|
-
#
|
|
1145
|
-
# Corresponds to the JSON property `
|
|
1159
|
+
# The current status of the operation.
|
|
1160
|
+
# Corresponds to the JSON property `status`
|
|
1146
1161
|
# @return [String]
|
|
1147
|
-
attr_accessor :
|
|
1162
|
+
attr_accessor :status
|
|
1148
1163
|
|
|
1149
1164
|
# The server-assigned ID for the operation.
|
|
1150
1165
|
# Corresponds to the JSON property `name`
|
|
1151
1166
|
# @return [String]
|
|
1152
1167
|
attr_accessor :name
|
|
1153
1168
|
|
|
1169
|
+
# If an error has occurred, a textual description of the error.
|
|
1170
|
+
# Corresponds to the JSON property `statusMessage`
|
|
1171
|
+
# @return [String]
|
|
1172
|
+
attr_accessor :status_message
|
|
1173
|
+
|
|
1154
1174
|
# Server-defined URL for the resource.
|
|
1155
1175
|
# Corresponds to the JSON property `selfLink`
|
|
1156
1176
|
# @return [String]
|
|
@@ -1178,25 +1198,20 @@ module Google
|
|
|
1178
1198
|
# @return [String]
|
|
1179
1199
|
attr_accessor :zone
|
|
1180
1200
|
|
|
1181
|
-
# The current status of the operation.
|
|
1182
|
-
# Corresponds to the JSON property `status`
|
|
1183
|
-
# @return [String]
|
|
1184
|
-
attr_accessor :status
|
|
1185
|
-
|
|
1186
1201
|
def initialize(**args)
|
|
1187
1202
|
update!(**args)
|
|
1188
1203
|
end
|
|
1189
1204
|
|
|
1190
1205
|
# Update properties of this object
|
|
1191
1206
|
def update!(**args)
|
|
1192
|
-
@
|
|
1207
|
+
@status = args[:status] if args.key?(:status)
|
|
1193
1208
|
@name = args[:name] if args.key?(:name)
|
|
1209
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1194
1210
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
1195
1211
|
@target_link = args[:target_link] if args.key?(:target_link)
|
|
1196
1212
|
@detail = args[:detail] if args.key?(:detail)
|
|
1197
1213
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
1198
1214
|
@zone = args[:zone] if args.key?(:zone)
|
|
1199
|
-
@status = args[:status] if args.key?(:status)
|
|
1200
1215
|
end
|
|
1201
1216
|
end
|
|
1202
1217
|
|
|
@@ -1228,21 +1243,6 @@ module Google
|
|
|
1228
1243
|
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
|
|
1229
1244
|
end
|
|
1230
1245
|
end
|
|
1231
|
-
|
|
1232
|
-
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
|
|
1233
|
-
# NodePool upgrade. This will be an no-op if the last upgrade successfully
|
|
1234
|
-
# completed.
|
|
1235
|
-
class RollbackNodePoolUpgradeRequest
|
|
1236
|
-
include Google::Apis::Core::Hashable
|
|
1237
|
-
|
|
1238
|
-
def initialize(**args)
|
|
1239
|
-
update!(**args)
|
|
1240
|
-
end
|
|
1241
|
-
|
|
1242
|
-
# Update properties of this object
|
|
1243
|
-
def update!(**args)
|
|
1244
|
-
end
|
|
1245
|
-
end
|
|
1246
1246
|
end
|
|
1247
1247
|
end
|
|
1248
1248
|
end
|