google-cloud-container-v1 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4789f775e62395077b7d45951a19f40125506d73fb08cd4201784bb6a97da7ac
4
- data.tar.gz: f9573ba194fa53bb3bbd9d5f036323afcaac5e90fb5134b725d7ea3fc32590d4
3
+ metadata.gz: 8cec31afb070c42038e08cbe12ebe86ed0eb6fa7a711f6e08dafd07ddade9701
4
+ data.tar.gz: f5e779c05a9148096a7f44d2439cfdc03abdf7e4af8df5a5dd0b5c6be005a963
5
5
  SHA512:
6
- metadata.gz: 79c7a6d3f2bcf77ffb692c9446e86eb9ac26ed67898971493e5ebfa52a2d35ab7ee2d462b738606899485cf78fc894eb3f49908dd982f244a0d3374d6cf00fce
7
- data.tar.gz: dac5769ea0eca9040508987e5d69b961530b0b1e8d357785f5680a9949803984771b27f66cc020c41c788a324aa0df01c2a2cec342767cf7d2b03d52cb950269
6
+ metadata.gz: ec55d85894243d69d00f7966a0422736710781bfcf8627b96e382bac278a3ec796d24a03be6c6b5e47f6eb9215f32731418e07369545397e78d42e2a51e403af
7
+ data.tar.gz: bd87ed571b4e112e9a27e4f1273f5aed7205faf945a827d136b815cd59466589652a23d99c82eb6d66a0c7ba258f1c4fa8240282608d42fe559566876f0c4f2e
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-v1/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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
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: ["UNAVAILABLE", "DEADLINE_EXCEEDED"]
159
+ retry_codes: [14, 4]
160
160
  }
161
161
 
162
162
  default_config.rpcs.rollback_node_pool_upgrade.timeout = 45.0
@@ -242,7 +242,8 @@ module Google
242
242
  if credentials.is_a?(String) || credentials.is_a?(Hash)
243
243
  credentials = Credentials.new credentials, scope: @config.scope
244
244
  end
245
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
245
+ @quota_project_id = @config.quota_project
246
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
246
247
 
247
248
  @cluster_manager_stub = ::Gapic::ServiceStub.new(
248
249
  ::Google::Cloud::Container::V1::ClusterManager::Stub,
@@ -2905,24 +2906,28 @@ module Google
2905
2906
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2906
2907
  # trigger a retry.
2907
2908
  # @return [::Hash]
2909
+ # @!attribute [rw] quota_project
2910
+ # A separate project against which to charge quota.
2911
+ # @return [::String]
2908
2912
  #
2909
2913
  class Configuration
2910
2914
  extend ::Gapic::Config
2911
2915
 
2912
- config_attr :endpoint, "container.googleapis.com", String
2913
- config_attr :credentials, nil do |value|
2916
+ config_attr :endpoint, "container.googleapis.com", ::String
2917
+ config_attr :credentials, nil do |value|
2914
2918
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2915
2919
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2916
2920
  allowed.any? { |klass| klass === value }
2917
2921
  end
2918
- config_attr :scope, nil, ::String, ::Array, nil
2919
- config_attr :lib_name, nil, ::String, nil
2920
- config_attr :lib_version, nil, ::String, nil
2921
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2922
- config_attr :interceptors, nil, ::Array, nil
2923
- config_attr :timeout, nil, ::Numeric, nil
2924
- config_attr :metadata, nil, ::Hash, nil
2925
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2922
+ config_attr :scope, nil, ::String, ::Array, nil
2923
+ config_attr :lib_name, nil, ::String, nil
2924
+ config_attr :lib_version, nil, ::String, nil
2925
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2926
+ config_attr :interceptors, nil, ::Array, nil
2927
+ config_attr :timeout, nil, ::Numeric, nil
2928
+ config_attr :metadata, nil, ::Hash, nil
2929
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2930
+ config_attr :quota_project, nil, ::String, nil
2926
2931
 
2927
2932
  # @private
2928
2933
  def initialize parent_config = nil
@@ -2938,7 +2943,7 @@ module Google
2938
2943
  def rpcs
2939
2944
  @rpcs ||= begin
2940
2945
  parent_rpcs = nil
2941
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
2946
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
2942
2947
  Rpcs.new parent_rpcs
2943
2948
  end
2944
2949
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.4"
25
25
  end
26
26
  end
27
27
  end
@@ -601,7 +601,7 @@ module Google
601
601
  # @!attribute [rw] initial_node_count
602
602
  # @return [::Integer]
603
603
  # The number of nodes to create in this cluster. You must ensure that your
604
- # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
604
+ # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
605
605
  # is sufficient for this number of instances. You must also have available
606
606
  # firewall and routes quota.
607
607
  # For requests, this field should only be used in lieu of a
@@ -1787,7 +1787,7 @@ module Google
1787
1787
  # @!attribute [rw] initial_node_count
1788
1788
  # @return [::Integer]
1789
1789
  # The initial node count for the pool. You must ensure that your
1790
- # Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a>
1790
+ # Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
1791
1791
  # is sufficient for this number of instances. You must also have available
1792
1792
  # firewall and routes quota.
1793
1793
  # @!attribute [rw] self_link
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.1.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-05-05 00:00:00.000000000 Z
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.2'
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.2'
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.10'
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.10'
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-v1.rb
137
- - lib/google/cloud/common_resources_pb.rb
138
165
  - lib/google/cloud/container/v1.rb
139
166
  - lib/google/cloud/container/v1/cluster_manager.rb
140
167
  - lib/google/cloud/container/v1/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.0.6
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 V1 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