google-cloud-asset-v1 0.14.0 → 0.14.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: ffce1027ed7b1bca718ecdc5909b466a68077773da8e05d3681787a9e86871b3
4
- data.tar.gz: 41ddd69285d6e161c159066e9bc36f6a67c1d05fd551a1d27a6deb729608ced7
3
+ metadata.gz: d23289f05b8a078cd8c757cca3adc7016839554e57eaa015503d9fb588720c24
4
+ data.tar.gz: 34c663c90be473fcb2157705edd1690dd1d68790bbe3a5fe43400d68cc917522
5
5
  SHA512:
6
- metadata.gz: 16974de7eefcdd9bd1b8f569cb742b10c93a163ce458a10fecdc725b8f5785a5d20f71370b48015aa252c5326ad48e19436967840e6c1367b4f61e36bc6b1750
7
- data.tar.gz: 8a0fdf4604057cc58331ab2e1285d6050f0e1b093b51133fa38dc130312cedacd854f7e2db50dfaab89d0d84fd87e0708871318242b7bb17fb2e0fdc8ab14dd1
6
+ metadata.gz: 8f13a32a9dbc259de82f09a988f812334c9622f48ed44203a1939bd4d6052e2ce3a5b688680d143ba56d35c43bc1ffb2238f3ffc6e2c383e59110b6e7d42d332
7
+ data.tar.gz: afa78794e6c1e9f77e7d78915a74fcb6f7038c2a7c80d30c8171d3793fd176a1c1443ea080766f638e87dbb5335bc98bdc719eacf6af3f830189d503f8eb5b9c
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Asset::V1::AssetService::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 AssetService clients:
47
- #
48
- # ::Google::Cloud::Asset::V1::AssetService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all AssetService clients
47
+ # ::Google::Cloud::Asset::V1::AssetService::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]
@@ -142,19 +141,15 @@ module Google
142
141
  ##
143
142
  # Create a new AssetService client object.
144
143
  #
145
- # ## Examples
146
- #
147
- # To create a new AssetService client with the default
148
- # configuration:
149
- #
150
- # client = ::Google::Cloud::Asset::V1::AssetService::Client.new
144
+ # @example
151
145
  #
152
- # To create a new AssetService client with a custom
153
- # configuration:
146
+ # # Create a client using the default configuration
147
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new
154
148
  #
155
- # client = ::Google::Cloud::Asset::V1::AssetService::Client.new do |config|
156
- # config.timeout = 10.0
157
- # end
149
+ # # Create a client using a custom configuration
150
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new do |config|
151
+ # config.timeout = 10.0
152
+ # end
158
153
  #
159
154
  # @yield [config] Configure the AssetService client.
160
155
  # @yieldparam config [Client::Configuration]
@@ -174,10 +169,9 @@ module Google
174
169
 
175
170
  # Create credentials
176
171
  credentials = @config.credentials
177
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
172
+ # Use self-signed JWT if the endpoint is unchanged from default,
178
173
  # but only if the default endpoint does not have a region prefix.
179
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
180
- @config.endpoint == Client.configure.endpoint &&
174
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
181
175
  !@config.endpoint.split(".").first.include?("-")
182
176
  credentials ||= Credentials.default scope: @config.scope,
183
177
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -307,7 +301,9 @@ module Google
307
301
  options.apply_defaults timeout: @config.rpcs.export_assets.timeout,
308
302
  metadata: metadata,
309
303
  retry_policy: @config.rpcs.export_assets.retry_policy
310
- options.apply_defaults metadata: @config.metadata,
304
+
305
+ options.apply_defaults timeout: @config.timeout,
306
+ metadata: @config.metadata,
311
307
  retry_policy: @config.retry_policy
312
308
 
313
309
  @asset_service_stub.call_rpc :export_assets, request, options: options do |response, operation|
@@ -413,7 +409,9 @@ module Google
413
409
  options.apply_defaults timeout: @config.rpcs.list_assets.timeout,
414
410
  metadata: metadata,
415
411
  retry_policy: @config.rpcs.list_assets.retry_policy
416
- options.apply_defaults metadata: @config.metadata,
412
+
413
+ options.apply_defaults timeout: @config.timeout,
414
+ metadata: @config.metadata,
417
415
  retry_policy: @config.retry_policy
418
416
 
