google-cloud-security_center-v1p1beta1 0.1.1 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d111bf44abc18bef93c4bcb97b900264b2f4d5c4be9fa0b3cb620c5da195247f
|
4
|
+
data.tar.gz: 48e67dcbf6e6c640558e71a8173e0b7a73dbb395e6951da4ffecd2cf16cf4f82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8477bf600797c523ee94eaf4d66ff086cb56890a3651d61a31f1a91505a323408fbdb19034dee4946646bd4285c4ba7436629675a2f7a93810fd58cade60edd3
|
7
|
+
data.tar.gz: 99d36e0c53795324195837868e68bb0d318e7fc13a4bd0b520e0e9ef23f25e4af9a1533bfefe28e973b0879968bf91b103c22d25b1bd40c416e1fc80016d0174
|
@@ -242,7 +242,8 @@ module Google
|
|
242
242
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
243
243
|
credentials = Credentials.new credentials, scope: @config.scope
|
244
244
|
end
|
245
|
-
@quota_project_id =
|
245
|
+
@quota_project_id = @config.quota_project
|
246
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
246
247
|
|
247
248
|
@operations_client = Operations.new do |config|
|
248
249
|
config.credentials = credentials
|
@@ -2447,24 +2448,28 @@ module Google
|
|
2447
2448
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2448
2449
|
# trigger a retry.
|
2449
2450
|
# @return [::Hash]
|
2451
|
+
# @!attribute [rw] quota_project
|
2452
|
+
# A separate project against which to charge quota.
|
2453
|
+
# @return [::String]
|
2450
2454
|
#
|
2451
2455
|
class Configuration
|
2452
2456
|
extend ::Gapic::Config
|
2453
2457
|
|
2454
|
-
config_attr :endpoint,
|
2455
|
-
config_attr :credentials,
|
2458
|
+
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
2459
|
+
config_attr :credentials, nil do |value|
|
2456
2460
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2457
2461
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2458
2462
|
allowed.any? { |klass| klass === value }
|
2459
2463
|
end
|
2460
|
-
config_attr :scope,
|
2461
|
-
config_attr :lib_name,
|
2462
|
-
config_attr :lib_version,
|
2463
|
-
config_attr(:channel_args,
|
2464
|
-
config_attr :interceptors,
|
2465
|
-
config_attr :timeout,
|
2466
|
-
config_attr :metadata,
|
2467
|
-
config_attr :retry_policy,
|
2464
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2465
|
+
config_attr :lib_name, nil, ::String, nil
|
2466
|
+
config_attr :lib_version, nil, ::String, nil
|
2467
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2468
|
+
config_attr :interceptors, nil, ::Array, nil
|
2469
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2470
|
+
config_attr :metadata, nil, ::Hash, nil
|
2471
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2472
|
+
config_attr :quota_project, nil, ::String, nil
|
2468
2473
|
|
2469
2474
|
# @private
|
2470
2475
|
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, "securitycenter.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-security_center-v1p1beta1
|
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
|