google-cloud-asset-v1beta1 0.1.4 → 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: aeb79cc043cbaf7f46caa3776dc80b006eb46b3c7a83f81b8547f40e13eeabd3
4
- data.tar.gz: c1445bdaf0e7ec17ed2ded4591678b48615a8ca90fadd95cb10ef32bb07f8dab
3
+ metadata.gz: e86b43959e9cc32edfe8edbc1c5f54d59d43adbe0d03a880a427f0b2d5e7f781
4
+ data.tar.gz: 9840b2432b11cb3b4f4e691dc3e0ec3e55872a7c18172b75c0e1e5dfa0f0fe6b
5
5
  SHA512:
6
- metadata.gz: 473e35092c77c6c98851d05c3ec64d22207b2c3fcddbb3aa046e868dc41cd644a136081e2a1f163b062f91e1bc8e565788918b717cad60ea0f4f785a4f621ed5
7
- data.tar.gz: 88791bd9d54b30752ce4f95326f0ad874fcb4f622288c9c6d41f7b0f05b1806f657d3c06a3371edaf0f8de57b19ca323b26bc2fd533125e43a031292c86ebc9c
6
+ metadata.gz: 3d3a8d3d58f64d2dd3f4d062340c3901db833b9b30c43d7baf036416b145e64c0cac5e82cd77144873c1d8161a46a40f1c8bb7c7f449dfcd91cd737a3e20647d
7
+ data.tar.gz: be6aab3275e5c4757c8b57fc2048d90b4b0dd4088f42af4f728afd5a41fbd4a94bbc780108bcd303dd06f8dc93ab233c06dd50512350f269fb6f4570149c5baf
@@ -138,7 +138,8 @@ module Google
138
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
139
  credentials = Credentials.new credentials, scope: @config.scope
140
140
  end
141
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
143
 
143
144
  @operations_client = Operations.new do |config|
144
145
  config.credentials = credentials
@@ -423,24 +424,28 @@ module Google
423
424
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
424
425
  # trigger a retry.
425
426
  # @return [::Hash]
427
+ # @!attribute [rw] quota_project
428
+ # A separate project against which to charge quota.
429
+ # @return [::String]
426
430
  #
427
431
  class Configuration
428
432
  extend ::Gapic::Config
429
433
 
430
- config_attr :endpoint, "cloudasset.googleapis.com", String
431
- config_attr :credentials, nil do |value|
434
+ config_attr :endpoint, "cloudasset.googleapis.com", ::String
435
+ config_attr :credentials, nil do |value|
432
436
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
433
437
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
434
438
  allowed.any? { |klass| klass === value }
435
439
  end
436
- config_attr :scope, nil, ::String, ::Array, nil
437
- config_attr :lib_name, nil, ::String, nil
438
- config_attr :lib_version, nil, ::String, nil
439
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
440
- config_attr :interceptors, nil, ::Array, nil
441
- config_attr :timeout, nil, ::Numeric, nil
442
- config_attr :metadata, nil, ::Hash, nil
443
- config_attr :retry_policy, nil, ::Hash, Proc, nil
440
+ config_attr :scope, nil, ::String, ::Array, nil
441
+ config_attr :lib_name, nil, ::String, nil
442
+ config_attr :lib_version, nil, ::String, nil
443
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
444
+ config_attr :interceptors, nil, ::Array, nil
445
+ config_attr :timeout, nil, ::Numeric, nil
446
+ config_attr :metadata, nil, ::Hash, nil
447
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
448
+ config_attr :quota_project, nil, ::String, nil
444
449
 
445
450
  # @private
446
451
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "cloudasset.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "cloudasset.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1beta1
24
- VERSION = "0.1.4"
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-asset-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
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
@@ -78,14 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.10'
81
+ version: '5.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.10'
88
+ version: '5.14'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-focus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-rg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.2'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.2'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rake
91
119
  requirement: !ruby/object:Gem::Requirement