google-apis-bigqueryreservation_v1 0.33.0 → 0.35.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: 8106e5235dace204a9c37b53f5c3dbbbff6002be47b1eee157a29a0a59e70513
4
- data.tar.gz: d38a1a7172d39c6aa9e22178d7d3d8655c69bf41b713816b402c2784e82c1e7b
3
+ metadata.gz: 9a4138e897614b4ea16db793ca180d54dfb751d04684a18eb875f7c590b3aaf8
4
+ data.tar.gz: 3df1c0ef0bc48f00f1b03ef31b2cac34dfd934cf26a79f26783fc16ddbefabbb
5
5
  SHA512:
6
- metadata.gz: 02ddf47e701d3d2aee70c62d35979e879a2f25b944f782e43de765a7294634639e1dae887ad1ce27b2d6889fa5d65efac159f98917b975890fe219b708f7c48f
7
- data.tar.gz: 404fb6bfe6794a7b6536ffa7e3908df56d50e97f73276a045c129297e4fc3201383d2ae6ce3bdd22716710a0bbdb96775b7678825a65afcc16e76d901bec2397
6
+ metadata.gz: b16e9c21bb4bc777ae471d0cb3746313d806e9fe00fd5a795cb4b12603be7b1b5ff79b9857dab3689d27acb6fd7974694667897d69fd3d1989522a294dc7a0d2
7
+ data.tar.gz: e1de262b662ebffa3b6cbb94707466ee7327f8d0fb8904034810a591deed06b407faeb3ceb55c722178017a720178c4289ce6a48005d6b6ec4280b52a84b3e52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.35.0 (2024-05-19)
4
+
5
+ * Regenerated using generator version 0.15.0
6
+
7
+ ### v0.34.0 (2024-03-24)
8
+
9
+ * Regenerated from discovery document revision 20240318
10
+
3
11
  ### v0.33.0 (2024-03-10)
4
12
 
5
13
  * 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.35.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.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.35.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-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.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.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.35.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: []