google-apis-bigqueryreservation_v1 0.15.0 → 0.18.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: 213f5af714531003053f5337e0270396843b81629c373c7741ed2c4a17b78a94
4
+ data.tar.gz: 4ce6e2aa3838df0c975fa242307387470c09185e1b45f75ea4d9e3ef0b84393a
5
5
  SHA512:
6
- metadata.gz: cfd66a339bace1690f95875e5756518507be987f7f7af761fceec782d2de5d484cd7fc61ce09dd0c3c0626f56855db5eb98937590395f86a8d2ce837644975df
7
- data.tar.gz: a76f5728e71cb9e6526ae48399b9405e10a815e330caedf5ae7e119cf56d212261b652118bc9e1308fee67978264b28cb531ecd8eee12300846c125fee136603
6
+ metadata.gz: 7f0cd5cd467ffc265bcfe87f8c5612e2f5bcec14b30525e55eabee479fb545f92a784a7801e5ae23781aee55a98626eb06a8c5ee81eacad96fd52a6e76bf7c56
7
+ data.tar.gz: ac88f5632e0729dcf985e96ba98c9fed690bde88c717ba5064cb72cf2733ec8f8b877df232b0d619c5a7f64ad767e471470fd8ed3ca7ba051f573d63927d6b83
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.18.0 (2022-06-02)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.17.0 (2022-05-18)
8
+
9
+ * Regenerated from discovery document revision 20220511
10
+
11
+ ### v0.16.0 (2022-04-22)
12
+
13
+ * Regenerated from discovery document revision 20220415
14
+
3
15
  ### v0.15.0 (2022-03-24)
4
16
 
5
17
  * 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,12 +377,11 @@ 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
375
- # capacity or if total slot capacity of the new reservation and its siblings
376
- # 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
378
- # slot capacity constraints are checked separately for default and auxiliary
379
- # 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.
380
385
  # Corresponds to the JSON property `slotCapacity`
381
386
  # @return [Fixnum]
382
387
  attr_accessor :slot_capacity
@@ -546,6 +551,38 @@ module Google
546
551
  @message = args[:message] if args.key?(:message)
547
552
  end
548
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
549
586
  end
550
587
  end
551
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.15.0"
19
+ GEM_VERSION = "0.18.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 = "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.15.0
4
+ version: 0.18.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-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.18.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery Reservation API V1