google-apis-bigqueryreservation_v1beta1 0.1.0 → 0.6.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: 82e66e5288e7cd34d1d61c31688cedc2a6bac973723ff344c5b9985fd6249893
4
- data.tar.gz: 29e6490a3a4fd7692d7b7c3c26db45f56c286ad25288b5f12c2d4d8f52d8ab2f
3
+ metadata.gz: 3be810b292a09067e671cbb7195a1e0e156562311fae4718f831299e8697a12f
4
+ data.tar.gz: dd46b0cbc0958bdc67f7d1928958b68d8639f41bfe0779db5f72e77941b9f936
5
5
  SHA512:
6
- metadata.gz: 641070884a2605a97ec07e6ab7fd435eb882ee4573e9d7e2e6e42d211f25908b24460fde9b0b3fc255dde95f001aab86a78f4410f725325d4bc7ea278f2b50c6
7
- data.tar.gz: 2403ff0e72f099e4670d6a10778e99177a37983acf5a682b8d6a74d9d5cdde972dbe50ecf07e50d58f417970c53cb184893c9b814618763c732a3bd7bcf3c395
6
+ metadata.gz: 2d3a692bc9011a23b7f9689c6ebd74d2e0bbef32b034f63d0b4b9fdb9493a82f22decf1a1420a4dc577a2e6fbe0dece6a2fe037864a14d0dd936be6945d6b3b1
7
+ data.tar.gz: 526c6c02c1501732407145e2e5fb13f89aebf804b59ae6a304c9717ef5d07a86eb1d1adc9ceddbefb4886deaac9c077249ede66390eab4bcc72acc2b257766a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1beta1
2
2
 
3
+ ### v0.6.0 (2021-05-19)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.5.0 (2021-04-29)
8
+
9
+ * Regenerated from discovery document revision 20210423
10
+
11
+ ### v0.4.0 (2021-03-31)
12
+
13
+ * Regenerated from discovery document revision 20210324
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.3.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.2.0 (2021-02-24)
21
+
22
+ * Regenerated from discovery document revision 20210217
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -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
@@ -67,7 +67,7 @@ module Google
67
67
  include Google::Apis::Core::Hashable
68
68
 
69
69
  # The resource name of the singleton BI reservation. Reservation names have the
70
- # form `projects/`project_id`/locations/`location_id`/bireservation`.
70
+ # form `projects/`project_id`/locations/`location_id`/biReservation`.
71
71
  # Corresponds to the JSON property `name`
72
72
  # @return [String]
73
73
  attr_accessor :name
@@ -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.
@@ -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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200808"
25
+ REVISION = "20210423"
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
@@ -52,7 +52,7 @@ module Google
52
52
  # Retrieves a BI reservation.
53
53
  # @param [String] name
54
54
  # Required. Name of the requested reservation, for example: `projects/`
55
- # project_id`/locations/`location_id`/bireservation`
55
+ # project_id`/locations/`location_id`/biReservation`
56
56
  # @param [String] fields
57
57
  # Selector specifying which fields to include in a partial response.
58
58
  # @param [String] quota_user
@@ -138,7 +138,7 @@ module Google
138
138
  # 0. In order to release BI capacity reservation size must be set to 0.
139
139
  # @param [String] name
140
140
  # The resource name of the singleton BI reservation. Reservation names have the
141
- # form `projects/`project_id`/locations/`location_id`/bireservation`.
141
+ # form `projects/`project_id`/locations/`location_id`/biReservation`.
142
142
  # @param [Google::Apis::BigqueryreservationV1beta1::BiReservation] bi_reservation_object
143
143
  # @param [String] update_mask
144
144
  # A list of fields to be updated in this request.
@@ -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?
@@ -619,15 +625,22 @@ module Google
619
625
  # levels. Example: * The organization `organizationA` contains two projects, `
620
626
  # project1` and `project2`. * Assignments for all three entities (`organizationA`
621
627
  # , `project1`, and `project2`) could all be created and mapped to the same or
622
- # different reservations. Returns `google.rpc.Code.PERMISSION_DENIED` if user
623
- # does not have 'bigquery.admin' permissions on the project using the
624
- # reservation and the project that owns this reservation. Returns `google.rpc.
625
- # Code.INVALID_ARGUMENT` when location of the assignment does not match location
626
- # of the reservation.
628
+ # different reservations. "None" assignments represent an absence of the
629
+ # assignment. Projects assigned to None use on-demand pricing. To create a "None"
630
+ # assignment, use "none" as a reservation_id in the parent. Example parent: `
631
+ # projects/myproject/locations/US/reservations/none`. Returns `google.rpc.Code.
632
+ # PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the
633
+ # project using the reservation and the project that owns this reservation.
634
+ # Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
635
+ # does not match location of the reservation.
627
636
  # @param [String] parent
628
637
  # Required. The parent resource name of the assignment E.g. `projects/myproject/
629
638
  # locations/US/reservations/team1-prod`
630
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.
631
644
  # @param [String] fields
632
645
  # Selector specifying which fields to include in a partial response.
633
646
  # @param [String] quota_user
@@ -645,13 +658,14 @@ module Google
645
658
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
659
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
660
  # @raise [Google::Apis::AuthorizationError] Authorization is required
648
- 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)
649
662
  command = make_simple_command(:post, 'v1beta1/{+parent}/assignments', options)
650
663
  command.request_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
651
664
  command.request_object = assignment_object
652
665
  command.response_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation
653
666
  command.response_class = Google::Apis::BigqueryreservationV1beta1::Assignment
654
667
  command.params['parent'] = parent unless parent.nil?
668
+ command.query['assignmentId'] = assignment_id unless assignment_id.nil?
655
669
  command.query['fields'] = fields unless fields.nil?
656
670
  command.query['quotaUser'] = quota_user unless quota_user.nil?
657
671
  execute_or_queue_command(command, &block)
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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1beta1/v0.6.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.1.4
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