google-api-client 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- 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 +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- 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 +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- 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 +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -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 = '20170609'
|
|
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,347 +22,49 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ContainerV1
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
|
|
25
|
+
# The authentication information for accessing the master endpoint.
|
|
26
|
+
# Authentication can be done using HTTP basic auth or using client
|
|
27
|
+
# certificates.
|
|
28
|
+
class MasterAuth
|
|
27
29
|
include Google::Apis::Core::Hashable
|
|
28
30
|
|
|
29
|
-
# The
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# [Output only] The name of the Google Compute Engine
|
|
35
|
-
# [zone](/compute/docs/zones#available) in which the cluster
|
|
36
|
-
# resides.
|
|
37
|
-
# Corresponds to the JSON property `zone`
|
|
38
|
-
# @return [String]
|
|
39
|
-
attr_accessor :zone
|
|
40
|
-
|
|
41
|
-
# The logging service the cluster should use to write logs.
|
|
42
|
-
# Currently available options:
|
|
43
|
-
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
|
44
|
-
# * `none` - no logs will be exported from the cluster.
|
|
45
|
-
# * if left as an empty string,`logging.googleapis.com` will be used.
|
|
46
|
-
# Corresponds to the JSON property `loggingService`
|
|
47
|
-
# @return [String]
|
|
48
|
-
attr_accessor :logging_service
|
|
49
|
-
|
|
50
|
-
# [Output only] The size of the address space on each node for hosting
|
|
51
|
-
# containers. This is provisioned from within the `container_ipv4_cidr`
|
|
52
|
-
# range.
|
|
53
|
-
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
|
54
|
-
# @return [Fixnum]
|
|
55
|
-
attr_accessor :node_ipv4_cidr_size
|
|
56
|
-
|
|
57
|
-
# [Output only] The time the cluster will be automatically
|
|
58
|
-
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
59
|
-
# Corresponds to the JSON property `expireTime`
|
|
60
|
-
# @return [String]
|
|
61
|
-
attr_accessor :expire_time
|
|
62
|
-
|
|
63
|
-
# [Output only] Additional information about the current status of this
|
|
64
|
-
# cluster, if available.
|
|
65
|
-
# Corresponds to the JSON property `statusMessage`
|
|
66
|
-
# @return [String]
|
|
67
|
-
attr_accessor :status_message
|
|
68
|
-
|
|
69
|
-
# The authentication information for accessing the master endpoint.
|
|
70
|
-
# Authentication can be done using HTTP basic auth or using client
|
|
71
|
-
# certificates.
|
|
72
|
-
# Corresponds to the JSON property `masterAuth`
|
|
73
|
-
# @return [Google::Apis::ContainerV1::MasterAuth]
|
|
74
|
-
attr_accessor :master_auth
|
|
75
|
-
|
|
76
|
-
# [Output only] The current software version of the master endpoint.
|
|
77
|
-
# Corresponds to the JSON property `currentMasterVersion`
|
|
78
|
-
# @return [String]
|
|
79
|
-
attr_accessor :current_master_version
|
|
80
|
-
|
|
81
|
-
# Parameters that describe the nodes in a cluster.
|
|
82
|
-
# Corresponds to the JSON property `nodeConfig`
|
|
83
|
-
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
84
|
-
attr_accessor :node_config
|
|
85
|
-
|
|
86
|
-
# Configuration for the addons that can be automatically spun up in the
|
|
87
|
-
# cluster, enabling additional functionality.
|
|
88
|
-
# Corresponds to the JSON property `addonsConfig`
|
|
89
|
-
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
|
90
|
-
attr_accessor :addons_config
|
|
91
|
-
|
|
92
|
-
# [Output only] The current status of this cluster.
|
|
93
|
-
# Corresponds to the JSON property `status`
|
|
94
|
-
# @return [String]
|
|
95
|
-
attr_accessor :status
|
|
96
|
-
|
|
97
|
-
# [Output only] The current version of the node software components.
|
|
98
|
-
# If they are currently at multiple versions because they're in the process
|
|
99
|
-
# of being upgraded, this reflects the minimum version of all nodes.
|
|
100
|
-
# Corresponds to the JSON property `currentNodeVersion`
|
|
101
|
-
# @return [String]
|
|
102
|
-
attr_accessor :current_node_version
|
|
103
|
-
|
|
104
|
-
# The name of the Google Compute Engine
|
|
105
|
-
# [subnetwork](/compute/docs/subnetworks) to which the
|
|
106
|
-
# cluster is connected.
|
|
107
|
-
# Corresponds to the JSON property `subnetwork`
|
|
108
|
-
# @return [String]
|
|
109
|
-
attr_accessor :subnetwork
|
|
110
|
-
|
|
111
|
-
# The resource labels for the cluster to use to annotate any related GCE
|
|
112
|
-
# resources.
|
|
113
|
-
# Corresponds to the JSON property `resourceLabels`
|
|
114
|
-
# @return [Hash<String,String>]
|
|
115
|
-
attr_accessor :resource_labels
|
|
116
|
-
|
|
117
|
-
# The name of this cluster. The name must be unique within this project
|
|
118
|
-
# and zone, and can be up to 40 characters with the following restrictions:
|
|
119
|
-
# * Lowercase letters, numbers, and hyphens only.
|
|
120
|
-
# * Must start with a letter.
|
|
121
|
-
# * Must end with a number or a letter.
|
|
122
|
-
# Corresponds to the JSON property `name`
|
|
123
|
-
# @return [String]
|
|
124
|
-
attr_accessor :name
|
|
125
|
-
|
|
126
|
-
# The initial Kubernetes version for this cluster. Valid versions are those
|
|
127
|
-
# found in validMasterVersions returned by getServerConfig. The version can
|
|
128
|
-
# be upgraded over time; such upgrades are reflected in
|
|
129
|
-
# currentMasterVersion and currentNodeVersion.
|
|
130
|
-
# Corresponds to the JSON property `initialClusterVersion`
|
|
131
|
-
# @return [String]
|
|
132
|
-
attr_accessor :initial_cluster_version
|
|
133
|
-
|
|
134
|
-
# [Output only] The IP address of this cluster's master endpoint.
|
|
135
|
-
# The endpoint can be accessed from the internet at
|
|
136
|
-
# `https://username:password@endpoint/`.
|
|
137
|
-
# See the `masterAuth` property of this resource for username and
|
|
138
|
-
# password information.
|
|
139
|
-
# Corresponds to the JSON property `endpoint`
|
|
140
|
-
# @return [String]
|
|
141
|
-
attr_accessor :endpoint
|
|
142
|
-
|
|
143
|
-
# Configuration for the legacy Attribute Based Access Control authorization
|
|
144
|
-
# mode.
|
|
145
|
-
# Corresponds to the JSON property `legacyAbac`
|
|
146
|
-
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
|
147
|
-
attr_accessor :legacy_abac
|
|
148
|
-
|
|
149
|
-
# [Output only] The time the cluster was created, in
|
|
150
|
-
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
151
|
-
# Corresponds to the JSON property `createTime`
|
|
152
|
-
# @return [String]
|
|
153
|
-
attr_accessor :create_time
|
|
154
|
-
|
|
155
|
-
# The IP address range of the container pods in this cluster, in
|
|
156
|
-
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
|
157
|
-
# notation (e.g. `10.96.0.0/14`). Leave blank to have
|
|
158
|
-
# one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
|
|
159
|
-
# Corresponds to the JSON property `clusterIpv4Cidr`
|
|
160
|
-
# @return [String]
|
|
161
|
-
attr_accessor :cluster_ipv4_cidr
|
|
162
|
-
|
|
163
|
-
# The number of nodes to create in this cluster. You must ensure that your
|
|
164
|
-
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
|
|
165
|
-
# is sufficient for this number of instances. You must also have available
|
|
166
|
-
# firewall and routes quota.
|
|
167
|
-
# For requests, this field should only be used in lieu of a
|
|
168
|
-
# "node_pool" object, since this configuration (along with the
|
|
169
|
-
# "node_config") will be used to create a "NodePool" object with an
|
|
170
|
-
# auto-generated name. Do not use this and a node_pool at the same time.
|
|
171
|
-
# Corresponds to the JSON property `initialNodeCount`
|
|
172
|
-
# @return [Fixnum]
|
|
173
|
-
attr_accessor :initial_node_count
|
|
174
|
-
|
|
175
|
-
# [Output only] Server-defined URL for the resource.
|
|
176
|
-
# Corresponds to the JSON property `selfLink`
|
|
177
|
-
# @return [String]
|
|
178
|
-
attr_accessor :self_link
|
|
179
|
-
|
|
180
|
-
# The list of Google Compute Engine
|
|
181
|
-
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
|
182
|
-
# should be located.
|
|
183
|
-
# Corresponds to the JSON property `locations`
|
|
184
|
-
# @return [Array<String>]
|
|
185
|
-
attr_accessor :locations
|
|
186
|
-
|
|
187
|
-
# The node pools associated with this cluster.
|
|
188
|
-
# This field should not be set if "node_config" or "initial_node_count" are
|
|
189
|
-
# specified.
|
|
190
|
-
# Corresponds to the JSON property `nodePools`
|
|
191
|
-
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
|
192
|
-
attr_accessor :node_pools
|
|
193
|
-
|
|
194
|
-
# [Output only] The resource URLs of [instance
|
|
195
|
-
# groups](/compute/docs/instance-groups/) associated with this
|
|
196
|
-
# cluster.
|
|
197
|
-
# Corresponds to the JSON property `instanceGroupUrls`
|
|
198
|
-
# @return [Array<String>]
|
|
199
|
-
attr_accessor :instance_group_urls
|
|
200
|
-
|
|
201
|
-
# [Output only] The IP address range of the Kubernetes services in
|
|
202
|
-
# this cluster, in
|
|
203
|
-
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
|
204
|
-
# notation (e.g. `1.2.3.4/29`). Service addresses are
|
|
205
|
-
# typically put in the last `/16` from the container CIDR.
|
|
206
|
-
# Corresponds to the JSON property `servicesIpv4Cidr`
|
|
207
|
-
# @return [String]
|
|
208
|
-
attr_accessor :services_ipv4_cidr
|
|
209
|
-
|
|
210
|
-
# Kubernetes alpha features are enabled on this cluster. This includes alpha
|
|
211
|
-
# API groups (e.g. v1alpha1) and features that may not be production ready in
|
|
212
|
-
# the kubernetes version of the master and nodes.
|
|
213
|
-
# The cluster has no SLA for uptime and master/node upgrades are disabled.
|
|
214
|
-
# Alpha enabled clusters are automatically deleted thirty days after
|
|
215
|
-
# creation.
|
|
216
|
-
# Corresponds to the JSON property `enableKubernetesAlpha`
|
|
217
|
-
# @return [Boolean]
|
|
218
|
-
attr_accessor :enable_kubernetes_alpha
|
|
219
|
-
alias_method :enable_kubernetes_alpha?, :enable_kubernetes_alpha
|
|
220
|
-
|
|
221
|
-
# An optional description of this cluster.
|
|
222
|
-
# Corresponds to the JSON property `description`
|
|
31
|
+
# The password to use for HTTP basic authentication to the master endpoint.
|
|
32
|
+
# Because the master endpoint is open to the Internet, you should create a
|
|
33
|
+
# strong password. If a password is provided for cluster creation, username
|
|
34
|
+
# must be non-empty.
|
|
35
|
+
# Corresponds to the JSON property `password`
|
|
223
36
|
# @return [String]
|
|
224
|
-
attr_accessor :
|
|
37
|
+
attr_accessor :password
|
|
225
38
|
|
|
226
|
-
#
|
|
227
|
-
# Corresponds to the JSON property `
|
|
228
|
-
# @return [
|
|
229
|
-
attr_accessor :
|
|
39
|
+
# Configuration for client certificates on the cluster.
|
|
40
|
+
# Corresponds to the JSON property `clientCertificateConfig`
|
|
41
|
+
# @return [Google::Apis::ContainerV1::ClientCertificateConfig]
|
|
42
|
+
attr_accessor :client_certificate_config
|
|
230
43
|
|
|
231
|
-
#
|
|
232
|
-
#
|
|
233
|
-
#
|
|
234
|
-
# * `none` - no metrics will be exported from the cluster.
|
|
235
|
-
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
|
236
|
-
# Corresponds to the JSON property `monitoringService`
|
|
44
|
+
# [Output only] Base64-encoded private key used by clients to authenticate
|
|
45
|
+
# to the cluster endpoint.
|
|
46
|
+
# Corresponds to the JSON property `clientKey`
|
|
237
47
|
# @return [String]
|
|
238
|
-
attr_accessor :
|
|
48
|
+
attr_accessor :client_key
|
|
239
49
|
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
# will be used.
|
|
244
|
-
# Corresponds to the JSON property `network`
|
|
50
|
+
# [Output only] Base64-encoded public certificate that is the root of
|
|
51
|
+
# trust for the cluster.
|
|
52
|
+
# Corresponds to the JSON property `clusterCaCertificate`
|
|
245
53
|
# @return [String]
|
|
246
|
-
attr_accessor :
|
|
247
|
-
|
|
248
|
-
def initialize(**args)
|
|
249
|
-
update!(**args)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
# Update properties of this object
|
|
253
|
-
def update!(**args)
|
|
254
|
-
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
255
|
-
@zone = args[:zone] if args.key?(:zone)
|
|
256
|
-
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
|
257
|
-
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
|
258
|
-
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
259
|
-
@status_message = args[:status_message] if args.key?(:status_message)
|
|
260
|
-
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
|
261
|
-
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
|
262
|
-
@node_config = args[:node_config] if args.key?(:node_config)
|
|
263
|
-
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
|
264
|
-
@status = args[:status] if args.key?(:status)
|
|
265
|
-
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
|
|
266
|
-
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
267
|
-
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
|
268
|
-
@name = args[:name] if args.key?(:name)
|
|
269
|
-
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
|
|
270
|
-
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
|
271
|
-
@legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
|
|
272
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
273
|
-
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
|
274
|
-
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
275
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
276
|
-
@locations = args[:locations] if args.key?(:locations)
|
|
277
|
-
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
|
278
|
-
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
|
279
|
-
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
|
280
|
-
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
|
|
281
|
-
@description = args[:description] if args.key?(:description)
|
|
282
|
-
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
|
283
|
-
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
|
284
|
-
@network = args[:network] if args.key?(:network)
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
|
|
288
|
-
# ListOperationsResponse is the result of ListOperationsRequest.
|
|
289
|
-
class ListOperationsResponse
|
|
290
|
-
include Google::Apis::Core::Hashable
|
|
291
|
-
|
|
292
|
-
# A list of operations in the project in the specified zone.
|
|
293
|
-
# Corresponds to the JSON property `operations`
|
|
294
|
-
# @return [Array<Google::Apis::ContainerV1::Operation>]
|
|
295
|
-
attr_accessor :operations
|
|
296
|
-
|
|
297
|
-
# If any zones are listed here, the list of operations returned
|
|
298
|
-
# may be missing the operations from those zones.
|
|
299
|
-
# Corresponds to the JSON property `missingZones`
|
|
300
|
-
# @return [Array<String>]
|
|
301
|
-
attr_accessor :missing_zones
|
|
302
|
-
|
|
303
|
-
def initialize(**args)
|
|
304
|
-
update!(**args)
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
# Update properties of this object
|
|
308
|
-
def update!(**args)
|
|
309
|
-
@operations = args[:operations] if args.key?(:operations)
|
|
310
|
-
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
|
-
|
|
314
|
-
# CreateNodePoolRequest creates a node pool for a cluster.
|
|
315
|
-
class CreateNodePoolRequest
|
|
316
|
-
include Google::Apis::Core::Hashable
|
|
317
|
-
|
|
318
|
-
# NodePool contains the name and configuration for a cluster's node pool.
|
|
319
|
-
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
|
320
|
-
# specification, under the control of the cluster master. They may have a set
|
|
321
|
-
# of Kubernetes labels applied to them, which may be used to reference them
|
|
322
|
-
# during pod scheduling. They may also be resized up or down, to accommodate
|
|
323
|
-
# the workload.
|
|
324
|
-
# Corresponds to the JSON property `nodePool`
|
|
325
|
-
# @return [Google::Apis::ContainerV1::NodePool]
|
|
326
|
-
attr_accessor :node_pool
|
|
327
|
-
|
|
328
|
-
def initialize(**args)
|
|
329
|
-
update!(**args)
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Update properties of this object
|
|
333
|
-
def update!(**args)
|
|
334
|
-
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
# Container Engine service configuration.
|
|
339
|
-
class ServerConfig
|
|
340
|
-
include Google::Apis::Core::Hashable
|
|
341
|
-
|
|
342
|
-
# List of valid master versions.
|
|
343
|
-
# Corresponds to the JSON property `validMasterVersions`
|
|
344
|
-
# @return [Array<String>]
|
|
345
|
-
attr_accessor :valid_master_versions
|
|
54
|
+
attr_accessor :cluster_ca_certificate
|
|
346
55
|
|
|
347
|
-
#
|
|
348
|
-
#
|
|
56
|
+
# [Output only] Base64-encoded public certificate used by clients to
|
|
57
|
+
# authenticate to the cluster endpoint.
|
|
58
|
+
# Corresponds to the JSON property `clientCertificate`
|
|
349
59
|
# @return [String]
|
|
350
|
-
attr_accessor :
|
|
60
|
+
attr_accessor :client_certificate
|
|
351
61
|
|
|
352
|
-
#
|
|
353
|
-
#
|
|
62
|
+
# The username to use for HTTP basic authentication to the master endpoint.
|
|
63
|
+
# For clusters v1.6.0 and later, you can disable basic authentication by
|
|
64
|
+
# providing an empty username.
|
|
65
|
+
# Corresponds to the JSON property `username`
|
|
354
66
|
# @return [String]
|
|
355
|
-
attr_accessor :
|
|
356
|
-
|
|
357
|
-
# List of valid node upgrade target versions.
|
|
358
|
-
# Corresponds to the JSON property `validNodeVersions`
|
|
359
|
-
# @return [Array<String>]
|
|
360
|
-
attr_accessor :valid_node_versions
|
|
361
|
-
|
|
362
|
-
# List of valid image types.
|
|
363
|
-
# Corresponds to the JSON property `validImageTypes`
|
|
364
|
-
# @return [Array<String>]
|
|
365
|
-
attr_accessor :valid_image_types
|
|
67
|
+
attr_accessor :username
|
|
366
68
|
|
|
367
69
|
def initialize(**args)
|
|
368
70
|
update!(**args)
|
|
@@ -370,11 +72,12 @@ module Google
|
|
|
370
72
|
|
|
371
73
|
# Update properties of this object
|
|
372
74
|
def update!(**args)
|
|
373
|
-
@
|
|
374
|
-
@
|
|
375
|
-
@
|
|
376
|
-
@
|
|
377
|
-
@
|
|
75
|
+
@password = args[:password] if args.key?(:password)
|
|
76
|
+
@client_certificate_config = args[:client_certificate_config] if args.key?(:client_certificate_config)
|
|
77
|
+
@client_key = args[:client_key] if args.key?(:client_key)
|
|
78
|
+
@cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
|
|
79
|
+
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
80
|
+
@username = args[:username] if args.key?(:username)
|
|
378
81
|
end
|
|
379
82
|
end
|
|
380
83
|
|
|
@@ -382,35 +85,6 @@ module Google
|
|
|
382
85
|
class NodeConfig
|
|
383
86
|
include Google::Apis::Core::Hashable
|
|
384
87
|
|
|
385
|
-
# The image type to use for this node. Note that for a given image type,
|
|
386
|
-
# the latest version of it will be used.
|
|
387
|
-
# Corresponds to the JSON property `imageType`
|
|
388
|
-
# @return [String]
|
|
389
|
-
attr_accessor :image_type
|
|
390
|
-
|
|
391
|
-
# The set of Google API scopes to be made available on all of the
|
|
392
|
-
# node VMs under the "default" service account.
|
|
393
|
-
# The following scopes are recommended, but not required, and by default are
|
|
394
|
-
# not included:
|
|
395
|
-
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
|
396
|
-
# persistent storage on your nodes.
|
|
397
|
-
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
|
398
|
-
# communicating with **gcr.io**
|
|
399
|
-
# (the [Google Container Registry](/container-registry/)).
|
|
400
|
-
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
|
401
|
-
# Monitoring are enabled, in which case their required scopes will be added.
|
|
402
|
-
# Corresponds to the JSON property `oauthScopes`
|
|
403
|
-
# @return [Array<String>]
|
|
404
|
-
attr_accessor :oauth_scopes
|
|
405
|
-
|
|
406
|
-
# Whether the nodes are created as preemptible VM instances. See:
|
|
407
|
-
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
|
408
|
-
# inforamtion about preemptible VM instances.
|
|
409
|
-
# Corresponds to the JSON property `preemptible`
|
|
410
|
-
# @return [Boolean]
|
|
411
|
-
attr_accessor :preemptible
|
|
412
|
-
alias_method :preemptible?, :preemptible
|
|
413
|
-
|
|
414
88
|
# The map of Kubernetes labels (key/value pairs) to be applied to each node.
|
|
415
89
|
# These will added in addition to any default label(s) that
|
|
416
90
|
# Kubernetes may apply to the node.
|
|
@@ -472,67 +146,38 @@ module Google
|
|
|
472
146
|
# `n1-standard-1`).
|
|
473
147
|
# If unspecified, the default machine type is
|
|
474
148
|
# `n1-standard-1`.
|
|
475
|
-
# Corresponds to the JSON property `machineType`
|
|
476
|
-
# @return [String]
|
|
477
|
-
attr_accessor :machine_type
|
|
478
|
-
|
|
479
|
-
def initialize(**args)
|
|
480
|
-
update!(**args)
|
|
481
|
-
end
|
|
482
|
-
|
|
483
|
-
# Update properties of this object
|
|
484
|
-
def update!(**args)
|
|
485
|
-
@image_type = args[:image_type] if args.key?(:image_type)
|
|
486
|
-
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
|
487
|
-
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
|
488
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
489
|
-
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
|
490
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
|
491
|
-
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
492
|
-
@tags = args[:tags] if args.key?(:tags)
|
|
493
|
-
@service_account = args[:service_account] if args.key?(:service_account)
|
|
494
|
-
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
|
495
|
-
end
|
|
496
|
-
end
|
|
497
|
-
|
|
498
|
-
# The authentication information for accessing the master endpoint.
|
|
499
|
-
# Authentication can be done using HTTP basic auth or using client
|
|
500
|
-
# certificates.
|
|
501
|
-
class MasterAuth
|
|
502
|
-
include Google::Apis::Core::Hashable
|
|
503
|
-
|
|
504
|
-
# The password to use for HTTP basic authentication to the master endpoint.
|
|
505
|
-
# Because the master endpoint is open to the Internet, you should create a
|
|
506
|
-
# strong password. If a password is provided for cluster creation, username
|
|
507
|
-
# must be non-empty.
|
|
508
|
-
# Corresponds to the JSON property `password`
|
|
509
|
-
# @return [String]
|
|
510
|
-
attr_accessor :password
|
|
511
|
-
|
|
512
|
-
# [Output only] Base64-encoded public certificate used by clients to
|
|
513
|
-
# authenticate to the cluster endpoint.
|
|
514
|
-
# Corresponds to the JSON property `clientCertificate`
|
|
149
|
+
# Corresponds to the JSON property `machineType`
|
|
515
150
|
# @return [String]
|
|
516
|
-
attr_accessor :
|
|
151
|
+
attr_accessor :machine_type
|
|
517
152
|
|
|
518
|
-
# The
|
|
519
|
-
#
|
|
520
|
-
#
|
|
521
|
-
# Corresponds to the JSON property `username`
|
|
153
|
+
# The image type to use for this node. Note that for a given image type,
|
|
154
|
+
# the latest version of it will be used.
|
|
155
|
+
# Corresponds to the JSON property `imageType`
|
|
522
156
|
# @return [String]
|
|
523
|
-
attr_accessor :
|
|
157
|
+
attr_accessor :image_type
|
|
524
158
|
|
|
525
|
-
#
|
|
526
|
-
#
|
|
527
|
-
#
|
|
528
|
-
#
|
|
529
|
-
|
|
159
|
+
# The set of Google API scopes to be made available on all of the
|
|
160
|
+
# node VMs under the "default" service account.
|
|
161
|
+
# The following scopes are recommended, but not required, and by default are
|
|
162
|
+
# not included:
|
|
163
|
+
# * `https://www.googleapis.com/auth/compute` is required for mounting
|
|
164
|
+
# persistent storage on your nodes.
|
|
165
|
+
# * `https://www.googleapis.com/auth/devstorage.read_only` is required for
|
|
166
|
+
# communicating with **gcr.io**
|
|
167
|
+
# (the [Google Container Registry](/container-registry/)).
|
|
168
|
+
# If unspecified, no scopes are added, unless Cloud Logging or Cloud
|
|
169
|
+
# Monitoring are enabled, in which case their required scopes will be added.
|
|
170
|
+
# Corresponds to the JSON property `oauthScopes`
|
|
171
|
+
# @return [Array<String>]
|
|
172
|
+
attr_accessor :oauth_scopes
|
|
530
173
|
|
|
531
|
-
#
|
|
532
|
-
#
|
|
533
|
-
#
|
|
534
|
-
#
|
|
535
|
-
|
|
174
|
+
# Whether the nodes are created as preemptible VM instances. See:
|
|
175
|
+
# https://cloud.google.com/compute/docs/instances/preemptible for more
|
|
176
|
+
# information about preemptible VM instances.
|
|
177
|
+
# Corresponds to the JSON property `preemptible`
|
|
178
|
+
# @return [Boolean]
|
|
179
|
+
attr_accessor :preemptible
|
|
180
|
+
alias_method :preemptible?, :preemptible
|
|
536
181
|
|
|
537
182
|
def initialize(**args)
|
|
538
183
|
update!(**args)
|
|
@@ -540,11 +185,16 @@ module Google
|
|
|
540
185
|
|
|
541
186
|
# Update properties of this object
|
|
542
187
|
def update!(**args)
|
|
543
|
-
@
|
|
544
|
-
@
|
|
545
|
-
@
|
|
546
|
-
@
|
|
547
|
-
@
|
|
188
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
189
|
+
@local_ssd_count = args[:local_ssd_count] if args.key?(:local_ssd_count)
|
|
190
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
191
|
+
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
|
192
|
+
@tags = args[:tags] if args.key?(:tags)
|
|
193
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
194
|
+
@machine_type = args[:machine_type] if args.key?(:machine_type)
|
|
195
|
+
@image_type = args[:image_type] if args.key?(:image_type)
|
|
196
|
+
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
|
|
197
|
+
@preemptible = args[:preemptible] if args.key?(:preemptible)
|
|
548
198
|
end
|
|
549
199
|
end
|
|
550
200
|
|
|
@@ -581,26 +231,26 @@ module Google
|
|
|
581
231
|
class ListClustersResponse
|
|
582
232
|
include Google::Apis::Core::Hashable
|
|
583
233
|
|
|
584
|
-
# A list of clusters in the project in the specified zone, or
|
|
585
|
-
# across all ones.
|
|
586
|
-
# Corresponds to the JSON property `clusters`
|
|
587
|
-
# @return [Array<Google::Apis::ContainerV1::Cluster>]
|
|
588
|
-
attr_accessor :clusters
|
|
589
|
-
|
|
590
234
|
# If any zones are listed here, the list of clusters returned
|
|
591
235
|
# may be missing those zones.
|
|
592
236
|
# Corresponds to the JSON property `missingZones`
|
|
593
237
|
# @return [Array<String>]
|
|
594
238
|
attr_accessor :missing_zones
|
|
595
239
|
|
|
240
|
+
# A list of clusters in the project in the specified zone, or
|
|
241
|
+
# across all ones.
|
|
242
|
+
# Corresponds to the JSON property `clusters`
|
|
243
|
+
# @return [Array<Google::Apis::ContainerV1::Cluster>]
|
|
244
|
+
attr_accessor :clusters
|
|
245
|
+
|
|
596
246
|
def initialize(**args)
|
|
597
247
|
update!(**args)
|
|
598
248
|
end
|
|
599
249
|
|
|
600
250
|
# Update properties of this object
|
|
601
251
|
def update!(**args)
|
|
602
|
-
@clusters = args[:clusters] if args.key?(:clusters)
|
|
603
252
|
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
|
|
253
|
+
@clusters = args[:clusters] if args.key?(:clusters)
|
|
604
254
|
end
|
|
605
255
|
end
|
|
606
256
|
|
|
@@ -632,6 +282,12 @@ module Google
|
|
|
632
282
|
class NodePoolAutoscaling
|
|
633
283
|
include Google::Apis::Core::Hashable
|
|
634
284
|
|
|
285
|
+
# Is autoscaling enabled for this node pool.
|
|
286
|
+
# Corresponds to the JSON property `enabled`
|
|
287
|
+
# @return [Boolean]
|
|
288
|
+
attr_accessor :enabled
|
|
289
|
+
alias_method :enabled?, :enabled
|
|
290
|
+
|
|
635
291
|
# Maximum number of nodes in the NodePool. Must be >= min_node_count. There
|
|
636
292
|
# has to enough quota to scale up the cluster.
|
|
637
293
|
# Corresponds to the JSON property `maxNodeCount`
|
|
@@ -644,21 +300,35 @@ module Google
|
|
|
644
300
|
# @return [Fixnum]
|
|
645
301
|
attr_accessor :min_node_count
|
|
646
302
|
|
|
647
|
-
# Is autoscaling enabled for this node pool.
|
|
648
|
-
# Corresponds to the JSON property `enabled`
|
|
649
|
-
# @return [Boolean]
|
|
650
|
-
attr_accessor :enabled
|
|
651
|
-
alias_method :enabled?, :enabled
|
|
652
|
-
|
|
653
303
|
def initialize(**args)
|
|
654
304
|
update!(**args)
|
|
655
305
|
end
|
|
656
306
|
|
|
657
307
|
# Update properties of this object
|
|
658
308
|
def update!(**args)
|
|
309
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
|
659
310
|
@max_node_count = args[:max_node_count] if args.key?(:max_node_count)
|
|
660
311
|
@min_node_count = args[:min_node_count] if args.key?(:min_node_count)
|
|
661
|
-
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Configuration for client certificates on the cluster.
|
|
316
|
+
class ClientCertificateConfig
|
|
317
|
+
include Google::Apis::Core::Hashable
|
|
318
|
+
|
|
319
|
+
# Issue a client certificate.
|
|
320
|
+
# Corresponds to the JSON property `issueClientCertificate`
|
|
321
|
+
# @return [Boolean]
|
|
322
|
+
attr_accessor :issue_client_certificate
|
|
323
|
+
alias_method :issue_client_certificate?, :issue_client_certificate
|
|
324
|
+
|
|
325
|
+
def initialize(**args)
|
|
326
|
+
update!(**args)
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Update properties of this object
|
|
330
|
+
def update!(**args)
|
|
331
|
+
@issue_client_certificate = args[:issue_client_certificate] if args.key?(:issue_client_certificate)
|
|
662
332
|
end
|
|
663
333
|
end
|
|
664
334
|
|
|
@@ -695,6 +365,33 @@ module Google
|
|
|
695
365
|
class ClusterUpdate
|
|
696
366
|
include Google::Apis::Core::Hashable
|
|
697
367
|
|
|
368
|
+
# The desired image type for the node pool.
|
|
369
|
+
# NOTE: Set the "desired_node_pool" field as well.
|
|
370
|
+
# Corresponds to the JSON property `desiredImageType`
|
|
371
|
+
# @return [String]
|
|
372
|
+
attr_accessor :desired_image_type
|
|
373
|
+
|
|
374
|
+
# Configuration for the addons that can be automatically spun up in the
|
|
375
|
+
# cluster, enabling additional functionality.
|
|
376
|
+
# Corresponds to the JSON property `desiredAddonsConfig`
|
|
377
|
+
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
|
378
|
+
attr_accessor :desired_addons_config
|
|
379
|
+
|
|
380
|
+
# The node pool to be upgraded. This field is mandatory if
|
|
381
|
+
# "desired_node_version", "desired_image_family" or
|
|
382
|
+
# "desired_node_pool_autoscaling" is specified and there is more than one
|
|
383
|
+
# node pool on the cluster.
|
|
384
|
+
# Corresponds to the JSON property `desiredNodePoolId`
|
|
385
|
+
# @return [String]
|
|
386
|
+
attr_accessor :desired_node_pool_id
|
|
387
|
+
|
|
388
|
+
# The Kubernetes version to change the nodes to (typically an
|
|
389
|
+
# upgrade). Use `-` to upgrade to the latest version supported by
|
|
390
|
+
# the server.
|
|
391
|
+
# Corresponds to the JSON property `desiredNodeVersion`
|
|
392
|
+
# @return [String]
|
|
393
|
+
attr_accessor :desired_node_version
|
|
394
|
+
|
|
698
395
|
# The Kubernetes version to change the master to. The only valid value is the
|
|
699
396
|
# latest supported version. Use "-" to have the server automatically select
|
|
700
397
|
# the latest version.
|
|
@@ -726,47 +423,20 @@ module Google
|
|
|
726
423
|
# @return [String]
|
|
727
424
|
attr_accessor :desired_monitoring_service
|
|
728
425
|
|
|
729
|
-
# The desired image type for the node pool.
|
|
730
|
-
# NOTE: Set the "desired_node_pool" field as well.
|
|
731
|
-
# Corresponds to the JSON property `desiredImageType`
|
|
732
|
-
# @return [String]
|
|
733
|
-
attr_accessor :desired_image_type
|
|
734
|
-
|
|
735
|
-
# Configuration for the addons that can be automatically spun up in the
|
|
736
|
-
# cluster, enabling additional functionality.
|
|
737
|
-
# Corresponds to the JSON property `desiredAddonsConfig`
|
|
738
|
-
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
|
739
|
-
attr_accessor :desired_addons_config
|
|
740
|
-
|
|
741
|
-
# The node pool to be upgraded. This field is mandatory if
|
|
742
|
-
# "desired_node_version", "desired_image_family" or
|
|
743
|
-
# "desired_node_pool_autoscaling" is specified and there is more than one
|
|
744
|
-
# node pool on the cluster.
|
|
745
|
-
# Corresponds to the JSON property `desiredNodePoolId`
|
|
746
|
-
# @return [String]
|
|
747
|
-
attr_accessor :desired_node_pool_id
|
|
748
|
-
|
|
749
|
-
# The Kubernetes version to change the nodes to (typically an
|
|
750
|
-
# upgrade). Use `-` to upgrade to the latest version supported by
|
|
751
|
-
# the server.
|
|
752
|
-
# Corresponds to the JSON property `desiredNodeVersion`
|
|
753
|
-
# @return [String]
|
|
754
|
-
attr_accessor :desired_node_version
|
|
755
|
-
|
|
756
426
|
def initialize(**args)
|
|
757
427
|
update!(**args)
|
|
758
428
|
end
|
|
759
429
|
|
|
760
430
|
# Update properties of this object
|
|
761
431
|
def update!(**args)
|
|
762
|
-
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
|
763
|
-
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
|
764
|
-
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
|
765
|
-
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
|
766
432
|
@desired_image_type = args[:desired_image_type] if args.key?(:desired_image_type)
|
|
767
433
|
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
|
|
768
434
|
@desired_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
|
|
769
435
|
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
|
|
436
|
+
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
|
437
|
+
@desired_node_pool_autoscaling = args[:desired_node_pool_autoscaling] if args.key?(:desired_node_pool_autoscaling)
|
|
438
|
+
@desired_locations = args[:desired_locations] if args.key?(:desired_locations)
|
|
439
|
+
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
|
|
770
440
|
end
|
|
771
441
|
end
|
|
772
442
|
|
|
@@ -794,43 +464,43 @@ module Google
|
|
|
794
464
|
end
|
|
795
465
|
end
|
|
796
466
|
|
|
797
|
-
#
|
|
798
|
-
#
|
|
799
|
-
|
|
800
|
-
# service Foo `
|
|
801
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
802
|
-
# `
|
|
803
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
|
804
|
-
class Empty
|
|
467
|
+
# SetNodePoolManagementRequest sets the node management properties of a node
|
|
468
|
+
# pool.
|
|
469
|
+
class SetNodePoolManagementRequest
|
|
805
470
|
include Google::Apis::Core::Hashable
|
|
806
471
|
|
|
472
|
+
# NodeManagement defines the set of node management services turned on for the
|
|
473
|
+
# node pool.
|
|
474
|
+
# Corresponds to the JSON property `management`
|
|
475
|
+
# @return [Google::Apis::ContainerV1::NodeManagement]
|
|
476
|
+
attr_accessor :management
|
|
477
|
+
|
|
807
478
|
def initialize(**args)
|
|
808
479
|
update!(**args)
|
|
809
480
|
end
|
|
810
481
|
|
|
811
482
|
# Update properties of this object
|
|
812
483
|
def update!(**args)
|
|
484
|
+
@management = args[:management] if args.key?(:management)
|
|
813
485
|
end
|
|
814
486
|
end
|
|
815
487
|
|
|
816
|
-
#
|
|
817
|
-
#
|
|
818
|
-
|
|
488
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
489
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
490
|
+
# or the response type of an API method. For instance:
|
|
491
|
+
# service Foo `
|
|
492
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
493
|
+
# `
|
|
494
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
495
|
+
class Empty
|
|
819
496
|
include Google::Apis::Core::Hashable
|
|
820
497
|
|
|
821
|
-
# NodeManagement defines the set of node management services turned on for the
|
|
822
|
-
# node pool.
|
|
823
|
-
# Corresponds to the JSON property `management`
|
|
824
|
-
# @return [Google::Apis::ContainerV1::NodeManagement]
|
|
825
|
-
attr_accessor :management
|
|
826
|
-
|
|
827
498
|
def initialize(**args)
|
|
828
499
|
update!(**args)
|
|
829
500
|
end
|
|
830
501
|
|
|
831
502
|
# Update properties of this object
|
|
832
503
|
def update!(**args)
|
|
833
|
-
@management = args[:management] if args.key?(:management)
|
|
834
504
|
end
|
|
835
505
|
end
|
|
836
506
|
|
|
@@ -964,12 +634,39 @@ module Google
|
|
|
964
634
|
class NodePool
|
|
965
635
|
include Google::Apis::Core::Hashable
|
|
966
636
|
|
|
637
|
+
# [Output only] The status of the nodes in this pool instance.
|
|
638
|
+
# Corresponds to the JSON property `status`
|
|
639
|
+
# @return [String]
|
|
640
|
+
attr_accessor :status
|
|
641
|
+
|
|
642
|
+
# Parameters that describe the nodes in a cluster.
|
|
643
|
+
# Corresponds to the JSON property `config`
|
|
644
|
+
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
645
|
+
attr_accessor :config
|
|
646
|
+
|
|
647
|
+
# The name of the node pool.
|
|
648
|
+
# Corresponds to the JSON property `name`
|
|
649
|
+
# @return [String]
|
|
650
|
+
attr_accessor :name
|
|
651
|
+
|
|
652
|
+
# [Output only] Additional information about the current status of this
|
|
653
|
+
# node pool instance, if available.
|
|
654
|
+
# Corresponds to the JSON property `statusMessage`
|
|
655
|
+
# @return [String]
|
|
656
|
+
attr_accessor :status_message
|
|
657
|
+
|
|
967
658
|
# NodePoolAutoscaling contains information required by cluster autoscaler to
|
|
968
659
|
# adjust the size of the node pool to the current cluster usage.
|
|
969
660
|
# Corresponds to the JSON property `autoscaling`
|
|
970
661
|
# @return [Google::Apis::ContainerV1::NodePoolAutoscaling]
|
|
971
662
|
attr_accessor :autoscaling
|
|
972
663
|
|
|
664
|
+
# NodeManagement defines the set of node management services turned on for the
|
|
665
|
+
# node pool.
|
|
666
|
+
# Corresponds to the JSON property `management`
|
|
667
|
+
# @return [Google::Apis::ContainerV1::NodeManagement]
|
|
668
|
+
attr_accessor :management
|
|
669
|
+
|
|
973
670
|
# The initial node count for the pool. You must ensure that your
|
|
974
671
|
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
|
|
975
672
|
# is sufficient for this number of instances. You must also have available
|
|
@@ -978,49 +675,22 @@ module Google
|
|
|
978
675
|
# @return [Fixnum]
|
|
979
676
|
attr_accessor :initial_node_count
|
|
980
677
|
|
|
981
|
-
#
|
|
982
|
-
#
|
|
983
|
-
# Corresponds to the JSON property `management`
|
|
984
|
-
# @return [Google::Apis::ContainerV1::NodeManagement]
|
|
985
|
-
attr_accessor :management
|
|
986
|
-
|
|
987
|
-
# [Output only] Server-defined URL for the resource.
|
|
988
|
-
# Corresponds to the JSON property `selfLink`
|
|
989
|
-
# @return [String]
|
|
990
|
-
attr_accessor :self_link
|
|
991
|
-
|
|
992
|
-
# [Output only] The resource URLs of [instance
|
|
993
|
-
# groups](/compute/docs/instance-groups/) associated with this
|
|
994
|
-
# node pool.
|
|
995
|
-
# Corresponds to the JSON property `instanceGroupUrls`
|
|
996
|
-
# @return [Array<String>]
|
|
997
|
-
attr_accessor :instance_group_urls
|
|
998
|
-
|
|
999
|
-
# [Output only] The version of the Kubernetes of this node.
|
|
1000
|
-
# Corresponds to the JSON property `version`
|
|
1001
|
-
# @return [String]
|
|
1002
|
-
attr_accessor :version
|
|
1003
|
-
|
|
1004
|
-
# [Output only] The status of the nodes in this pool instance.
|
|
1005
|
-
# Corresponds to the JSON property `status`
|
|
1006
|
-
# @return [String]
|
|
1007
|
-
attr_accessor :status
|
|
1008
|
-
|
|
1009
|
-
# Parameters that describe the nodes in a cluster.
|
|
1010
|
-
# Corresponds to the JSON property `config`
|
|
1011
|
-
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
1012
|
-
attr_accessor :config
|
|
1013
|
-
|
|
1014
|
-
# [Output only] Additional information about the current status of this
|
|
1015
|
-
# node pool instance, if available.
|
|
1016
|
-
# Corresponds to the JSON property `statusMessage`
|
|
678
|
+
# [Output only] Server-defined URL for the resource.
|
|
679
|
+
# Corresponds to the JSON property `selfLink`
|
|
1017
680
|
# @return [String]
|
|
1018
|
-
attr_accessor :
|
|
681
|
+
attr_accessor :self_link
|
|
1019
682
|
|
|
1020
|
-
# The
|
|
1021
|
-
# Corresponds to the JSON property `
|
|
683
|
+
# [Output only] The version of the Kubernetes of this node.
|
|
684
|
+
# Corresponds to the JSON property `version`
|
|
1022
685
|
# @return [String]
|
|
1023
|
-
attr_accessor :
|
|
686
|
+
attr_accessor :version
|
|
687
|
+
|
|
688
|
+
# [Output only] The resource URLs of [instance
|
|
689
|
+
# groups](/compute/docs/instance-groups/) associated with this
|
|
690
|
+
# node pool.
|
|
691
|
+
# Corresponds to the JSON property `instanceGroupUrls`
|
|
692
|
+
# @return [Array<String>]
|
|
693
|
+
attr_accessor :instance_group_urls
|
|
1024
694
|
|
|
1025
695
|
def initialize(**args)
|
|
1026
696
|
update!(**args)
|
|
@@ -1028,16 +698,16 @@ module Google
|
|
|
1028
698
|
|
|
1029
699
|
# Update properties of this object
|
|
1030
700
|
def update!(**args)
|
|
701
|
+
@status = args[:status] if args.key?(:status)
|
|
702
|
+
@config = args[:config] if args.key?(:config)
|
|
703
|
+
@name = args[:name] if args.key?(:name)
|
|
704
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1031
705
|
@autoscaling = args[:autoscaling] if args.key?(:autoscaling)
|
|
1032
|
-
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
1033
706
|
@management = args[:management] if args.key?(:management)
|
|
707
|
+
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
1034
708
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
1035
|
-
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
|
1036
709
|
@version = args[:version] if args.key?(:version)
|
|
1037
|
-
@
|
|
1038
|
-
@config = args[:config] if args.key?(:config)
|
|
1039
|
-
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1040
|
-
@name = args[:name] if args.key?(:name)
|
|
710
|
+
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
|
1041
711
|
end
|
|
1042
712
|
end
|
|
1043
713
|
|
|
@@ -1120,47 +790,372 @@ module Google
|
|
|
1120
790
|
class Operation
|
|
1121
791
|
include Google::Apis::Core::Hashable
|
|
1122
792
|
|
|
793
|
+
# The current status of the operation.
|
|
794
|
+
# Corresponds to the JSON property `status`
|
|
795
|
+
# @return [String]
|
|
796
|
+
attr_accessor :status
|
|
797
|
+
|
|
798
|
+
# The server-assigned ID for the operation.
|
|
799
|
+
# Corresponds to the JSON property `name`
|
|
800
|
+
# @return [String]
|
|
801
|
+
attr_accessor :name
|
|
802
|
+
|
|
803
|
+
# If an error has occurred, a textual description of the error.
|
|
804
|
+
# Corresponds to the JSON property `statusMessage`
|
|
805
|
+
# @return [String]
|
|
806
|
+
attr_accessor :status_message
|
|
807
|
+
|
|
808
|
+
# Server-defined URL for the resource.
|
|
809
|
+
# Corresponds to the JSON property `selfLink`
|
|
810
|
+
# @return [String]
|
|
811
|
+
attr_accessor :self_link
|
|
812
|
+
|
|
813
|
+
# Server-defined URL for the target of the operation.
|
|
814
|
+
# Corresponds to the JSON property `targetLink`
|
|
815
|
+
# @return [String]
|
|
816
|
+
attr_accessor :target_link
|
|
817
|
+
|
|
818
|
+
# Detailed operation progress, if available.
|
|
819
|
+
# Corresponds to the JSON property `detail`
|
|
820
|
+
# @return [String]
|
|
821
|
+
attr_accessor :detail
|
|
822
|
+
|
|
823
|
+
# The operation type.
|
|
824
|
+
# Corresponds to the JSON property `operationType`
|
|
825
|
+
# @return [String]
|
|
826
|
+
attr_accessor :operation_type
|
|
827
|
+
|
|
828
|
+
# The name of the Google Compute Engine
|
|
829
|
+
# [zone](/compute/docs/zones#available) in which the operation
|
|
830
|
+
# is taking place.
|
|
831
|
+
# Corresponds to the JSON property `zone`
|
|
832
|
+
# @return [String]
|
|
833
|
+
attr_accessor :zone
|
|
834
|
+
|
|
835
|
+
def initialize(**args)
|
|
836
|
+
update!(**args)
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
# Update properties of this object
|
|
840
|
+
def update!(**args)
|
|
841
|
+
@status = args[:status] if args.key?(:status)
|
|
842
|
+
@name = args[:name] if args.key?(:name)
|
|
843
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
844
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
|
845
|
+
@target_link = args[:target_link] if args.key?(:target_link)
|
|
846
|
+
@detail = args[:detail] if args.key?(:detail)
|
|
847
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
848
|
+
@zone = args[:zone] if args.key?(:zone)
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
|
|
852
|
+
# Configuration for the addons that can be automatically spun up in the
|
|
853
|
+
# cluster, enabling additional functionality.
|
|
854
|
+
class AddonsConfig
|
|
855
|
+
include Google::Apis::Core::Hashable
|
|
856
|
+
|
|
857
|
+
# Configuration options for the horizontal pod autoscaling feature, which
|
|
858
|
+
# increases or decreases the number of replica pods a replication controller
|
|
859
|
+
# has based on the resource usage of the existing pods.
|
|
860
|
+
# Corresponds to the JSON property `horizontalPodAutoscaling`
|
|
861
|
+
# @return [Google::Apis::ContainerV1::HorizontalPodAutoscaling]
|
|
862
|
+
attr_accessor :horizontal_pod_autoscaling
|
|
863
|
+
|
|
864
|
+
# Configuration options for the HTTP (L7) load balancing controller addon,
|
|
865
|
+
# which makes it easy to set up HTTP load balancers for services in a cluster.
|
|
866
|
+
# Corresponds to the JSON property `httpLoadBalancing`
|
|
867
|
+
# @return [Google::Apis::ContainerV1::HttpLoadBalancing]
|
|
868
|
+
attr_accessor :http_load_balancing
|
|
869
|
+
|
|
870
|
+
def initialize(**args)
|
|
871
|
+
update!(**args)
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
# Update properties of this object
|
|
875
|
+
def update!(**args)
|
|
876
|
+
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
|
|
877
|
+
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
|
|
878
|
+
end
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
# RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
|
|
882
|
+
# NodePool upgrade. This will be an no-op if the last upgrade successfully
|
|
883
|
+
# completed.
|
|
884
|
+
class RollbackNodePoolUpgradeRequest
|
|
885
|
+
include Google::Apis::Core::Hashable
|
|
886
|
+
|
|
887
|
+
def initialize(**args)
|
|
888
|
+
update!(**args)
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
# Update properties of this object
|
|
892
|
+
def update!(**args)
|
|
893
|
+
end
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
# SetNodePoolSizeRequest sets the size a node
|
|
897
|
+
# pool.
|
|
898
|
+
class SetNodePoolSizeRequest
|
|
899
|
+
include Google::Apis::Core::Hashable
|
|
900
|
+
|
|
901
|
+
# The desired node count for the pool.
|
|
902
|
+
# Corresponds to the JSON property `nodeCount`
|
|
903
|
+
# @return [Fixnum]
|
|
904
|
+
attr_accessor :node_count
|
|
905
|
+
|
|
906
|
+
def initialize(**args)
|
|
907
|
+
update!(**args)
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
# Update properties of this object
|
|
911
|
+
def update!(**args)
|
|
912
|
+
@node_count = args[:node_count] if args.key?(:node_count)
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# UpdateClusterRequest updates the settings of a cluster.
|
|
917
|
+
class UpdateClusterRequest
|
|
918
|
+
include Google::Apis::Core::Hashable
|
|
919
|
+
|
|
920
|
+
# ClusterUpdate describes an update to the cluster. Exactly one update can
|
|
921
|
+
# be applied to a cluster with each request, so at most one field can be
|
|
922
|
+
# provided.
|
|
923
|
+
# Corresponds to the JSON property `update`
|
|
924
|
+
# @return [Google::Apis::ContainerV1::ClusterUpdate]
|
|
925
|
+
attr_accessor :update
|
|
926
|
+
|
|
927
|
+
def initialize(**args)
|
|
928
|
+
update!(**args)
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Update properties of this object
|
|
932
|
+
def update!(**args)
|
|
933
|
+
@update = args[:update] if args.key?(:update)
|
|
934
|
+
end
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# A Google Container Engine cluster.
|
|
938
|
+
class Cluster
|
|
939
|
+
include Google::Apis::Core::Hashable
|
|
940
|
+
|
|
941
|
+
# The name of the Google Compute Engine
|
|
942
|
+
# [network](/compute/docs/networks-and-firewalls#networks) to which the
|
|
943
|
+
# cluster is connected. If left unspecified, the `default` network
|
|
944
|
+
# will be used.
|
|
945
|
+
# Corresponds to the JSON property `network`
|
|
946
|
+
# @return [String]
|
|
947
|
+
attr_accessor :network
|
|
948
|
+
|
|
949
|
+
# The fingerprint of the set of labels for this cluster.
|
|
950
|
+
# Corresponds to the JSON property `labelFingerprint`
|
|
951
|
+
# @return [String]
|
|
952
|
+
attr_accessor :label_fingerprint
|
|
953
|
+
|
|
954
|
+
# [Output only] The name of the Google Compute Engine
|
|
955
|
+
# [zone](/compute/docs/zones#available) in which the cluster
|
|
956
|
+
# resides.
|
|
957
|
+
# Corresponds to the JSON property `zone`
|
|
958
|
+
# @return [String]
|
|
959
|
+
attr_accessor :zone
|
|
960
|
+
|
|
961
|
+
# [Output only] The size of the address space on each node for hosting
|
|
962
|
+
# containers. This is provisioned from within the `container_ipv4_cidr`
|
|
963
|
+
# range.
|
|
964
|
+
# Corresponds to the JSON property `nodeIpv4CidrSize`
|
|
965
|
+
# @return [Fixnum]
|
|
966
|
+
attr_accessor :node_ipv4_cidr_size
|
|
967
|
+
|
|
968
|
+
# [Output only] The time the cluster will be automatically
|
|
969
|
+
# deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
970
|
+
# Corresponds to the JSON property `expireTime`
|
|
971
|
+
# @return [String]
|
|
972
|
+
attr_accessor :expire_time
|
|
973
|
+
|
|
974
|
+
# The logging service the cluster should use to write logs.
|
|
975
|
+
# Currently available options:
|
|
976
|
+
# * `logging.googleapis.com` - the Google Cloud Logging service.
|
|
977
|
+
# * `none` - no logs will be exported from the cluster.
|
|
978
|
+
# * if left as an empty string,`logging.googleapis.com` will be used.
|
|
979
|
+
# Corresponds to the JSON property `loggingService`
|
|
980
|
+
# @return [String]
|
|
981
|
+
attr_accessor :logging_service
|
|
982
|
+
|
|
983
|
+
# [Output only] Additional information about the current status of this
|
|
984
|
+
# cluster, if available.
|
|
985
|
+
# Corresponds to the JSON property `statusMessage`
|
|
986
|
+
# @return [String]
|
|
987
|
+
attr_accessor :status_message
|
|
988
|
+
|
|
989
|
+
# The authentication information for accessing the master endpoint.
|
|
990
|
+
# Authentication can be done using HTTP basic auth or using client
|
|
991
|
+
# certificates.
|
|
992
|
+
# Corresponds to the JSON property `masterAuth`
|
|
993
|
+
# @return [Google::Apis::ContainerV1::MasterAuth]
|
|
994
|
+
attr_accessor :master_auth
|
|
995
|
+
|
|
996
|
+
# [Output only] The current software version of the master endpoint.
|
|
997
|
+
# Corresponds to the JSON property `currentMasterVersion`
|
|
998
|
+
# @return [String]
|
|
999
|
+
attr_accessor :current_master_version
|
|
1000
|
+
|
|
1001
|
+
# Parameters that describe the nodes in a cluster.
|
|
1002
|
+
# Corresponds to the JSON property `nodeConfig`
|
|
1003
|
+
# @return [Google::Apis::ContainerV1::NodeConfig]
|
|
1004
|
+
attr_accessor :node_config
|
|
1005
|
+
|
|
1006
|
+
# Configuration for the addons that can be automatically spun up in the
|
|
1007
|
+
# cluster, enabling additional functionality.
|
|
1008
|
+
# Corresponds to the JSON property `addonsConfig`
|
|
1009
|
+
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
|
1010
|
+
attr_accessor :addons_config
|
|
1011
|
+
|
|
1012
|
+
# [Output only] The current status of this cluster.
|
|
1013
|
+
# Corresponds to the JSON property `status`
|
|
1014
|
+
# @return [String]
|
|
1015
|
+
attr_accessor :status
|
|
1016
|
+
|
|
1017
|
+
# [Output only] The current version of the node software components.
|
|
1018
|
+
# If they are currently at multiple versions because they're in the process
|
|
1019
|
+
# of being upgraded, this reflects the minimum version of all nodes.
|
|
1020
|
+
# Corresponds to the JSON property `currentNodeVersion`
|
|
1021
|
+
# @return [String]
|
|
1022
|
+
attr_accessor :current_node_version
|
|
1023
|
+
|
|
1123
1024
|
# The name of the Google Compute Engine
|
|
1124
|
-
# [
|
|
1125
|
-
# is
|
|
1126
|
-
# Corresponds to the JSON property `
|
|
1025
|
+
# [subnetwork](/compute/docs/subnetworks) to which the
|
|
1026
|
+
# cluster is connected.
|
|
1027
|
+
# Corresponds to the JSON property `subnetwork`
|
|
1127
1028
|
# @return [String]
|
|
1128
|
-
attr_accessor :
|
|
1029
|
+
attr_accessor :subnetwork
|
|
1129
1030
|
|
|
1130
|
-
# The
|
|
1131
|
-
#
|
|
1132
|
-
#
|
|
1133
|
-
|
|
1031
|
+
# The resource labels for the cluster to use to annotate any related
|
|
1032
|
+
# Google Compute Engine resources.
|
|
1033
|
+
# Corresponds to the JSON property `resourceLabels`
|
|
1034
|
+
# @return [Hash<String,String>]
|
|
1035
|
+
attr_accessor :resource_labels
|
|
1134
1036
|
|
|
1135
|
-
# The
|
|
1037
|
+
# The name of this cluster. The name must be unique within this project
|
|
1038
|
+
# and zone, and can be up to 40 characters with the following restrictions:
|
|
1039
|
+
# * Lowercase letters, numbers, and hyphens only.
|
|
1040
|
+
# * Must start with a letter.
|
|
1041
|
+
# * Must end with a number or a letter.
|
|
1136
1042
|
# Corresponds to the JSON property `name`
|
|
1137
1043
|
# @return [String]
|
|
1138
1044
|
attr_accessor :name
|
|
1139
1045
|
|
|
1140
|
-
#
|
|
1141
|
-
#
|
|
1046
|
+
# The initial Kubernetes version for this cluster. Valid versions are those
|
|
1047
|
+
# found in validMasterVersions returned by getServerConfig. The version can
|
|
1048
|
+
# be upgraded over time; such upgrades are reflected in
|
|
1049
|
+
# currentMasterVersion and currentNodeVersion.
|
|
1050
|
+
# Corresponds to the JSON property `initialClusterVersion`
|
|
1142
1051
|
# @return [String]
|
|
1143
|
-
attr_accessor :
|
|
1052
|
+
attr_accessor :initial_cluster_version
|
|
1144
1053
|
|
|
1145
|
-
#
|
|
1054
|
+
# [Output only] The IP address of this cluster's master endpoint.
|
|
1055
|
+
# The endpoint can be accessed from the internet at
|
|
1056
|
+
# `https://username:password@endpoint/`.
|
|
1057
|
+
# See the `masterAuth` property of this resource for username and
|
|
1058
|
+
# password information.
|
|
1059
|
+
# Corresponds to the JSON property `endpoint`
|
|
1060
|
+
# @return [String]
|
|
1061
|
+
attr_accessor :endpoint
|
|
1062
|
+
|
|
1063
|
+
# Configuration for the legacy Attribute Based Access Control authorization
|
|
1064
|
+
# mode.
|
|
1065
|
+
# Corresponds to the JSON property `legacyAbac`
|
|
1066
|
+
# @return [Google::Apis::ContainerV1::LegacyAbac]
|
|
1067
|
+
attr_accessor :legacy_abac
|
|
1068
|
+
|
|
1069
|
+
# [Output only] The time the cluster was created, in
|
|
1070
|
+
# [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
|
|
1071
|
+
# Corresponds to the JSON property `createTime`
|
|
1072
|
+
# @return [String]
|
|
1073
|
+
attr_accessor :create_time
|
|
1074
|
+
|
|
1075
|
+
# The IP address range of the container pods in this cluster, in
|
|
1076
|
+
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
|
1077
|
+
# notation (e.g. `10.96.0.0/14`). Leave blank to have
|
|
1078
|
+
# one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
|
|
1079
|
+
# Corresponds to the JSON property `clusterIpv4Cidr`
|
|
1080
|
+
# @return [String]
|
|
1081
|
+
attr_accessor :cluster_ipv4_cidr
|
|
1082
|
+
|
|
1083
|
+
# The number of nodes to create in this cluster. You must ensure that your
|
|
1084
|
+
# Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
|
|
1085
|
+
# is sufficient for this number of instances. You must also have available
|
|
1086
|
+
# firewall and routes quota.
|
|
1087
|
+
# For requests, this field should only be used in lieu of a
|
|
1088
|
+
# "node_pool" object, since this configuration (along with the
|
|
1089
|
+
# "node_config") will be used to create a "NodePool" object with an
|
|
1090
|
+
# auto-generated name. Do not use this and a node_pool at the same time.
|
|
1091
|
+
# Corresponds to the JSON property `initialNodeCount`
|
|
1092
|
+
# @return [Fixnum]
|
|
1093
|
+
attr_accessor :initial_node_count
|
|
1094
|
+
|
|
1095
|
+
# The node pools associated with this cluster.
|
|
1096
|
+
# This field should not be set if "node_config" or "initial_node_count" are
|
|
1097
|
+
# specified.
|
|
1098
|
+
# Corresponds to the JSON property `nodePools`
|
|
1099
|
+
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
|
1100
|
+
attr_accessor :node_pools
|
|
1101
|
+
|
|
1102
|
+
# The list of Google Compute Engine
|
|
1103
|
+
# [locations](/compute/docs/zones#available) in which the cluster's nodes
|
|
1104
|
+
# should be located.
|
|
1105
|
+
# Corresponds to the JSON property `locations`
|
|
1106
|
+
# @return [Array<String>]
|
|
1107
|
+
attr_accessor :locations
|
|
1108
|
+
|
|
1109
|
+
# [Output only] Server-defined URL for the resource.
|
|
1146
1110
|
# Corresponds to the JSON property `selfLink`
|
|
1147
1111
|
# @return [String]
|
|
1148
1112
|
attr_accessor :self_link
|
|
1149
1113
|
|
|
1150
|
-
#
|
|
1151
|
-
#
|
|
1114
|
+
# [Output only] The resource URLs of [instance
|
|
1115
|
+
# groups](/compute/docs/instance-groups/) associated with this
|
|
1116
|
+
# cluster.
|
|
1117
|
+
# Corresponds to the JSON property `instanceGroupUrls`
|
|
1118
|
+
# @return [Array<String>]
|
|
1119
|
+
attr_accessor :instance_group_urls
|
|
1120
|
+
|
|
1121
|
+
# [Output only] The IP address range of the Kubernetes services in
|
|
1122
|
+
# this cluster, in
|
|
1123
|
+
# [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
|
|
1124
|
+
# notation (e.g. `1.2.3.4/29`). Service addresses are
|
|
1125
|
+
# typically put in the last `/16` from the container CIDR.
|
|
1126
|
+
# Corresponds to the JSON property `servicesIpv4Cidr`
|
|
1152
1127
|
# @return [String]
|
|
1153
|
-
attr_accessor :
|
|
1128
|
+
attr_accessor :services_ipv4_cidr
|
|
1154
1129
|
|
|
1155
|
-
#
|
|
1156
|
-
#
|
|
1130
|
+
# Kubernetes alpha features are enabled on this cluster. This includes alpha
|
|
1131
|
+
# API groups (e.g. v1alpha1) and features that may not be production ready in
|
|
1132
|
+
# the kubernetes version of the master and nodes.
|
|
1133
|
+
# The cluster has no SLA for uptime and master/node upgrades are disabled.
|
|
1134
|
+
# Alpha enabled clusters are automatically deleted thirty days after
|
|
1135
|
+
# creation.
|
|
1136
|
+
# Corresponds to the JSON property `enableKubernetesAlpha`
|
|
1137
|
+
# @return [Boolean]
|
|
1138
|
+
attr_accessor :enable_kubernetes_alpha
|
|
1139
|
+
alias_method :enable_kubernetes_alpha?, :enable_kubernetes_alpha
|
|
1140
|
+
|
|
1141
|
+
# An optional description of this cluster.
|
|
1142
|
+
# Corresponds to the JSON property `description`
|
|
1157
1143
|
# @return [String]
|
|
1158
|
-
attr_accessor :
|
|
1144
|
+
attr_accessor :description
|
|
1159
1145
|
|
|
1160
|
-
# The
|
|
1161
|
-
# Corresponds to the JSON property `
|
|
1146
|
+
# [Output only] The number of nodes currently in the cluster.
|
|
1147
|
+
# Corresponds to the JSON property `currentNodeCount`
|
|
1148
|
+
# @return [Fixnum]
|
|
1149
|
+
attr_accessor :current_node_count
|
|
1150
|
+
|
|
1151
|
+
# The monitoring service the cluster should use to write metrics.
|
|
1152
|
+
# Currently available options:
|
|
1153
|
+
# * `monitoring.googleapis.com` - the Google Cloud Monitoring service.
|
|
1154
|
+
# * `none` - no metrics will be exported from the cluster.
|
|
1155
|
+
# * if left as an empty string, `monitoring.googleapis.com` will be used.
|
|
1156
|
+
# Corresponds to the JSON property `monitoringService`
|
|
1162
1157
|
# @return [String]
|
|
1163
|
-
attr_accessor :
|
|
1158
|
+
attr_accessor :monitoring_service
|
|
1164
1159
|
|
|
1165
1160
|
def initialize(**args)
|
|
1166
1161
|
update!(**args)
|
|
@@ -1168,34 +1163,53 @@ module Google
|
|
|
1168
1163
|
|
|
1169
1164
|
# Update properties of this object
|
|
1170
1165
|
def update!(**args)
|
|
1166
|
+
@network = args[:network] if args.key?(:network)
|
|
1167
|
+
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
|
1171
1168
|
@zone = args[:zone] if args.key?(:zone)
|
|
1169
|
+
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
|
|
1170
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
1171
|
+
@logging_service = args[:logging_service] if args.key?(:logging_service)
|
|
1172
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
|
1173
|
+
@master_auth = args[:master_auth] if args.key?(:master_auth)
|
|
1174
|
+
@current_master_version = args[:current_master_version] if args.key?(:current_master_version)
|
|
1175
|
+
@node_config = args[:node_config] if args.key?(:node_config)
|
|
1176
|
+
@addons_config = args[:addons_config] if args.key?(:addons_config)
|
|
1172
1177
|
@status = args[:status] if args.key?(:status)
|
|
1178
|
+
@current_node_version = args[:current_node_version] if args.key?(:current_node_version)
|
|
1179
|
+
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
|
|
1180
|
+
@resource_labels = args[:resource_labels] if args.key?(:resource_labels)
|
|
1173
1181
|
@name = args[:name] if args.key?(:name)
|
|
1174
|
-
@
|
|
1182
|
+
@initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
|
|
1183
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
|
1184
|
+
@legacy_abac = args[:legacy_abac] if args.key?(:legacy_abac)
|
|
1185
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1186
|
+
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
|
|
1187
|
+
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
|
1188
|
+
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
|
1189
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
1175
1190
|
@self_link = args[:self_link] if args.key?(:self_link)
|
|
1176
|
-
@
|
|
1177
|
-
@
|
|
1178
|
-
@
|
|
1191
|
+
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
|
1192
|
+
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
|
|
1193
|
+
@enable_kubernetes_alpha = args[:enable_kubernetes_alpha] if args.key?(:enable_kubernetes_alpha)
|
|
1194
|
+
@description = args[:description] if args.key?(:description)
|
|
1195
|
+
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
|
|
1196
|
+
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
|
|
1179
1197
|
end
|
|
1180
1198
|
end
|
|
1181
1199
|
|
|
1182
|
-
#
|
|
1183
|
-
|
|
1184
|
-
class AddonsConfig
|
|
1200
|
+
# CreateNodePoolRequest creates a node pool for a cluster.
|
|
1201
|
+
class CreateNodePoolRequest
|
|
1185
1202
|
include Google::Apis::Core::Hashable
|
|
1186
1203
|
|
|
1187
|
-
#
|
|
1188
|
-
#
|
|
1189
|
-
#
|
|
1190
|
-
#
|
|
1191
|
-
#
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
#
|
|
1195
|
-
|
|
1196
|
-
# Corresponds to the JSON property `httpLoadBalancing`
|
|
1197
|
-
# @return [Google::Apis::ContainerV1::HttpLoadBalancing]
|
|
1198
|
-
attr_accessor :http_load_balancing
|
|
1204
|
+
# NodePool contains the name and configuration for a cluster's node pool.
|
|
1205
|
+
# Node pools are a set of nodes (i.e. VM's), with a common configuration and
|
|
1206
|
+
# specification, under the control of the cluster master. They may have a set
|
|
1207
|
+
# of Kubernetes labels applied to them, which may be used to reference them
|
|
1208
|
+
# during pod scheduling. They may also be resized up or down, to accommodate
|
|
1209
|
+
# the workload.
|
|
1210
|
+
# Corresponds to the JSON property `nodePool`
|
|
1211
|
+
# @return [Google::Apis::ContainerV1::NodePool]
|
|
1212
|
+
attr_accessor :node_pool
|
|
1199
1213
|
|
|
1200
1214
|
def initialize(**args)
|
|
1201
1215
|
update!(**args)
|
|
@@ -1203,36 +1217,64 @@ module Google
|
|
|
1203
1217
|
|
|
1204
1218
|
# Update properties of this object
|
|
1205
1219
|
def update!(**args)
|
|
1206
|
-
@
|
|
1207
|
-
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
|
|
1220
|
+
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
|
1208
1221
|
end
|
|
1209
1222
|
end
|
|
1210
1223
|
|
|
1211
|
-
#
|
|
1212
|
-
|
|
1213
|
-
# completed.
|
|
1214
|
-
class RollbackNodePoolUpgradeRequest
|
|
1224
|
+
# ListOperationsResponse is the result of ListOperationsRequest.
|
|
1225
|
+
class ListOperationsResponse
|
|
1215
1226
|
include Google::Apis::Core::Hashable
|
|
1216
1227
|
|
|
1228
|
+
# A list of operations in the project in the specified zone.
|
|
1229
|
+
# Corresponds to the JSON property `operations`
|
|
1230
|
+
# @return [Array<Google::Apis::ContainerV1::Operation>]
|
|
1231
|
+
attr_accessor :operations
|
|
1232
|
+
|
|
1233
|
+
# If any zones are listed here, the list of operations returned
|
|
1234
|
+
# may be missing the operations from those zones.
|
|
1235
|
+
# Corresponds to the JSON property `missingZones`
|
|
1236
|
+
# @return [Array<String>]
|
|
1237
|
+
attr_accessor :missing_zones
|
|
1238
|
+
|
|
1217
1239
|
def initialize(**args)
|
|
1218
1240
|
update!(**args)
|
|
1219
1241
|
end
|
|
1220
1242
|
|
|
1221
1243
|
# Update properties of this object
|
|
1222
1244
|
def update!(**args)
|
|
1245
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
1246
|
+
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
|
|
1223
1247
|
end
|
|
1224
1248
|
end
|
|
1225
1249
|
|
|
1226
|
-
#
|
|
1227
|
-
class
|
|
1250
|
+
# Container Engine service configuration.
|
|
1251
|
+
class ServerConfig
|
|
1228
1252
|
include Google::Apis::Core::Hashable
|
|
1229
1253
|
|
|
1230
|
-
#
|
|
1231
|
-
#
|
|
1232
|
-
#
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1254
|
+
# List of valid master versions.
|
|
1255
|
+
# Corresponds to the JSON property `validMasterVersions`
|
|
1256
|
+
# @return [Array<String>]
|
|
1257
|
+
attr_accessor :valid_master_versions
|
|
1258
|
+
|
|
1259
|
+
# Version of Kubernetes the service deploys by default.
|
|
1260
|
+
# Corresponds to the JSON property `defaultClusterVersion`
|
|
1261
|
+
# @return [String]
|
|
1262
|
+
attr_accessor :default_cluster_version
|
|
1263
|
+
|
|
1264
|
+
# Default image type.
|
|
1265
|
+
# Corresponds to the JSON property `defaultImageType`
|
|
1266
|
+
# @return [String]
|
|
1267
|
+
attr_accessor :default_image_type
|
|
1268
|
+
|
|
1269
|
+
# List of valid node upgrade target versions.
|
|
1270
|
+
# Corresponds to the JSON property `validNodeVersions`
|
|
1271
|
+
# @return [Array<String>]
|
|
1272
|
+
attr_accessor :valid_node_versions
|
|
1273
|
+
|
|
1274
|
+
# List of valid image types.
|
|
1275
|
+
# Corresponds to the JSON property `validImageTypes`
|
|
1276
|
+
# @return [Array<String>]
|
|
1277
|
+
attr_accessor :valid_image_types
|
|
1236
1278
|
|
|
1237
1279
|
def initialize(**args)
|
|
1238
1280
|
update!(**args)
|
|
@@ -1240,7 +1282,11 @@ module Google
|
|
|
1240
1282
|
|
|
1241
1283
|
# Update properties of this object
|
|
1242
1284
|
def update!(**args)
|
|
1243
|
-
@
|
|
1285
|
+
@valid_master_versions = args[:valid_master_versions] if args.key?(:valid_master_versions)
|
|
1286
|
+
@default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
|
|
1287
|
+
@default_image_type = args[:default_image_type] if args.key?(:default_image_type)
|
|
1288
|
+
@valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
|
|
1289
|
+
@valid_image_types = args[:valid_image_types] if args.key?(:valid_image_types)
|
|
1244
1290
|
end
|
|
1245
1291
|
end
|
|
1246
1292
|
end
|