google-apis-bigqueryreservation_v1 0.1.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/bigqueryreservation_v1.rb +1 -1
- data/lib/google/apis/bigqueryreservation_v1/classes.rb +5 -111
- data/lib/google/apis/bigqueryreservation_v1/gem_version.rb +3 -3
- data/lib/google/apis/bigqueryreservation_v1/representations.rb +0 -46
- data/lib/google/apis/bigqueryreservation_v1/service.rb +23 -88
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 190e1b3b88d890066704b47d796be16a46bba13aff0d4753487028ba1d4d545c
|
4
|
+
data.tar.gz: 207e696abab2ced2daeaba7aacdbb41cd8fe006c0a97c768ddc5c7aeb5184d0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f88d2759b0d14efd9fe3dbf4c24ef6ccfac77176456bf5b732333d052ae9db1df2def15babb9a532a758d88dbc6dacd0d647d946397efaf2a04f4982c7409e
|
7
|
+
data.tar.gz: be44da19567813514b54426b5630b5e9b914bd7e45708ed84ea6f577b87a60059081e81a7bc6601f3b486ba9ce1da93d0b52938fa6106672c2cfe73253156bbd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-bigqueryreservation_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-05-19)
|
4
|
+
|
5
|
+
* Unspecified changes
|
6
|
+
|
7
|
+
### v0.5.0 (2021-04-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210423
|
10
|
+
|
11
|
+
### v0.4.0 (2021-03-31)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210324
|
14
|
+
* Regenerated using generator version 0.2.0
|
15
|
+
|
16
|
+
### v0.3.0 (2021-03-04)
|
17
|
+
|
18
|
+
* Unspecified changes
|
19
|
+
|
20
|
+
### v0.2.0 (2021-02-24)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210217
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -32,7 +32,7 @@ module Google
|
|
32
32
|
# View and manage your data in Google BigQuery
|
33
33
|
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
34
34
|
|
35
|
-
#
|
35
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
36
36
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
37
37
|
end
|
38
38
|
end
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
include Google::Apis::Core::Hashable
|
68
68
|
|
69
69
|
# The resource name of the singleton BI reservation. Reservation names have the
|
70
|
-
# form `projects/`project_id`/locations/`location_id`/
|
70
|
+
# form `projects/`project_id`/locations/`location_id`/biReservation`.
|
71
71
|
# Corresponds to the JSON property `name`
|
72
72
|
# @return [String]
|
73
73
|
attr_accessor :name
|
@@ -170,26 +170,6 @@ module Google
|
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
173
|
-
# The metadata for operation returned from ReservationService.CreateSlotPool.
|
174
|
-
class CreateSlotPoolMetadata
|
175
|
-
include Google::Apis::Core::Hashable
|
176
|
-
|
177
|
-
# Resource name of the slot pool that is being created. E.g., projects/myproject/
|
178
|
-
# locations/us-central1/reservations/foo/slotPools/123
|
179
|
-
# Corresponds to the JSON property `slotPool`
|
180
|
-
# @return [String]
|
181
|
-
attr_accessor :slot_pool
|
182
|
-
|
183
|
-
def initialize(**args)
|
184
|
-
update!(**args)
|
185
|
-
end
|
186
|
-
|
187
|
-
# Update properties of this object
|
188
|
-
def update!(**args)
|
189
|
-
@slot_pool = args[:slot_pool] if args.key?(:slot_pool)
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
173
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
194
174
|
# messages in your APIs. A typical example is to use it as the request or the
|
195
175
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -259,31 +239,6 @@ module Google
|
|
259
239
|
end
|
260
240
|
end
|
261
241
|
|
262
|
-
# The response message for Operations.ListOperations.
|
263
|
-
class ListOperationsResponse
|
264
|
-
include Google::Apis::Core::Hashable
|
265
|
-
|
266
|
-
# The standard List next-page token.
|
267
|
-
# Corresponds to the JSON property `nextPageToken`
|
268
|
-
# @return [String]
|
269
|
-
attr_accessor :next_page_token
|
270
|
-
|
271
|
-
# A list of operations that matches the specified filter in the request.
|
272
|
-
# Corresponds to the JSON property `operations`
|
273
|
-
# @return [Array<Google::Apis::BigqueryreservationV1::Operation>]
|
274
|
-
attr_accessor :operations
|
275
|
-
|
276
|
-
def initialize(**args)
|
277
|
-
update!(**args)
|
278
|
-
end
|
279
|
-
|
280
|
-
# Update properties of this object
|
281
|
-
def update!(**args)
|
282
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
283
|
-
@operations = args[:operations] if args.key?(:operations)
|
284
|
-
end
|
285
|
-
end
|
286
|
-
|
287
242
|
# The response for ReservationService.ListReservations.
|
288
243
|
class ListReservationsResponse
|
289
244
|
include Google::Apis::Core::Hashable
|
@@ -355,68 +310,6 @@ module Google
|
|
355
310
|
end
|
356
311
|
end
|
357
312
|
|
358
|
-
# This resource represents a long-running operation that is the result of a
|
359
|
-
# network API call.
|
360
|
-
class Operation
|
361
|
-
include Google::Apis::Core::Hashable
|
362
|
-
|
363
|
-
# If the value is `false`, it means the operation is still in progress. If `true`
|
364
|
-
# , the operation is completed, and either `error` or `response` is available.
|
365
|
-
# Corresponds to the JSON property `done`
|
366
|
-
# @return [Boolean]
|
367
|
-
attr_accessor :done
|
368
|
-
alias_method :done?, :done
|
369
|
-
|
370
|
-
# The `Status` type defines a logical error model that is suitable for different
|
371
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
372
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
373
|
-
# data: error code, error message, and error details. You can find out more
|
374
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
375
|
-
# //cloud.google.com/apis/design/errors).
|
376
|
-
# Corresponds to the JSON property `error`
|
377
|
-
# @return [Google::Apis::BigqueryreservationV1::Status]
|
378
|
-
attr_accessor :error
|
379
|
-
|
380
|
-
# Service-specific metadata associated with the operation. It typically contains
|
381
|
-
# progress information and common metadata such as create time. Some services
|
382
|
-
# might not provide such metadata. Any method that returns a long-running
|
383
|
-
# operation should document the metadata type, if any.
|
384
|
-
# Corresponds to the JSON property `metadata`
|
385
|
-
# @return [Hash<String,Object>]
|
386
|
-
attr_accessor :metadata
|
387
|
-
|
388
|
-
# The server-assigned name, which is only unique within the same service that
|
389
|
-
# originally returns it. If you use the default HTTP mapping, the `name` should
|
390
|
-
# be a resource name ending with `operations/`unique_id``.
|
391
|
-
# Corresponds to the JSON property `name`
|
392
|
-
# @return [String]
|
393
|
-
attr_accessor :name
|
394
|
-
|
395
|
-
# The normal response of the operation in case of success. If the original
|
396
|
-
# method returns no data on success, such as `Delete`, the response is `google.
|
397
|
-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
398
|
-
# the response should be the resource. For other methods, the response should
|
399
|
-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
400
|
-
# example, if the original method name is `TakeSnapshot()`, the inferred
|
401
|
-
# response type is `TakeSnapshotResponse`.
|
402
|
-
# Corresponds to the JSON property `response`
|
403
|
-
# @return [Hash<String,Object>]
|
404
|
-
attr_accessor :response
|
405
|
-
|
406
|
-
def initialize(**args)
|
407
|
-
update!(**args)
|
408
|
-
end
|
409
|
-
|
410
|
-
# Update properties of this object
|
411
|
-
def update!(**args)
|
412
|
-
@done = args[:done] if args.key?(:done)
|
413
|
-
@error = args[:error] if args.key?(:error)
|
414
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
415
|
-
@name = args[:name] if args.key?(:name)
|
416
|
-
@response = args[:response] if args.key?(:response)
|
417
|
-
end
|
418
|
-
end
|
419
|
-
|
420
313
|
# A reservation is a mechanism used to guarantee slots to users.
|
421
314
|
class Reservation
|
422
315
|
include Google::Apis::Core::Hashable
|
@@ -426,9 +319,10 @@ module Google
|
|
426
319
|
# @return [String]
|
427
320
|
attr_accessor :creation_time
|
428
321
|
|
429
|
-
# If false, any query using this reservation will use idle slots
|
430
|
-
# reservations within the same admin project. If true, a query
|
431
|
-
# reservation will execute with the slot capacity
|
322
|
+
# If false, any query or pipeline job using this reservation will use idle slots
|
323
|
+
# from other reservations within the same admin project. If true, a query or
|
324
|
+
# pipeline job using this reservation will execute with the slot capacity
|
325
|
+
# specified above at most.
|
432
326
|
# Corresponds to the JSON property `ignoreIdleSlots`
|
433
327
|
# @return [Boolean]
|
434
328
|
attr_accessor :ignore_idle_slots
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210423"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,12 +40,6 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class CreateSlotPoolMetadata
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
43
|
class Empty
|
50
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
45
|
|
@@ -64,12 +58,6 @@ module Google
|
|
64
58
|
include Google::Apis::Core::JsonObjectSupport
|
65
59
|
end
|
66
60
|
|
67
|
-
class ListOperationsResponse
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
61
|
class ListReservationsResponse
|
74
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
63
|
|
@@ -88,12 +76,6 @@ module Google
|
|
88
76
|
include Google::Apis::Core::JsonObjectSupport
|
89
77
|
end
|
90
78
|
|
91
|
-
class Operation
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
79
|
class Reservation
|
98
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
81
|
|
@@ -164,13 +146,6 @@ module Google
|
|
164
146
|
end
|
165
147
|
end
|
166
148
|
|
167
|
-
class CreateSlotPoolMetadata
|
168
|
-
# @private
|
169
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
170
|
-
property :slot_pool, as: 'slotPool'
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
149
|
class Empty
|
175
150
|
# @private
|
176
151
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -195,15 +170,6 @@ module Google
|
|
195
170
|
end
|
196
171
|
end
|
197
172
|
|
198
|
-
class ListOperationsResponse
|
199
|
-
# @private
|
200
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
-
property :next_page_token, as: 'nextPageToken'
|
202
|
-
collection :operations, as: 'operations', class: Google::Apis::BigqueryreservationV1::Operation, decorator: Google::Apis::BigqueryreservationV1::Operation::Representation
|
203
|
-
|
204
|
-
end
|
205
|
-
end
|
206
|
-
|
207
173
|
class ListReservationsResponse
|
208
174
|
# @private
|
209
175
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -227,18 +193,6 @@ module Google
|
|
227
193
|
end
|
228
194
|
end
|
229
195
|
|
230
|
-
class Operation
|
231
|
-
# @private
|
232
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
-
property :done, as: 'done'
|
234
|
-
property :error, as: 'error', class: Google::Apis::BigqueryreservationV1::Status, decorator: Google::Apis::BigqueryreservationV1::Status::Representation
|
235
|
-
|
236
|
-
hash :metadata, as: 'metadata'
|
237
|
-
property :name, as: 'name'
|
238
|
-
hash :response, as: 'response'
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
196
|
class Reservation
|
243
197
|
# @private
|
244
198
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,89 +49,10 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
53
|
-
# longer interested in the operation result. It does not cancel the operation.
|
54
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
55
|
-
# UNIMPLEMENTED`.
|
56
|
-
# @param [String] name
|
57
|
-
# The name of the operation resource to be deleted.
|
58
|
-
# @param [String] fields
|
59
|
-
# Selector specifying which fields to include in a partial response.
|
60
|
-
# @param [String] quota_user
|
61
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
-
# @param [Google::Apis::RequestOptions] options
|
64
|
-
# Request-specific options
|
65
|
-
#
|
66
|
-
# @yield [result, err] Result & error if block supplied
|
67
|
-
# @yieldparam result [Google::Apis::BigqueryreservationV1::Empty] parsed result object
|
68
|
-
# @yieldparam err [StandardError] error object if request failed
|
69
|
-
#
|
70
|
-
# @return [Google::Apis::BigqueryreservationV1::Empty]
|
71
|
-
#
|
72
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
77
|
-
command.response_representation = Google::Apis::BigqueryreservationV1::Empty::Representation
|
78
|
-
command.response_class = Google::Apis::BigqueryreservationV1::Empty
|
79
|
-
command.params['name'] = name unless name.nil?
|
80
|
-
command.query['fields'] = fields unless fields.nil?
|
81
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
-
execute_or_queue_command(command, &block)
|
83
|
-
end
|
84
|
-
|
85
|
-
# Lists operations that match the specified filter in the request. If the server
|
86
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
87
|
-
# binding allows API services to override the binding to use different resource
|
88
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
89
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
90
|
-
# service configuration. For backwards compatibility, the default name includes
|
91
|
-
# the operations collection id, however overriding users must ensure the name
|
92
|
-
# binding is the parent resource, without the operations collection id.
|
93
|
-
# @param [String] name
|
94
|
-
# The name of the operation's parent resource.
|
95
|
-
# @param [String] filter
|
96
|
-
# The standard list filter.
|
97
|
-
# @param [Fixnum] page_size
|
98
|
-
# The standard list page size.
|
99
|
-
# @param [String] page_token
|
100
|
-
# The standard list page token.
|
101
|
-
# @param [String] fields
|
102
|
-
# Selector specifying which fields to include in a partial response.
|
103
|
-
# @param [String] quota_user
|
104
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
105
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
106
|
-
# @param [Google::Apis::RequestOptions] options
|
107
|
-
# Request-specific options
|
108
|
-
#
|
109
|
-
# @yield [result, err] Result & error if block supplied
|
110
|
-
# @yieldparam result [Google::Apis::BigqueryreservationV1::ListOperationsResponse] parsed result object
|
111
|
-
# @yieldparam err [StandardError] error object if request failed
|
112
|
-
#
|
113
|
-
# @return [Google::Apis::BigqueryreservationV1::ListOperationsResponse]
|
114
|
-
#
|
115
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
-
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
119
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
120
|
-
command.response_representation = Google::Apis::BigqueryreservationV1::ListOperationsResponse::Representation
|
121
|
-
command.response_class = Google::Apis::BigqueryreservationV1::ListOperationsResponse
|
122
|
-
command.params['name'] = name unless name.nil?
|
123
|
-
command.query['filter'] = filter unless filter.nil?
|
124
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
125
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
126
|
-
command.query['fields'] = fields unless fields.nil?
|
127
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
128
|
-
execute_or_queue_command(command, &block)
|
129
|
-
end
|
130
|
-
|
131
52
|
# Retrieves a BI reservation.
|
132
53
|
# @param [String] name
|
133
54
|
# Required. Name of the requested reservation, for example: `projects/`
|
134
|
-
# project_id`/locations/`location_id`/
|
55
|
+
# project_id`/locations/`location_id`/biReservation`
|
135
56
|
# @param [String] fields
|
136
57
|
# Selector specifying which fields to include in a partial response.
|
137
58
|
# @param [String] quota_user
|
@@ -268,7 +189,7 @@ module Google
|
|
268
189
|
# 0. In order to release BI capacity reservation size must be set to 0.
|
269
190
|
# @param [String] name
|
270
191
|
# The resource name of the singleton BI reservation. Reservation names have the
|
271
|
-
# form `projects/`project_id`/locations/`location_id`/
|
192
|
+
# form `projects/`project_id`/locations/`location_id`/biReservation`.
|
272
193
|
# @param [Google::Apis::BigqueryreservationV1::BiReservation] bi_reservation_object
|
273
194
|
# @param [String] update_mask
|
274
195
|
# A list of fields to be updated in this request.
|
@@ -307,6 +228,11 @@ module Google
|
|
307
228
|
# Required. Resource name of the parent reservation. E.g., `projects/myproject/
|
308
229
|
# locations/US`
|
309
230
|
# @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
|
231
|
+
# @param [String] capacity_commitment_id
|
232
|
+
# The optional capacity commitment ID. Capacity commitment name will be
|
233
|
+
# generated automatically if this field is empty. This field must only contain
|
234
|
+
# lower case alphanumeric characters or dash. Max length is 64 characters. NOTE:
|
235
|
+
# this ID won't be kept if the capacity commitment is split or merged.
|
310
236
|
# @param [Boolean] enforce_single_admin_project_per_org
|
311
237
|
# If true, fail the request if another project in the organization has a
|
312
238
|
# capacity commitment.
|
@@ -327,13 +253,14 @@ module Google
|
|
327
253
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
328
254
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
329
255
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
330
|
-
def create_project_location_capacity_commitment(parent, capacity_commitment_object = nil, enforce_single_admin_project_per_org: nil, fields: nil, quota_user: nil, options: nil, &block)
|
256
|
+
def create_project_location_capacity_commitment(parent, capacity_commitment_object = nil, capacity_commitment_id: nil, enforce_single_admin_project_per_org: nil, fields: nil, quota_user: nil, options: nil, &block)
|
331
257
|
command = make_simple_command(:post, 'v1/{+parent}/capacityCommitments', options)
|
332
258
|
command.request_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
|
333
259
|
command.request_object = capacity_commitment_object
|
334
260
|
command.response_representation = Google::Apis::BigqueryreservationV1::CapacityCommitment::Representation
|
335
261
|
command.response_class = Google::Apis::BigqueryreservationV1::CapacityCommitment
|
336
262
|
command.params['parent'] = parent unless parent.nil?
|
263
|
+
command.query['capacityCommitmentId'] = capacity_commitment_id unless capacity_commitment_id.nil?
|
337
264
|
command.query['enforceSingleAdminProjectPerOrg'] = enforce_single_admin_project_per_org unless enforce_single_admin_project_per_org.nil?
|
338
265
|
command.query['fields'] = fields unless fields.nil?
|
339
266
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -743,15 +670,22 @@ module Google
|
|
743
670
|
# levels. Example: * The organization `organizationA` contains two projects, `
|
744
671
|
# project1` and `project2`. * Assignments for all three entities (`organizationA`
|
745
672
|
# , `project1`, and `project2`) could all be created and mapped to the same or
|
746
|
-
# different reservations.
|
747
|
-
#
|
748
|
-
#
|
749
|
-
# Code.
|
750
|
-
#
|
673
|
+
# different reservations. "None" assignments represent an absence of the
|
674
|
+
# assignment. Projects assigned to None use on-demand pricing. To create a "None"
|
675
|
+
# assignment, use "none" as a reservation_id in the parent. Example parent: `
|
676
|
+
# projects/myproject/locations/US/reservations/none`. Returns `google.rpc.Code.
|
677
|
+
# PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the
|
678
|
+
# project using the reservation and the project that owns this reservation.
|
679
|
+
# Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
|
680
|
+
# does not match location of the reservation.
|
751
681
|
# @param [String] parent
|
752
682
|
# Required. The parent resource name of the assignment E.g. `projects/myproject/
|
753
683
|
# locations/US/reservations/team1-prod`
|
754
684
|
# @param [Google::Apis::BigqueryreservationV1::Assignment] assignment_object
|
685
|
+
# @param [String] assignment_id
|
686
|
+
# The optional assignment ID. Assignment name will be generated automatically if
|
687
|
+
# this field is empty. This field must only contain lower case alphanumeric
|
688
|
+
# characters or dash. Max length is 64 characters.
|
755
689
|
# @param [String] fields
|
756
690
|
# Selector specifying which fields to include in a partial response.
|
757
691
|
# @param [String] quota_user
|
@@ -769,13 +703,14 @@ module Google
|
|
769
703
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
770
704
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
771
705
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
772
|
-
def create_project_location_reservation_assignment(parent, assignment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
706
|
+
def create_project_location_reservation_assignment(parent, assignment_object = nil, assignment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
773
707
|
command = make_simple_command(:post, 'v1/{+parent}/assignments', options)
|
774
708
|
command.request_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
|
775
709
|
command.request_object = assignment_object
|
776
710
|
command.response_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
|
777
711
|
command.response_class = Google::Apis::BigqueryreservationV1::Assignment
|
778
712
|
command.params['parent'] = parent unless parent.nil?
|
713
|
+
command.query['assignmentId'] = assignment_id unless assignment_id.nil?
|
779
714
|
command.query['fields'] = fields unless fields.nil?
|
780
715
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
781
716
|
execute_or_queue_command(command, &block)
|
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.6.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: 2021-
|
11
|
+
date: 2021-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigqueryreservation_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for BigQuery Reservation API V1
|