google-cloud-container-v1beta1 0.1.0 → 0.2.4
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 +4 -0
- data/lib/google/cloud/container/v1beta1/cluster_manager/client.rb +28 -23
- data/lib/google/cloud/container/v1beta1/version.rb +1 -1
- data/proto_docs/google/container/v1beta1/cluster_service.rb +2 -2
- metadata +35 -8
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f49cf1f0f5f7a1293738314789b84c145ebec13c0b9482d3ba0dfdbad96a1482
|
4
|
+
data.tar.gz: ae986b00fd477d243061cfbbd8ed57a5176436a13b4ed5992c016144106b8e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e05330821f76c648dbb09e5d63528dad42923c55e474c7e42ceb7b6b61f04f2703271dde96c6ff77f9460e1e6b5a8802a2b1e4888efefc6f4d76b288b238503
|
7
|
+
data.tar.gz: 4e50c521ba8e04601f386c8137c39d1f856358f18f92f22451dcffc14feade774337eb4c8f261ec9c07d3b85173e72cfa8b5c866d6264e180d206a81552dae10
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/container.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.list_clusters request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-container-v1beta1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/kubernetes-engine)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
initial_delay: 0.1,
|
69
69
|
max_delay: 60.0,
|
70
70
|
multiplier: 1.3,
|
71
|
-
retry_codes: [
|
71
|
+
retry_codes: [14, 4]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config.rpcs.get_cluster.timeout = 20.0
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
initial_delay: 0.1,
|
77
77
|
max_delay: 60.0,
|
78
78
|
multiplier: 1.3,
|
79
|
-
retry_codes: [
|
79
|
+
retry_codes: [14, 4]
|
80
80
|
}
|
81
81
|
|
82
82
|
default_config.rpcs.create_cluster.timeout = 45.0
|
@@ -104,7 +104,7 @@ module Google
|
|
104
104
|
initial_delay: 0.1,
|
105
105
|
max_delay: 60.0,
|
106
106
|
multiplier: 1.3,
|
107
|
-
retry_codes: [
|
107
|
+
retry_codes: [14, 4]
|
108
108
|
}
|
109
109
|
|
110
110
|
default_config.rpcs.list_operations.timeout = 20.0
|
@@ -112,7 +112,7 @@ module Google
|
|
112
112
|
initial_delay: 0.1,
|
113
113
|
max_delay: 60.0,
|
114
114
|
multiplier: 1.3,
|
115
|
-
retry_codes: [
|
115
|
+
retry_codes: [14, 4]
|
116
116
|
}
|
117
117
|
|
118
118
|
default_config.rpcs.get_operation.timeout = 20.0
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
initial_delay: 0.1,
|
121
121
|
max_delay: 60.0,
|
122
122
|
multiplier: 1.3,
|
123
|
-
retry_codes: [
|
123
|
+
retry_codes: [14, 4]
|
124
124
|
}
|
125
125
|
|
126
126
|
default_config.rpcs.cancel_operation.timeout = 45.0
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
initial_delay: 0.1,
|
131
131
|
max_delay: 60.0,
|
132
132
|
multiplier: 1.3,
|
133
|
-
retry_codes: [
|
133
|
+
retry_codes: [14, 4]
|
134
134
|
}
|
135
135
|
|
136
136
|
default_config.rpcs.list_node_pools.timeout = 20.0
|
@@ -138,7 +138,7 @@ module Google
|
|
138
138
|
initial_delay: 0.1,
|
139
139
|
max_delay: 60.0,
|
140
140
|
multiplier: 1.3,
|
141
|
-
retry_codes: [
|
141
|
+
retry_codes: [14, 4]
|
142
142
|
}
|
143
143
|
|
144
144
|
default_config.rpcs.get_node_pool.timeout = 20.0
|
@@ -146,7 +146,7 @@ module Google
|
|
146
146
|
initial_delay: 0.1,
|
147
147
|
max_delay: 60.0,
|
148
148
|
multiplier: 1.3,
|
149
|
-
retry_codes: [
|
149
|
+
retry_codes: [14, 4]
|
150
150
|
}
|
151
151
|
|
152
152
|
default_config.rpcs.create_node_pool.timeout = 45.0
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
initial_delay: 0.1,
|
157
157
|
max_delay: 60.0,
|
158
158
|
multiplier: 1.3,
|
159
|
-
retry_codes: [
|
159
|
+
retry_codes: [14, 4]
|
160
160
|
}
|
161
161
|
|
162
162
|
default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
|
@@ -182,7 +182,7 @@ module Google
|
|
182
182
|
initial_delay: 0.1,
|
183
183
|
max_delay: 60.0,
|
184
184
|
multiplier: 1.3,
|
185
|
-
retry_codes: [
|
185
|
+
retry_codes: [14, 4]
|
186
186
|
}
|
187
187
|
|
188
188
|
default_config.rpcs.list_locations.timeout = 20.0
|
@@ -190,7 +190,7 @@ module Google
|
|
190
190
|
initial_delay: 0.1,
|
191
191
|
max_delay: 60.0,
|
192
192
|
multiplier: 1.3,
|
193
|
-
retry_codes: [
|
193
|
+
retry_codes: [14, 4]
|
194
194
|
}
|
195
195
|
|
196
196
|
default_config
|
@@ -258,7 +258,8 @@ module Google
|
|
258
258
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
259
259
|
credentials = Credentials.new credentials, scope: @config.scope
|
260
260
|
end
|
261
|
-
@quota_project_id =
|
261
|
+
@quota_project_id = @config.quota_project
|
262
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
262
263
|
|
263
264
|
@cluster_manager_stub = ::Gapic::ServiceStub.new(
|
264
265
|
::Google::Cloud::Container::V1beta1::ClusterManager::Stub,
|
@@ -2988,24 +2989,28 @@ module Google
|
|
2988
2989
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2989
2990
|
# trigger a retry.
|
2990
2991
|
# @return [::Hash]
|
2992
|
+
# @!attribute [rw] quota_project
|
2993
|
+
# A separate project against which to charge quota.
|
2994
|
+
# @return [::String]
|
2991
2995
|
#
|
2992
2996
|
class Configuration
|
2993
2997
|
extend ::Gapic::Config
|
2994
2998
|
|
2995
|
-
config_attr :endpoint,
|
2996
|
-
config_attr :credentials,
|
2999
|
+
config_attr :endpoint, "container.googleapis.com", ::String
|
3000
|
+
config_attr :credentials, nil do |value|
|
2997
3001
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2998
3002
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2999
3003
|
allowed.any? { |klass| klass === value }
|
3000
3004
|
end
|
3001
|
-
config_attr :scope,
|
3002
|
-
config_attr :lib_name,
|
3003
|
-
config_attr :lib_version,
|
3004
|
-
config_attr(:channel_args,
|
3005
|
-
config_attr :interceptors,
|
3006
|
-
config_attr :timeout,
|
3007
|
-
config_attr :metadata,
|
3008
|
-
config_attr :retry_policy,
|
3005
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
3006
|
+
config_attr :lib_name, nil, ::String, nil
|
3007
|
+
config_attr :lib_version, nil, ::String, nil
|
3008
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3009
|
+
config_attr :interceptors, nil, ::Array, nil
|
3010
|
+
config_attr :timeout, nil, ::Numeric, nil
|
3011
|
+
config_attr :metadata, nil, ::Hash, nil
|
3012
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
3013
|
+
config_attr :quota_project, nil, ::String, nil
|
3009
3014
|
|
3010
3015
|
# @private
|
3011
3016
|
def initialize parent_config = nil
|
@@ -3021,7 +3026,7 @@ module Google
|
|
3021
3026
|
def rpcs
|
3022
3027
|
@rpcs ||= begin
|
3023
3028
|
parent_rpcs = nil
|
3024
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
3029
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
3025
3030
|
Rpcs.new parent_rpcs
|
3026
3031
|
end
|
3027
3032
|
end
|
@@ -655,7 +655,7 @@ module Google
|
|
655
655
|
# @!attribute [rw] initial_node_count
|
656
656
|
# @return [::Integer]
|
657
657
|
# The number of nodes to create in this cluster. You must ensure that your
|
658
|
-
# Compute Engine
|
658
|
+
# Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
|
659
659
|
# is sufficient for this number of instances. You must also have available
|
660
660
|
# firewall and routes quota.
|
661
661
|
# For requests, this field should only be used in lieu of a
|
@@ -1907,7 +1907,7 @@ module Google
|
|
1907
1907
|
# @!attribute [rw] initial_node_count
|
1908
1908
|
# @return [::Integer]
|
1909
1909
|
# The initial node count for the pool. You must ensure that your
|
1910
|
-
# Compute Engine
|
1910
|
+
# Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
|
1911
1911
|
# is sufficient for this number of instances. You must also have available
|
1912
1912
|
# firewall and routes quota.
|
1913
1913
|
# @!attribute [rw] self_link
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-container-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +162,6 @@ files:
|
|
134
162
|
- LICENSE.md
|
135
163
|
- README.md
|
136
164
|
- lib/google-cloud-container-v1beta1.rb
|
137
|
-
- lib/google/cloud/common_resources_pb.rb
|
138
165
|
- lib/google/cloud/container/v1beta1.rb
|
139
166
|
- lib/google/cloud/container/v1beta1/cluster_manager.rb
|
140
167
|
- lib/google/cloud/container/v1beta1/cluster_manager/client.rb
|
@@ -167,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
194
|
- !ruby/object:Gem::Version
|
168
195
|
version: '0'
|
169
196
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.3
|
171
198
|
signing_key:
|
172
199
|
specification_version: 4
|
173
200
|
summary: API Client library for the Kubernetes Engine V1beta1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|