google-api-client 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +34 -0
- data/api_names.yaml +3 -0
- data/api_names_out.yaml +1058 -20
- data/bin/generate-api +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +203 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +78 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +36 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +2 -3
- data/generated/google/apis/androidenterprise_v1/classes.rb +11 -4
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +5 -6
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +6 -0
- data/generated/google/apis/appengine_v1beta5.rb +2 -3
- data/generated/google/apis/appengine_v1beta5/classes.rb +143 -8
- data/generated/google/apis/appengine_v1beta5/representations.rb +42 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +48 -6
- 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 +68 -14
- data/generated/google/apis/bigquery_v2/representations.rb +30 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +68 -3
- data/generated/google/apis/books_v1/representations.rb +21 -0
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/clouduseraccounts_beta.rb +1 -1
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +138 -108
- data/generated/google/apis/compute_beta/representations.rb +16 -18
- data/generated/google/apis/compute_beta/service.rb +52 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +55 -74
- data/generated/google/apis/compute_v1/representations.rb +14 -18
- data/generated/google/apis/compute_v1/service.rb +45 -1
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +200 -42
- data/generated/google/apis/container_v1/representations.rb +54 -0
- data/generated/google/apis/container_v1/service.rb +31 -30
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2.rb +2 -2
- data/generated/google/apis/datastore_v1beta2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +2 -3
- data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -1
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +26 -27
- data/generated/google/apis/dfareporting_v2_3.rb +2 -2
- data/generated/google/apis/dfareporting_v2_3/classes.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -4
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +7 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/fusiontables_v2.rb +1 -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_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -2
- data/generated/google/apis/genomics_v1/classes.rb +770 -82
- data/generated/google/apis/genomics_v1/representations.rb +287 -24
- data/generated/google/apis/genomics_v1/service.rb +412 -13
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +13 -6
- data/generated/google/apis/groupssettings_v1/representations.rb +1 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +50 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
- data/generated/google/apis/logging_v2beta1.rb +2 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +219 -63
- data/generated/google/apis/logging_v2beta1/representations.rb +24 -1
- data/generated/google/apis/logging_v2beta1/service.rb +25 -32
- data/generated/google/apis/oauth2_v2.rb +2 -2
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +20 -12
- data/generated/google/apis/pubsub_v1/service.rb +32 -35
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +23 -9
- data/generated/google/apis/reseller_v1/representations.rb +2 -0
- data/generated/google/apis/sheets_v1.rb +43 -0
- data/generated/google/apis/sheets_v1/classes.rb +4542 -0
- data/generated/google/apis/sheets_v1/representations.rb +1703 -0
- data/generated/google/apis/sheets_v1/service.rb +363 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +3 -2
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +4 -3
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +2 -2
- data/generated/google/apis/vision_v1/classes.rb +11 -11
- data/generated/google/apis/vision_v1/service.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +2 -2
- data/generated/google/apis/webmasters_v3/classes.rb +7 -0
- data/generated/google/apis/webmasters_v3/representations.rb +1 -0
- data/generated/google/apis/webmasters_v3/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +37 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +3656 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1452 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +3165 -0
- data/generated/google/apis/youtube_v3.rb +3 -2
- data/generated/google/apis/youtube_v3/classes.rb +100 -3
- data/generated/google/apis/youtube_v3/representations.rb +50 -0
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +17 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +2 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +21 -3
- data/google-api-client.gemspec +2 -0
- data/lib/google/apis.rb +12 -2
- data/lib/google/apis/version.rb +1 -1
- data/script/generate +5 -2
- data/spec/google/apis/logging_spec.rb +55 -0
- metadata +12 -4
@@ -20,13 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Google Container Engine API
|
22
22
|
#
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# Builds and manages clusters that run container-based applications, powered by
|
24
|
+
# open source Kubernetes technology.
|
25
25
|
#
|
26
26
|
# @see https://cloud.google.com/container-engine/
|
27
27
|
module ContainerV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160321'
|
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'
|
@@ -31,6 +31,12 @@ module Google
|
|
31
31
|
# @return [Array<Google::Apis::ContainerV1::Cluster>]
|
32
32
|
attr_accessor :clusters
|
33
33
|
|
34
|
+
# If any zones are listed here, the list of clusters returned may be missing
|
35
|
+
# those zones.
|
36
|
+
# Corresponds to the JSON property `missingZones`
|
37
|
+
# @return [Array<String>]
|
38
|
+
attr_accessor :missing_zones
|
39
|
+
|
34
40
|
def initialize(**args)
|
35
41
|
update!(**args)
|
36
42
|
end
|
@@ -38,6 +44,7 @@ module Google
|
|
38
44
|
# Update properties of this object
|
39
45
|
def update!(**args)
|
40
46
|
@clusters = args[:clusters] if args.key?(:clusters)
|
47
|
+
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
|
41
48
|
end
|
42
49
|
end
|
43
50
|
|
@@ -59,14 +66,16 @@ module Google
|
|
59
66
|
attr_accessor :description
|
60
67
|
|
61
68
|
# The number of nodes to create in this cluster. You must ensure that your
|
62
|
-
# Compute Engine
|
63
|
-
#
|
64
|
-
#
|
69
|
+
# Compute Engine resource quota is sufficient for this number of instances. You
|
70
|
+
# must also have available firewall and routes quota. For requests, this field
|
71
|
+
# should only be used in lieu of a "node_pool" object, since this configuration (
|
72
|
+
# along with the "node_config") will be used to create a "NodePool" object with
|
73
|
+
# an auto-generated name. Do not use this and a node_pool at the same time.
|
65
74
|
# Corresponds to the JSON property `initialNodeCount`
|
66
75
|
# @return [Fixnum]
|
67
76
|
attr_accessor :initial_node_count
|
68
77
|
|
69
|
-
#
|
78
|
+
# Parameters that describe the nodes in a cluster.
|
70
79
|
# Corresponds to the JSON property `nodeConfig`
|
71
80
|
# @return [Google::Apis::ContainerV1::NodeConfig]
|
72
81
|
attr_accessor :node_config
|
@@ -77,25 +86,25 @@ module Google
|
|
77
86
|
# @return [Google::Apis::ContainerV1::MasterAuth]
|
78
87
|
attr_accessor :master_auth
|
79
88
|
|
80
|
-
# The logging service
|
81
|
-
# options: *
|
82
|
-
# - no logs will be exported from the cluster *
|
83
|
-
#
|
89
|
+
# The logging service the cluster should use to write logs. Currently available
|
90
|
+
# options: * `logging.googleapis.com` - the Google Cloud Logging service. * `
|
91
|
+
# none` - no logs will be exported from the cluster. * if left as an empty
|
92
|
+
# string,`logging.googleapis.com` will be used.
|
84
93
|
# Corresponds to the JSON property `loggingService`
|
85
94
|
# @return [String]
|
86
95
|
attr_accessor :logging_service
|
87
96
|
|
88
|
-
# The monitoring service
|
89
|
-
# available options: *
|
90
|
-
# service *
|
91
|
-
#
|
97
|
+
# The monitoring service the cluster should use to write metrics. Currently
|
98
|
+
# available options: * `monitoring.googleapis.com` - the Google Cloud Monitoring
|
99
|
+
# service. * `none` - no metrics will be exported from the cluster. * if left as
|
100
|
+
# an empty string, `monitoring.googleapis.com` will be used.
|
92
101
|
# Corresponds to the JSON property `monitoringService`
|
93
102
|
# @return [String]
|
94
103
|
attr_accessor :monitoring_service
|
95
104
|
|
96
|
-
# The name of the Google Compute Engine [network](/compute/docs/
|
97
|
-
#
|
98
|
-
# default
|
105
|
+
# The name of the Google Compute Engine [network](/compute/docs/networks-and-
|
106
|
+
# firewalls#networks) to which the cluster is connected. If left unspecified,
|
107
|
+
# the `default` network will be used.
|
99
108
|
# Corresponds to the JSON property `network`
|
100
109
|
# @return [String]
|
101
110
|
attr_accessor :network
|
@@ -108,6 +117,18 @@ module Google
|
|
108
117
|
# @return [String]
|
109
118
|
attr_accessor :cluster_ipv4_cidr
|
110
119
|
|
120
|
+
# Configuration for the addons that can be automatically spun up in the cluster,
|
121
|
+
# enabling additional functionality.
|
122
|
+
# Corresponds to the JSON property `addonsConfig`
|
123
|
+
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
124
|
+
attr_accessor :addons_config
|
125
|
+
|
126
|
+
# The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks)
|
127
|
+
# to which the cluster is connected.
|
128
|
+
# Corresponds to the JSON property `subnetwork`
|
129
|
+
# @return [String]
|
130
|
+
attr_accessor :subnetwork
|
131
|
+
|
111
132
|
# [Output only] Server-defined URL for the resource.
|
112
133
|
# Corresponds to the JSON property `selfLink`
|
113
134
|
# @return [String]
|
@@ -119,15 +140,15 @@ module Google
|
|
119
140
|
# @return [String]
|
120
141
|
attr_accessor :zone
|
121
142
|
|
122
|
-
# [Output only] The IP address of this cluster's
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
143
|
+
# [Output only] The IP address of this cluster's master endpoint. The endpoint
|
144
|
+
# can be accessed from the internet at `https://username:password@endpoint/`.
|
145
|
+
# See the `masterAuth` property of this resource for username and password
|
146
|
+
# information.
|
126
147
|
# Corresponds to the JSON property `endpoint`
|
127
148
|
# @return [String]
|
128
149
|
attr_accessor :endpoint
|
129
150
|
|
130
|
-
# [Output only] The software version of
|
151
|
+
# [Output only] The software version of the master endpoint and kubelets used in
|
131
152
|
# the cluster when it was first created. The version can be upgraded over time.
|
132
153
|
# Corresponds to the JSON property `initialClusterVersion`
|
133
154
|
# @return [String]
|
@@ -139,8 +160,8 @@ module Google
|
|
139
160
|
attr_accessor :current_master_version
|
140
161
|
|
141
162
|
# [Output only] The current version of the node software components. If they are
|
142
|
-
# currently at
|
143
|
-
# upgraded, this reflects the minimum version of
|
163
|
+
# currently at multiple versions because they're in the process of being
|
164
|
+
# upgraded, this reflects the minimum version of all nodes.
|
144
165
|
# Corresponds to the JSON property `currentNodeVersion`
|
145
166
|
# @return [String]
|
146
167
|
attr_accessor :current_node_version
|
@@ -163,15 +184,15 @@ module Google
|
|
163
184
|
attr_accessor :status_message
|
164
185
|
|
165
186
|
# [Output only] The size of the address space on each node for hosting
|
166
|
-
# containers. This is provisioned from within the container_ipv4_cidr range.
|
187
|
+
# containers. This is provisioned from within the `container_ipv4_cidr` range.
|
167
188
|
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
168
189
|
# @return [Fixnum]
|
169
190
|
attr_accessor :node_ipv4_cidr_size
|
170
191
|
|
171
192
|
# [Output only] The IP address range of the Kubernetes services in this cluster,
|
172
193
|
# in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
173
|
-
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last
|
174
|
-
# 16 from the container CIDR.
|
194
|
+
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `
|
195
|
+
# /16` from the container CIDR.
|
175
196
|
# Corresponds to the JSON property `servicesIpv4Cidr`
|
176
197
|
# @return [String]
|
177
198
|
attr_accessor :services_ipv4_cidr
|
@@ -182,6 +203,11 @@ module Google
|
|
182
203
|
# @return [Array<String>]
|
183
204
|
attr_accessor :instance_group_urls
|
184
205
|
|
206
|
+
# [Output only] The number of nodes currently in the cluster.
|
207
|
+
# Corresponds to the JSON property `currentNodeCount`
|
208
|
+
# @return [Fixnum]
|
209
|
+
attr_accessor :current_node_count
|
210
|
+
|
185
211
|
def initialize(**args)
|
186
212
|
update!(**args)
|
187
213
|
end
|
@@ -197,6 +223,8 @@ module Google
|
|
197
223
|
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
198
224
|
@network = args[:network] if args.key?(:network)
|
199
225
|
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
226
|
+
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
227
|
+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
200
228
|
@self_link = args[:self_link] if args.key?(:self_link)
|
201
229
|
@zone = args[:zone] if args.key?(:zone)
|
202
230
|
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
@@ -209,10 +237,11 @@ module Google
|
|
209
237
|
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
210
238
|
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
211
239
|
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
240
|
+
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
212
241
|
end
|
213
242
|
end
|
214
243
|
|
215
|
-
#
|
244
|
+
# Parameters that describe the nodes in a cluster.
|
216
245
|
class NodeConfig
|
217
246
|
include Google::Apis::Core::Hashable
|
218
247
|
|
@@ -234,11 +263,26 @@ module Google
|
|
234
263
|
# required, and by default are not included: * `https://www.googleapis.com/auth/
|
235
264
|
# compute` is required for mounting persistent storage on your nodes. * `https://
|
236
265
|
# www.googleapis.com/auth/devstorage.read_only` is required for communicating
|
237
|
-
# with
|
266
|
+
# with **gcr.io** (the [Google Container Registry](/container-registry/)). If
|
267
|
+
# unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are
|
268
|
+
# enabled, in which case their required scopes will be added.
|
238
269
|
# Corresponds to the JSON property `oauthScopes`
|
239
270
|
# @return [Array<String>]
|
240
271
|
attr_accessor :oauth_scopes
|
241
272
|
|
273
|
+
# The metadata key/value pairs assigned to instances in the cluster. Keys must
|
274
|
+
# conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length.
|
275
|
+
# These are reflected as part of a URL in the metadata server. Additionally, to
|
276
|
+
# avoid ambiguity, keys must not conflict with any other metadata keys for the
|
277
|
+
# project or be one of the four reserved keys: "instance-template", "kube-env", "
|
278
|
+
# startup-script", and "user-data" Values are free-form strings, and only have
|
279
|
+
# meaning as interpreted by the image running in the instance. The only
|
280
|
+
# restriction placed on them is that each value's size must be less than or
|
281
|
+
# equal to 32 KB. The total size of all keys and values must be less than 512 KB.
|
282
|
+
# Corresponds to the JSON property `metadata`
|
283
|
+
# @return [Hash<String,String>]
|
284
|
+
attr_accessor :metadata
|
285
|
+
|
242
286
|
def initialize(**args)
|
243
287
|
update!(**args)
|
244
288
|
end
|
@@ -248,6 +292,7 @@ module Google
|
|
248
292
|
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
249
293
|
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
250
294
|
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
295
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
251
296
|
end
|
252
297
|
end
|
253
298
|
|
@@ -256,32 +301,31 @@ module Google
|
|
256
301
|
class MasterAuth
|
257
302
|
include Google::Apis::Core::Hashable
|
258
303
|
|
259
|
-
# The username to use for HTTP basic authentication
|
260
|
-
# Kubernetes master endpoint.
|
304
|
+
# The username to use for HTTP basic authentication to the master endpoint.
|
261
305
|
# Corresponds to the JSON property `username`
|
262
306
|
# @return [String]
|
263
307
|
attr_accessor :username
|
264
308
|
|
265
|
-
# The password to use for HTTP basic authentication
|
266
|
-
#
|
267
|
-
#
|
309
|
+
# The password to use for HTTP basic authentication to the master endpoint.
|
310
|
+
# Because the master endpoint is open to the Internet, you should create a
|
311
|
+
# strong password.
|
268
312
|
# Corresponds to the JSON property `password`
|
269
313
|
# @return [String]
|
270
314
|
attr_accessor :password
|
271
315
|
|
272
|
-
# [Output only] Base64
|
316
|
+
# [Output only] Base64-encoded public certificate that is the root of trust for
|
273
317
|
# the cluster.
|
274
318
|
# Corresponds to the JSON property `clusterCaCertificate`
|
275
319
|
# @return [String]
|
276
320
|
attr_accessor :cluster_ca_certificate
|
277
321
|
|
278
|
-
# [Output only] Base64
|
322
|
+
# [Output only] Base64-encoded public certificate used by clients to
|
279
323
|
# authenticate to the cluster endpoint.
|
280
324
|
# Corresponds to the JSON property `clientCertificate`
|
281
325
|
# @return [String]
|
282
326
|
attr_accessor :client_certificate
|
283
327
|
|
284
|
-
# [Output only] Base64
|
328
|
+
# [Output only] Base64-encoded private key used by clients to authenticate to
|
285
329
|
# the cluster endpoint.
|
286
330
|
# Corresponds to the JSON property `clientKey`
|
287
331
|
# @return [String]
|
@@ -301,6 +345,81 @@ module Google
|
|
301
345
|
end
|
302
346
|
end
|
303
347
|
|
348
|
+
# Configuration for the addons that can be automatically spun up in the cluster,
|
349
|
+
# enabling additional functionality.
|
350
|
+
class AddonsConfig
|
351
|
+
include Google::Apis::Core::Hashable
|
352
|
+
|
353
|
+
# Configuration options for the HTTP (L7) load balancing controller addon, which
|
354
|
+
# makes it easy to set up HTTP load balancers for services in a cluster.
|
355
|
+
# Corresponds to the JSON property `httpLoadBalancing`
|
356
|
+
# @return [Google::Apis::ContainerV1::HttpLoadBalancing]
|
357
|
+
attr_accessor :http_load_balancing
|
358
|
+
|
359
|
+
# Configuration options for the horizontal pod autoscaling feature, which
|
360
|
+
# increases or decreases the number of replica pods a replication controller has
|
361
|
+
# based on the resource usage of the existing pods.
|
362
|
+
# Corresponds to the JSON property `horizontalPodAutoscaling`
|
363
|
+
# @return [Google::Apis::ContainerV1::HorizontalPodAutoscaling]
|
364
|
+
attr_accessor :horizontal_pod_autoscaling
|
365
|
+
|
366
|
+
def initialize(**args)
|
367
|
+
update!(**args)
|
368
|
+
end
|
369
|
+
|
370
|
+
# Update properties of this object
|
371
|
+
def update!(**args)
|
372
|
+
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
|
373
|
+
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
|
374
|
+
end
|
375
|
+
end
|
376
|
+
|
377
|
+
# Configuration options for the HTTP (L7) load balancing controller addon, which
|
378
|
+
# makes it easy to set up HTTP load balancers for services in a cluster.
|
379
|
+
class HttpLoadBalancing
|
380
|
+
include Google::Apis::Core::Hashable
|
381
|
+
|
382
|
+
# Whether the HTTP Load Balancing controller is enabled in the cluster. When
|
383
|
+
# enabled, it runs a small pod in the cluster that manages the load balancers.
|
384
|
+
# Corresponds to the JSON property `disabled`
|
385
|
+
# @return [Boolean]
|
386
|
+
attr_accessor :disabled
|
387
|
+
alias_method :disabled?, :disabled
|
388
|
+
|
389
|
+
def initialize(**args)
|
390
|
+
update!(**args)
|
391
|
+
end
|
392
|
+
|
393
|
+
# Update properties of this object
|
394
|
+
def update!(**args)
|
395
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# Configuration options for the horizontal pod autoscaling feature, which
|
400
|
+
# increases or decreases the number of replica pods a replication controller has
|
401
|
+
# based on the resource usage of the existing pods.
|
402
|
+
class HorizontalPodAutoscaling
|
403
|
+
include Google::Apis::Core::Hashable
|
404
|
+
|
405
|
+
# Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When
|
406
|
+
# enabled, it ensures that a Heapster pod is running in the cluster, which is
|
407
|
+
# also used by the Cloud Monitoring service.
|
408
|
+
# Corresponds to the JSON property `disabled`
|
409
|
+
# @return [Boolean]
|
410
|
+
attr_accessor :disabled
|
411
|
+
alias_method :disabled?, :disabled
|
412
|
+
|
413
|
+
def initialize(**args)
|
414
|
+
update!(**args)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Update properties of this object
|
418
|
+
def update!(**args)
|
419
|
+
@disabled = args[:disabled] if args.key?(:disabled)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
304
423
|
# CreateClusterRequest creates a cluster.
|
305
424
|
class CreateClusterRequest
|
306
425
|
include Google::Apis::Core::Hashable
|
@@ -320,7 +439,8 @@ module Google
|
|
320
439
|
end
|
321
440
|
end
|
322
441
|
|
323
|
-
#
|
442
|
+
# This operation resource represents operations that may have happened or are
|
443
|
+
# happening on the cluster. All fields are output only.
|
324
444
|
class Operation
|
325
445
|
include Google::Apis::Core::Hashable
|
326
446
|
|
@@ -345,6 +465,11 @@ module Google
|
|
345
465
|
# @return [String]
|
346
466
|
attr_accessor :status
|
347
467
|
|
468
|
+
# Detailed operation progress, if available.
|
469
|
+
# Corresponds to the JSON property `detail`
|
470
|
+
# @return [String]
|
471
|
+
attr_accessor :detail
|
472
|
+
|
348
473
|
# If an error has occurred, a textual description of the error.
|
349
474
|
# Corresponds to the JSON property `statusMessage`
|
350
475
|
# @return [String]
|
@@ -370,17 +495,19 @@ module Google
|
|
370
495
|
@zone = args[:zone] if args.key?(:zone)
|
371
496
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
372
497
|
@status = args[:status] if args.key?(:status)
|
498
|
+
@detail = args[:detail] if args.key?(:detail)
|
373
499
|
@status_message = args[:status_message] if args.key?(:status_message)
|
374
500
|
@self_link = args[:self_link] if args.key?(:self_link)
|
375
501
|
@target_link = args[:target_link] if args.key?(:target_link)
|
376
502
|
end
|
377
503
|
end
|
378
504
|
|
379
|
-
# UpdateClusterRequest updates a cluster.
|
505
|
+
# UpdateClusterRequest updates the settings of a cluster.
|
380
506
|
class UpdateClusterRequest
|
381
507
|
include Google::Apis::Core::Hashable
|
382
508
|
|
383
|
-
# ClusterUpdate describes an update to the cluster.
|
509
|
+
# ClusterUpdate describes an update to the cluster. Exactly one update can be
|
510
|
+
# applied to a cluster with each request, so at most one field can be provided.
|
384
511
|
# Corresponds to the JSON property `update`
|
385
512
|
# @return [Google::Apis::ContainerV1::ClusterUpdate]
|
386
513
|
attr_accessor :update
|
@@ -395,16 +522,37 @@ module Google
|
|
395
522
|
end
|
396
523
|
end
|
397
524
|
|
398
|
-
# ClusterUpdate describes an update to the cluster.
|
525
|
+
# ClusterUpdate describes an update to the cluster. Exactly one update can be
|
526
|
+
# applied to a cluster with each request, so at most one field can be provided.
|
399
527
|
class ClusterUpdate
|
400
528
|
include Google::Apis::Core::Hashable
|
401
529
|
|
402
|
-
# The Kubernetes version to change the nodes to (typically an upgrade). Use
|
530
|
+
# The Kubernetes version to change the nodes to (typically an upgrade). Use `-`
|
403
531
|
# to upgrade to the latest version supported by the server.
|
404
532
|
# Corresponds to the JSON property `desiredNodeVersion`
|
405
533
|
# @return [String]
|
406
534
|
attr_accessor :desired_node_version
|
407
535
|
|
536
|
+
# The monitoring service the cluster should use to write metrics. Currently
|
537
|
+
# available options: * "monitoring.googleapis.com" - the Google Cloud Monitoring
|
538
|
+
# service * "none" - no metrics will be exported from the cluster
|
539
|
+
# Corresponds to the JSON property `desiredMonitoringService`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :desired_monitoring_service
|
542
|
+
|
543
|
+
# Configuration for the addons that can be automatically spun up in the cluster,
|
544
|
+
# enabling additional functionality.
|
545
|
+
# Corresponds to the JSON property `desiredAddonsConfig`
|
546
|
+
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
547
|
+
attr_accessor :desired_addons_config
|
548
|
+
|
549
|
+
# The Kubernetes version to change the master to. The only valid value is the
|
550
|
+
# latest supported version. Use "-" to have the server automatically select the
|
551
|
+
# latest version.
|
552
|
+
# Corresponds to the JSON property `desiredMasterVersion`
|
553
|
+
# @return [String]
|
554
|
+
attr_accessor :desired_master_version
|
555
|
+
|
408
556
|
def initialize(**args)
|
409
557
|
update!(**args)
|
410
558
|
end
|
@@ -412,6 +560,9 @@ module Google
|
|
412
560
|
# Update properties of this object
|
413
561
|
def update!(**args)
|
414
562
|
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
|
563
|
+
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
564
|
+
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
565
|
+
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
415
566
|
end
|
416
567
|
end
|
417
568
|
|
@@ -424,6 +575,12 @@ module Google
|
|
424
575
|
# @return [Array<Google::Apis::ContainerV1::Operation>]
|
425
576
|
attr_accessor :operations
|
426
577
|
|
578
|
+
# If any zones are listed here, the list of operations returned may be missing
|
579
|
+
# the operations from those zones.
|
580
|
+
# Corresponds to the JSON property `missingZones`
|
581
|
+
# @return [Array<String>]
|
582
|
+
attr_accessor :missing_zones
|
583
|
+
|
427
584
|
def initialize(**args)
|
428
585
|
update!(**args)
|
429
586
|
end
|
@@ -431,14 +588,15 @@ module Google
|
|
431
588
|
# Update properties of this object
|
432
589
|
def update!(**args)
|
433
590
|
@operations = args[:operations] if args.key?(:operations)
|
591
|
+
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
|
434
592
|
end
|
435
593
|
end
|
436
594
|
|
437
|
-
# Container Engine
|
595
|
+
# Container Engine service configuration.
|
438
596
|
class ServerConfig
|
439
597
|
include Google::Apis::Core::Hashable
|
440
598
|
|
441
|
-
#
|
599
|
+
# Version of Kubernetes the service deploys by default.
|
442
600
|
# Corresponds to the JSON property `defaultClusterVersion`
|
443
601
|
# @return [String]
|
444
602
|
attr_accessor :default_cluster_version
|