419
417
  @asset_service_stub.call_rpc :list_assets, request, options: options do |response, operation|
@@ -506,7 +504,9 @@ module Google
506
504
  options.apply_defaults timeout: @config.rpcs.batch_get_assets_history.timeout,
507
505
  metadata: metadata,
508
506
  retry_policy: @config.rpcs.batch_get_assets_history.retry_policy
509
- options.apply_defaults metadata: @config.metadata,
507
+
508
+ options.apply_defaults timeout: @config.timeout,
509
+ metadata: @config.metadata,
510
510
  retry_policy: @config.retry_policy
511
511
 
512
512
  @asset_service_stub.call_rpc :batch_get_assets_history, request, options: options do |response, operation|
@@ -586,7 +586,9 @@ module Google
586
586
  options.apply_defaults timeout: @config.rpcs.create_feed.timeout,
587
587
  metadata: metadata,
588
588
  retry_policy: @config.rpcs.create_feed.retry_policy
589
- options.apply_defaults metadata: @config.metadata,
589
+
590
+ options.apply_defaults timeout: @config.timeout,
591
+ metadata: @config.metadata,
590
592
  retry_policy: @config.retry_policy
591
593
 
592
594
  @asset_service_stub.call_rpc :create_feed, request, options: options do |response, operation|
@@ -655,7 +657,9 @@ module Google
655
657
  options.apply_defaults timeout: @config.rpcs.get_feed.timeout,
656
658
  metadata: metadata,
657
659
  retry_policy: @config.rpcs.get_feed.retry_policy
658
- options.apply_defaults metadata: @config.metadata,
660
+
661
+ options.apply_defaults timeout: @config.timeout,
662
+ metadata: @config.metadata,
659
663
  retry_policy: @config.retry_policy
660
664
 
661
665
  @asset_service_stub.call_rpc :get_feed, request, options: options do |response, operation|
@@ -723,7 +727,9 @@ module Google
723
727
  options.apply_defaults timeout: @config.rpcs.list_feeds.timeout,
724
728
  metadata: metadata,
725
729
  retry_policy: @config.rpcs.list_feeds.retry_policy
726
- options.apply_defaults metadata: @config.metadata,
730
+
731
+ options.apply_defaults timeout: @config.timeout,
732
+ metadata: @config.metadata,
727
733
  retry_policy: @config.retry_policy
728
734
 
729
735
  @asset_service_stub.call_rpc :list_feeds, request, options: options do |response, operation|
@@ -797,7 +803,9 @@ module Google
797
803
  options.apply_defaults timeout: @config.rpcs.update_feed.timeout,
798
804
  metadata: metadata,
799
805
  retry_policy: @config.rpcs.update_feed.retry_policy
800
- options.apply_defaults metadata: @config.metadata,
806
+
807
+ options.apply_defaults timeout: @config.timeout,
808
+ metadata: @config.metadata,
801
809
  retry_policy: @config.retry_policy
802
810
 
803
811
  @asset_service_stub.call_rpc :update_feed, request, options: options do |response, operation|
@@ -866,7 +874,9 @@ module Google
866
874
  options.apply_defaults timeout: @config.rpcs.delete_feed.timeout,
867
875
  metadata: metadata,
868
876
  retry_policy: @config.rpcs.delete_feed.retry_policy
869
- options.apply_defaults metadata: @config.metadata,
877
+
878
+ options.apply_defaults timeout: @config.timeout,
879
+ metadata: @config.metadata,
870
880
  retry_policy: @config.retry_policy
871
881
 
872
882
  @asset_service_stub.call_rpc :delete_feed, request, options: options do |response, operation|
@@ -1063,7 +1073,9 @@ module Google
1063
1073
  options.apply_defaults timeout: @config.rpcs.search_all_resources.timeout,
1064
1074
  metadata: metadata,
1065
1075
  retry_policy: @config.rpcs.search_all_resources.retry_policy
1066
- options.apply_defaults metadata: @config.metadata,
1076
+
1077
+ options.apply_defaults timeout: @config.timeout,
1078
+ metadata: @config.metadata,
1067
1079
  retry_policy: @config.retry_policy
1068
1080
 
1069
1081
  @asset_service_stub.call_rpc :search_all_resources, request, options: options do |response, operation|
