google-apis-bigqueryreservation_v1 0.9.0 → 0.13.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 +18 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/bigqueryreservation_v1/classes.rb +38 -8
- data/lib/google/apis/bigqueryreservation_v1/gem_version.rb +3 -3
- data/lib/google/apis/bigqueryreservation_v1/representations.rb +2 -0
- data/lib/google/apis/bigqueryreservation_v1/service.rb +21 -15
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b440e447fe66933a756948edb085755bdf3c01cf6ea7998dc448a50ad74e35
|
4
|
+
data.tar.gz: feaac55222b33d928568b318ad27fadbeca19aeb098d9f3a87152f3118b79606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2561b9b8c03967879aa8c177eed87e4bdf3aa31d14b61042ecaa2b76cf4289d43de20cc1aff6e94fa31671d227ca7b33425be90b37763708eebcd6a93a51dcf
|
7
|
+
data.tar.gz: 7f5850dbc785de2cb989d8928f15eb076704987c872c5ce046b23cfcd28307835f36d4b78e93db058c49d67ed0d1315c2c571f8999b9e5a6a1efdd4dd7309324
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-bigqueryreservation_v1
|
2
2
|
|
3
|
+
### v0.13.0 (2022-02-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220212
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.12.0 (2021-12-14)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.11.0 (2021-10-21)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211015
|
15
|
+
* Unspecified changes
|
16
|
+
|
17
|
+
### v0.10.0 (2021-09-16)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210910
|
20
|
+
|
3
21
|
### v0.9.0 (2021-09-01)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210806
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/bigqueryreservation_v1"
|
|
51
51
|
client = Google::Apis::BigqueryreservationV1::BigQueryReservationService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Bigqueryreservation service in particular.)
|
67
67
|
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module BigqueryreservationV1
|
24
24
|
|
25
|
-
#
|
25
|
+
# An assignment allows a project to submit jobs of a certain type using slots
|
26
26
|
# from the specified reservation.
|
27
27
|
class Assignment
|
28
28
|
include Google::Apis::Core::Hashable
|
@@ -39,7 +39,9 @@ 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`.
|
42
|
+
# reservations/team1-prod/assignments/123`. For the assignment id, it must only
|
43
|
+
# contain lower case alphanumeric characters or dashes and the max length is 64
|
44
|
+
# characters.
|
43
45
|
# Corresponds to the JSON property `name`
|
44
46
|
# @return [String]
|
45
47
|
attr_accessor :name
|
@@ -125,8 +127,20 @@ module Google
|
|
125
127
|
# @return [Google::Apis::BigqueryreservationV1::Status]
|
126
128
|
attr_accessor :failure_status
|
127
129
|
|
130
|
+
# Applicable only for commitments located within one of the BigQuery multi-
|
131
|
+
# regions (US or EU). If set to true, this commitment is placed in the
|
132
|
+
# organization's secondary region which is designated for disaster recovery
|
133
|
+
# purposes. If false, this commitment is placed in the organization's default
|
134
|
+
# region.
|
135
|
+
# Corresponds to the JSON property `multiRegionAuxiliary`
|
136
|
+
# @return [Boolean]
|
137
|
+
attr_accessor :multi_region_auxiliary
|
138
|
+
alias_method :multi_region_auxiliary?, :multi_region_auxiliary
|
139
|
+
|
128
140
|
# Output only. The resource name of the capacity commitment, e.g., `projects/
|
129
|
-
# myproject/locations/US/capacityCommitments/123`
|
141
|
+
# myproject/locations/US/capacityCommitments/123` For the commitment id, it must
|
142
|
+
# only contain lower case alphanumeric characters or dashes.It must start with a
|
143
|
+
# letter and must not end with a dash. Its maximum length is 64 characters.
|
130
144
|
# Corresponds to the JSON property `name`
|
131
145
|
# @return [String]
|
132
146
|
attr_accessor :name
|
@@ -162,6 +176,7 @@ module Google
|
|
162
176
|
@commitment_end_time = args[:commitment_end_time] if args.key?(:commitment_end_time)
|
163
177
|
@commitment_start_time = args[:commitment_start_time] if args.key?(:commitment_start_time)
|
164
178
|
@failure_status = args[:failure_status] if args.key?(:failure_status)
|
179
|
+
@multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
|
165
180
|
@name = args[:name] if args.key?(:name)
|
166
181
|
@plan = args[:plan] if args.key?(:plan)
|
167
182
|
@renewal_plan = args[:renewal_plan] if args.key?(:renewal_plan)
|
@@ -322,14 +337,26 @@ module Google
|
|
322
337
|
# If false, any query or pipeline job using this reservation will use idle slots
|
323
338
|
# from other reservations within the same admin project. If true, a query or
|
324
339
|
# pipeline job using this reservation will execute with the slot capacity
|
325
|
-
# specified
|
340
|
+
# specified in the slot_capacity field at most.
|
326
341
|
# Corresponds to the JSON property `ignoreIdleSlots`
|
327
342
|
# @return [Boolean]
|
328
343
|
attr_accessor :ignore_idle_slots
|
329
344
|
alias_method :ignore_idle_slots?, :ignore_idle_slots
|
330
345
|
|
346
|
+
# Applicable only for reservations located within one of the BigQuery multi-
|
347
|
+
# regions (US or EU). If set to true, this reservation is placed in the
|
348
|
+
# organization's secondary region which is designated for disaster recovery
|
349
|
+
# purposes. If false, this reservation is placed in the organization's default
|
350
|
+
# region.
|
351
|
+
# Corresponds to the JSON property `multiRegionAuxiliary`
|
352
|
+
# @return [Boolean]
|
353
|
+
attr_accessor :multi_region_auxiliary
|
354
|
+
alias_method :multi_region_auxiliary?, :multi_region_auxiliary
|
355
|
+
|
331
356
|
# The resource name of the reservation, e.g., `projects/*/locations/*/
|
332
|
-
# reservations/team1-prod`.
|
357
|
+
# reservations/team1-prod`. For the reservation id, it must only contain lower
|
358
|
+
# case alphanumeric characters or dashes.It must start with a letter and must
|
359
|
+
# not end with a dash. Its maximum length is 64 characters.
|
333
360
|
# Corresponds to the JSON property `name`
|
334
361
|
# @return [String]
|
335
362
|
attr_accessor :name
|
@@ -337,10 +364,12 @@ module Google
|
|
337
364
|
# Minimum slots available to this reservation. A slot is a unit of computational
|
338
365
|
# power in BigQuery, and serves as the unit of parallelism. Queries using this
|
339
366
|
# reservation might use more slots during runtime if ignore_idle_slots is set to
|
340
|
-
# false. If the new reservation's slot capacity exceed the
|
367
|
+
# false. If the new reservation's slot capacity exceed the project's slot
|
341
368
|
# capacity or if total slot capacity of the new reservation and its siblings
|
342
|
-
# exceeds the
|
343
|
-
# Code.RESOURCE_EXHAUSTED`.
|
369
|
+
# exceeds the project's slot capacity, the request will fail with `google.rpc.
|
370
|
+
# Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions
|
371
|
+
# slot capacity constraints are checked separately for default and auxiliary
|
372
|
+
# regions. See multi_region_auxiliary flag for more details.
|
344
373
|
# Corresponds to the JSON property `slotCapacity`
|
345
374
|
# @return [Fixnum]
|
346
375
|
attr_accessor :slot_capacity
|
@@ -358,6 +387,7 @@ module Google
|
|
358
387
|
def update!(**args)
|
359
388
|
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
360
389
|
@ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
|
390
|
+
@multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
|
361
391
|
@name = args[:name] if args.key?(:name)
|
362
392
|
@slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
|
363
393
|
@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.13.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220212"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -138,6 +138,7 @@ module Google
|
|
138
138
|
property :commitment_start_time, as: 'commitmentStartTime'
|
139
139
|
property :failure_status, as: 'failureStatus', class: Google::Apis::BigqueryreservationV1::Status, decorator: Google::Apis::BigqueryreservationV1::Status::Representation
|
140
140
|
|
141
|
+
property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
|
141
142
|
property :name, as: 'name'
|
142
143
|
property :plan, as: 'plan'
|
143
144
|
property :renewal_plan, as: 'renewalPlan'
|
@@ -198,6 +199,7 @@ module Google
|
|
198
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
199
200
|
property :creation_time, as: 'creationTime'
|
200
201
|
property :ignore_idle_slots, as: 'ignoreIdleSlots'
|
202
|
+
property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
|
201
203
|
property :name, as: 'name'
|
202
204
|
property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
|
203
205
|
property :update_time, as: 'updateTime'
|
@@ -131,14 +131,14 @@ module Google
|
|
131
131
|
execute_or_queue_command(command, &block)
|
132
132
|
end
|
133
133
|
|
134
|
-
# Looks up assignments for a specified resource for a particular
|
135
|
-
# request is about a project: 1. Assignments created on the
|
136
|
-
# returned if they exist. 2. Otherwise assignments created on
|
137
|
-
# ancestor will be returned. 3. Assignments for different JobTypes
|
138
|
-
# returned. The same logic applies if the request is about a folder.
|
139
|
-
# request is about an organization, then assignments created on the
|
140
|
-
# will be returned (organization doesn't have ancestors). Comparing
|
141
|
-
# ListAssignments, there are some behavior differences: 1. permission on the
|
134
|
+
# Deprecated: Looks up assignments for a specified resource for a particular
|
135
|
+
# region. If the request is about a project: 1. Assignments created on the
|
136
|
+
# project will be returned if they exist. 2. Otherwise assignments created on
|
137
|
+
# the closest ancestor will be returned. 3. Assignments for different JobTypes
|
138
|
+
# will all be returned. The same logic applies if the request is about a folder.
|
139
|
+
# If the request is about an organization, then assignments created on the
|
140
|
+
# organization will be returned (organization doesn't have ancestors). Comparing
|
141
|
+
# to ListAssignments, there are some behavior differences: 1. permission on the
|
142
142
|
# assignee will be verified in this API. 2. Hierarchy lookup (project->folder->
|
143
143
|
# organization) happens in this API. 3. Parent here is `projects/*/locations/*`,
|
144
144
|
# instead of `projects/*/locations/*reservations/*`. **Note** "-" cannot be used
|
@@ -231,8 +231,9 @@ module Google
|
|
231
231
|
# @param [String] capacity_commitment_id
|
232
232
|
# The optional capacity commitment ID. Capacity commitment name will be
|
233
233
|
# generated automatically if this field is empty. This field must only contain
|
234
|
-
# lower case alphanumeric characters or
|
235
|
-
# this ID won't be kept if
|
234
|
+
# lower case alphanumeric characters or dashes. The first and last character
|
235
|
+
# cannot be a dash. Max length is 64 characters. NOTE: this ID won't be kept if
|
236
|
+
# the capacity commitment is split or merged.
|
236
237
|
# @param [Boolean] enforce_single_admin_project_per_org
|
237
238
|
# If true, fail the request if another project in the organization has a
|
238
239
|
# capacity commitment.
|
@@ -417,7 +418,9 @@ module Google
|
|
417
418
|
# fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
|
418
419
|
# @param [String] name
|
419
420
|
# Output only. The resource name of the capacity commitment, e.g., `projects/
|
420
|
-
# myproject/locations/US/capacityCommitments/123`
|
421
|
+
# myproject/locations/US/capacityCommitments/123` For the commitment id, it must
|
422
|
+
# only contain lower case alphanumeric characters or dashes.It must start with a
|
423
|
+
# letter and must not end with a dash. Its maximum length is 64 characters.
|
421
424
|
# @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
|
422
425
|
# @param [String] update_mask
|
423
426
|
# Standard field mask for the set of fields to be updated.
|
@@ -494,8 +497,9 @@ module Google
|
|
494
497
|
# Required. Project, location. E.g., `projects/myproject/locations/US`
|
495
498
|
# @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
|
496
499
|
# @param [String] reservation_id
|
497
|
-
# The reservation ID.
|
498
|
-
#
|
500
|
+
# The reservation ID. It must only contain lower case alphanumeric characters or
|
501
|
+
# dashes.It must start with a letter and must not end with a dash. Its maximum
|
502
|
+
# length is 64 characters.
|
499
503
|
# @param [String] fields
|
500
504
|
# Selector specifying which fields to include in a partial response.
|
501
505
|
# @param [String] quota_user
|
@@ -629,7 +633,9 @@ module Google
|
|
629
633
|
# Updates an existing reservation resource.
|
630
634
|
# @param [String] name
|
631
635
|
# The resource name of the reservation, e.g., `projects/*/locations/*/
|
632
|
-
# reservations/team1-prod`.
|
636
|
+
# reservations/team1-prod`. For the reservation id, it must only contain lower
|
637
|
+
# case alphanumeric characters or dashes.It must start with a letter and must
|
638
|
+
# not end with a dash. Its maximum length is 64 characters.
|
633
639
|
# @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
|
634
640
|
# @param [String] update_mask
|
635
641
|
# Standard field mask for the set of fields to be updated.
|
@@ -690,7 +696,7 @@ module Google
|
|
690
696
|
# @param [String] assignment_id
|
691
697
|
# The optional assignment ID. Assignment name will be generated automatically if
|
692
698
|
# this field is empty. This field must only contain lower case alphanumeric
|
693
|
-
# characters or
|
699
|
+
# characters or dashes. Max length is 64 characters.
|
694
700
|
# @param [String] fields
|
695
701
|
# Selector specifying which fields to include in a partial response.
|
696
702
|
# @param [String] quota_user
|
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.
|
4
|
+
version: 0.13.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:
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.13.0
|
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: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for BigQuery Reservation API V1
|