google-cloud-security_center-v1 0.1.1 → 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: c1fe93efbdee96d5745368ae4bc8e70e0b9a699c2edeee136550da2d080fe379
|
|
4
|
+
data.tar.gz: 0eebecfe482298c48d20349f2683e909886015f7fad555789cf61b143a795c6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: deba7e85a986371d6debccf539f02363618eaf1357c08fe332b1b1422499a1ba821f4feab0313ef0a04aa6742a42e64cbdf469d7681c0fd84e8dcc748df01584
|
|
7
|
+
data.tar.gz: f88bbfe5973214d2370a48b52c348b3948b46f0154ef2a6b74ec7b54faebf3af9d5e4ddac8cf4a77b8bb19b46679c76f4c4494e891d3ebb35eb3d3634cb77329
|
|
@@ -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
|
|
@@ -2440,24 +2441,28 @@ module Google
|
|
|
2440
2441
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
2441
2442
|
# trigger a retry.
|
|
2442
2443
|
# @return [::Hash]
|
|
2444
|
+
# @!attribute [rw] quota_project
|
|
2445
|
+
# A separate project against which to charge quota.
|
|
2446
|
+
# @return [::String]
|
|
2443
2447
|
#
|
|
2444
2448
|
class Configuration
|
|
2445
2449
|
extend ::Gapic::Config
|
|
2446
2450
|
|
|
2447
|
-
config_attr :endpoint,
|
|
2448
|
-
config_attr :credentials,
|
|
2451
|
+
config_attr :endpoint, "securitycenter.googleapis.com", ::String
|
|
2452
|
+
config_attr :credentials, nil do |value|
|
|
2449
2453
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
2450
2454
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
2451
2455
|
allowed.any? { |klass| klass === value }
|
|
2452
2456
|
end
|
|
2453
|
-
config_attr :scope,
|
|
2454
|
-
config_attr :lib_name,
|
|
2455
|
-
config_attr :lib_version,
|
|
2456
|
-
config_attr(:channel_args,
|
|
2457
|
-
config_attr :interceptors,
|
|
2458
|
-
config_attr :timeout,
|
|
2459
|
-
config_attr :metadata,
|
|
2460
|
-
config_attr :retry_policy,
|
|
2457
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
2458
|
+
config_attr :lib_name, nil, ::String, nil
|
|
2459
|
+
config_attr :lib_version, nil, ::String, nil
|
|
2460
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
2461
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
2462
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
2463
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
2464
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
2465
|
+
config_attr :quota_project, nil, ::String, nil
|
|
2461
2466
|
|
|
2462
2467
|
# @private
|
|
2463
2468
|
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-v1
|
|
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
|