google-apis-bigqueryreservation_v1 0.3.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0a6fd144b9e201879aec8250c552c770b16bdf311a2245549437f34784ef233
4
- data.tar.gz: 556da34070fec416b19674bf14c72cc8e877bf868b4cef72f5ce0dd89d46c64c
3
+ metadata.gz: ec6fdedc10e888c38f188e3b5fed76ef0226c49b185ee638c8b8c5b0a12d14ec
4
+ data.tar.gz: 5e7794d563241f4270363d5cb929a5941ca68796c5da466e9b51dcfa1e95a63a
5
5
  SHA512:
6
- metadata.gz: b81bc52272b64b9e6c539b071a48edce703cfd7e223a3019e0bacc792755f3689cd53404335e51db110f3a5ef9a7ffae8ad64d4bbe519b12461a2419596fb621
7
- data.tar.gz: 505f98398a5412b693929eee4c1bf3051a71fa879fff0a492b51afe2f332de919fac205fc55f65e6a73ea4921f6ecfbdf162596969e8919ff763440ad5639424
6
+ metadata.gz: e22ca4ba92bbc9cf02bb7c1581cb527672f1375b1e993fb87cb5a6875f76cef72b94a9c64483e1b935152ba92a88a8e478489468981c579e60c0907b2a9fe935
7
+ data.tar.gz: 2df1d6ee7c36ce81cd95afe82a087cabae5afe141a6d5d7916d5738b1377f651c3cb043692bf6da1a622386f3e5b5b1247d8244af1972f11cdbb6fc66d0f5664
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.7.0 (2021-06-24)
8
+
9
+ * Regenerated using generator version 0.3.0
10
+
11
+ ### v0.6.0 (2021-05-19)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.5.0 (2021-04-29)
16
+
17
+ * Regenerated from discovery document revision 20210423
18
+
19
+ ### v0.4.0 (2021-03-31)
20
+
21
+ * Regenerated from discovery document revision 20210324
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.3.0 (2021-03-04)
4
25
 
5
26
  * Unspecified changes
@@ -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
- # View and manage your data across Google Cloud Platform services
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
@@ -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 from other
430
- # reservations within the same admin project. If true, a query using this
431
- # reservation will execute with the slot capacity specified above at most.
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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210217"
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,85 +49,6 @@ 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/`
@@ -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?
@@ -755,6 +682,10 @@ module Google
755
682
  # Required. The parent resource name of the assignment E.g. `projects/myproject/
756
683
  # locations/US/reservations/team1-prod`
757
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.
758
689
  # @param [String] fields
759
690
  # Selector specifying which fields to include in a partial response.
760
691
  # @param [String] quota_user
@@ -772,13 +703,14 @@ module Google
772
703
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
773
704
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
774
705
  # @raise [Google::Apis::AuthorizationError] Authorization is required
775
- 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)
776
707
  command = make_simple_command(:post, 'v1/{+parent}/assignments', options)
777
708
  command.request_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
778
709
  command.request_object = assignment_object
779
710
  command.response_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
780
711
  command.response_class = Google::Apis::BigqueryreservationV1::Assignment
781
712
  command.params['parent'] = parent unless parent.nil?
713
+ command.query['assignmentId'] = assignment_id unless assignment_id.nil?
782
714
  command.query['fields'] = fields unless fields.nil?
783
715
  command.query['quotaUser'] = quota_user unless quota_user.nil?
784
716
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigqueryreservation_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-03-08 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for BigQuery Reservation API V1. Simple
28
34
  REST clients are Ruby client libraries that provide access to Google services via
29
35
  their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigqueryreservation_v1
57
63
  post_install_message:
58
64
  rdoc_options: []
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
71
77
  requirements: []
72
- rubygems_version: 3.2.13
78
+ rubygems_version: 3.2.17
73
79
  signing_key:
74
80
  specification_version: 4
75
81
  summary: Simple REST client for BigQuery Reservation API V1