google-cloud-bigquery-reservation-v1 0.9.0 → 0.10.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: 777d2c539209404a9dcbc970150ae6e04a339c4a517d883789bc7cfa20ea352c
4
- data.tar.gz: 89e773e13b15b8be08df32b9c64b276f027e8d101f3a0cea831918eb07dd95f4
3
+ metadata.gz: 63dc408d725f4c9d347af84311e7f515ff48dfde8dd1a04b98618524163d7ec2
4
+ data.tar.gz: 6c8668ab239a9afe8e19b300e5f59141ca0542f4a28f3c049f355d6640ff5295
5
5
  SHA512:
6
- metadata.gz: d80eee9030ff843bcd7d99e2a9de3e590987efb6439c739b36086af9722f243296561391524ec8a87722b679341c6274e1f143ec2fd41bc078e7d4c71f866d18
7
- data.tar.gz: b9720766fc25de93046452e2ff9e8e57cb37033a18a70791b2af13df987e0445a5b51c66a138da80c559f4282da4423fd14130952086449995fbc3025d3a6e2d
6
+ metadata.gz: 213696cfed3c8179f8054f49325824408910f05ebf55354cb8adde2932fe0b60da06af0f2bb19a0f365fb28d58827e8f57a0232310c996b2836d1303c5c4399b
7
+ data.tar.gz: 521b87f9da1a9e34496dac1c2f8107af97a6069fb76c10bf76db2d03ad891a73b249e536770d3b81e2024a3afbc52b93f7203386f091d4bf6daba996312f9c03
@@ -221,7 +221,8 @@ module Google
221
221
  credentials: credentials,
222
222
  endpoint: @config.endpoint,
223
223
  channel_args: @config.channel_args,
224
- interceptors: @config.interceptors
224
+ interceptors: @config.interceptors,
225
+ channel_pool_config: @config.channel_pool
225
226
  )
226
227
  end
227
228
 
@@ -2417,6 +2418,14 @@ module Google
2417
2418
  end
2418
2419
  end
2419
2420
 
2421
+ ##
2422
+ # Configuration for the channel pool
2423
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2424
+ #
2425
+ def channel_pool
2426
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2427
+ end
2428
+
2420
2429
  ##
2421
2430
  # Configuration RPC class for the ReservationService API.
2422
2431
  #
@@ -252,6 +252,22 @@ module Google
252
252
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
253
253
  #
254
254
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
255
+ #
256
+ # @example Basic example
257
+ # require "google/cloud/bigquery/reservation/v1"
258
+ #
259
+ # # Create a client object. The client can be reused for multiple calls.
260
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
261
+ #
262
+ # # Create a request. To set request fields, pass in keyword arguments.
263
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateReservationRequest.new
264
+ #
265
+ # # Call the create_reservation method.
266
+ # result = client.create_reservation request
267
+ #
268
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
269
+ # p result
270
+ #
255
271
  def create_reservation request, options = nil
256
272
  raise ::ArgumentError, "request must be provided" if request.nil?
257
273
 
@@ -319,6 +335,26 @@ module Google
319
335
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Reservation>]
320
336
  #
321
337
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
338
+ #
339
+ # @example Basic example
340
+ # require "google/cloud/bigquery/reservation/v1"
341
+ #
342
+ # # Create a client object. The client can be reused for multiple calls.
343
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
344
+ #
345
+ # # Create a request. To set request fields, pass in keyword arguments.
346
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListReservationsRequest.new
347
+ #
348
+ # # Call the list_reservations method.
349
+ # result = client.list_reservations request
350
+ #
351
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
352
+ # # over elements, and API calls will be issued to fetch pages as needed.
353
+ # result.each do |item|
354
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Reservation.
355
+ # p item
356
+ # end
357
+ #
322
358
  def list_reservations request, options = nil
323
359
  raise ::ArgumentError, "request must be provided" if request.nil?
324
360
 
@@ -383,6 +419,22 @@ module Google
383
419
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
384
420
  #
