google-cloud-service_usage-v1 0.7.0 → 1.0.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: e40ae1e1b303e099791cc10f9df15529f2d201bd989d396bd8d5bbe8ce0a6891
4
- data.tar.gz: 5395963185239d9b8a444b287e99a0b4195e12df9e89115eb6dfbfbe98b79d50
3
+ metadata.gz: 85fa8ae26de9e7e2a583e4a451c620f7504048081b373802cda5293006ebd00f
4
+ data.tar.gz: 399973c053dbdcea6c007665d3964ab699a5c253249ef11f39456227c15ff3c4
5
5
  SHA512:
6
- metadata.gz: 95a56f8e348e4d5774c3b0c2ab88a8af4241fd4cf7c53eb322f46167aa763c8a76f37022e435640cb610a82dcc0fec1164f6bb1bea662372a9b69f0ccc1c4e9d
7
- data.tar.gz: b13a09755fb628ffb66d9fb3a03df980013b6b184c8d8593b0f25b6375b3d897f39ec8ebeb3098254a111ee1f0f14e5e5b61984d849eead67aee44338b8d2fdb
6
+ metadata.gz: b224b19bdbee5e4ebf310676b5ca5a44c077b8a96c9355f0ce677b9978f166ed5a50daf818228fe63a1da2327a6a09ebd41518b3aeec2271204e3cbc814f7241
7
+ data.tar.gz: 7bbcf69571d3a0ba0ef924864d2c2ec618422b15a018bde67db044d596f3956f9bfdaabcec675af3d5c7af45d45ed2ca3cfdd079d7d20d19af743307dd5ab304
@@ -34,6 +34,9 @@ module Google
34
34
  # See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "serviceusage.$UNIVERSE_DOMAIN$"
39
42
 
@@ -250,10 +253,11 @@ module Google
250
253
  # Customize the options with defaults
251
254
  metadata = @config.rpcs.enable_service.metadata.to_h
252
255
 
253
- # Set x-goog-api-client and x-goog-user-project headers
256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
254
257
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
256
259
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
260
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
257
261
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
262
 
259
263
  header_params = {}
@@ -363,10 +367,11 @@ module Google
363
367
  # Customize the options with defaults
364
368
  metadata = @config.rpcs.disable_service.metadata.to_h
365
369
 
366
- # Set x-goog-api-client and x-goog-user-project headers
370
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
367
371
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
368
372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
369
373
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
374
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
370
375
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
371
376
 
372
377
  header_params = {}
@@ -453,10 +458,11 @@ module Google
453
458
  # Customize the options with defaults
454
459
  metadata = @config.rpcs.get_service.metadata.to_h
455
460
 
456
- # Set x-goog-api-client and x-goog-user-project headers
461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
457
462
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
464
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
465
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
460
466
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
461
467
 
462
468
  header_params = {}
@@ -567,10 +573,11 @@ module Google
567
573
  # Customize the options with defaults
568
574
  metadata = @config.rpcs.list_services.metadata.to_h
569
575
 
570
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
571
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
572
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
573
579
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
574
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
575
582
 
576
583
  header_params = {}
@@ -679,10 +686,11 @@ module Google
679
686
  # Customize the options with defaults
680
687
  metadata = @config.rpcs.batch_enable_services.metadata.to_h
681
688
 
682
- # Set x-goog-api-client and x-goog-user-project headers
689
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
683
690
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
684
691
  lib_name: @config.lib_name, lib_version: @config.lib_version,
685
692
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
693
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
686
694
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
687
695
 
688
696
  header_params = {}
@@ -777,10 +785,11 @@ module Google
777
785
  # Customize the options with defaults
778
786
  metadata = @config.rpcs.batch_get_services.metadata.to_h
779
787
 
780
- # Set x-goog-api-client and x-goog-user-project headers
788
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
781
789
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
782
790
  lib_name: @config.lib_name, lib_version: @config.lib_version,
783
791
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
792
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
784
793
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
785
794
 
786
795
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ServiceUsage
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "serviceusage.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -279,10 +283,11 @@ module Google
279
283
  # Customize the options with defaults
