google-cloud-container-v1 0.6.0 → 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/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/container/v1/cluster_manager/client.rb +10 -37
- data/lib/google/cloud/container/v1/version.rb +1 -1
- data/lib/google/container/v1/cluster_service_pb.rb +1 -0
- data/lib/google/container/v1/cluster_service_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/container/v1/cluster_service.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424fe6d8395f849933559afa2f778d535ea63394f1f39d2359c572f11ca91130
|
4
|
+
data.tar.gz: 8ef1f6b9c7710ae21f7c3467c0083f1c3b3d5ea02b22635b27161c89865d0836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c3c935d5df2485aa77d70f9421f0eda05ea88e05aa8cfe1d288de5af09ce7650945642bb96fb5e40c2938644eac9c056d578f0b23410399e1a064c1d098bea8
|
7
|
+
data.tar.gz: 4e21ce72e5204d568e4040813dbc4b963d349a51a7d4582d5860902449b74deb679b9abf9407a8ce4f09c447761ad45b7e305992be5b85773375fb5b41115b9a
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-container-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Container::V1::ClusterManager::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `CONTAINER_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `CONTAINER_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/container/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/container/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Container::V1::ClusterManager::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/container/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/container/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Container::V1::ClusterManager::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Container::V1::ListClustersRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_clusters request
|
38
38
|
```
|
39
39
|
|
@@ -65,18 +65,12 @@ module Google
|
|
65
65
|
|
66
66
|
default_config.rpcs.list_clusters.timeout = 20.0
|
67
67
|
default_config.rpcs.list_clusters.retry_policy = {
|
68
|
-
initial_delay: 0.1,
|
69
|
-
max_delay: 60.0,
|
70
|
-
multiplier: 1.3,
|
71
|
-
retry_codes: [14, 4]
|
68
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
72
69
|
}
|
73
70
|
|
74
71
|
default_config.rpcs.get_cluster.timeout = 20.0
|
75
72
|
default_config.rpcs.get_cluster.retry_policy = {
|
76
|
-
initial_delay: 0.1,
|
77
|
-
max_delay: 60.0,
|
78
|
-
multiplier: 1.3,
|
79
|
-
retry_codes: [14, 4]
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
80
74
|
}
|
81
75
|
|
82
76
|
default_config.rpcs.create_cluster.timeout = 45.0
|
@@ -101,62 +95,41 @@ module Google
|
|
101
95
|
|
102
96
|
default_config.rpcs.delete_cluster.timeout = 20.0
|
103
97
|
default_config.rpcs.delete_cluster.retry_policy = {
|
104
|
-
initial_delay: 0.1,
|
105
|
-
max_delay: 60.0,
|
106
|
-
multiplier: 1.3,
|
107
|
-
retry_codes: [14, 4]
|
98
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
108
99
|
}
|
109
100
|
|
110
101
|
default_config.rpcs.list_operations.timeout = 20.0
|
111
102
|
default_config.rpcs.list_operations.retry_policy = {
|
112
|
-
initial_delay: 0.1,
|
113
|
-
max_delay: 60.0,
|
114
|
-
multiplier: 1.3,
|
115
|
-
retry_codes: [14, 4]
|
103
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
116
104
|
}
|
117
105
|
|
118
106
|
default_config.rpcs.get_operation.timeout = 20.0
|
119
107
|
default_config.rpcs.get_operation.retry_policy = {
|
120
|
-
initial_delay: 0.1,
|
121
|
-
max_delay: 60.0,
|
122
|
-
multiplier: 1.3,
|
123
|
-
retry_codes: [14, 4]
|
108
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
124
109
|
}
|
125
110
|
|
126
111
|
default_config.rpcs.cancel_operation.timeout = 45.0
|
127
112
|
|
128
113
|
default_config.rpcs.get_server_config.timeout = 20.0
|
129
114
|
default_config.rpcs.get_server_config.retry_policy = {
|
130
|
-
initial_delay: 0.1,
|
131
|
-
max_delay: 60.0,
|
132
|
-
multiplier: 1.3,
|
133
|
-
retry_codes: [14, 4]
|
115
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
134
116
|
}
|
135
117
|
|
136
118
|
default_config.rpcs.list_node_pools.timeout = 20.0
|
137
119
|
default_config.rpcs.list_node_pools.retry_policy = {
|
138
|
-
initial_delay: 0.1,
|
139
|
-
max_delay: 60.0,
|
140
|
-
multiplier: 1.3,
|
141
|
-
retry_codes: [14, 4]
|
120
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
142
121
|
}
|
143
122
|
|
144
123
|
default_config.rpcs.get_node_pool.timeout = 20.0
|
145
124
|
default_config.rpcs.get_node_pool.retry_policy = {
|
146
|
-
initial_delay: 0.1,
|
147
|
-
max_delay: 60.0,
|
148
|
-
multiplier: 1.3,
|
149
|
-
retry_codes: [14, 4]
|
125
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
150
126
|
}
|
151
127
|
|
152
128
|
default_config.rpcs.create_node_pool.timeout = 45.0
|
153
129
|
|
154
130
|
default_config.rpcs.delete_node_pool.timeout = 20.0
|
155
131
|
default_config.rpcs.delete_node_pool.retry_policy = {
|
156
|
-
initial_delay: 0.1,
|
157
|
-
max_delay: 60.0,
|
158
|
-
multiplier: 1.3,
|
159
|
-
retry_codes: [14, 4]
|
132
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
160
133
|
}
|
161
134
|
|
162
135
|
default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
|
@@ -245,7 +218,7 @@ module Google
|
|
245
218
|
!@config.endpoint.split(".").first.include?("-")
|
246
219
|
credentials ||= Credentials.default scope: @config.scope,
|
247
220
|
enable_self_signed_jwt: enable_self_signed_jwt
|
248
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
221
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
249
222
|
credentials = Credentials.new credentials, scope: @config.scope
|
250
223
|
end
|
251
224
|
@quota_project_id = @config.quota_project
|
@@ -248,6 +248,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
248
248
|
optional :desired_intra_node_visibility_config, :message, 26, "google.container.v1.IntraNodeVisibilityConfig"
|
249
249
|
optional :desired_default_snat_status, :message, 28, "google.container.v1.DefaultSnatStatus"
|
250
250
|
optional :desired_release_channel, :message, 31, "google.container.v1.ReleaseChannel"
|
251
|
+
optional :desired_authenticator_groups_config, :message, 63, "google.container.v1.AuthenticatorGroupsConfig"
|
251
252
|
optional :desired_master_version, :string, 100
|
252
253
|
end
|
253
254
|
add_message "google.container.v1.Operation" do
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -1167,6 +1167,9 @@ module Google
|
|
1167
1167
|
# @!attribute [rw] desired_release_channel
|
1168
1168
|
# @return [::Google::Cloud::Container::V1::ReleaseChannel]
|
1169
1169
|
# The desired release channel configuration.
|
1170
|
+
# @!attribute [rw] desired_authenticator_groups_config
|
1171
|
+
# @return [::Google::Cloud::Container::V1::AuthenticatorGroupsConfig]
|
1172
|
+
# The desired authenticator groups config for the cluster.
|
1170
1173
|
# @!attribute [rw] desired_master_version
|
1171
1174
|
# @return [::String]
|
1172
1175
|
# The Kubernetes version to change the master to.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|