google-cloud-container_analysis-v1 0.4.2 → 0.4.3

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: 7a7efd0befc2a1c25d55ee1c2bfd183a615507cb6beb4439d80e4eaf527ff2c2
4
- data.tar.gz: 1ac5b1d691832891a97995477bee6f39f1e7b74c2225ce6543e4ae87053ce056
3
+ metadata.gz: e1c3cd0c1c8ef586f8e9153d4279c999fb893672626a33857f4e243452b0919f
4
+ data.tar.gz: 3cf803cbf427ed73d6eb04ee56117a33b5b1935e25684f32eede63e72877e43c
5
5
  SHA512:
6
- metadata.gz: 6e50b9e78cd38997fc200885e2e061e01e648631aa16042054ee8ad0097de2a9d3f5a7cbb84238988cb0c11170657fedc072ace82aa59130fc2ffa1e6252ee2c
7
- data.tar.gz: 425d8e19ca3569902f0682cf90448a43014e1600cfce427b2997ec420dd480f60fc06a6696022921aa888b85ffad6bbdb7b367c913d6c164e13d2f430b5fb8f8
6
+ metadata.gz: dcde4b7c312035835ab7bde41af713b7b95bed72bb0ef6df0ec1c718a9f54f18b8d76712712ab39454283194b6d1d0a71999f29c5faacc7b5ab94df4674e7ccc
7
+ data.tar.gz: 8089c1985f74e3e15899613c0d59447887ee63cbf5f12a5cdee443d4989d04636e10bbe1c7cd4343d66430bc98a856a2985c0c961a2a5fd3c21ee9af59c997ca
@@ -53,13 +53,12 @@ module Google
53
53
  # See {::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client::Configuration}
54
54
  # for a description of the configuration fields.
55
55
  #
56
- # ## Example
56
+ # @example
57
57
  #
58
- # To modify the configuration for all ContainerAnalysis clients:
59
- #
60
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
61
- # config.timeout = 10.0
62
- # end
58
+ # # Modify the configuration for all ContainerAnalysis clients
59
+ # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
60
+ # config.timeout = 10.0
61
+ # end
63
62
  #
64
63
  # @yield [config] Configure the Client client.
65
64
  # @yieldparam config [Client::Configuration]
@@ -112,19 +111,15 @@ module Google
112
111
  ##
113
112
  # Create a new ContainerAnalysis client object.
114
113
  #
115
- # ## Examples
116
- #
117
- # To create a new ContainerAnalysis client with the default
118
- # configuration:
119
- #
120
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
114
+ # @example
121
115
  #
122
- # To create a new ContainerAnalysis client with a custom
123
- # configuration:
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new
124
118
  #
125
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
126
- # config.timeout = 10.0
127
- # end
119
+ # # Create a client using a custom configuration
120
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
121
+ # config.timeout = 10.0
122
+ # end
128
123
  #
129
124
  # @yield [config] Configure the ContainerAnalysis client.
130
125
  # @yieldparam config [Client::Configuration]
@@ -144,10 +139,9 @@ module Google
144
139
 
145
140
  # Create credentials
146
141
  credentials = @config.credentials
147
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
148
143
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
150
- @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
145
  !@config.endpoint.split(".").first.include?("-")
152
146
  credentials ||= Credentials.default scope: @config.scope,
153
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -236,7 +230,9 @@ module Google
236
230
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
237
231
  metadata: metadata,
238
232
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
239
- options.apply_defaults metadata: @config.metadata,
233
+
234
+ options.apply_defaults timeout: @config.timeout,
235
+ metadata: @config.metadata,
240
236
  retry_policy: @config.retry_policy
241
237
 
242
238
  @container_analysis_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -313,7 +309,9 @@ module Google
313
309
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
314
310
  metadata: metadata,
315
311
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
316
- options.apply_defaults metadata: @config.metadata,
312
+
313
+ options.apply_defaults timeout: @config.timeout,
314
+ metadata: @config.metadata,
317
315
  retry_policy: @config.retry_policy
318
316
 
319
317
  @container_analysis_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -391,7 +389,9 @@ module Google
391
389
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
392
390
  metadata: metadata,
393
391
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
394
- options.apply_defaults metadata: @config.metadata,
392
+
393
+ options.apply_defaults timeout: @config.timeout,
394
+ metadata: @config.metadata,
395
395
  retry_policy: @config.retry_policy
396
396
 
397
397
  @container_analysis_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -460,7 +460,9 @@ module Google
460
460
  options.apply_defaults timeout: @config.rpcs.get_vulnerability_occurrences_summary.timeout,
461
461
  metadata: metadata,
462
462
  retry_policy: @config.rpcs.get_vulnerability_occurrences_summary.retry_policy
463
- options.apply_defaults metadata: @config.metadata,
463
+
464
+ options.apply_defaults timeout: @config.timeout,
465
+ metadata: @config.metadata,
464
466
  retry_policy: @config.retry_policy
465
467
 
466
468
  @container_analysis_stub.call_rpc :get_vulnerability_occurrences_summary, request, options: options do |response, operation|
@@ -484,22 +486,21 @@ module Google
484
486
  # Configuration can be applied globally to all clients, or to a single client
485
487
  # on construction.
486
488
  #
487
- # # Examples
488
- #
489
- # To modify the global config, setting the timeout for set_iam_policy
490
- # to 20 seconds, and all remaining timeouts to 10 seconds:
491
- #
492
- # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
493
- # config.timeout = 10.0
494
- # config.rpcs.set_iam_policy.timeout = 20.0
495
- # end
496
- #
497
- # To apply the above configuration only to a new client:
498
- #
499
- # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
500
- # config.timeout = 10.0
501
- # config.rpcs.set_iam_policy.timeout = 20.0
502
- # end
489
+ # @example
490
+ #
491
+ # # Modify the global config, setting the timeout for
492
+ # # set_iam_policy to 20 seconds,
493
+ # # and all remaining timeouts to 10 seconds.
494
+ # ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.configure do |config|
495
+ # config.timeout = 10.0
496
+ # config.rpcs.set_iam_policy.timeout = 20.0
497
+ # end
498
+ #
499
+ # # Apply the above configuration only to a new client.
500
+ # client = ::Google::Cloud::ContainerAnalysis::V1::ContainerAnalysis::Client.new do |config|
501
+ # config.timeout = 10.0
502
+ # config.rpcs.set_iam_policy.timeout = 20.0
503
+ # end
503
504
  #
504
505
  # @!attribute [rw] endpoint
505
506
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContainerAnalysis
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
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-container_analysis-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a