google-apis-bigqueryreservation_v1 0.15.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: 69cf129f6eb75f68b6ca0306326bba52d71435d80b15bbdb9cdcf1609a111199
4
- data.tar.gz: 1ede39844964b92eec12c89e8f5a7742908eed39e187e3942920ff6d7dd336bc
3
+ metadata.gz: a84dd6fe03a15772fb5cfdf90044957408c7fe148a176f68720068ff1e0848c8
4
+ data.tar.gz: fe41aa84af68ecf78f33c66f8fc4ae456de0199da59e80f5b67cbbbd8072c76e
5
5
  SHA512:
6
- metadata.gz: cfd66a339bace1690f95875e5756518507be987f7f7af761fceec782d2de5d484cd7fc61ce09dd0c3c0626f56855db5eb98937590395f86a8d2ce837644975df
7
- data.tar.gz: a76f5728e71cb9e6526ae48399b9405e10a815e330caedf5ae7e119cf56d212261b652118bc9e1308fee67978264b28cb531ecd8eee12300846c125fee136603
6
+ metadata.gz: 465f11cc3dd23d705f10b43087f9810863bfc2e85433c82244b410ebca5146ec89191b1899bbe14dfb9d5d7b0dc0498d01c84a131a45497a1567f1c81861de14
7
+ data.tar.gz: 3bace61cde1f9d15c27f2920ee6ff0fe239b72a408672506993ce6871e9a78f714d5f6322ff1ef18bd7411bce13a2980d9fc0ab68edf8a6e3caec0707fee759c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.15.0 (2022-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20220319
@@ -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]
@@ -361,9 +367,9 @@ module Google
361
367
  alias_method :multi_region_auxiliary?, :multi_region_auxiliary
362
368
 
363
369
  # The resource name of the reservation, e.g., `projects/*/locations/*/
364
- # reservations/team1-prod`. For the reservation id, it must only contain lower
365
- # case alphanumeric characters or dashes.It must start with a letter and must
366
- # 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.
367
373
  # Corresponds to the JSON property `name`
368
374
  # @return [String]
369
375
  attr_accessor :name
@@ -371,10 +377,10 @@ module Google
371
377
  # Minimum slots available to this reservation. A slot is a unit of computational
372
378
  # power in BigQuery, and serves as the unit of parallelism. Queries using this
373
379
  # reservation might use more slots during runtime if ignore_idle_slots is set to
374
- # 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
375
381
  # capacity or if total slot capacity of the new reservation and its siblings
376
382
  # exceeds the project's slot capacity, the request will fail with `google.rpc.
377
- # 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,
378
384
  # slot capacity constraints are checked separately for default and auxiliary
379
385
  # regions. See multi_region_auxiliary flag for more details.
380
386
  # Corresponds to the JSON property `slotCapacity`
@@ -546,6 +552,38 @@ module Google
546
552
  @message = args[:message] if args.key?(:message)
547
553
  end
548
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
549
587
  end
550
588
  end
551
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.15.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 = "20220319"
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
@@ -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.15.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-03-28 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.15.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: []