google-cloud-asset-v1beta1 0.1.4 → 0.2.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e86b43959e9cc32edfe8edbc1c5f54d59d43adbe0d03a880a427f0b2d5e7f781
|
|
4
|
+
data.tar.gz: 9840b2432b11cb3b4f4e691dc3e0ec3e55872a7c18172b75c0e1e5dfa0f0fe6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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,
|
|
431
|
-
config_attr :credentials,
|
|
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,
|
|
437
|
-
config_attr :lib_name,
|
|
438
|
-
config_attr :lib_version,
|
|
439
|
-
config_attr(:channel_args,
|
|
440
|
-
config_attr :interceptors,
|
|
441
|
-
config_attr :timeout,
|
|
442
|
-
config_attr :metadata,
|
|
443
|
-
config_attr :retry_policy,
|
|
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,
|
|
472
|
-
config_attr :credentials,
|
|
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,
|
|
478
|
-
config_attr :lib_name,
|
|
479
|
-
config_attr :lib_version,
|
|
480
|
-
config_attr(:channel_args,
|
|
481
|
-
config_attr :interceptors,
|
|
482
|
-
config_attr :timeout,
|
|
483
|
-
config_attr :metadata,
|
|
484
|
-
config_attr :retry_policy,
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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
|