google-cloud-container-v1beta1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f77ce823af51132902afc47f307d5c65dbeaea0ac491b40767b765cb3495918
4
- data.tar.gz: 4ebcea34517efc03db7bf885bffe441a6b6809c0a58a5cd2dd557d40c5d40eb2
3
+ metadata.gz: 79b2e5504dc2fd6a329f87aca752b6ca14a72889360af99226ae78a2c0b21042
4
+ data.tar.gz: 7b804e3863e7d6a28d241381b3cbce091033751c0ce81463267e6cc4e6a40986
5
5
  SHA512:
6
- metadata.gz: 0ee73ea47c2b099a64b58733dbf785603a4b23fd1a9be5ad4ca88b7f58c230f27fd53d851c1a9b69533f6101eed4a816ddc682059b7132d10fc104d0d952f4d1
7
- data.tar.gz: 37165a983f5e6a135b50a3d1b918d184b548fa5570cfdd8092d293dd8c6f02eb3137e9cc7bb9fa8b6b7b6a962d3405154c926e0f03d28ab8ac3dd4a853db9471
6
+ metadata.gz: ee485eec86cbe606d4b5e11e24a245221383ca8d4847ed3ddd06734e6096b93f173f062b83dfcd3e5de5bb7704d18f6508d2335037d7510e5d098ec665aa43f6
7
+ data.tar.gz: 87a21fcdd310e3b7dd88a551b41830a2b88576f6699d6f930b888fb07419c449fd21472f4545c843df5b3c0cb41d8650ab8d140e3ddba5efbe73ccf0642e8b38
@@ -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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "container.googleapis.com", String
2996
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
3002
- config_attr :lib_name, nil, ::String, nil
3003
- config_attr :lib_version, nil, ::String, nil
3004
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
3005
- config_attr :interceptors, nil, ::Array, nil
3006
- config_attr :timeout, nil, ::Numeric, nil
3007
- config_attr :metadata, nil, ::Hash, nil
3008
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Container
23
23
  module V1beta1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
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.1.0
4
+ version: 0.2.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -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