385
421
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
422
+ #
423
+ # @example Basic example
424
+ # require "google/cloud/bigquery/reservation/v1"
425
+ #
426
+ # # Create a client object. The client can be reused for multiple calls.
427
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
428
+ #
429
+ # # Create a request. To set request fields, pass in keyword arguments.
430
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetReservationRequest.new
431
+ #
432
+ # # Call the get_reservation method.
433
+ # result = client.get_reservation request
434
+ #
435
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
436
+ # p result
437
+ #
386
438
  def get_reservation request, options = nil
387
439
  raise ::ArgumentError, "request must be provided" if request.nil?
388
440
 
@@ -448,6 +500,22 @@ module Google
448
500
  # @return [::Google::Protobuf::Empty]
449
501
  #
450
502
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
503
+ #
504
+ # @example Basic example
505
+ # require "google/cloud/bigquery/reservation/v1"
506
+ #
507
+ # # Create a client object. The client can be reused for multiple calls.
508
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
509
+ #
510
+ # # Create a request. To set request fields, pass in keyword arguments.
511
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteReservationRequest.new
512
+ #
513
+ # # Call the delete_reservation method.
514
+ # result = client.delete_reservation request
515
+ #
516
+ # # The returned object is of type Google::Protobuf::Empty.
517
+ # p result
518
+ #
451
519
  def delete_reservation request, options = nil
452
520
  raise ::ArgumentError, "request must be provided" if request.nil?
453
521
 
@@ -512,6 +580,22 @@ module Google
512
580
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Reservation]
513
581
  #
514
582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
583
+ #
584
+ # @example Basic example
585
+ # require "google/cloud/bigquery/reservation/v1"
586
+ #
587
+ # # Create a client object. The client can be reused for multiple calls.
588
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
589
+ #
590
+ # # Create a request. To set request fields, pass in keyword arguments.
591
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateReservationRequest.new
592
+ #
593
+ # # Call the update_reservation method.
594
+ # result = client.update_reservation request
595
+ #
596
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Reservation.
597
+ # p result
598
+ #
515
599
  def update_reservation request, options = nil
516
600
  raise ::ArgumentError, "request must be provided" if request.nil?
517
601
 
@@ -586,6 +670,22 @@ module Google
586
670
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
587
671
  #
588
672
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
673
+ #
674
+ # @example Basic example
675
+ # require "google/cloud/bigquery/reservation/v1"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateCapacityCommitmentRequest.new
682
+ #
683
+ # # Call the create_capacity_commitment method.
684
+ # result = client.create_capacity_commitment request
685
+ #
686
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
687
+ # p result
688
+ #
589
689
  def create_capacity_commitment request, options = nil
590
690
  raise ::ArgumentError, "request must be provided" if request.nil?
591
691
 
@@ -653,6 +753,26 @@ module Google
653
753
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment>]
654
754
  #
655
755
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
756
+ #
757
+ # @example Basic example
758
+ # require "google/cloud/bigquery/reservation/v1"
759
+ #
760
+ # # Create a client object. The client can be reused for multiple calls.
761
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
762
+ #
763
+ # # Create a request. To set request fields, pass in keyword arguments.
764
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsRequest.new
765
+ #
766
+ # # Call the list_capacity_commitments method.
767
+ # result = client.list_capacity_commitments request
768
+ #
769
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
770
+ # # over elements, and API calls will be issued to fetch pages as needed.
771
+ # result.each do |item|
772
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
773
+ # p item
774
+ # end
775
+ #
656
776
  def list_capacity_commitments request, options = nil
657
777
  raise ::ArgumentError, "request must be provided" if request.nil?
658
778
 
@@ -717,6 +837,22 @@ module Google
717
837
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
718
838
  #
719
839
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
840
+ #
841
+ # @example Basic example
842
+ # require "google/cloud/bigquery/reservation/v1"
843
+ #
844
+ # # Create a client object. The client can be reused for multiple calls.
845
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
846
+ #
847
+ # # Create a request. To set request fields, pass in keyword arguments.
848
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetCapacityCommitmentRequest.new
849
+ #
850
+ # # Call the get_capacity_commitment method.
851
+ # result = client.get_capacity_commitment request
852
+ #
853
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
854
+ # p result
855
+ #
720
856
  def get_capacity_commitment request, options = nil
721
857
  raise ::ArgumentError, "request must be provided" if request.nil?
