google-apis-bigqueryreservation_v1 0.40.0 → 0.41.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e3d1d2575396b96c424270c626c0134eb9303ce4d6fc055dd663dc8567e7848
|
4
|
+
data.tar.gz: 70471196d5c94908674afee8548a1d9baee1c1c1b73964f566f7016bace01601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a668d1eddd4ccf97bf91dec0425ede4755824330936c1cc4ee6a66ac58b658e6411d68ca5ee968e5628b6b396ce67f91be5cf54c8a12d589902d684e7f99334b
|
7
|
+
data.tar.gz: 833d2ba038225e6a1611ad1fe3222bc97feb6afeaf955e5f43a9e22be65133d8dbda5df1650e1f4ce3e05b4c5929b7ad319b234f40b7c967295aa95a03876f61
|
data/CHANGELOG.md
CHANGED
@@ -413,6 +413,54 @@ 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
|
+
# Output only. The time at which a soft failover for the reservation and its
|
444
|
+
# associated datasets was initiated. After this field is set, all subsequent
|
445
|
+
# changes to the reservation will be rejected unless a hard failover overrides
|
446
|
+
# this operation. This field will be cleared once the failover is complete.
|
447
|
+
# Corresponds to the JSON property `softFailoverStartTime`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :soft_failover_start_time
|
450
|
+
|
451
|
+
def initialize(**args)
|
452
|
+
update!(**args)
|
453
|
+
end
|
454
|
+
|
455
|
+
# Update properties of this object
|
456
|
+
def update!(**args)
|
457
|
+
@error = args[:error] if args.key?(:error)
|
458
|
+
@last_error_time = args[:last_error_time] if args.key?(:last_error_time)
|
459
|
+
@last_replication_time = args[:last_replication_time] if args.key?(:last_replication_time)
|
460
|
+
@soft_failover_start_time = args[:soft_failover_start_time] if args.key?(:soft_failover_start_time)
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
416
464
|
# A reservation is a mechanism used to guarantee slots to users.
|
417
465
|
class Reservation
|
418
466
|
include Google::Apis::Core::Hashable
|
@@ -458,6 +506,42 @@ module Google
|
|
458
506
|
# @return [Hash<String,String>]
|
459
507
|
attr_accessor :labels
|
460
508
|
|
509
|
+
# Optional. The overall max slots for the reservation, covering slot_capacity (
|
510
|
+
# baseline), idle slots (if ignore_idle_slots is false) and scaled slots. If
|
511
|
+
# present, the reservation won't use more than the specified number of slots,
|
512
|
+
# even if there is demand and supply (from idle slots). NOTE: capping a
|
513
|
+
# reservation's idle slot usage is best effort and its usage may exceed the
|
514
|
+
# max_slots value. However, in terms of autoscale.current_slots (which accounts
|
515
|
+
# for the additional added slots), it will never exceed the max_slots - baseline.
|
516
|
+
# This field must be set together with the scaling_mode enum value, otherwise
|
517
|
+
# the request will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`
|
518
|
+
# . If the max_slots and scaling_mode are set, the autoscale or autoscale.
|
519
|
+
# max_slots field must be unset. Otherwise the request will be rejected with
|
520
|
+
# error code `google.rpc.Code.INVALID_ARGUMENT`. However, the autoscale field
|
521
|
+
# may still be in the output. The autopscale.max_slots will always show as 0 and
|
522
|
+
# the autoscaler.current_slots will represent the current slots from autoscaler
|
523
|
+
# excluding idle slots. For example, if the max_slots is 1000 and scaling_mode
|
524
|
+
# is AUTOSCALE_ONLY, then in the output, the autoscaler.max_slots will be 0 and
|
525
|
+
# the autoscaler.current_slots may be any value between 0 and 1000. If the
|
526
|
+
# max_slots is 1000, scaling_mode is ALL_SLOTS, the baseline is 100 and idle
|
527
|
+
# slots usage is 200, then in the output, the autoscaler.max_slots will be 0 and
|
528
|
+
# the autoscaler.current_slots will not be higher than 700. If the max_slots is
|
529
|
+
# 1000, scaling_mode is IDLE_SLOTS_ONLY, then in the output, the autoscaler
|
530
|
+
# field will be null. If the max_slots and scaling_mode are set, then the
|
531
|
+
# ignore_idle_slots field must be aligned with the scaling_mode enum value.(See
|
532
|
+
# details in ScalingMode comments). Otherwise the request will be rejected with
|
533
|
+
# error code `google.rpc.Code.INVALID_ARGUMENT`. Please note, the max_slots is
|
534
|
+
# for user to manage the part of slots greater than the baseline. Therefore, we
|
535
|
+
# don't allow users to set max_slots smaller or equal to the baseline as it will
|
536
|
+
# not be meaningful. If the field is present and slot_capacity>=max_slots,
|
537
|
+
# requests will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
|
538
|
+
# Please note that if max_slots is set to 0, we will treat it as unset.
|
539
|
+
# Customers can set max_slots to 0 and set scaling_mode to
|
540
|
+
# SCALING_MODE_UNSPECIFIED to disable the max_slots feature.
|
541
|
+
# Corresponds to the JSON property `maxSlots`
|
542
|
+
# @return [Fixnum]
|
543
|
+
attr_accessor :max_slots
|
544
|
+
|
461
545
|
# Applicable only for reservations located within one of the BigQuery multi-
|
462
546
|
# regions (US or EU). If set to true, this reservation is placed in the
|
463
547
|
# organization's secondary region which is designated for disaster recovery
|
@@ -490,6 +574,18 @@ module Google
|
|
490
574
|
# @return [String]
|
491
575
|
attr_accessor :primary_location
|
492
576
|
|
577
|
+
# Disaster Recovery(DR) replication status of the reservation.
|
578
|
+
# Corresponds to the JSON property `replicationStatus`
|
579
|
+
# @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
|
580
|
+
attr_accessor :replication_status
|
581
|
+
|
582
|
+
# The scaling mode for the reservation. If the field is present but max_slots is
|
583
|
+
# not present, requests will be rejected with error code `google.rpc.Code.
|
584
|
+
# INVALID_ARGUMENT`.
|
585
|
+
# Corresponds to the JSON property `scalingMode`
|
586
|
+
# @return [String]
|
587
|
+
attr_accessor :scaling_mode
|
588
|
+
|
493
589
|
# Optional. The current location of the reservation's secondary replica. This
|
494
590
|
# field is only set for reservations using the managed disaster recovery feature.
|
495
591
|
# Users can set this in create reservation calls to create a failover
|
@@ -531,10 +627,13 @@ module Google
|
|
531
627
|
@edition = args[:edition] if args.key?(:edition)
|
532
628
|
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
|
533
629
|
@labels = args[:labels] if args.key?(:labels)
|
630
|
+
@max_slots = args[:max_slots] if args.key?(:max_slots)
|
534
631
|
@multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
|
535
632
|
@name = args[:name] if args.key?(:name)
|
536
633
|
@original_primary_location = args[:original_primary_location] if args.key?(:original_primary_location)
|
537
634
|
@primary_location = args[:primary_location] if args.key?(:primary_location)
|
635
|
+
@replication_status = args[:replication_status] if args.key?(:replication_status)
|
636
|
+
@scaling_mode = args[:scaling_mode] if args.key?(:scaling_mode)
|
538
637
|
@secondary_location = args[:secondary_location] if args.key?(:secondary_location)
|
539
638
|
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
|
540
639
|
@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.
|
19
|
+
GEM_VERSION = "0.41.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 = "
|
25
|
+
REVISION = "20250218"
|
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,17 @@ 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
|
+
property :soft_failover_start_time, as: 'softFailoverStartTime'
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
235
252
|
class Reservation
|
236
253
|
# @private
|
237
254
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -242,10 +259,14 @@ module Google
|
|
242
259
|
property :edition, as: 'edition'
|
243
260
|
property :ignore_idle_slots, as: 'ignoreIdleSlots'
|
244
261
|
hash :labels, as: 'labels'
|
262
|
+
property :max_slots, :numeric_string => true, as: 'maxSlots'
|
245
263
|
property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
|
246
264
|
property :name, as: 'name'
|
247
265
|
property :original_primary_location, as: 'originalPrimaryLocation'
|
248
266
|
property :primary_location, as: 'primaryLocation'
|
267
|
+
property :replication_status, as: 'replicationStatus', class: Google::Apis::BigqueryreservationV1::ReplicationStatus, decorator: Google::Apis::BigqueryreservationV1::ReplicationStatus::Representation
|
268
|
+
|
269
|
+
property :scaling_mode, as: 'scalingMode'
|
249
270
|
property :secondary_location, as: 'secondaryLocation'
|
250
271
|
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
|
251
272
|
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.
|
4
|
+
version: 0.41.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-02 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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.41.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.
|
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: []
|