280
284
  metadata = @config.rpcs.get_operation.metadata.to_h
281
285
 
282
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
289
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
292
 
288
293
  header_params = {}
@@ -368,10 +373,11 @@ module Google
368
373
  # Customize the options with defaults
369
374
  metadata = @config.rpcs.delete_operation.metadata.to_h
370
375
 
371
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
379
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
382
 
377
383
  header_params = {}
@@ -462,10 +468,11 @@ module Google
462
468
  # Customize the options with defaults
463
469
  metadata = @config.rpcs.cancel_operation.metadata.to_h
464
470
 
465
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
474
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
477
 
471
478
  header_params = {}
@@ -566,10 +573,11 @@ module Google
566
573
  # Customize the options with defaults
567
574
  metadata = @config.rpcs.wait_operation.metadata.to_h
568
575
 
569
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
579
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
582
 
575
583
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -36,6 +36,9 @@ module Google
36
36
  # See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "serviceusage.$UNIVERSE_DOMAIN$"
41
44
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.enable_service.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.enable_service.timeout,
@@ -348,12 +352,13 @@ module Google
348
352
  # Customize the options with defaults
349
353
  call_metadata = @config.rpcs.disable_service.metadata.to_h
350
354
 
351
- # Set x-goog-api-client and x-goog-user-project headers
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
352
356
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
357
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
358
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
355
359
  transports_version_send: [:rest]
356
360
 
361
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
357
362
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
358
363
 
359
364
  options.apply_defaults timeout: @config.rpcs.disable_service.timeout,
@@ -431,12 +436,13 @@ module Google
431
436
  # Customize the options with defaults
432
437
  call_metadata = @config.rpcs.get_service.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
438
443
  transports_version_send: [:rest]
439
444
 
445
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
440
446
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
441
447
 
442
448
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
@@ -538,12 +544,13 @@ module Google
538
544
  # Customize the options with defaults
539
545
  call_metadata = @config.rpcs.list_services.metadata.to_h
540
546
 
541
- # Set x-goog-api-client and x-goog-user-project headers
547
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
542
548
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
543
549
  lib_name: @config.lib_name, lib_version: @config.lib_version,
544
550
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
545
551
  transports_version_send: [:rest]
546
552
 
553
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
547
554
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
548
555
 
549
556
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
@@ -643,12 +650,13 @@ module Google
643
650
  # Customize the options with defaults
644
651
  call_metadata = @config.rpcs.batch_enable_services.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
650
657
  transports_version_send: [:rest]
651
658
 
659
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
652
660
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
653
661
 
654
662
  options.apply_defaults timeout: @config.rpcs.batch_enable_services.timeout,
@@ -734,12 +742,13 @@ module Google
734
742
  # Customize the options with defaults
735
743
  call_metadata = @config.rpcs.batch_get_services.metadata.to_h
736
744
 
737
- # Set x-goog-api-client and x-goog-user-project headers
745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
738
746
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
739
747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
740
748
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
741
749
  transports_version_send: [:rest]
742
750
 
751
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
743
752
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
744
753
 
745
754
  options.apply_defaults timeout: @config.rpcs.batch_get_services.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "serviceusage.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::ServiceUsage::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ServiceUsage
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -31,7 +31,7 @@ module Google
31
31
  # content: (== include google/foo/overview.md ==)
32
32
  # - name: Tutorial
33
33
  # content: (== include google/foo/tutorial.md ==)
34
- # subpages;
34
+ # subpages:
35
35
  # - name: Java
36
36
  # content: (== include google/foo/tutorial_java.md ==)
37
37
  # rules:
@@ -41,7 +41,7 @@ module Google
41
41
  # @return [::String]
42
42
  # Required. The monitored resource type. For example, the type
43
43
  # `"cloudsql_database"` represents databases in Google Cloud SQL.
44
- # For a list of types, see [Monitoring resource
44
+ # For a list of types, see [Monitored resource
45
45
  # types](https://cloud.google.com/monitoring/api/resources)
46
46
  # and [Logging resource
47
47
  # types](https://cloud.google.com/logging/docs/api/v2/resource-list).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-service_usage-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 1.0.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common