google-cloud-assured_workloads-v1beta1 0.7.0 → 0.7.1

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: 543b1ec5976569d2f60a6ded2af2e1f07a7bd9413cc28f0ec8512b9f1638ebd9
4
- data.tar.gz: 2740abeb139903f288246b87be069b46d4e5bc64a3d58203e5794a15eccdd82e
3
+ metadata.gz: 72ef07a10796f9c323b45f864d27ca2b8f54e6485ae31426afe70fc13825216b
4
+ data.tar.gz: 3fc1da1968b381cebed12267ba404238c34c66d20ba0d15bf3b5d5473d1bf56c
5
5
  SHA512:
6
- metadata.gz: 570185445778e03350e7c9b62c8ec174dd23a89329c2db40b55980d7ff369cf8b33e06bed8d8addcd8542bfb30147a513c522cbc68b93ebfe41e0038d8c28554
7
- data.tar.gz: 871035585d9d48c9b2f96416aed4496232cc754e87c725ab8067c28e2a1eefe236a739d2bfc88d7b48db027babb56b5fcc165b757bbac265bbbd3dd0ee7ead9f
6
+ metadata.gz: 577dd42db891db5d39fdf002ae9584fe7ca1bd2437f48bc462a993567c105b6e0233b6cd7921fbc114c6c5c067d9f22fd4a7890f2a16efe63b20c6ac2706dd3a
7
+ data.tar.gz: 1282ea17cfa7b4743f0ee62aefa53088ba80ba84085c7f20a01eee5123d4ae2a57cc3a27e6392a0a055fa935d8bda7e16328f0ab81e9d72f1b8c83c2e2cb6e89
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all AssuredWorkloadsService clients:
47
- #
48
- # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all AssuredWorkloadsService clients
47
+ # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -113,19 +112,15 @@ module Google
113
112
  ##
114
113
  # Create a new AssuredWorkloadsService client object.
115
114
  #
116
- # ## Examples
117
- #
118
- # To create a new AssuredWorkloadsService client with the default
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
115
+ # @example
122
116
  #
123
- # To create a new AssuredWorkloadsService client with a custom
124
- # configuration:
117
+ # # Create a client using the default configuration
118
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new
125
119
  #
126
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
127
- # config.timeout = 10.0
128
- # end
120
+ # # Create a client using a custom configuration
121
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
122
+ # config.timeout = 10.0
123
+ # end
129
124
  #
130
125
  # @yield [config] Configure the AssuredWorkloadsService client.
131
126
  # @yieldparam config [Client::Configuration]
@@ -145,10 +140,9 @@ module Google
145
140
 
146
141
  # Create credentials
147
142
  credentials = @config.credentials
148
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
143
+ # Use self-signed JWT if the endpoint is unchanged from default,
149
144
  # but only if the default endpoint does not have a region prefix.
150
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
151
- @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
152
146
  !@config.endpoint.split(".").first.include?("-")
153
147
  credentials ||= Credentials.default scope: @config.scope,
154
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -244,7 +238,9 @@ module Google
244
238
  options.apply_defaults timeout: @config.rpcs.create_workload.timeout,
245
239
  metadata: metadata,
246
240
  retry_policy: @config.rpcs.create_workload.retry_policy
247
- options.apply_defaults metadata: @config.metadata,
241
+
242
+ options.apply_defaults timeout: @config.timeout,
243
+ metadata: @config.metadata,
248
244
  retry_policy: @config.retry_policy
249
245
 
250
246
  @assured_workloads_service_stub.call_rpc :create_workload, request, options: options do |response, operation|
@@ -319,7 +315,9 @@ module Google
319
315
  options.apply_defaults timeout: @config.rpcs.update_workload.timeout,
320
316
  metadata: metadata,
321
317
  retry_policy: @config.rpcs.update_workload.retry_policy
322
- options.apply_defaults metadata: @config.metadata,
318
+
319
+ options.apply_defaults timeout: @config.timeout,
320
+ metadata: @config.metadata,
323
321
  retry_policy: @config.retry_policy
324
322
 
325
323
  @assured_workloads_service_stub.call_rpc :update_workload, request, options: options do |response, operation|
@@ -392,7 +390,9 @@ module Google
392
390
  options.apply_defaults timeout: @config.rpcs.delete_workload.timeout,
393
391
  metadata: metadata,
394
392
  retry_policy: @config.rpcs.delete_workload.retry_policy
395
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
396
396
  retry_policy: @config.retry_policy
397
397
 
398
398
  @assured_workloads_service_stub.call_rpc :delete_workload, request, options: options do |response, operation|
@@ -462,7 +462,9 @@ module Google
462
462
  options.apply_defaults timeout: @config.rpcs.get_workload.timeout,
463
463
  metadata: metadata,
464
464
  retry_policy: @config.rpcs.get_workload.retry_policy
465
- options.apply_defaults metadata: @config.metadata,
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
466
468
  retry_policy: @config.retry_policy
467
469
 
468
470
  @assured_workloads_service_stub.call_rpc :get_workload, request, options: options do |response, operation|
@@ -538,7 +540,9 @@ module Google
538
540
  options.apply_defaults timeout: @config.rpcs.list_workloads.timeout,
539
541
  metadata: metadata,
540
542
  retry_policy: @config.rpcs.list_workloads.retry_policy
541
- options.apply_defaults metadata: @config.metadata,
543
+
544
+ options.apply_defaults timeout: @config.timeout,
545
+ metadata: @config.metadata,
542
546
  retry_policy: @config.retry_policy
543
547
 
544
548
  @assured_workloads_service_stub.call_rpc :list_workloads, request, options: options do |response, operation|
@@ -563,22 +567,21 @@ module Google
563
567
  # Configuration can be applied globally to all clients, or to a single client
564
568
  # on construction.
565
569
  #
566
- # # Examples
567
- #
568
- # To modify the global config, setting the timeout for create_workload
569
- # to 20 seconds, and all remaining timeouts to 10 seconds:
570
- #
571
- # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
572
- # config.timeout = 10.0
573
- # config.rpcs.create_workload.timeout = 20.0
574
- # end
575
- #
576
- # To apply the above configuration only to a new client:
577
- #
578
- # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
579
- # config.timeout = 10.0
580
- # config.rpcs.create_workload.timeout = 20.0
581
- # end
570
+ # @example
571
+ #
572
+ # # Modify the global config, setting the timeout for
573
+ # # create_workload to 20 seconds,
574
+ # # and all remaining timeouts to 10 seconds.
575
+ # ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.configure do |config|
576
+ # config.timeout = 10.0
577
+ # config.rpcs.create_workload.timeout = 20.0
578
+ # end
579
+ #
580
+ # # Apply the above configuration only to a new client.
581
+ # client = ::Google::Cloud::AssuredWorkloads::V1beta1::AssuredWorkloadsService::Client.new do |config|
582
+ # config.timeout = 10.0
583
+ # config.rpcs.create_workload.timeout = 20.0
584
+ # end
582
585
  #
583
586
  # @!attribute [rw] endpoint
584
587
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AssuredWorkloads
23
23
  module V1beta1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
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-assured_workloads-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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-29 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