google-apis-bigqueryreservation_v1beta1 0.2.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54af989341e9ece680a326c80fea9e917b7ca3a850fe44dea3b53a92280474e7
4
- data.tar.gz: 6ec5aee48369908bea88b4cebc928179365003cc2cbe3d5cb3327c0f49bff0e6
3
+ metadata.gz: b81d2ac984695b150a059f1a6f2b3867b1f70316c09f253ffb3e225bf41b708a
4
+ data.tar.gz: 384bdbe0e4b003d6aac7725ccf445e333f5437d15971311d190e10b97d853192
5
5
  SHA512:
6
- metadata.gz: b279db56db7d5c6d71243a8fd8a9b7ea602677a3284ad08c6bbd52738874a3498c70286ae7f01445a251803762eec5d85777c798b24acd4e00331a8780455219
7
- data.tar.gz: 8a1a2862e7d24b9bcfa483407d0ae6b5929d5bbb95a55f91688c58ebe98198cc4e5d0b5ad2c973fccb1f2b12c8a0174cbbf9f9ba7cc5e00c5efd160966c56523
6
+ metadata.gz: d09a70cd78e18be9711c635957200e284a710383d8834d5301be99bdbf24bf0a383015e2d26ca8cd26528d3196ebaacec8a12d139fee67daf9742522b377a8e0
7
+ data.tar.gz: ad6737ca6287e35b99f40979f9903184a0457f23fbfcdc6ce6f4cc6a548cc6ce8bf957c86d286ee025282571d182e12b5f7d2e8560751064f058caba253a940c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1beta1
2
2
 
3
+ ### v0.7.0 (2021-06-14)
4
+
5
+ * Regenerated from discovery document revision 20210607
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.6.0 (2021-05-19)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.5.0 (2021-04-29)
13
+
14
+ * Regenerated from discovery document revision 20210423
15
+
16
+ ### v0.4.0 (2021-03-31)
17
+
18
+ * Regenerated from discovery document revision 20210324
19
+ * Regenerated using generator version 0.2.0
20
+
21
+ ### v0.3.0 (2021-03-04)
22
+
23
+ * Unspecified changes
24
+
3
25
  ### v0.2.0 (2021-02-24)
4
26
 
5
27
  * Regenerated from discovery document revision 20210217
@@ -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.
@@ -347,13 +327,6 @@ module Google
347
327
  attr_accessor :ignore_idle_slots
348
328
  alias_method :ignore_idle_slots?, :ignore_idle_slots
349
329
 
350
- # Maximum number of queries that are allowed to run concurrently in this
351
- # reservation. Default value is 0 which means that maximum concurrency will be
352
- # automatically set based on the reservation size.
353
- # Corresponds to the JSON property `maxConcurrency`
354
- # @return [Fixnum]
355
- attr_accessor :max_concurrency
356
-
357
330
  # The resource name of the reservation, e.g., `projects/*/locations/*/
358
331
  # reservations/team1-prod`.
359
332
  # Corresponds to the JSON property `name`
@@ -384,7 +357,6 @@ module Google
384
357
  def update!(**args)
385
358
  @creation_time = args[:creation_time] if args.key?(:creation_time)
386
359
  @ignore_idle_slots = args[:ignore_idle_slots] if args.key?(:ignore_idle_slots)
387
- @max_concurrency = args[:max_concurrency] if args.key?(:max_concurrency)
388
360
  @name = args[:name] if args.key?(:name)
389
361
  @slot_capacity = args[:slot_capacity] if args.key?(:slot_capacity)
390
362
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryreservationV1beta1
18
18
  # Version of the google-apis-bigqueryreservation_v1beta1 gem
19
- GEM_VERSION = "0.2.0"
19
+ GEM_VERSION = "0.7.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.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210217"
25
+ REVISION = "20210607"
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
 
@@ -146,13 +140,6 @@ module Google
146
140
  end
147
141
  end
148
142
 
149
- class CreateSlotPoolMetadata
150
- # @private
151
- class Representation < Google::Apis::Core::JsonRepresentation
152
- property :slot_pool, as: 'slotPool'
153
- end
154
- end
155
-
156
143
  class Empty
157
144
  # @private
158
145
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -205,7 +192,6 @@ module Google
205
192
  class Representation < Google::Apis::Core::JsonRepresentation
206
193
  property :creation_time, as: 'creationTime'
207
194
  property :ignore_idle_slots, as: 'ignoreIdleSlots'
208
- property :max_concurrency, :numeric_string => true, as: 'maxConcurrency'
209
195
  property :name, as: 'name'
210
196
  property :slot_capacity, :numeric_string => true, as: 'slotCapacity'
211
197
  property :update_time, as: 'updateTime'
@@ -177,6 +177,11 @@ module Google
177
177
  # Required. Resource name of the parent reservation. E.g., `projects/myproject/
