google-cloud-asset-v1 0.3.0 → 0.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604e7684f3ce2898bef14f03f23a8efb15f5152d34a668af38f47f9944fd52af
|
4
|
+
data.tar.gz: 2926c61314b773195276e9847ebeb5f2926c0074390e37642123aae3178eb7f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd8559feb4461b65b711e170ac417265d98bb631a6aa4d6c680f5a2033d3b9c9970c5134a9192dddc47fd7584bee6823750586f23383487be79bf6942d00c141
|
7
|
+
data.tar.gz: af5c2944b1959e1eac3a273cd1c9d21e291976bda432d600d5581640c6d682069f87165de2af5155f336d2862695c287a4138edfc51f0994ecd4a0be9b8aadd3
|
@@ -156,7 +156,8 @@ module Google
|
|
156
156
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
157
157
|
credentials = Credentials.new credentials, scope: @config.scope
|
158
158
|
end
|
159
|
-
@quota_project_id =
|
159
|
+
@quota_project_id = @config.quota_project
|
160
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
160
161
|
|
161
162
|
@operations_client = Operations.new do |config|
|
162
163
|
config.credentials = credentials
|
@@ -1046,24 +1047,28 @@ module Google
|
|
1046
1047
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1047
1048
|
# trigger a retry.
|
1048
1049
|
# @return [::Hash]
|
1050
|
+
# @!attribute [rw] quota_project
|
1051
|
+
# A separate project against which to charge quota.
|
1052
|
+
# @return [::String]
|
1049
1053
|
#
|
1050
1054
|
class Configuration
|
1051
1055
|
extend ::Gapic::Config
|
1052
1056
|
|
1053
|
-
config_attr :endpoint,
|
1054
|
-
config_attr :credentials,
|
1057
|
+
config_attr :endpoint, "cloudasset.googleapis.com", ::String
|
1058
|
+
config_attr :credentials, nil do |value|
|
1055
1059
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1056
1060
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1057
1061
|
allowed.any? { |klass| klass === value }
|
1058
1062
|
end
|
1059
|
-
config_attr :scope,
|
1060
|
-
config_attr :lib_name,
|
1061
|
-
config_attr :lib_version,
|
1062
|
-
config_attr(:channel_args,
|
1063
|
-
config_attr :interceptors,
|
1064
|
-
config_attr :timeout,
|
1065
|
-
config_attr :metadata,
|
1066
|
-
config_attr :retry_policy,
|
1063
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1064
|
+
config_attr :lib_name, nil, ::String, nil
|
1065
|
+
config_attr :lib_version, nil, ::String, nil
|
1066
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1067
|
+
config_attr :interceptors, nil, ::Array, nil
|
1068
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1069
|
+
config_attr :metadata, nil, ::Hash, nil
|
1070
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1071
|
+
config_attr :quota_project, nil, ::String, nil
|
1067
1072
|
|
1068
1073
|
# @private
|
1069
1074
|
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-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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
|