google-apis-bigqueryreservation_v1 0.14.0 → 0.17.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: 0bc0814465153a348da48f23e1d3edf4d678fc347fe8df1170da359e18b941d6
4
- data.tar.gz: 26f7e641c95bf364d571f38da8eb60e3013345483f8d447c86fdbbfc39b7bf12
3
+ metadata.gz: c80c549aa054729e3296a5c8ba10767cd5bfc5f2edf9bc6e309cf3232424f4bc
4
+ data.tar.gz: 6224c01a293f020cd1e5d1ce025fcf4407bb97e77334357d6105b8b22bf0733d
5
5
  SHA512:
6
- metadata.gz: '08f32f758d286200283d5f6b670f732554b9a76108edb5e288ef492ebbd1df4f0f24dbf9b807d2874abddfc59e12b46fb9c0a476d4a6e2f186f3934631ef1528'
7
- data.tar.gz: 334f013f5d618881eeb94a08d7f41a63e2f67c31cb8606e9158e40b2dc4e2f1df1460e6529f5b39aa4d39c445ea8f4b4df166b69649d83a61d2613e96792b042
6
+ metadata.gz: 6137100fd3ef3cc0ace4dbbb300ffce40d635b4a4996a5b6264c30e509991e07519b340ea6e93726be2cb1549d679e2bebf2b3652f67fbd9766a48ada9217b1b
7
+ data.tar.gz: b92a95bd203a0db6750d4b633b57aa27c606405f89fcb991704674426a2438357437a9dd83b592f1b12ddb26c21b0f68a723361b0c980ebb53885cca98d29809
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.17.0 (2022-05-18)
4
+
5
+ * Regenerated from discovery document revision 20220511
6
+
7
+ ### v0.16.0 (2022-04-22)
8
+
9
+ * Regenerated from discovery document revision 20220415
10
+
11
+ ### v0.15.0 (2022-03-24)
12
+
13
+ * Regenerated from discovery document revision 20220319
14
+
3
15
  ### v0.14.0 (2022-03-03)
4
16
 
5
17
  * Regenerated from discovery document revision 20220226
@@ -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
 
@@ -362,9 +367,9 @@ module Google
362
367
  alias_method :multi_region_auxiliary?, :multi_region_auxiliary
363
368
 
364
369
  # The resource name of the reservation, e.g., `projects/*/locations/*/
365
- # reservations/team1-prod`. For the reservation id, it must only contain lower
366
- # case alphanumeric characters or dashes.It must start with a letter and must
367
- # 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.
368
373
  # Corresponds to the JSON property `name`
369
374
  # @return [String]
370
375
  attr_accessor :name
@@ -372,12 +377,11 @@ module Google
372
377
  # Minimum slots available to this reservation. A slot is a unit of computational
373
378
  # power in BigQuery, and serves as the unit of parallelism. Queries using this
374
379
  # reservation might use more slots during runtime if ignore_idle_slots is set to
375
- # false. If the new reservation's slot capacity exceed the project's slot
376
- # capacity or if total slot capacity of the new reservation and its siblings
377
- # exceeds the project's slot capacity, the request will fail with `google.rpc.
378
- # Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-regions
379
- # slot capacity constraints are checked separately for default and auxiliary
380
- # regions. See multi_region_auxiliary flag for more details.
380
+ # false. If total slot_capacity of the reservation and its siblings exceeds the
381
+ # total slot_count of all capacity commitments, the request will fail with `
382
+ # google.rpc.Code.RESOURCE_EXHAUSTED`. NOTE: for reservations in US or EU multi-
383
+ # regions, slot capacity constraints are checked separately for default and
384
+ # auxiliary regions. See multi_region_auxiliary flag for more details.
381
385
  # Corresponds to the JSON property `slotCapacity`
382
386
  # @return [Fixnum]
383
387
  attr_accessor :slot_capacity
@@ -547,6 +551,38 @@ module Google
547
551
  @message = args[:message] if args.key?(:message)
548
552
  end
549
553
  end
554
+
555
+ # Fully qualified reference to BigQuery table. Internally stored as google.cloud.
556
+ # bi.v1.BqTableReference.
557
+ class TableReference
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # The ID of the dataset in the above project.
561
+ # Corresponds to the JSON property `datasetId`
562
+ # @return [String]
563
+ attr_accessor :dataset_id
564
+
565
+ # The assigned project ID of the project.
566
+ # Corresponds to the JSON property `projectId`
567
+ # @return [String]
568
+ attr_accessor :project_id
569
+
570
+ # The ID of the table in the above dataset.
571
+ # Corresponds to the JSON property `tableId`
572
+ # @return [String]
573
+ attr_accessor :table_id
574
+
575
+ def initialize(**args)
576
+ update!(**args)
577
+ end
578
+
579
+ # Update properties of this object
580
+ def update!(**args)
581
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
582
+ @project_id = args[:project_id] if args.key?(:project_id)
583
+ @table_id = args[:table_id] if args.key?(:table_id)
584
+ end
585
+ end
550
586
  end
551
587
  end
552
588
  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.14.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 = "20220226"
25
+ REVISION = "20220511"
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
@@ -250,6 +258,15 @@ module Google
250
258
  property :message, as: 'message'
251
259
  end
252
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
253
270
  end
254
271
  end
255
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.14.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-03-07 00:00:00.000000000 Z
11
+ date: 2022-05-23 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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.17.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: []