722
858
 
@@ -786,6 +922,22 @@ module Google
786
922
  # @return [::Google::Protobuf::Empty]
787
923
  #
788
924
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
925
+ #
926
+ # @example Basic example
927
+ # require "google/cloud/bigquery/reservation/v1"
928
+ #
929
+ # # Create a client object. The client can be reused for multiple calls.
930
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
931
+ #
932
+ # # Create a request. To set request fields, pass in keyword arguments.
933
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteCapacityCommitmentRequest.new
934
+ #
935
+ # # Call the delete_capacity_commitment method.
936
+ # result = client.delete_capacity_commitment request
937
+ #
938
+ # # The returned object is of type Google::Protobuf::Empty.
939
+ # p result
940
+ #
789
941
  def delete_capacity_commitment request, options = nil
790
942
  raise ::ArgumentError, "request must be provided" if request.nil?
791
943
 
@@ -856,6 +1008,22 @@ module Google
856
1008
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
857
1009
  #
858
1010
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1011
+ #
1012
+ # @example Basic example
1013
+ # require "google/cloud/bigquery/reservation/v1"
1014
+ #
1015
+ # # Create a client object. The client can be reused for multiple calls.
1016
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1017
+ #
1018
+ # # Create a request. To set request fields, pass in keyword arguments.
1019
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateCapacityCommitmentRequest.new
1020
+ #
1021
+ # # Call the update_capacity_commitment method.
1022
+ # result = client.update_capacity_commitment request
1023
+ #
1024
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
1025
+ # p result
1026
+ #
859
1027
  def update_capacity_commitment request, options = nil
860
1028
  raise ::ArgumentError, "request must be provided" if request.nil?
861
1029
 
@@ -928,6 +1096,22 @@ module Google
928
1096
  # @return [::Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse]
929
1097
  #
930
1098
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1099
+ #
1100
+ # @example Basic example
1101
+ # require "google/cloud/bigquery/reservation/v1"
1102
+ #
1103
+ # # Create a client object. The client can be reused for multiple calls.
1104
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1105
+ #
1106
+ # # Create a request. To set request fields, pass in keyword arguments.
1107
+ # request = Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentRequest.new
1108
+ #
1109
+ # # Call the split_capacity_commitment method.
1110
+ # result = client.split_capacity_commitment request
1111
+ #
1112
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse.
1113
+ # p result
1114
+ #
931
1115
  def split_capacity_commitment request, options = nil
932
1116
  raise ::ArgumentError, "request must be provided" if request.nil?
933
1117
 
@@ -1003,6 +1187,22 @@ module Google
1003
1187
  # @return [::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment]
1004
1188
  #
1005
1189
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1190
+ #
1191
+ # @example Basic example
1192
+ # require "google/cloud/bigquery/reservation/v1"
1193
+ #
1194
+ # # Create a client object. The client can be reused for multiple calls.
1195
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1196
+ #
1197
+ # # Create a request. To set request fields, pass in keyword arguments.
1198
+ # request = Google::Cloud::Bigquery::Reservation::V1::MergeCapacityCommitmentsRequest.new
1199
+ #
1200
+ # # Call the merge_capacity_commitments method.
1201
+ # result = client.merge_capacity_commitments request
1202
+ #
1203
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment.
1204
+ # p result
1205
+ #
1006
1206
  def merge_capacity_commitments request, options = nil
1007
1207
  raise ::ArgumentError, "request must be provided" if request.nil?
1008
1208
 
@@ -1107,6 +1307,22 @@ module Google
1107
1307
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1108
1308
  #
1109
1309
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1310
+ #
1311
+ # @example Basic example
1312
+ # require "google/cloud/bigquery/reservation/v1"
1313
+ #
1314
+ # # Create a client object. The client can be reused for multiple calls.
1315
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1316
+ #
1317
+ # # Create a request. To set request fields, pass in keyword arguments.
1318
+ # request = Google::Cloud::Bigquery::Reservation::V1::CreateAssignmentRequest.new
1319
+ #
1320
+ # # Call the create_assignment method.
1321
+ # result = client.create_assignment request
1322
+ #
1323
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1324
+ # p result
1325
+ #
1110
1326
  def create_assignment request, options = nil
