google-apis-bigqueryreservation_v1beta1 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/bigqueryreservation_v1beta1/classes.rb +47 -9
- data/lib/google/apis/bigqueryreservation_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/bigqueryreservation_v1beta1/representations.rb +17 -0
- data/lib/google/apis/bigqueryreservation_v1beta1/service.rb +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a03925a4a38c6048c5e217539e211e19d53eaabdb38e9ded19035fb4527370f1
|
4
|
+
data.tar.gz: e8d8427357bc43a93ea1dfa2f6e5be77a60be658119df98d00910f0b34758163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b52fd6ad49b20d8c687575d9257e4d8b501030989b1cd170880d6cfca40a88d5e4d8008a3d8d305c8a4e2aff04a9189fb8fc02ce9b960bce6f76ca588013d2
|
7
|
+
data.tar.gz: 57561c9260b884c283fb972d69d52b241a6653e0f091a3776f344024ba5bf05119eaedf7b56714fb007feb38d6c32b2d67c4f22ff83bf704e01ffadc507f770a
|
data/CHANGELOG.md
CHANGED
@@ -39,8 +39,8 @@ module Google
|
|
39
39
|
attr_accessor :job_type
|
40
40
|
|
41
41
|
# Output only. Name of the resource. E.g.: `projects/myproject/locations/US/
|
42
|
-
# reservations/team1-prod/assignments/123`.
|
43
|
-
#
|
42
|
+
# reservations/team1-prod/assignments/123`. The assignment_id must only contain
|
43
|
+
# lower case alphanumeric characters or dashes and the max length is 64
|
44
44
|
# characters.
|
45
45
|
# Corresponds to the JSON property `name`
|
46
46
|
# @return [String]
|
@@ -74,6 +74,11 @@ module Google
|
|
74
74
|
# @return [String]
|
75
75
|
attr_accessor :name
|
76
76
|
|
77
|
+
# Preferred tables to use BI capacity for.
|
78
|
+
# Corresponds to the JSON property `preferredTables`
|
79
|
+
# @return [Array<Google::Apis::BigqueryreservationV1beta1::TableReference>]
|
80
|
+
attr_accessor :preferred_tables
|
81
|
+
|
77
82
|
# Size of a reservation, in bytes.
|
78
83
|
# Corresponds to the JSON property `size`
|
79
84
|
# @return [Fixnum]
|
@@ -91,6 +96,7 @@ module Google
|
|
91
96
|
# Update properties of this object
|
92
97
|
def update!(**args)
|
93
98
|
@name = args[:name] if args.key?(:name)
|
99
|
+
@preferred_tables = args[:preferred_tables] if args.key?(:preferred_tables)
|
94
100
|
@size = args[:size] if args.key?(:size)
|
95
101
|
@update_time = args[:update_time] if args.key?(:update_time)
|
96
102
|
end
|
@@ -138,8 +144,8 @@ module Google
|
|
138
144
|
alias_method :multi_region_auxiliary?, :multi_region_auxiliary
|
139
145
|
|
140
146
|
# Output only. The resource name of the capacity commitment, e.g., `projects/
|
141
|
-
# myproject/locations/US/capacityCommitments/123`
|
142
|
-
#
|
147
|
+
# myproject/locations/US/capacityCommitments/123` The commitment_id must only
|
148
|
+
# contain lower case alphanumeric characters or dashes. It must start with a
|
143
149
|
# letter and must not end with a dash. Its maximum length is 64 characters.
|
144
150
|
# Corresponds to the JSON property `name`
|
145
151
|
# @return [String]
|
@@ -361,9 +367,9 @@ module Google
|
|
361
367
|
alias_method :multi_region_auxiliary?, :multi_region_auxiliary
|
362
368
|
|
363
369
|
# The resource name of the reservation, e.g., `projects/*/locations/*/
|
364
|
-
# reservations/team1-prod`.
|
365
|
-
#
|
366
|
-
#
|
370
|
+
# reservations/team1-prod`. The reservation_id must only contain lower case
|
371
|
+
# alphanumeric characters or dashes. It must start with a letter and must not
|
372
|
+
# end with a dash. Its maximum length is 64 characters.
|
367
373
|
# Corresponds to the JSON property `name`
|
368
374
|
# @return [String]
|
369
375
|
attr_accessor :name
|
@@ -371,10 +377,10 @@ module Google
|
|
371
377
|
# Minimum slots available to this reservation. A slot is a unit of computational
|
372
378
|
# power in BigQuery, and serves as the unit of parallelism. Queries using this
|
373
379
|
# reservation might use more slots during runtime if ignore_idle_slots is set to
|
374
|
-
# false. If the new reservation's slot capacity
|
380
|
+
# false. If the new reservation's slot capacity exceeds the project's slot
|
375
381
|
# capacity or if total slot capacity of the new reservation and its siblings
|
376
382
|
# exceeds the project's slot capacity, the request will fail with `google.rpc.
|
377
|
-
# Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions
|
383
|
+
# Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions,
|
378
384
|
# slot capacity constraints are checked separately for default and auxiliary
|
379
385
|
# regions. See multi_region_auxiliary flag for more details.
|
380
386
|
# Corresponds to the JSON property `slotCapacity`
|
@@ -520,6 +526,38 @@ module Google
|
|
520
526
|
@message = args[:message] if args.key?(:message)
|
521
527
|
end
|
522
528
|
end
|
529
|
+
|
530
|
+
# Fully qualified reference to BigQuery table. Internally stored as google.cloud.
|
531
|
+
# bi.v1.BqTableReference.
|
532
|
+
class TableReference
|
533
|
+
include Google::Apis::Core::Hashable
|
534
|
+
|
535
|
+
# The ID of the dataset in the above project.
|
536
|
+
# Corresponds to the JSON property `datasetId`
|
537
|
+
# @return [String]
|
538
|
+
attr_accessor :dataset_id
|
539
|
+
|
540
|
+
# The assigned project ID of the project.
|
541
|
+
# Corresponds to the JSON property `projectId`
|
542
|
+
# @return [String]
|
543
|
+
attr_accessor :project_id
|
544
|
+
|
545
|
+
# The ID of the table in the above dataset.
|
546
|
+
# Corresponds to the JSON property `tableId`
|
547
|
+
# @return [String]
|
548
|
+
attr_accessor :table_id
|
549
|
+
|
550
|
+
def initialize(**args)
|
551
|
+
update!(**args)
|
552
|
+
end
|
553
|
+
|
554
|
+
# Update properties of this object
|
555
|
+
def update!(**args)
|
556
|
+
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
|
557
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
558
|
+
@table_id = args[:table_id] if args.key?(:table_id)
|
559
|
+
end
|
560
|
+
end
|
523
561
|
end
|
524
562
|
end
|
525
563
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module BigqueryreservationV1beta1
|
18
18
|
# Version of the google-apis-bigqueryreservation_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220415"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -106,6 +106,12 @@ module Google
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
+
class TableReference
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
109
115
|
class Assignment
|
110
116
|
# @private
|
111
117
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -120,6 +126,8 @@ module Google
|
|
120
126
|
# @private
|
121
127
|
class Representation < Google::Apis::Core::JsonRepresentation
|
122
128
|
property :name, as: 'name'
|
129
|
+
collection :preferred_tables, as: 'preferredTables', class: Google::Apis::BigqueryreservationV1beta1::TableReference, decorator: Google::Apis::BigqueryreservationV1beta1::TableReference::Representation
|
130
|
+
|
123
131
|
property :size, :numeric_string => true, as: 'size'
|
124
132
|
property :update_time, as: 'updateTime'
|
125
133
|
end
|
@@ -235,6 +243,15 @@ module Google
|
|
235
243
|
property :message, as: 'message'
|
236
244
|
end
|
237
245
|
end
|
246
|
+
|
247
|
+
class TableReference
|
248
|
+
# @private
|
249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
250
|
+
property :dataset_id, as: 'datasetId'
|
251
|
+
property :project_id, as: 'projectId'
|
252
|
+
property :table_id, as: 'tableId'
|
253
|
+
end
|
254
|
+
end
|
238
255
|
end
|
239
256
|
end
|
240
257
|
end
|
@@ -367,8 +367,8 @@ module Google
|
|
367
367
|
# fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
|
368
368
|
# @param [String] name
|
369
369
|
# Output only. The resource name of the capacity commitment, e.g., `projects/
|
370
|
-
# myproject/locations/US/capacityCommitments/123`
|
371
|
-
#
|
370
|
+
# myproject/locations/US/capacityCommitments/123` The commitment_id must only
|
371
|
+
# contain lower case alphanumeric characters or dashes. It must start with a
|
372
372
|
# letter and must not end with a dash. Its maximum length is 64 characters.
|
373
373
|
# @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object
|
374
374
|
# @param [String] update_mask
|
@@ -406,8 +406,8 @@ module Google
|
|
406
406
|
# Splits capacity commitment to two commitments of the same plan and `
|
407
407
|
# commitment_end_time`. A common use case is to enable downgrading commitments.
|
408
408
|
# For example, in order to downgrade from 10000 slots to 8000, you might split a
|
409
|
-
# 10000 capacity commitment into commitments of 2000 and 8000. Then, you
|
410
|
-
#
|
409
|
+
# 10000 capacity commitment into commitments of 2000 and 8000. Then, you delete
|
410
|
+
# the first one after the commitment end time passes.
|
411
411
|
# @param [String] name
|
412
412
|
# Required. The resource name e.g.,: `projects/myproject/locations/US/
|
413
413
|
# capacityCommitments/123`
|
@@ -447,7 +447,7 @@ module Google
|
|
447
447
|
# @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object
|
448
448
|
# @param [String] reservation_id
|
449
449
|
# The reservation ID. It must only contain lower case alphanumeric characters or
|
450
|
-
# dashes.It must start with a letter and must not end with a dash. Its maximum
|
450
|
+
# dashes. It must start with a letter and must not end with a dash. Its maximum
|
451
451
|
# length is 64 characters.
|
452
452
|
# @param [String] fields
|
453
453
|
# Selector specifying which fields to include in a partial response.
|
@@ -588,9 +588,9 @@ module Google
|
|
588
588
|
# Updates an existing reservation resource.
|
589
589
|
# @param [String] name
|
590
590
|
# The resource name of the reservation, e.g., `projects/*/locations/*/
|
591
|
-
# reservations/team1-prod`.
|
592
|
-
#
|
593
|
-
#
|
591
|
+
# reservations/team1-prod`. The reservation_id must only contain lower case
|
592
|
+
# alphanumeric characters or dashes. It must start with a letter and must not
|
593
|
+
# end with a dash. Its maximum length is 64 characters.
|
594
594
|
# @param [Google::Apis::BigqueryreservationV1beta1::Reservation] reservation_object
|
595
595
|
# @param [String] update_mask
|
596
596
|
# Standard field mask for the set of fields to be updated.
|
@@ -805,8 +805,8 @@ module Google
|
|
805
805
|
# Updates an existing assignment. Only the `priority` field can be updated.
|
806
806
|
# @param [String] name
|
807
807
|
# Output only. Name of the resource. E.g.: `projects/myproject/locations/US/
|
808
|
-
# reservations/team1-prod/assignments/123`.
|
809
|
-
#
|
808
|
+
# reservations/team1-prod/assignments/123`. The assignment_id must only contain
|
809
|
+
# lower case alphanumeric characters or dashes and the max length is 64
|
810
810
|
# characters.
|
811
811
|
# @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object
|
812
812
|
# @param [String] update_mask
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-bigqueryreservation_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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: 2022-
|
11
|
+
date: 2022-04-25 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_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1beta1/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|