178
178
  # locations/US`
179
179
  # @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object
180
+ # @param [String] capacity_commitment_id
181
+ # The optional capacity commitment ID. Capacity commitment name will be
182
+ # generated automatically if this field is empty. This field must only contain
183
+ # lower case alphanumeric characters or dash. Max length is 64 characters. NOTE:
184
+ # this ID won't be kept if the capacity commitment is split or merged.
180
185
  # @param [Boolean] enforce_single_admin_project_per_org
181
186
  # If true, fail the request if another project in the organization has a
182
187
  # capacity commitment.
@@ -197,13 +202,14 @@ module Google
197
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
198
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
199
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
200
- 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)
205
+ 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)
201
206
  command = make_simple_command(:post, 'v1beta1/{+parent}/capacityCommitments', options)
202
207
  command.request_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
203
208
  command.request_object = capacity_commitment_object
204
209
  command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation
205
210
  command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment
206
211
  command.params['parent'] = parent unless parent.nil?
212
+ command.query['capacityCommitmentId'] = capacity_commitment_id unless capacity_commitment_id.nil?
207
213
  command.query['enforceSingleAdminProjectPerOrg'] = enforce_single_admin_project_per_org unless enforce_single_admin_project_per_org.nil?
208
214
  command.query['fields'] = fields unless fields.nil?
209
215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -631,6 +637,10 @@ module Google
631
637
  # Required. The parent resource name of the assignment E.g. `projects/myproject/
632
638
  # locations/US/reservations/team1-prod`
633
639
  # @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object
640
+ # @param [String] assignment_id
641
+ # The optional assignment ID. Assignment name will be generated automatically if
642
+ # this field is empty. This field must only contain lower case alphanumeric
643
+ # characters or dash. Max length is 64 characters.
634
644
  # @param [String] fields
635
645
  # Selector specifying which fields to include in a partial response.
636
646
  # @param [String] quota_user
@@ -648,13 +658,14 @@ module Google
648
658
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
659
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
660
  # @raise [Google::Apis::AuthorizationError] Authorization is required
651
- def create_project_location_reservation_assignment(parent, assignment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
661
+ def create_project_location_reservation_assignment(parent, assignment_object = nil, assignment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
652
662
  command = make_simple_command(:post, 'v1beta1/{+parent}/assignments', options)
653
663
  command.request_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
654
664
  command.request_object = assignment_object
655
665
  command.response_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
656
666
  command.response_class = Google::Apis::BigqueryreservationV1beta1::Assignment
657
667
  command.params['parent'] = parent unless parent.nil?
668
+ command.query['assignmentId'] = assignment_id unless assignment_id.nil?
658
669
  command.query['fields'] = fields unless fields.nil?
659
670
  command.query['quotaUser'] = quota_user unless quota_user.nil?
660
671
  execute_or_queue_command(command, &block)
@@ -779,6 +790,43 @@ module Google
779
790
  command.query['quotaUser'] = quota_user unless quota_user.nil?
780
791
  execute_or_queue_command(command, &block)
781
792
  end
793
+
794
+ # Updates an existing assignment. Only the `priority` field can be updated.
795
+ # @param [String] name
796
+ # Output only. Name of the resource. E.g.: `projects/myproject/locations/US/
797
+ # reservations/team1-prod/assignments/123`.
798
+ # @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object
799
+ # @param [String] update_mask
800
+ # Standard field mask for the set of fields to be updated.
801
+ # @param [String] fields
802
+ # Selector specifying which fields to include in a partial response.
803
+ # @param [String] quota_user
804
+ # Available to use for quota purposes for server-side applications. Can be any
805
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
806
+ # @param [Google::Apis::RequestOptions] options
807
+ # Request-specific options
808
+ #
809
+ # @yield [result, err] Result & error if block supplied
810
+ # @yieldparam result [Google::Apis::BigqueryreservationV1beta1::Assignment] parsed result object
811
+ # @yieldparam err [StandardError] error object if request failed
812
+ #
813
+ # @return [Google::Apis::BigqueryreservationV1beta1::Assignment]
814
+ #
815
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
818
+ def patch_project_location_reservation_assignment(name, assignment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
819
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
820
+ command.request_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
821
+ command.request_object = assignment_object
822
+ command.response_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
823
+ command.response_class = Google::Apis::BigqueryreservationV1beta1::Assignment
824
+ command.params['name'] = name unless name.nil?
825
+ command.query['updateMask'] = update_mask unless update_mask.nil?
826
+ command.query['fields'] = fields unless fields.nil?
827
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
828
+ execute_or_queue_command(command, &block)
829
+ end
782
830
 
783
831
  protected
784
832
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigqueryreservation_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.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-01 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigqueryreservation_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1beta1/v0.2.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1beta1/v0.7.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigqueryreservation_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.11
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for BigQuery Reservation API V1beta1