@@ -1225,7 +1237,9 @@ module Google
1225
1237
  options.apply_defaults timeout: @config.rpcs.search_all_iam_policies.timeout,
1226
1238
  metadata: metadata,
1227
1239
  retry_policy: @config.rpcs.search_all_iam_policies.retry_policy
1228
- options.apply_defaults metadata: @config.metadata,
1240
+
1241
+ options.apply_defaults timeout: @config.timeout,
1242
+ metadata: @config.metadata,
1229
1243
  retry_policy: @config.retry_policy
1230
1244
 
1231
1245
  @asset_service_stub.call_rpc :search_all_iam_policies, request, options: options do |response, operation|
@@ -1304,7 +1318,9 @@ module Google
1304
1318
  options.apply_defaults timeout: @config.rpcs.analyze_iam_policy.timeout,
1305
1319
  metadata: metadata,
1306
1320
  retry_policy: @config.rpcs.analyze_iam_policy.retry_policy
1307
- options.apply_defaults metadata: @config.metadata,
1321
+
1322
+ options.apply_defaults timeout: @config.timeout,
1323
+ metadata: @config.metadata,
1308
1324
  retry_policy: @config.retry_policy
1309
1325
 
1310
1326
  @asset_service_stub.call_rpc :analyze_iam_policy, request, options: options do |response, operation|
@@ -1380,7 +1396,9 @@ module Google
1380
1396
  options.apply_defaults timeout: @config.rpcs.analyze_iam_policy_longrunning.timeout,
1381
1397
  metadata: metadata,
1382
1398
  retry_policy: @config.rpcs.analyze_iam_policy_longrunning.retry_policy
1383
- options.apply_defaults metadata: @config.metadata,
1399
+
1400
+ options.apply_defaults timeout: @config.timeout,
1401
+ metadata: @config.metadata,
1384
1402
  retry_policy: @config.retry_policy
1385
1403
 
1386
1404
  @asset_service_stub.call_rpc :analyze_iam_policy_longrunning, request, options: options do |response, operation|
@@ -1463,7 +1481,9 @@ module Google
1463
1481
  options.apply_defaults timeout: @config.rpcs.analyze_move.timeout,
1464
1482
  metadata: metadata,
1465
1483
  retry_policy: @config.rpcs.analyze_move.retry_policy
1466
- options.apply_defaults metadata: @config.metadata,
1484
+
1485
+ options.apply_defaults timeout: @config.timeout,
1486
+ metadata: @config.metadata,
1467
1487
  retry_policy: @config.retry_policy
1468
1488
 
1469
1489
  @asset_service_stub.call_rpc :analyze_move, request, options: options do |response, operation|
@@ -1487,22 +1507,21 @@ module Google
1487
1507
  # Configuration can be applied globally to all clients, or to a single client
1488
1508
  # on construction.
1489
1509
  #
1490
- # # Examples
1491
- #
1492
- # To modify the global config, setting the timeout for export_assets
1493
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1494
- #
1495
- # ::Google::Cloud::Asset::V1::AssetService::Client.configure do |config|
1496
- # config.timeout = 10.0
1497
- # config.rpcs.export_assets.timeout = 20.0
1498
- # end
1499
- #
1500
- # To apply the above configuration only to a new client:
1501
- #
1502
- # client = ::Google::Cloud::Asset::V1::AssetService::Client.new do |config|
1503
- # config.timeout = 10.0
1504
- # config.rpcs.export_assets.timeout = 20.0
1505
- # end
1510
+ # @example
1511
+ #
1512
+ # # Modify the global config, setting the timeout for
1513
+ # # export_assets to 20 seconds,
1514
+ # # and all remaining timeouts to 10 seconds.
1515
+ # ::Google::Cloud::Asset::V1::AssetService::Client.configure do |config|
1516
+ # config.timeout = 10.0
1517
+ # config.rpcs.export_assets.timeout = 20.0
1518
+ # end
1519
+ #
1520
+ # # Apply the above configuration only to a new client.
1521
+ # client = ::Google::Cloud::Asset::V1::AssetService::Client.new do |config|
1522
+ # config.timeout = 10.0
1523
+ # config.rpcs.export_assets.timeout = 20.0
1524
+ # end
1506
1525
  #
1507
1526
  # @!attribute [rw] endpoint
1508
1527
  # 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 Asset
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.14.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-asset-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.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