1111
1327
  raise ::ArgumentError, "request must be provided" if request.nil?
1112
1328
 
@@ -1199,6 +1415,26 @@ module Google
1199
1415
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1200
1416
  #
1201
1417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1418
+ #
1419
+ # @example Basic example
1420
+ # require "google/cloud/bigquery/reservation/v1"
1421
+ #
1422
+ # # Create a client object. The client can be reused for multiple calls.
1423
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1424
+ #
1425
+ # # Create a request. To set request fields, pass in keyword arguments.
1426
+ # request = Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsRequest.new
1427
+ #
1428
+ # # Call the list_assignments method.
1429
+ # result = client.list_assignments request
1430
+ #
1431
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1432
+ # # over elements, and API calls will be issued to fetch pages as needed.
1433
+ # result.each do |item|
1434
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1435
+ # p item
1436
+ # end
1437
+ #
1202
1438
  def list_assignments request, options = nil
1203
1439
  raise ::ArgumentError, "request must be provided" if request.nil?
1204
1440
 
@@ -1277,6 +1513,22 @@ module Google
1277
1513
  # @return [::Google::Protobuf::Empty]
1278
1514
  #
1279
1515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1516
+ #
1517
+ # @example Basic example
1518
+ # require "google/cloud/bigquery/reservation/v1"
1519
+ #
1520
+ # # Create a client object. The client can be reused for multiple calls.
1521
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1522
+ #
1523
+ # # Create a request. To set request fields, pass in keyword arguments.
1524
+ # request = Google::Cloud::Bigquery::Reservation::V1::DeleteAssignmentRequest.new
1525
+ #
1526
+ # # Call the delete_assignment method.
1527
+ # result = client.delete_assignment request
1528
+ #
1529
+ # # The returned object is of type Google::Protobuf::Empty.
1530
+ # p result
1531
+ #
1280
1532
  def delete_assignment request, options = nil
1281
1533
  raise ::ArgumentError, "request must be provided" if request.nil?
1282
1534
 
@@ -1375,6 +1627,26 @@ module Google
1375
1627
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1376
1628
  #
1377
1629
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1630
+ #
1631
+ # @example Basic example
1632
+ # require "google/cloud/bigquery/reservation/v1"
1633
+ #
1634
+ # # Create a client object. The client can be reused for multiple calls.
1635
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1636
+ #
1637
+ # # Create a request. To set request fields, pass in keyword arguments.
1638
+ # request = Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsRequest.new
1639
+ #
1640
+ # # Call the search_assignments method.
1641
+ # result = client.search_assignments request
1642
+ #
1643
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1644
+ # # over elements, and API calls will be issued to fetch pages as needed.
1645
+ # result.each do |item|
1646
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1647
+ # p item
1648
+ # end
1649
+ #
1378
1650
  def search_assignments request, options = nil
1379
1651
  raise ::ArgumentError, "request must be provided" if request.nil?
1380
1652
 
@@ -1471,6 +1743,26 @@ module Google
1471
1743
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::Reservation::V1::Assignment>]
1472
1744
  #
1473
1745
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1746
+ #
1747
+ # @example Basic example
1748
+ # require "google/cloud/bigquery/reservation/v1"
1749
+ #
1750
+ # # Create a client object. The client can be reused for multiple calls.
1751
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1752
+ #
1753
+ # # Create a request. To set request fields, pass in keyword arguments.
1754
+ # request = Google::Cloud::Bigquery::Reservation::V1::SearchAllAssignmentsRequest.new
1755
+ #
1756
+ # # Call the search_all_assignments method.
1757
+ # result = client.search_all_assignments request
1758
+ #
1759
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1760
+ # # over elements, and API calls will be issued to fetch pages as needed.
1761
+ # result.each do |item|
1762
+ # # Each element is of type ::Google::Cloud::Bigquery::Reservation::V1::Assignment.
1763
+ # p item
1764
+ # end
1765
+ #
1474
1766
  def search_all_assignments request, options = nil
1475
1767
  raise ::ArgumentError, "request must be provided" if request.nil?
1476
1768
 
