google-apis-bigqueryreservation_v1 0.13.0 → 0.16.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: 63b440e447fe66933a756948edb085755bdf3c01cf6ea7998dc448a50ad74e35
4
- data.tar.gz: feaac55222b33d928568b318ad27fadbeca19aeb098d9f3a87152f3118b79606
3
+ metadata.gz: a84dd6fe03a15772fb5cfdf90044957408c7fe148a176f68720068ff1e0848c8
4
+ data.tar.gz: fe41aa84af68ecf78f33c66f8fc4ae456de0199da59e80f5b67cbbbd8072c76e
5
5
  SHA512:
6
- metadata.gz: e2561b9b8c03967879aa8c177eed87e4bdf3aa31d14b61042ecaa2b76cf4289d43de20cc1aff6e94fa31671d227ca7b33425be90b37763708eebcd6a93a51dcf
7
- data.tar.gz: 7f5850dbc785de2cb989d8928f15eb076704987c872c5ce046b23cfcd28307835f36d4b78e93db058c49d67ed0d1315c2c571f8999b9e5a6a1efdd4dd7309324
6
+ metadata.gz: 465f11cc3dd23d705f10b43087f9810863bfc2e85433c82244b410ebca5146ec89191b1899bbe14dfb9d5d7b0dc0498d01c84a131a45497a1567f1c81861de14
7
+ data.tar.gz: 3bace61cde1f9d15c27f2920ee6ff0fe239b72a408672506993ce6871e9a78f714d5f6322ff1ef18bd7411bce13a2980d9fc0ab68edf8a6e3caec0707fee759c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.16.0 (2022-04-22)
4
+
5
+ * Regenerated from discovery document revision 20220415
6
+
7
+ ### v0.15.0 (2022-03-24)
8
+
9
+ * Regenerated from discovery document revision 20220319
10
+
11
+ ### v0.14.0 (2022-03-03)
12
+
13
+ * Regenerated from discovery document revision 20220226
14
+
3
15
  ### v0.13.0 (2022-02-17)
4
16
 
5
17
  * Regenerated from discovery document revision 20220212
@@ -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`. For the assignment id, it must only
43
- # contain lower case alphanumeric characters or dashes and the max length is 64
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::BigqueryreservationV1::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` For the commitment id, it must
142
- # only contain lower case alphanumeric characters or dashes.It must start with a
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]
@@ -188,8 +194,7 @@ module Google
188
194
  # A generic empty message that you can re-use to avoid defining duplicated empty
189
195
  # messages in your APIs. A typical example is to use it as the request or the
190
196
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
191
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
192
- # `Empty` is empty JSON object ````.
197
+ # protobuf.Empty) returns (google.protobuf.Empty); `
193
198
  class Empty
194
199
  include Google::Apis::Core::Hashable
195
200
 
@@ -329,6 +334,14 @@ module Google
329
334
  class Reservation
330
335
  include Google::Apis::Core::Hashable
331
336
 
337
+ # Maximum number of queries that are allowed to run concurrently in this
338
+ # reservation. This is a soft limit due to asynchronous nature of the system and
339
+ # various optimizations for small queries. Default value is 0 which means that
340
+ # concurrency will be automatically set based on the reservation size.
341
+ # Corresponds to the JSON property `concurrency`
342
+ # @return [Fixnum]
343
+ attr_accessor :concurrency
344
+
332
345
  # Output only. Creation time of the reservation.
333
346
  # Corresponds to the JSON property `creationTime`
334
347
  # @return [String]
@@ -354,9 +367,9 @@ module Google
354
367
  alias_method :multi_region_auxiliary?, :multi_region_auxiliary
355
368
 
356
369
  # The resource name of the reservation, e.g., `projects/*/locations/*/
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.
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.
360
373
  # Corresponds to the JSON property `name`
361
374
  # @return [String]
362
375
  attr_accessor :name
@@ -364,10 +377,10 @@ module Google
364
377
  # Minimum slots available to this reservation. A slot is a unit of computational
365
378
  # power in BigQuery, and serves as the unit of parallelism. Queries using this
366
379
  # reservation might use more slots during runtime if ignore_idle_slots is set to
