google-cloud-container 0.6.1 → 0.7.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/README.md +2 -2
- data/lib/google/cloud/container.rb +2 -2
- data/lib/google/cloud/container/v1.rb +2 -2
- data/lib/google/cloud/container/v1/cluster_manager_client.rb +213 -132
- data/lib/google/cloud/container/v1/cluster_manager_client_config.json +36 -31
- data/lib/google/cloud/container/v1/doc/google/container/v1/cluster_service.rb +655 -131
- data/lib/google/cloud/container/v1/doc/google/protobuf/timestamp.rb +113 -0
- data/lib/google/cloud/container/version.rb +1 -1
- data/lib/google/container/v1/cluster_service_pb.rb +178 -0
- data/lib/google/container/v1/cluster_service_services_pb.rb +19 -17
- metadata +3 -2
@@ -0,0 +1,113 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Protobuf
|
18
|
+
# A Timestamp represents a point in time independent of any time zone or local
|
19
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
20
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
21
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
22
|
+
# Gregorian calendar backwards to year one.
|
23
|
+
#
|
24
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
25
|
+
# second table is needed for interpretation, using a [24-hour linear
|
26
|
+
# smear](https://developers.google.com/time/smear).
|
27
|
+
#
|
28
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
29
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
30
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
31
|
+
#
|
32
|
+
# = Examples
|
33
|
+
#
|
34
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
35
|
+
#
|
36
|
+
# Timestamp timestamp;
|
37
|
+
# timestamp.set_seconds(time(NULL));
|
38
|
+
# timestamp.set_nanos(0);
|
39
|
+
#
|
40
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
41
|
+
#
|
42
|
+
# struct timeval tv;
|
43
|
+
# gettimeofday(&tv, NULL);
|
44
|
+
#
|
45
|
+
# Timestamp timestamp;
|
46
|
+
# timestamp.set_seconds(tv.tv_sec);
|
47
|
+
# timestamp.set_nanos(tv.tv_usec * 1000);
|
48
|
+
#
|
49
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
50
|
+
#
|
51
|
+
# FILETIME ft;
|
52
|
+
# GetSystemTimeAsFileTime(&ft);
|
53
|
+
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
54
|
+
#
|
55
|
+
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
56
|
+
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
57
|
+
# Timestamp timestamp;
|
58
|
+
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
59
|
+
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
60
|
+
#
|
61
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
62
|
+
#
|
63
|
+
# long millis = System.currentTimeMillis();
|
64
|
+
#
|
65
|
+
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
66
|
+
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
67
|
+
#
|
68
|
+
#
|
69
|
+
# Example 5: Compute Timestamp from current time in Python.
|
70
|
+
#
|
71
|
+
# timestamp = Timestamp()
|
72
|
+
# timestamp.GetCurrentTime()
|
73
|
+
#
|
74
|
+
# = JSON Mapping
|
75
|
+
#
|
76
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
77
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
78
|
+
# format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
79
|
+
# where {year} is always expressed using four digits while {month}, {day},
|
80
|
+
# {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
81
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
82
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
83
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
84
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
85
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
86
|
+
#
|
87
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
88
|
+
# 01:30 UTC on January 15, 2017.
|
89
|
+
#
|
90
|
+
# In JavaScript, one can convert a Date object to this format using the
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
93
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
98
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
99
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
100
|
+
# @!attribute [rw] seconds
|
101
|
+
# @return [Integer]
|
102
|
+
# Represents seconds of UTC time since Unix epoch
|
103
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
104
|
+
# 9999-12-31T23:59:59Z inclusive.
|
105
|
+
# @!attribute [rw] nanos
|
106
|
+
# @return [Integer]
|
107
|
+
# Non-negative fractions of a second at nanosecond resolution. Negative
|
108
|
+
# second values with fractions must still have non-negative nanos values
|
109
|
+
# that count forward in time. Must be from 0 to 999,999,999
|
110
|
+
# inclusive.
|
111
|
+
class Timestamp; end
|
112
|
+
end
|
113
|
+
end
|
@@ -5,7 +5,10 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
8
10
|
require 'google/protobuf/empty_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
9
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
13
|
add_message "google.container.v1.NodeConfig" do
|
11
14
|
optional :machine_type, :string, 1
|
@@ -21,6 +24,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
24
|
repeated :accelerators, :message, 11, "google.container.v1.AcceleratorConfig"
|
22
25
|
optional :disk_type, :string, 12
|
23
26
|
optional :min_cpu_platform, :string, 13
|
27
|
+
repeated :taints, :message, 15, "google.container.v1.NodeTaint"
|
28
|
+
optional :shielded_instance_config, :message, 20, "google.container.v1.ShieldedInstanceConfig"
|
29
|
+
end
|
30
|
+
add_message "google.container.v1.ShieldedInstanceConfig" do
|
31
|
+
optional :enable_secure_boot, :bool, 1
|
32
|
+
optional :enable_integrity_monitoring, :bool, 2
|
33
|
+
end
|
34
|
+
add_message "google.container.v1.NodeTaint" do
|
35
|
+
optional :key, :string, 1
|
36
|
+
optional :value, :string, 2
|
37
|
+
optional :effect, :enum, 3, "google.container.v1.NodeTaint.Effect"
|
38
|
+
end
|
39
|
+
add_enum "google.container.v1.NodeTaint.Effect" do
|
40
|
+
value :EFFECT_UNSPECIFIED, 0
|
41
|
+
value :NO_SCHEDULE, 1
|
42
|
+
value :PREFER_NO_SCHEDULE, 2
|
43
|
+
value :NO_EXECUTE, 3
|
24
44
|
end
|
25
45
|
add_message "google.container.v1.MasterAuth" do
|
26
46
|
optional :username, :string, 1
|
@@ -38,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
38
58
|
optional :horizontal_pod_autoscaling, :message, 2, "google.container.v1.HorizontalPodAutoscaling"
|
39
59
|
optional :kubernetes_dashboard, :message, 3, "google.container.v1.KubernetesDashboard"
|
40
60
|
optional :network_policy_config, :message, 4, "google.container.v1.NetworkPolicyConfig"
|
61
|
+
optional :cloud_run_config, :message, 7, "google.container.v1.CloudRunConfig"
|
41
62
|
end
|
42
63
|
add_message "google.container.v1.HttpLoadBalancing" do
|
43
64
|
optional :disabled, :bool, 1
|
@@ -58,6 +79,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
58
79
|
optional :private_endpoint, :string, 4
|
59
80
|
optional :public_endpoint, :string, 5
|
60
81
|
end
|
82
|
+
add_message "google.container.v1.AuthenticatorGroupsConfig" do
|
83
|
+
optional :enabled, :bool, 1
|
84
|
+
optional :security_group, :string, 2
|
85
|
+
end
|
86
|
+
add_message "google.container.v1.CloudRunConfig" do
|
87
|
+
optional :disabled, :bool, 1
|
88
|
+
end
|
61
89
|
add_message "google.container.v1.MasterAuthorizedNetworksConfig" do
|
62
90
|
optional :enabled, :bool, 1
|
63
91
|
repeated :cidr_blocks, :message, 2, "google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock"
|
@@ -77,6 +105,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
77
105
|
value :PROVIDER_UNSPECIFIED, 0
|
78
106
|
value :CALICO, 1
|
79
107
|
end
|
108
|
+
add_message "google.container.v1.BinaryAuthorization" do
|
109
|
+
optional :enabled, :bool, 1
|
110
|
+
end
|
80
111
|
add_message "google.container.v1.IPAllocationPolicy" do
|
81
112
|
optional :use_ip_aliases, :bool, 1
|
82
113
|
optional :create_subnetwork, :bool, 2
|
@@ -89,6 +120,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
89
120
|
optional :cluster_ipv4_cidr_block, :string, 9
|
90
121
|
optional :node_ipv4_cidr_block, :string, 10
|
91
122
|
optional :services_ipv4_cidr_block, :string, 11
|
123
|
+
optional :tpu_ipv4_cidr_block, :string, 13
|
92
124
|
end
|
93
125
|
add_message "google.container.v1.Cluster" do
|
94
126
|
optional :name, :string, 1
|
@@ -112,8 +144,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
112
144
|
optional :ip_allocation_policy, :message, 20, "google.container.v1.IPAllocationPolicy"
|
113
145
|
optional :master_authorized_networks_config, :message, 22, "google.container.v1.MasterAuthorizedNetworksConfig"
|
114
146
|
optional :maintenance_policy, :message, 23, "google.container.v1.MaintenancePolicy"
|
147
|
+
optional :binary_authorization, :message, 24, "google.container.v1.BinaryAuthorization"
|
148
|
+
optional :autoscaling, :message, 26, "google.container.v1.ClusterAutoscaling"
|
115
149
|
optional :network_config, :message, 27, "google.container.v1.NetworkConfig"
|
150
|
+
optional :default_max_pods_constraint, :message, 30, "google.container.v1.MaxPodsConstraint"
|
151
|
+
optional :resource_usage_export_config, :message, 33, "google.container.v1.ResourceUsageExportConfig"
|
152
|
+
optional :authenticator_groups_config, :message, 34, "google.container.v1.AuthenticatorGroupsConfig"
|
116
153
|
optional :private_cluster_config, :message, 37, "google.container.v1.PrivateClusterConfig"
|
154
|
+
optional :database_encryption, :message, 38, "google.container.v1.DatabaseEncryption"
|
155
|
+
optional :vertical_pod_autoscaling, :message, 39, "google.container.v1.VerticalPodAutoscaling"
|
117
156
|
optional :self_link, :string, 100
|
118
157
|
optional :zone, :string, 101
|
119
158
|
optional :endpoint, :string, 102
|
@@ -129,6 +168,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
129
168
|
optional :current_node_count, :int32, 112
|
130
169
|
optional :expire_time, :string, 113
|
131
170
|
optional :location, :string, 114
|
171
|
+
optional :enable_tpu, :bool, 115
|
172
|
+
optional :tpu_ipv4_cidr_block, :string, 116
|
173
|
+
repeated :conditions, :message, 118, "google.container.v1.StatusCondition"
|
132
174
|
end
|
133
175
|
add_enum "google.container.v1.Cluster.Status" do
|
134
176
|
value :STATUS_UNSPECIFIED, 0
|
@@ -145,9 +187,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
145
187
|
optional :desired_addons_config, :message, 6, "google.container.v1.AddonsConfig"
|
146
188
|
optional :desired_node_pool_id, :string, 7
|
147
189
|
optional :desired_image_type, :string, 8
|
190
|
+
optional :desired_database_encryption, :message, 46, "google.container.v1.DatabaseEncryption"
|
148
191
|
optional :desired_node_pool_autoscaling, :message, 9, "google.container.v1.NodePoolAutoscaling"
|
149
192
|
repeated :desired_locations, :string, 10
|
150
193
|
optional :desired_master_authorized_networks_config, :message, 12, "google.container.v1.MasterAuthorizedNetworksConfig"
|
194
|
+
optional :desired_cluster_autoscaling, :message, 15, "google.container.v1.ClusterAutoscaling"
|
195
|
+
optional :desired_binary_authorization, :message, 16, "google.container.v1.BinaryAuthorization"
|
196
|
+
optional :desired_logging_service, :string, 19
|
197
|
+
optional :desired_resource_usage_export_config, :message, 21, "google.container.v1.ResourceUsageExportConfig"
|
198
|
+
optional :desired_vertical_pod_autoscaling, :message, 22, "google.container.v1.VerticalPodAutoscaling"
|
199
|
+
optional :desired_intra_node_visibility_config, :message, 26, "google.container.v1.IntraNodeVisibilityConfig"
|
151
200
|
optional :desired_master_version, :string, 100
|
152
201
|
end
|
153
202
|
add_message "google.container.v1.Operation" do
|
@@ -162,6 +211,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
162
211
|
optional :location, :string, 9
|
163
212
|
optional :start_time, :string, 10
|
164
213
|
optional :end_time, :string, 11
|
214
|
+
repeated :cluster_conditions, :message, 13, "google.container.v1.StatusCondition"
|
215
|
+
repeated :nodepool_conditions, :message, 14, "google.container.v1.StatusCondition"
|
165
216
|
end
|
166
217
|
add_enum "google.container.v1.Operation.Status" do
|
167
218
|
value :STATUS_UNSPECIFIED, 0
|
@@ -360,6 +411,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
360
411
|
optional :status_message, :string, 104
|
361
412
|
optional :autoscaling, :message, 4, "google.container.v1.NodePoolAutoscaling"
|
362
413
|
optional :management, :message, 5, "google.container.v1.NodeManagement"
|
414
|
+
optional :max_pods_constraint, :message, 6, "google.container.v1.MaxPodsConstraint"
|
415
|
+
repeated :conditions, :message, 105, "google.container.v1.StatusCondition"
|
416
|
+
optional :pod_ipv4_cidr_size, :int32, 7
|
363
417
|
end
|
364
418
|
add_enum "google.container.v1.NodePool.Status" do
|
365
419
|
value :STATUS_UNSPECIFIED, 0
|
@@ -381,12 +435,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
381
435
|
end
|
382
436
|
add_message "google.container.v1.MaintenancePolicy" do
|
383
437
|
optional :window, :message, 1, "google.container.v1.MaintenanceWindow"
|
438
|
+
optional :resource_version, :string, 3
|
384
439
|
end
|
385
440
|
add_message "google.container.v1.MaintenanceWindow" do
|
441
|
+
map :maintenance_exclusions, :string, :message, 4, "google.container.v1.TimeWindow"
|
386
442
|
oneof :policy do
|
387
443
|
optional :daily_maintenance_window, :message, 2, "google.container.v1.DailyMaintenanceWindow"
|
444
|
+
optional :recurring_window, :message, 3, "google.container.v1.RecurringTimeWindow"
|
388
445
|
end
|
389
446
|
end
|
447
|
+
add_message "google.container.v1.TimeWindow" do
|
448
|
+
optional :start_time, :message, 1, "google.protobuf.Timestamp"
|
449
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
450
|
+
end
|
451
|
+
add_message "google.container.v1.RecurringTimeWindow" do
|
452
|
+
optional :window, :message, 1, "google.container.v1.TimeWindow"
|
453
|
+
optional :recurrence, :string, 2
|
454
|
+
end
|
390
455
|
add_message "google.container.v1.DailyMaintenanceWindow" do
|
391
456
|
optional :start_time, :string, 2
|
392
457
|
optional :duration, :string, 3
|
@@ -417,10 +482,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
417
482
|
add_message "google.container.v1.ListNodePoolsResponse" do
|
418
483
|
repeated :node_pools, :message, 1, "google.container.v1.NodePool"
|
419
484
|
end
|
485
|
+
add_message "google.container.v1.ClusterAutoscaling" do
|
486
|
+
optional :enable_node_autoprovisioning, :bool, 1
|
487
|
+
repeated :resource_limits, :message, 2, "google.container.v1.ResourceLimit"
|
488
|
+
optional :autoprovisioning_node_pool_defaults, :message, 4, "google.container.v1.AutoprovisioningNodePoolDefaults"
|
489
|
+
repeated :autoprovisioning_locations, :string, 5
|
490
|
+
end
|
491
|
+
add_message "google.container.v1.AutoprovisioningNodePoolDefaults" do
|
492
|
+
repeated :oauth_scopes, :string, 1
|
493
|
+
optional :service_account, :string, 2
|
494
|
+
end
|
495
|
+
add_message "google.container.v1.ResourceLimit" do
|
496
|
+
optional :resource_type, :string, 1
|
497
|
+
optional :minimum, :int64, 2
|
498
|
+
optional :maximum, :int64, 3
|
499
|
+
end
|
420
500
|
add_message "google.container.v1.NodePoolAutoscaling" do
|
421
501
|
optional :enabled, :bool, 1
|
422
502
|
optional :min_node_count, :int32, 2
|
423
503
|
optional :max_node_count, :int32, 3
|
504
|
+
optional :autoprovisioned, :bool, 4
|
424
505
|
end
|
425
506
|
add_message "google.container.v1.SetLabelsRequest" do
|
426
507
|
optional :project_id, :string, 1
|
@@ -468,9 +549,80 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
468
549
|
optional :maintenance_policy, :message, 4, "google.container.v1.MaintenancePolicy"
|
469
550
|
optional :name, :string, 5
|
470
551
|
end
|
552
|
+
add_message "google.container.v1.StatusCondition" do
|
553
|
+
optional :code, :enum, 1, "google.container.v1.StatusCondition.Code"
|
554
|
+
optional :message, :string, 2
|
555
|
+
end
|
556
|
+
add_enum "google.container.v1.StatusCondition.Code" do
|
557
|
+
value :UNKNOWN, 0
|
558
|
+
value :GCE_STOCKOUT, 1
|
559
|
+
value :GKE_SERVICE_ACCOUNT_DELETED, 2
|
560
|
+
value :GCE_QUOTA_EXCEEDED, 3
|
561
|
+
value :SET_BY_OPERATOR, 4
|
562
|
+
value :CLOUD_KMS_KEY_ERROR, 7
|
563
|
+
end
|
471
564
|
add_message "google.container.v1.NetworkConfig" do
|
472
565
|
optional :network, :string, 1
|
473
566
|
optional :subnetwork, :string, 2
|
567
|
+
optional :enable_intra_node_visibility, :bool, 5
|
568
|
+
end
|
569
|
+
add_message "google.container.v1.IntraNodeVisibilityConfig" do
|
570
|
+
optional :enabled, :bool, 1
|
571
|
+
end
|
572
|
+
add_message "google.container.v1.MaxPodsConstraint" do
|
573
|
+
optional :max_pods_per_node, :int64, 1
|
574
|
+
end
|
575
|
+
add_message "google.container.v1.DatabaseEncryption" do
|
576
|
+
optional :state, :enum, 2, "google.container.v1.DatabaseEncryption.State"
|
577
|
+
optional :key_name, :string, 1
|
578
|
+
end
|
579
|
+
add_enum "google.container.v1.DatabaseEncryption.State" do
|
580
|
+
value :UNKNOWN, 0
|
581
|
+
value :ENCRYPTED, 1
|
582
|
+
value :DECRYPTED, 2
|
583
|
+
end
|
584
|
+
add_message "google.container.v1.ListUsableSubnetworksRequest" do
|
585
|
+
optional :parent, :string, 1
|
586
|
+
optional :filter, :string, 2
|
587
|
+
optional :page_size, :int32, 3
|
588
|
+
optional :page_token, :string, 4
|
589
|
+
end
|
590
|
+
add_message "google.container.v1.ListUsableSubnetworksResponse" do
|
591
|
+
repeated :subnetworks, :message, 1, "google.container.v1.UsableSubnetwork"
|
592
|
+
optional :next_page_token, :string, 2
|
593
|
+
end
|
594
|
+
add_message "google.container.v1.UsableSubnetworkSecondaryRange" do
|
595
|
+
optional :range_name, :string, 1
|
596
|
+
optional :ip_cidr_range, :string, 2
|
597
|
+
optional :status, :enum, 3, "google.container.v1.UsableSubnetworkSecondaryRange.Status"
|
598
|
+
end
|
599
|
+
add_enum "google.container.v1.UsableSubnetworkSecondaryRange.Status" do
|
600
|
+
value :UNKNOWN, 0
|
601
|
+
value :UNUSED, 1
|
602
|
+
value :IN_USE_SERVICE, 2
|
603
|
+
value :IN_USE_SHAREABLE_POD, 3
|
604
|
+
value :IN_USE_MANAGED_POD, 4
|
605
|
+
end
|
606
|
+
add_message "google.container.v1.UsableSubnetwork" do
|
607
|
+
optional :subnetwork, :string, 1
|
608
|
+
optional :network, :string, 2
|
609
|
+
optional :ip_cidr_range, :string, 3
|
610
|
+
repeated :secondary_ip_ranges, :message, 4, "google.container.v1.UsableSubnetworkSecondaryRange"
|
611
|
+
optional :status_message, :string, 5
|
612
|
+
end
|
613
|
+
add_message "google.container.v1.ResourceUsageExportConfig" do
|
614
|
+
optional :bigquery_destination, :message, 1, "google.container.v1.ResourceUsageExportConfig.BigQueryDestination"
|
615
|
+
optional :enable_network_egress_metering, :bool, 2
|
616
|
+
optional :consumption_metering_config, :message, 3, "google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig"
|
617
|
+
end
|
618
|
+
add_message "google.container.v1.ResourceUsageExportConfig.BigQueryDestination" do
|
619
|
+
optional :dataset_id, :string, 1
|
620
|
+
end
|
621
|
+
add_message "google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig" do
|
622
|
+
optional :enabled, :bool, 1
|
623
|
+
end
|
624
|
+
add_message "google.container.v1.VerticalPodAutoscaling" do
|
625
|
+
optional :enabled, :bool, 1
|
474
626
|
end
|
475
627
|
end
|
476
628
|
|
@@ -478,6 +630,9 @@ module Google
|
|
478
630
|
module Container
|
479
631
|
module V1
|
480
632
|
NodeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodeConfig").msgclass
|
633
|
+
ShieldedInstanceConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ShieldedInstanceConfig").msgclass
|
634
|
+
NodeTaint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodeTaint").msgclass
|
635
|
+
NodeTaint::Effect = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodeTaint.Effect").enummodule
|
481
636
|
MasterAuth = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuth").msgclass
|
482
637
|
ClientCertificateConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ClientCertificateConfig").msgclass
|
483
638
|
AddonsConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AddonsConfig").msgclass
|
@@ -486,11 +641,14 @@ module Google
|
|
486
641
|
KubernetesDashboard = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.KubernetesDashboard").msgclass
|
487
642
|
NetworkPolicyConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicyConfig").msgclass
|
488
643
|
PrivateClusterConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.PrivateClusterConfig").msgclass
|
644
|
+
AuthenticatorGroupsConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AuthenticatorGroupsConfig").msgclass
|
645
|
+
CloudRunConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.CloudRunConfig").msgclass
|
489
646
|
MasterAuthorizedNetworksConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuthorizedNetworksConfig").msgclass
|
490
647
|
MasterAuthorizedNetworksConfig::CidrBlock = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock").msgclass
|
491
648
|
LegacyAbac = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.LegacyAbac").msgclass
|
492
649
|
NetworkPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicy").msgclass
|
493
650
|
NetworkPolicy::Provider = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkPolicy.Provider").enummodule
|
651
|
+
BinaryAuthorization = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.BinaryAuthorization").msgclass
|
494
652
|
IPAllocationPolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.IPAllocationPolicy").msgclass
|
495
653
|
Cluster = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Cluster").msgclass
|
496
654
|
Cluster::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.Cluster.Status").enummodule
|
@@ -529,11 +687,16 @@ module Google
|
|
529
687
|
AutoUpgradeOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AutoUpgradeOptions").msgclass
|
530
688
|
MaintenancePolicy = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MaintenancePolicy").msgclass
|
531
689
|
MaintenanceWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MaintenanceWindow").msgclass
|
690
|
+
TimeWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.TimeWindow").msgclass
|
691
|
+
RecurringTimeWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.RecurringTimeWindow").msgclass
|
532
692
|
DailyMaintenanceWindow = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DailyMaintenanceWindow").msgclass
|
533
693
|
SetNodePoolManagementRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNodePoolManagementRequest").msgclass
|
534
694
|
SetNodePoolSizeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNodePoolSizeRequest").msgclass
|
535
695
|
RollbackNodePoolUpgradeRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.RollbackNodePoolUpgradeRequest").msgclass
|
536
696
|
ListNodePoolsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListNodePoolsResponse").msgclass
|
697
|
+
ClusterAutoscaling = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ClusterAutoscaling").msgclass
|
698
|
+
AutoprovisioningNodePoolDefaults = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AutoprovisioningNodePoolDefaults").msgclass
|
699
|
+
ResourceLimit = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ResourceLimit").msgclass
|
537
700
|
NodePoolAutoscaling = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NodePoolAutoscaling").msgclass
|
538
701
|
SetLabelsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLabelsRequest").msgclass
|
539
702
|
SetLegacyAbacRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetLegacyAbacRequest").msgclass
|
@@ -542,7 +705,22 @@ module Google
|
|
542
705
|
AcceleratorConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.AcceleratorConfig").msgclass
|
543
706
|
SetNetworkPolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetNetworkPolicyRequest").msgclass
|
544
707
|
SetMaintenancePolicyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.SetMaintenancePolicyRequest").msgclass
|
708
|
+
StatusCondition = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.StatusCondition").msgclass
|
709
|
+
StatusCondition::Code = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.StatusCondition.Code").enummodule
|
545
710
|
NetworkConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.NetworkConfig").msgclass
|
711
|
+
IntraNodeVisibilityConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.IntraNodeVisibilityConfig").msgclass
|
712
|
+
MaxPodsConstraint = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.MaxPodsConstraint").msgclass
|
713
|
+
DatabaseEncryption = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DatabaseEncryption").msgclass
|
714
|
+
DatabaseEncryption::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.DatabaseEncryption.State").enummodule
|
715
|
+
ListUsableSubnetworksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListUsableSubnetworksRequest").msgclass
|
716
|
+
ListUsableSubnetworksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ListUsableSubnetworksResponse").msgclass
|
717
|
+
UsableSubnetworkSecondaryRange = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UsableSubnetworkSecondaryRange").msgclass
|
718
|
+
UsableSubnetworkSecondaryRange::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UsableSubnetworkSecondaryRange.Status").enummodule
|
719
|
+
UsableSubnetwork = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.UsableSubnetwork").msgclass
|
720
|
+
ResourceUsageExportConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ResourceUsageExportConfig").msgclass
|
721
|
+
ResourceUsageExportConfig::BigQueryDestination = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ResourceUsageExportConfig.BigQueryDestination").msgclass
|
722
|
+
ResourceUsageExportConfig::ConsumptionMeteringConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig").msgclass
|
723
|
+
VerticalPodAutoscaling = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.container.v1.VerticalPodAutoscaling").msgclass
|
546
724
|
end
|
547
725
|
end
|
548
726
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/container/v1/cluster_service.proto for package 'google.container.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -46,18 +46,18 @@ module Google
|
|
46
46
|
# [default network](/compute/docs/networks-and-firewalls#networks).
|
47
47
|
#
|
48
48
|
# One firewall is added for the cluster. After cluster creation,
|
49
|
-
# the
|
49
|
+
# the Kubelet creates routes for each node to allow the containers
|
50
50
|
# on that node to communicate with all other instances in the
|
51
51
|
# cluster.
|
52
52
|
#
|
53
53
|
# Finally, an entry is added to the project's global metadata indicating
|
54
|
-
# which CIDR range
|
54
|
+
# which CIDR range the cluster is using.
|
55
55
|
rpc :CreateCluster, CreateClusterRequest, Operation
|
56
56
|
# Updates the settings of a specific cluster.
|
57
57
|
rpc :UpdateCluster, UpdateClusterRequest, Operation
|
58
|
-
# Updates the version and/or image type for
|
58
|
+
# Updates the version and/or image type for the specified node pool.
|
59
59
|
rpc :UpdateNodePool, UpdateNodePoolRequest, Operation
|
60
|
-
# Sets the autoscaling settings for
|
60
|
+
# Sets the autoscaling settings for the specified node pool.
|
61
61
|
rpc :SetNodePoolAutoscaling, SetNodePoolAutoscalingRequest, Operation
|
62
62
|
# Sets the logging service for a specific cluster.
|
63
63
|
rpc :SetLoggingService, SetLoggingServiceRequest, Operation
|
@@ -69,9 +69,9 @@ module Google
|
|
69
69
|
rpc :SetLocations, SetLocationsRequest, Operation
|
70
70
|
# Updates the master for a specific cluster.
|
71
71
|
rpc :UpdateMaster, UpdateMasterRequest, Operation
|
72
|
-
#
|
73
|
-
#
|
74
|
-
#
|
72
|
+
# Sets master auth materials. Currently supports changing the admin password
|
73
|
+
# or a specific cluster, either via password generation or explicitly setting
|
74
|
+
# the password.
|
75
75
|
rpc :SetMasterAuth, SetMasterAuthRequest, Operation
|
76
76
|
# Deletes the cluster, including the Kubernetes endpoint and all worker
|
77
77
|
# nodes.
|
@@ -79,9 +79,9 @@ module Google
|
|
79
79
|
# Firewalls and routes that were configured during cluster creation
|
80
80
|
# are also deleted.
|
81
81
|
#
|
82
|
-
# Other Google Compute Engine resources that might be in use by the cluster
|
83
|
-
#
|
84
|
-
#
|
82
|
+
# Other Google Compute Engine resources that might be in use by the cluster,
|
83
|
+
# such as load balancer resources, are not deleted if they weren't present
|
84
|
+
# when the cluster was initially created.
|
85
85
|
rpc :DeleteCluster, DeleteClusterRequest, Operation
|
86
86
|
# Lists all operations in a project in a specific zone or all zones.
|
87
87
|
rpc :ListOperations, ListOperationsRequest, ListOperationsResponse
|
@@ -89,18 +89,18 @@ module Google
|
|
89
89
|
rpc :GetOperation, GetOperationRequest, Operation
|
90
90
|
# Cancels the specified operation.
|
91
91
|
rpc :CancelOperation, CancelOperationRequest, Google::Protobuf::Empty
|
92
|
-
# Returns configuration info about the Kubernetes Engine service.
|
92
|
+
# Returns configuration info about the Google Kubernetes Engine service.
|
93
93
|
rpc :GetServerConfig, GetServerConfigRequest, ServerConfig
|
94
94
|
# Lists the node pools for a cluster.
|
95
95
|
rpc :ListNodePools, ListNodePoolsRequest, ListNodePoolsResponse
|
96
|
-
# Retrieves the node pool
|
96
|
+
# Retrieves the requested node pool.
|
97
97
|
rpc :GetNodePool, GetNodePoolRequest, NodePool
|
98
98
|
# Creates a node pool for a cluster.
|
99
99
|
rpc :CreateNodePool, CreateNodePoolRequest, Operation
|
100
100
|
# Deletes a node pool from a cluster.
|
101
101
|
rpc :DeleteNodePool, DeleteNodePoolRequest, Operation
|
102
|
-
#
|
103
|
-
# This
|
102
|
+
# Rolls back a previously Aborted or Failed NodePool upgrade.
|
103
|
+
# This makes no changes if the last upgrade successfully completed.
|
104
104
|
rpc :RollbackNodePoolUpgrade, RollbackNodePoolUpgradeRequest, Operation
|
105
105
|
# Sets the NodeManagement options for a node pool.
|
106
106
|
rpc :SetNodePoolManagement, SetNodePoolManagementRequest, Operation
|
@@ -108,16 +108,18 @@ module Google
|
|
108
108
|
rpc :SetLabels, SetLabelsRequest, Operation
|
109
109
|
# Enables or disables the ABAC authorization mechanism on a cluster.
|
110
110
|
rpc :SetLegacyAbac, SetLegacyAbacRequest, Operation
|
111
|
-
#
|
111
|
+
# Starts master IP rotation.
|
112
112
|
rpc :StartIPRotation, StartIPRotationRequest, Operation
|
113
113
|
# Completes master IP rotation.
|
114
114
|
rpc :CompleteIPRotation, CompleteIPRotationRequest, Operation
|
115
115
|
# Sets the size for a specific node pool.
|
116
116
|
rpc :SetNodePoolSize, SetNodePoolSizeRequest, Operation
|
117
|
-
# Enables
|
117
|
+
# Enables or disables Network Policy for a cluster.
|
118
118
|
rpc :SetNetworkPolicy, SetNetworkPolicyRequest, Operation
|
119
119
|
# Sets the maintenance policy for a cluster.
|
120
120
|
rpc :SetMaintenancePolicy, SetMaintenancePolicyRequest, Operation
|
121
|
+
# Lists subnetworks that are usable for creating clusters in a project.
|
122
|
+
rpc :ListUsableSubnetworks, ListUsableSubnetworksRequest, ListUsableSubnetworksResponse
|
121
123
|
end
|
122
124
|
|
123
125
|
Stub = Service.rpc_stub_class
|