@@ -1549,6 +1841,22 @@ module Google
1549
1841
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1550
1842
  #
1551
1843
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1844
+ #
1845
+ # @example Basic example
1846
+ # require "google/cloud/bigquery/reservation/v1"
1847
+ #
1848
+ # # Create a client object. The client can be reused for multiple calls.
1849
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1850
+ #
1851
+ # # Create a request. To set request fields, pass in keyword arguments.
1852
+ # request = Google::Cloud::Bigquery::Reservation::V1::MoveAssignmentRequest.new
1853
+ #
1854
+ # # Call the move_assignment method.
1855
+ # result = client.move_assignment request
1856
+ #
1857
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1858
+ # p result
1859
+ #
1552
1860
  def move_assignment request, options = nil
1553
1861
  raise ::ArgumentError, "request must be provided" if request.nil?
1554
1862
 
@@ -1615,6 +1923,22 @@ module Google
1615
1923
  # @return [::Google::Cloud::Bigquery::Reservation::V1::Assignment]
1616
1924
  #
1617
1925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1926
+ #
1927
+ # @example Basic example
1928
+ # require "google/cloud/bigquery/reservation/v1"
1929
+ #
1930
+ # # Create a client object. The client can be reused for multiple calls.
1931
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
1932
+ #
1933
+ # # Create a request. To set request fields, pass in keyword arguments.
1934
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateAssignmentRequest.new
1935
+ #
1936
+ # # Call the update_assignment method.
1937
+ # result = client.update_assignment request
1938
+ #
1939
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::Assignment.
1940
+ # p result
1941
+ #
1618
1942
  def update_assignment request, options = nil
1619
1943
  raise ::ArgumentError, "request must be provided" if request.nil?
1620
1944
 
@@ -1678,6 +2002,22 @@ module Google
1678
2002
  # @return [::Google::Cloud::Bigquery::Reservation::V1::BiReservation]
1679
2003
  #
1680
2004
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2005
+ #
2006
+ # @example Basic example
2007
+ # require "google/cloud/bigquery/reservation/v1"
2008
+ #
2009
+ # # Create a client object. The client can be reused for multiple calls.
2010
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
2011
+ #
2012
+ # # Create a request. To set request fields, pass in keyword arguments.
2013
+ # request = Google::Cloud::Bigquery::Reservation::V1::GetBiReservationRequest.new
2014
+ #
2015
+ # # Call the get_bi_reservation method.
2016
+ # result = client.get_bi_reservation request
2017
+ #
2018
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::BiReservation.
2019
+ # p result
2020
+ #
1681
2021
  def get_bi_reservation request, options = nil
1682
2022
  raise ::ArgumentError, "request must be provided" if request.nil?
1683
2023
 
@@ -1749,6 +2089,22 @@ module Google
1749
2089
  # @return [::Google::Cloud::Bigquery::Reservation::V1::BiReservation]
1750
2090
  #
1751
2091
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2092
+ #
2093
+ # @example Basic example
2094
+ # require "google/cloud/bigquery/reservation/v1"
2095
+ #
2096
+ # # Create a client object. The client can be reused for multiple calls.
2097
+ # client = Google::Cloud::Bigquery::Reservation::V1::ReservationService::Rest::Client.new
2098
+ #
2099
+ # # Create a request. To set request fields, pass in keyword arguments.
2100
+ # request = Google::Cloud::Bigquery::Reservation::V1::UpdateBiReservationRequest.new
2101
+ #
2102
+ # # Call the update_bi_reservation method.
2103
+ # result = client.update_bi_reservation request
2104
+ #
2105
+ # # The returned object is of type Google::Cloud::Bigquery::Reservation::V1::BiReservation.
2106
+ # p result
2107
+ #
1752
2108
  def update_bi_reservation request, options = nil
1753
2109
  raise ::ArgumentError, "request must be provided" if request.nil?
1754
2110
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Reservation
24
24
  module V1
25
- VERSION = "0.9.0"
25
+ VERSION = "0.10.0"
26
26
  end
27
27
  end
28
28
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-reservation-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.4.2
217
+ rubygems_version: 3.4.19
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: A service to modify your BigQuery flat-rate reservations.