367
- # false. If the new reservation's slot capacity exceed the project's slot
380
+ # false. If the new reservation's slot capacity exceeds the project's slot
368
381
  # capacity or if total slot capacity of the new reservation and its siblings
369
382
  # 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
383
+ # Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions,
371
384
  # slot capacity constraints are checked separately for default and auxiliary
372
385
  # regions. See multi_region_auxiliary flag for more details.
373
386
  # Corresponds to the JSON property `slotCapacity`
@@ -385,6 +398,7 @@ module Google
385
398
 
386
399
  # Update properties of this object
387
400
  def update!(**args)
401
+ @concurrency = args[:concurrency] if args.key?(:concurrency)
388
402
  @creation_time = args[:creation_time] if args.key?(:creation_time)
389
403
  @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
390
404
  @multi_region_auxiliary = args[:multi_region_auxiliary] if args.key?(:multi_region_auxiliary)
@@ -538,6 +552,38 @@ module Google
538
552
  @message = args[:message] if args.key?(:message)
539
553
  end
540
554
  end
555
+
556
+ # Fully qualified reference to BigQuery table. Internally stored as google.cloud.
557
+ # bi.v1.BqTableReference.
558
+ class TableReference
559
+ include Google::Apis::Core::Hashable
560
+
561
+ # The ID of the dataset in the above project.
562
+ # Corresponds to the JSON property `datasetId`
563
+ # @return [String]
564
+ attr_accessor :dataset_id
565
+
566
+ # The assigned project ID of the project.
567
+ # Corresponds to the JSON property `projectId`
568
+ # @return [String]
569
+ attr_accessor :project_id
570
+
571
+ # The ID of the table in the above dataset.
572
+ # Corresponds to the JSON property `tableId`
573
+ # @return [String]
574
+ attr_accessor :table_id
575
+
576
+ def initialize(**args)
577
+ update!(**args)
578
+ end
579
+
580
+ # Update properties of this object
581
+ def update!(**args)
582
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
583
+ @project_id = args[:project_id] if args.key?(:project_id)
584
+ @table_id = args[:table_id] if args.key?(:table_id)
585
+ end
586
+ end
541
587
  end
542
588
  end
543
589
  end
@@ -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.13.0"
19
+ GEM_VERSION = "0.16.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 = "20220212"
25
+ REVISION = "20220415"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,12 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class TableReference
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
115
121
  class Assignment
116
122
  # @private
117
123
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -126,6 +132,8 @@ module Google
126
132
  # @private
127
133
  class Representation < Google::Apis::Core::JsonRepresentation
128
134
  property :name, as: 'name'
135
+ collection :preferred_tables, as: 'preferredTables', class: Google::Apis::BigqueryreservationV1::TableReference, decorator: Google::Apis::BigqueryreservationV1::TableReference::Representation
136
+
129
137
  property :size, :numeric_string => true, as: 'size'
130
138
  property :update_time, as: 'updateTime'
131
139
  end
@@ -197,6 +205,7 @@ module Google
197
205
  class Reservation
198
206
  # @private
199
207
  class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :concurrency, :numeric_string => true, as: 'concurrency'
200
209
  property :creation_time, as: 'creationTime'
201
210
  property :ignore_idle_slots, as: 'ignoreIdleSlots'
202
211
  property :multi_region_auxiliary, as: 'multiRegionAuxiliary'
@@ -249,6 +258,15 @@ module Google
249
258
  property :message, as: 'message'
250
259
  end
251
260
  end
261
+
262
+ class TableReference
263
+ # @private
264
+ class Representation < Google::Apis::Core::JsonRepresentation
265
+ property :dataset_id, as: 'datasetId'
266
+ property :project_id, as: 'projectId'
267
+ property :table_id, as: 'tableId'
268
+ end
269
+ end
252
270
  end
253
271
  end
254
272
  end
@@ -418,8 +418,8 @@ module Google
418
418
  # fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
419
419
  # @param [String] name
