google-apis-bigqueryreservation_v1 0.40.0 → 0.42.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: 3ef49b338cf21492fd941b4f4cf6c354bc29bc6fa82839c5a82162e271a85583
4
- data.tar.gz: 34689c6bf9638fe1568b7bbf57f7c7d73117ebbd640757d540fb5ceea6ef34d5
3
+ metadata.gz: 82e07c62796dd41d7569597942f72fbe426550f322f8fb2d9a6cc38bf9645f08
4
+ data.tar.gz: fdac2d9b0422cde49ca807343887a0925db1a19b4b1a654ea0fc28d9a4186894
5
5
  SHA512:
6
- metadata.gz: cc6d74a4db4aca0c929381062986e5779ab8985bceb7cab8fc963749d5b34f310f487e175c15b3b2853cac98b9dad231ab099712f792aeff2b4e22d27da2f59f
7
- data.tar.gz: 3054289ab46003ff10d32976bec4b7694c0bbdaa558584a4d2f515cf1dba413d83c62a2a0b7fd96d07958748b839d3cc9698d8f19c6f2ef2342ae8160d32141b
6
+ metadata.gz: ae257e8d1c5a4d1f1e57dba65f1eadc56ba8cf380459a5878a631442db9c6576319bdfb21a4567c506dd0133ef3b51705fa235a4bdcc13117277eb30278bae7c
7
+ data.tar.gz: 7782673985e62572af72a0bfa95157a47fa233c3c7a3f5e194dfca419223ae2280dbf2ea283ba42703a53b9d03b3f5ded1d4cb3b8f4b13bc6c3c396f970d26d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.42.0 (2025-03-16)
4
+
5
+ * Regenerated from discovery document revision 20250304
6
+
7
+ ### v0.41.0 (2025-03-02)
8
+
9
+ * Regenerated from discovery document revision 20250218
10
+
3
11
  ### v0.40.0 (2025-01-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20241231
@@ -413,6 +413,45 @@ module Google
413
413
  end
414
414
  end
415
415
 
416
+ # Disaster Recovery(DR) replication status of the reservation.
417
+ class ReplicationStatus
418
+ include Google::Apis::Core::Hashable
419
+
420
+ # The `Status` type defines a logical error model that is suitable for different
421
+ # programming environments, including REST APIs and RPC APIs. It is used by [
422
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
423
+ # data: error code, error message, and error details. You can find out more
424
+ # about this error model and how to work with it in the [API Design Guide](https:
425
+ # //cloud.google.com/apis/design/errors).
426
+ # Corresponds to the JSON property `error`
427
+ # @return [Google::Apis::BigqueryreservationV1::Status]
428
+ attr_accessor :error
429
+
430
+ # Output only. The time at which the last error was encountered while trying to
431
+ # replicate changes from the primary to the secondary. This field is only
432
+ # available if the replication has not succeeded since.
433
+ # Corresponds to the JSON property `lastErrorTime`
434
+ # @return [String]
435
+ attr_accessor :last_error_time
436
+
437
+ # Output only. A timestamp corresponding to the last change on the primary that
438
+ # was successfully replicated to the secondary.
439
+ # Corresponds to the JSON property `lastReplicationTime`
440
+ # @return [String]
441
+ attr_accessor :last_replication_time
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @error = args[:error] if args.key?(:error)
450
+ @last_error_time = args[:last_error_time] if args.key?(:last_error_time)
451
+ @last_replication_time = args[:last_replication_time] if args.key?(:last_replication_time)
452
+ end
453
+ end
454
+
416
455
  # A reservation is a mechanism used to guarantee slots to users.
417
456
  class Reservation
418
457
  include Google::Apis::Core::Hashable
@@ -458,6 +497,42 @@ module Google
458
497
  # @return [Hash<String,String>]
459
498
  attr_accessor :labels
460
499
 
