google-cloud-access_approval-v1 0.1.3 → 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: a3a12886222c8cb9cd6839244a247bcf5e9816b5ee1d55b4bb40f3e8c14f50fc
4
- data.tar.gz: acd4a9d603fa57199de1f83268bfd8fc74aaafb037885d7e60992076c32a82bb
3
+ metadata.gz: 3b2b51238685a419fe71990ae781c6c17e609f2fcd92fdec94dbf732f6135ee6
4
+ data.tar.gz: 1be6a33c8efdb84527144d4902a057d738df874e28e69e6ec8128a0375af72ce
5
5
  SHA512:
6
- metadata.gz: 93a96f62b278c75d0f033acaa5f8ad69d00813d811ad0e617b38018f73711bfdadb91c6b5afe23cc14d0d2433756a3eeeec5fe6ef73190e52777309e2cdccc76
7
- data.tar.gz: 968f32b144529ede9584f69472d443e370e6517adbb9bf5948bf76c3eece38076b5e47b67e4f018d934274a3fcca0a7ec2141c7f6480d2aee503c258dea2c9db
6
+ metadata.gz: 8a5cdd402c5c1796ae1c914f6e105e995d44726c75e7f202ce0c8c406375272a852c1041d9b7b2b98cb6e41a36a45872e6f7d60d697e8c49889f037157a29d30
7
+ data.tar.gz: 0ee92205ff40359612cca6a73dacd955ddfe84c50ca4236230d6e1d8d5b709ec7007cdde50ec604fdd400186885b71f09958f353865f7c05f7a5db109cc13841
@@ -160,7 +160,8 @@ module Google
160
160
  if credentials.is_a?(String) || credentials.is_a?(Hash)
161
161
  credentials = Credentials.new credentials, scope: @config.scope
162
162
  end
163
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
163
+ @quota_project_id = @config.quota_project
164
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
164
165
 
165
166
  @access_approval_stub = ::Gapic::ServiceStub.new(
166
167
  ::Google::Cloud::AccessApproval::V1::AccessApproval::Stub,
@@ -760,24 +761,28 @@ module Google
760
761
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
761
762
  # trigger a retry.
762
763
  # @return [::Hash]
764
+ # @!attribute [rw] quota_project
765
+ # A separate project against which to charge quota.
766
+ # @return [::String]
763
767
  #
764
768
  class Configuration
765
769
  extend ::Gapic::Config
766
770
 
767
- config_attr :endpoint, "accessapproval.googleapis.com", String
768
- config_attr :credentials, nil do |value|
771
+ config_attr :endpoint, "accessapproval.googleapis.com", ::String
772
+ config_attr :credentials, nil do |value|
769
773
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
770
774
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
771
775
  allowed.any? { |klass| klass === value }
772
776
  end
773
- config_attr :scope, nil, ::String, ::Array, nil
774
- config_attr :lib_name, nil, ::String, nil
775
- config_attr :lib_version, nil, ::String, nil
776
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
777
- config_attr :interceptors, nil, ::Array, nil
778
- config_attr :timeout, nil, ::Numeric, nil
779
- config_attr :metadata, nil, ::Hash, nil
780
- config_attr :retry_policy, nil, ::Hash, Proc, nil
777
+ config_attr :scope, nil, ::String, ::Array, nil
778
+ config_attr :lib_name, nil, ::String, nil
779
+ config_attr :lib_version, nil, ::String, nil
780
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
781
+ config_attr :interceptors, nil, ::Array, nil
782
+ config_attr :timeout, nil, ::Numeric, nil
783
+ config_attr :metadata, nil, ::Hash, nil
784
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
785
+ config_attr :quota_project, nil, ::String, nil
781
786
 
782
787
  # @private
783
788
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
23
  module V1
24
- VERSION = "0.1.3"
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-access_approval-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
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