420
420
  # Output only. The resource name of the capacity commitment, e.g., `projects/
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
421
+ # myproject/locations/US/capacityCommitments/123` The commitment_id must only
422
+ # contain lower case alphanumeric characters or dashes. It must start with a
423
423
  # letter and must not end with a dash. Its maximum length is 64 characters.
424
424
  # @param [Google::Apis::BigqueryreservationV1::CapacityCommitment] capacity_commitment_object
425
425
  # @param [String] update_mask
@@ -457,8 +457,8 @@ module Google
457
457
  # Splits capacity commitment to two commitments of the same plan and `
458
458
  # commitment_end_time`. A common use case is to enable downgrading commitments.
459
459
  # For example, in order to downgrade from 10000 slots to 8000, you might split a
460
- # 10000 capacity commitment into commitments of 2000 and 8000. Then, you would
461
- # change the plan of the first one to `FLEX` and then delete it.
460
+ # 10000 capacity commitment into commitments of 2000 and 8000. Then, you delete
461
+ # the first one after the commitment end time passes.
462
462
  # @param [String] name
463
463
  # Required. The resource name e.g.,: `projects/myproject/locations/US/
464
464
  # capacityCommitments/123`
@@ -498,7 +498,7 @@ module Google
498
498
  # @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
499
499
  # @param [String] reservation_id
500
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
501
+ # dashes. It must start with a letter and must not end with a dash. Its maximum
502
502
  # length is 64 characters.
503
503
  # @param [String] fields
504
504
  # Selector specifying which fields to include in a partial response.
@@ -633,9 +633,9 @@ module Google
633
633
  # Updates an existing reservation resource.
634
634
  # @param [String] name
635
635
  # The resource name of the reservation, e.g., `projects/*/locations/*/
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.
636
+ # reservations/team1-prod`. The reservation_id must only contain lower case
637
+ # alphanumeric characters or dashes. It must start with a letter and must not
638
+ # end with a dash. Its maximum length is 64 characters.
639
639
  # @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
640
640
  # @param [String] update_mask
641
641
  # Standard field mask for the set of fields to be updated.
@@ -846,6 +846,45 @@ module Google
846
846
  command.query['quotaUser'] = quota_user unless quota_user.nil?
847
847
  execute_or_queue_command(command, &block)
848
848
  end
849
+
850
+ # Updates an existing assignment. Only the `priority` field can be updated.
851
+ # @param [String] name
852
+ # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/
853
+ # reservations/team1-prod/assignments/123`. The assignment_id must only contain
854
+ # lower case alphanumeric characters or dashes and the max length is 64
855
+ # characters.
856
+ # @param [Google::Apis::BigqueryreservationV1::Assignment] assignment_object
857
+ # @param [String] update_mask
858
+ # Standard field mask for the set of fields to be updated.
859
+ # @param [String] fields
860
+ # Selector specifying which fields to include in a partial response.
861
+ # @param [String] quota_user
862
+ # Available to use for quota purposes for server-side applications. Can be any
863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
864
+ # @param [Google::Apis::RequestOptions] options
865
+ # Request-specific options
866
+ #
867
+ # @yield [result, err] Result & error if block supplied
868
+ # @yieldparam result [Google::Apis::BigqueryreservationV1::Assignment] parsed result object
869
+ # @yieldparam err [StandardError] error object if request failed
870
+ #
871
+ # @return [Google::Apis::BigqueryreservationV1::Assignment]
872
+ #
873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
876
+ def patch_project_location_reservation_assignment(name, assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
877
+ command = make_simple_command(:patch, 'v1/{+name}', options)
878
+ command.request_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
879
+ command.request_object = assignment_object
880
+ command.response_representation = Google::Apis::BigqueryreservationV1::Assignment::Representation
881
+ command.response_class = Google::Apis::BigqueryreservationV1::Assignment
882
+ command.params['name'] = name unless name.nil?
883
+ command.query['updateMask'] = update_mask unless update_mask.nil?
884
+ command.query['fields'] = fields unless fields.nil?
885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
886
+ execute_or_queue_command(command, &block)
887
+ end
849
888
 
850
889
  protected
851
890
 
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.13.0
4
+ version: 0.16.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-02-21 00:00:00.000000000 Z
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.16.0
62
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: []