500
+ # Optional. The overall max slots for the reservation, covering slot_capacity (
501
+ # baseline), idle slots (if ignore_idle_slots is false) and scaled slots. If
502
+ # present, the reservation won't use more than the specified number of slots,
503
+ # even if there is demand and supply (from idle slots). NOTE: capping a
504
+ # reservation's idle slot usage is best effort and its usage may exceed the
505
+ # max_slots value. However, in terms of autoscale.current_slots (which accounts
506
+ # for the additional added slots), it will never exceed the max_slots - baseline.
507
+ # This field must be set together with the scaling_mode enum value, otherwise
508
+ # the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`
509
+ # . If the max_slots and scaling_mode are set, the autoscale or autoscale.
510
+ # max_slots field must be unset. Otherwise the request will be rejected with
511
+ # error code `google.rpc.Code.INVALID_ARGUMENT`. However, the autoscale field
512
+ # may still be in the output. The autopscale.max_slots will always show as 0 and
513
+ # the autoscaler.current_slots will represent the current slots from autoscaler
514
+ # excluding idle slots. For example, if the max_slots is 1000 and scaling_mode
515
+ # is AUTOSCALE_ONLY, then in the output, the autoscaler.max_slots will be 0 and
516
+ # the autoscaler.current_slots may be any value between 0 and 1000. If the
517
+ # max_slots is 1000, scaling_mode is ALL_SLOTS, the baseline is 100 and idle
518
+ # slots usage is 200, then in the output, the autoscaler.max_slots will be 0 and
519
+ # the autoscaler.current_slots will not be higher than 700. If the max_slots is
520
+ # 1000, scaling_mode is IDLE_SLOTS_ONLY, then in the output, the autoscaler
521
+ # field will be null. If the max_slots and scaling_mode are set, then the
522
+ # ignore_idle_slots field must be aligned with the scaling_mode enum value.(See
523
+ # details in ScalingMode comments). Otherwise the request will be rejected with
524
+ # error code `google.rpc.Code.INVALID_ARGUMENT`. Please note, the max_slots is
525
+ # for user to manage the part of slots greater than the baseline. Therefore, we
526
+ # don't allow users to set max_slots smaller or equal to the baseline as it will
527
+ # not be meaningful. If the field is present and slot_capacity>=max_slots,
528
+ # requests will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
529
+ # Please note that if max_slots is set to 0, we will treat it as unset.
530
+ # Customers can set max_slots to 0 and set scaling_mode to
531
+ # SCALING_MODE_UNSPECIFIED to disable the max_slots feature.
532
+ # Corresponds to the JSON property `maxSlots`
533
+ # @return [Fixnum]
534
+ attr_accessor :max_slots
535
+
461
536
  # Applicable only for reservations located within one of the BigQuery multi-
462
537
  # regions (US or EU). If set to true, this reservation is placed in the
463
538
  # organization's secondary region which is designated for disaster recovery
@@ -490,6 +565,18 @@ module Google
490
565
  # @return [String]
491
566
  attr_accessor :primary_location
492
567
 
568
+ # Disaster Recovery(DR) replication status of the reservation.
569
+ # Corresponds to the JSON property `replicationStatus`
570
+ # @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
571
+ attr_accessor :replication_status
572
+
573
+ # The scaling mode for the reservation. If the field is present but max_slots is
574
+ # not present, requests will be rejected with error code `google.rpc.Code.
575
+ # INVALID_ARGUMENT`.
576
+ # Corresponds to the JSON property `scalingMode`
577
+ # @return [String]
578
+ attr_accessor :scaling_mode
579
+
493
580
  # Optional. The current location of the reservation's secondary replica. This
494
581
  # field is only set for reservations using the managed disaster recovery feature.
495
582
  # Users can set this in create reservation calls to create a failover
@@ -531,10 +618,13 @@ module Google
531
618
  @edition = args[:edition] if args.key?(:edition)
532
619
  @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
533
620
  @labels = args[:labels] if args.key?(:labels)
621
+ @max_slots = args[:max_slots] if args.key?(:max_slots)
534
622
  @multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
535
623
  @name = args[:name] if args.key?(:name)
536
624
  @original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
537
625
  @primary_location = args[:primary_location] if args.key?(:primary_location)
626
+ @replication_status = args[:replication_status] if args.key?(:replication_status)
627
+ @scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
538
628
  @secondary_location = args[:secondary_location] if args.key?(:secondary_location)
539
629
  @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
540
630
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.40.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241231"
25
+ REVISION = "20250304"
26
26
  end
27
27
  end
28
28
  end
@@ -88,6 +88,12 @@ module Google
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
+ class ReplicationStatus
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
91
97
  class Reservation
92
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
99
 
@@ -232,6 +238,16 @@ module Google
232
238
  end
233
239
  end
234
240
 
241
+ class ReplicationStatus
242
+ # @private
243
+ class Representation < Google::Apis::Core::JsonRepresentation
244
+ property :error, as: 'error', class: Google::Apis::BigqueryreservationV1::Status, decorator: Google::Apis::BigqueryreservationV1::Status::Representation
245
+
246
+ property :last_error_time, as: 'lastErrorTime'
247
+ property :last_replication_time, as: 'lastReplicationTime'
248
+ end
249
+ end
250
+
235
251
  class Reservation
236
252
  # @private
237
253
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -242,10 +258,14 @@ module Google
242
258
  property :edition, as: 'edition'
243
259
  property :ignore_idle_slots, as: 'ignoreIdleSlots'
244
260
  hash :labels, as: 'labels'
261
+ property :max_slots, :numeric_string => true, as: 'maxSlots'
245
262
  property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
246
263
  property :name, as: 'name'
247
264
  property :original_primary_location, as: 'originalPrimaryLocation'
248
265
  property :primary_location, as: 'primaryLocation'
266
+ property :replication_status, as: 'replicationStatus', class: Google::Apis::BigqueryreservationV1::ReplicationStatus, decorator: Google::Apis::BigqueryreservationV1::ReplicationStatus::Representation
267
+
268
+ property :scaling_mode, as: 'scalingMode'
249
269
  property :secondary_location, as: 'secondaryLocation'
250
270
  property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
251
271
  property :update_time, as: 'updateTime'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigqueryreservation_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-12 00:00:00.000000000 Z
10
+ date: 2025-03-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.40.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.42.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.2
76
+ rubygems_version: 3.6.5
77
77
  specification_version: 4
78
78
  summary: Simple REST client for BigQuery Reservation API V1
79
79
  test_files: []