google-apis-bigqueryreservation_v1 0.33.0 → 0.34.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: 8106e5235dace204a9c37b53f5c3dbbbff6002be47b1eee157a29a0a59e70513
4
- data.tar.gz: d38a1a7172d39c6aa9e22178d7d3d8655c69bf41b713816b402c2784e82c1e7b
3
+ metadata.gz: db4b147162b32c368f84a25aee38f44beb409f98a50c58a71d501b6a81a95a36
4
+ data.tar.gz: fdda9277952b3500a323d91eebcd5a5a03c41fa836c1f79e83cde1fe113c0655
5
5
  SHA512:
6
- metadata.gz: 02ddf47e701d3d2aee70c62d35979e879a2f25b944f782e43de765a7294634639e1dae887ad1ce27b2d6889fa5d65efac159f98917b975890fe219b708f7c48f
7
- data.tar.gz: 404fb6bfe6794a7b6536ffa7e3908df56d50e97f73276a045c129297e4fc3201383d2ae6ce3bdd22716710a0bbdb96775b7678825a65afcc16e76d901bec2397
6
+ metadata.gz: baaf6ee03ac5af811ce47f1a2b2ca80d5b88d2f58de9448b0a5397cb50438607410be3d698e6f63bbfbc4841b9e7596d65e2fb75f5dbe410b650724ffc81efc4
7
+ data.tar.gz: 4b61cf1f3e27423cb42be9e2f80c3457a7b458a891ca0eb33dd44bf8d672c4b6481301a3f3517597d7762eac616d3c0e8245f659544da5cb78b9a4219e9eee2c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.34.0 (2024-03-24)
4
+
5
+ * Regenerated from discovery document revision 20240318
6
+
3
7
  ### v0.33.0 (2024-03-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20240306
@@ -248,6 +248,19 @@ module Google
248
248
  end
249
249
  end
250
250
 
251
+ # The request for ReservationService.FailoverReservation.
252
+ class FailoverReservationRequest
253
+ include Google::Apis::Core::Hashable
254
+
255
+ def initialize(**args)
256
+ update!(**args)
257
+ end
258
+
259
+ # Update properties of this object
260
+ def update!(**args)
261
+ end
262
+ end
263
+
251
264
  # The response for ReservationService.ListAssignments.
252
265
  class ListAssignmentsResponse
253
266
  include Google::Apis::Core::Hashable
@@ -436,6 +449,33 @@ module Google
436
449
  # @return [String]
437
450
  attr_accessor :name
438
451
 
452
+ # Optional. The original primary location of the reservation which is set only
453
+ # during its creation and remains unchanged afterwards. It can be used by the
454
+ # customer to answer questions about disaster recovery billing. The field is
455
+ # output only for customers and should not be specified, however, the google.api.
456
+ # field_behavior is not set to OUTPUT_ONLY since these fields are set in
457
+ # rerouted requests sent across regions.
458
+ # Corresponds to the JSON property `originalPrimaryLocation`
459
+ # @return [String]
460
+ attr_accessor :original_primary_location
461
+
462
+ # Optional. The primary location of the reservation. The field is only
463
+ # meaningful for reservation used for cross region disaster recovery. The field
464
+ # is output only for customers and should not be specified, however, the google.
465
+ # api.field_behavior is not set to OUTPUT_ONLY since these fields are set in
466
+ # rerouted requests sent across regions.
467
+ # Corresponds to the JSON property `primaryLocation`
468
+ # @return [String]
469
+ attr_accessor :primary_location
470
+
471
+ # Optional. The secondary location of the reservation which is used for cross
472
+ # region disaster recovery purposes. Customer can set this in create/update
473
+ # reservation calls to create a failover reservation or convert a non-failover
474
+ # reservation to a failover reservation.
475
+ # Corresponds to the JSON property `secondaryLocation`
476
+ # @return [String]
477
+ attr_accessor :secondary_location
478
+
439
479
  # Baseline slots available to this reservation. A slot is a unit of
440
480
  # computational power in BigQuery, and serves as the unit of parallelism.
441
481
  # Queries using this reservation might use more slots during runtime if
@@ -473,6 +513,9 @@ module Google
473
513
  @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
474
514
  @multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
475
515
  @name = args[:name] if args.key?(:name)
516
+ @original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
517
+ @primary_location = args[:primary_location] if args.key?(:primary_location)
518
+ @secondary_location = args[:secondary_location] if args.key?(:secondary_location)
476
519
  @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
477
520
  @update_time = args[:update_time] if args.key?(:update_time)
478
521
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryreservationV1
18
18
  # Version of the google-apis-bigqueryreservation_v1 gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240306"
25
+ REVISION = "20240318"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class FailoverReservationRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class ListAssignmentsResponse
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -177,6 +183,12 @@ module Google
177
183
  end
178
184
  end
179
185
 
186
+ class FailoverReservationRequest
187
+ # @private
188
+ class Representation < Google::Apis::Core::JsonRepresentation
189
+ end
190
+ end
191
+
180
192
  class ListAssignmentsResponse
181
193
  # @private
182
194
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -230,6 +242,9 @@ module Google
230
242
  property :ignore_idle_slots, as: 'ignoreIdleSlots'
231
243
  property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
232
244
  property :name, as: 'name'
245
+ property :original_primary_location, as: 'originalPrimaryLocation'
246
+ property :primary_location, as: 'primaryLocation'
247
+ property :secondary_location, as: 'secondaryLocation'
233
248
  property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
234
249
  property :update_time, as: 'updateTime'
235
250
  end
@@ -564,6 +564,44 @@ module Google
564
564
  execute_or_queue_command(command, &block)
565
565
  end
566
566
 
567
+ # Failover a reservation to the secondary location. The operation should be done
568
+ # in the current secondary location, which will be promoted to the new primary
569
+ # location for the reservation. Attempting to failover a reservation in the
570
+ # current primary location will fail with the error code `google.rpc.Code.
571
+ # FAILED_PRECONDITION`.
572
+ # @param [String] name
573
+ # Required. Resource name of the reservation to failover. E.g., `projects/
574
+ # myproject/locations/US/reservations/team1-prod`
575
+ # @param [Google::Apis::BigqueryreservationV1::FailoverReservationRequest] failover_reservation_request_object
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # @param [Google::Apis::RequestOptions] options
582
+ # Request-specific options
583
+ #
584
+ # @yield [result, err] Result & error if block supplied
585
+ # @yieldparam result [Google::Apis::BigqueryreservationV1::Reservation] parsed result object
586
+ # @yieldparam err [StandardError] error object if request failed
587
+ #
588
+ # @return [Google::Apis::BigqueryreservationV1::Reservation]
589
+ #
590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
593
+ def failover_reservation(name, failover_reservation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
594
+ command = make_simple_command(:post, 'v1/{+name}:failoverReservation', options)
595
+ command.request_representation = Google::Apis::BigqueryreservationV1::FailoverReservationRequest::Representation
596
+ command.request_object = failover_reservation_request_object
597
+ command.response_representation = Google::Apis::BigqueryreservationV1::Reservation::Representation
598
+ command.response_class = Google::Apis::BigqueryreservationV1::Reservation
599
+ command.params['name'] = name unless name.nil?
600
+ command.query['fields'] = fields unless fields.nil?
601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
602
+ execute_or_queue_command(command, &block)
603
+ end
604
+
567
605
  # Returns information about the reservation.
568
606
  # @param [String] name
569
607
  # Required. Resource name of the reservation to retrieve. E.g., `projects/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigqueryreservation_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.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-03-10 00:00:00.000000000 Z
11
+ date: 2024-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1
63
63
  post_install_message:
64
64
  rdoc_options: []