google-cloud-bigquery-reservation-v1 0.1.2 → 0.1.3

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: e0f2d384a888420311a060f288c84b7f089208c7abe027a8399e002b1045c465
4
- data.tar.gz: c24c3994569b892e063d242e4b9c8df98a51bb2e92a5b0e15c1ca18671cae92d
3
+ metadata.gz: 452d902597033cf7ca596d6aaebf52a1e0ed583d8b719917655406629d08dcc3
4
+ data.tar.gz: 32641573ac920bff7772480b7a204f22bb8303efd2ccc5920acaebec1a6b262f
5
5
  SHA512:
6
- metadata.gz: 7b27a9399244fd1e189e8e754b2b3ea47bdb5d008b4631b4e3526dd5aad48f6724e1bd7f5dcb5d72639ed0ce73f9fa37f20e1c277b12fb7a097fda648e5295d8
7
- data.tar.gz: c827b99c7275234a03d8b05d64d291c46607e304805e80f040359c86d2962e703dafe8c7eb3881b393094145abc5a9400bbfe0ca5eb3a8d11f62fb777f752a4a
6
+ metadata.gz: 6abdeba5efef47fa4e43011190be34f655f16ae0dfb380817cba7435d5c2fac7be8ce31d3f193f92a48f50394814298f3e1127eac5945457eeacab933b9da8b9
7
+ data.tar.gz: 9941ed80c19ac775a35be32d2eeb06bc54dbf982d057bb089dea18a06805a744983af99effa3e5f0f4b6867982df5c21581418281e6461a91f56d5019e66850c
@@ -35,3 +35,6 @@ module Google
35
35
  end
36
36
  end
37
37
  end
38
+
39
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
40
+ require "google/cloud/bigquery/reservation/v1/_helpers" if ::File.file? helper_path
@@ -1835,7 +1835,7 @@ module Google
1835
1835
  # Each configuration object is of type `Gapic::Config::Method` and includes
1836
1836
  # the following configuration fields:
1837
1837
  #
1838
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1838
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1839
1839
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1840
1840
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1841
1841
  # include the following keys:
@@ -49,27 +49,27 @@ module Google
49
49
  self.service_name = 'google.cloud.bigquery.reservation.v1.ReservationService'
50
50
 
51
51
  # Creates a new reservation resource.
52
- rpc :CreateReservation, Google::Cloud::Bigquery::Reservation::V1::CreateReservationRequest, Google::Cloud::Bigquery::Reservation::V1::Reservation
52
+ rpc :CreateReservation, ::Google::Cloud::Bigquery::Reservation::V1::CreateReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::Reservation
53
53
  # Lists all the reservations for the project in the specified location.
54
- rpc :ListReservations, Google::Cloud::Bigquery::Reservation::V1::ListReservationsRequest, Google::Cloud::Bigquery::Reservation::V1::ListReservationsResponse
54
+ rpc :ListReservations, ::Google::Cloud::Bigquery::Reservation::V1::ListReservationsRequest, ::Google::Cloud::Bigquery::Reservation::V1::ListReservationsResponse
55
55
  # Returns information about the reservation.
56
- rpc :GetReservation, Google::Cloud::Bigquery::Reservation::V1::GetReservationRequest, Google::Cloud::Bigquery::Reservation::V1::Reservation
56
+ rpc :GetReservation, ::Google::Cloud::Bigquery::Reservation::V1::GetReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::Reservation
57
57
  # Deletes a reservation.
58
58
  # Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
59
59
  # assignments.
60
- rpc :DeleteReservation, Google::Cloud::Bigquery::Reservation::V1::DeleteReservationRequest, Google::Protobuf::Empty
60
+ rpc :DeleteReservation, ::Google::Cloud::Bigquery::Reservation::V1::DeleteReservationRequest, ::Google::Protobuf::Empty
61
61
  # Updates an existing reservation resource.
62
- rpc :UpdateReservation, Google::Cloud::Bigquery::Reservation::V1::UpdateReservationRequest, Google::Cloud::Bigquery::Reservation::V1::Reservation
62
+ rpc :UpdateReservation, ::Google::Cloud::Bigquery::Reservation::V1::UpdateReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::Reservation
63
63
  # Creates a new capacity commitment resource.
64
- rpc :CreateCapacityCommitment, Google::Cloud::Bigquery::Reservation::V1::CreateCapacityCommitmentRequest, Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
64
+ rpc :CreateCapacityCommitment, ::Google::Cloud::Bigquery::Reservation::V1::CreateCapacityCommitmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
65
65
  # Lists all the capacity commitments for the admin project.
66
- rpc :ListCapacityCommitments, Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsRequest, Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsResponse
66
+ rpc :ListCapacityCommitments, ::Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsRequest, ::Google::Cloud::Bigquery::Reservation::V1::ListCapacityCommitmentsResponse
67
67
  # Returns information about the capacity commitment.
68
- rpc :GetCapacityCommitment, Google::Cloud::Bigquery::Reservation::V1::GetCapacityCommitmentRequest, Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
68
+ rpc :GetCapacityCommitment, ::Google::Cloud::Bigquery::Reservation::V1::GetCapacityCommitmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
69
69
  # Deletes a capacity commitment. Attempting to delete capacity commitment
70
70
  # before its commitment_end_time will fail with the error code
71
71
  # `google.rpc.Code.FAILED_PRECONDITION`.
72
- rpc :DeleteCapacityCommitment, Google::Cloud::Bigquery::Reservation::V1::DeleteCapacityCommitmentRequest, Google::Protobuf::Empty
72
+ rpc :DeleteCapacityCommitment, ::Google::Cloud::Bigquery::Reservation::V1::DeleteCapacityCommitmentRequest, ::Google::Protobuf::Empty
73
73
  # Updates an existing capacity commitment.
74
74
  #
75
75
  # Only `plan` and `renewal_plan` fields can be updated.
@@ -77,7 +77,7 @@ module Google
77
77
  # Plan can only be changed to a plan of a longer commitment period.
78
78
  # Attempting to change to a plan with shorter commitment period will fail
79
79
  # with the error code `google.rpc.Code.FAILED_PRECONDITION`.
80
- rpc :UpdateCapacityCommitment, Google::Cloud::Bigquery::Reservation::V1::UpdateCapacityCommitmentRequest, Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
80
+ rpc :UpdateCapacityCommitment, ::Google::Cloud::Bigquery::Reservation::V1::UpdateCapacityCommitmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
81
81
  # Splits capacity commitment to two commitments of the same plan and
82
82
  # `commitment_end_time`.
83
83
  #
@@ -86,7 +86,7 @@ module Google
86
86
  # For example, in order to downgrade from 10000 slots to 8000, you might
87
87
  # split a 10000 capacity commitment into commitments of 2000 and 8000. Then,
88
88
  # you would change the plan of the first one to `FLEX` and then delete it.
89
- rpc :SplitCapacityCommitment, Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentRequest, Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse
89
+ rpc :SplitCapacityCommitment, ::Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::SplitCapacityCommitmentResponse
90
90
  # Merges capacity commitments of the same plan into a single commitment.
91
91
  #
92
92
  # The resulting capacity commitment has the greater commitment_end_time
@@ -94,7 +94,7 @@ module Google
94
94
  #
95
95
  # Attempting to merge capacity commitments of different plan will fail
96
96
  # with the error code `google.rpc.Code.FAILED_PRECONDITION`.
97
- rpc :MergeCapacityCommitments, Google::Cloud::Bigquery::Reservation::V1::MergeCapacityCommitmentsRequest, Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
97
+ rpc :MergeCapacityCommitments, ::Google::Cloud::Bigquery::Reservation::V1::MergeCapacityCommitmentsRequest, ::Google::Cloud::Bigquery::Reservation::V1::CapacityCommitment
98
98
  # Creates an assignment object which allows the given project to submit jobs
99
99
  # of a certain type using slots from the specified reservation.
100
100
  #
@@ -125,7 +125,7 @@ module Google
125
125
  #
126
126
  # Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment
127
127
  # does not match location of the reservation.
128
- rpc :CreateAssignment, Google::Cloud::Bigquery::Reservation::V1::CreateAssignmentRequest, Google::Cloud::Bigquery::Reservation::V1::Assignment
128
+ rpc :CreateAssignment, ::Google::Cloud::Bigquery::Reservation::V1::CreateAssignmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::Assignment
129
129
  # Lists assignments.
130
130
  #
131
131
  # Only explicitly created assignments will be returned.
@@ -147,7 +147,7 @@ module Google
147
147
  # specified project and location will be listed.
148
148
  #
149
149
  # **Note** "-" cannot be used for projects nor locations.
150
- rpc :ListAssignments, Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsRequest, Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsResponse
150
+ rpc :ListAssignments, ::Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsRequest, ::Google::Cloud::Bigquery::Reservation::V1::ListAssignmentsResponse
151
151
  # Deletes a assignment. No expansion will happen.
152
152
  #
153
153
  # Example:
@@ -163,7 +163,7 @@ module Google
163
163
  # affect the other assignment `<project1, res1>`. After said deletion,
164
164
  # queries from `project1` will still use `res1` while queries from
165
165
  # `project2` will switch to use on-demand mode.
166
- rpc :DeleteAssignment, Google::Cloud::Bigquery::Reservation::V1::DeleteAssignmentRequest, Google::Protobuf::Empty
166
+ rpc :DeleteAssignment, ::Google::Cloud::Bigquery::Reservation::V1::DeleteAssignmentRequest, ::Google::Protobuf::Empty
167
167
  # Looks up assignments for a specified resource for a particular region.
168
168
  # If the request is about a project:
169
169
  #
@@ -187,15 +187,15 @@ module Google
187
187
  #
188
188
  # **Note** "-" cannot be used for projects
189
189
  # nor locations.
190
- rpc :SearchAssignments, Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsRequest, Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsResponse
190
+ rpc :SearchAssignments, ::Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsRequest, ::Google::Cloud::Bigquery::Reservation::V1::SearchAssignmentsResponse
191
191
  # Moves an assignment under a new reservation.
192
192
  #
193
193
  # This differs from removing an existing assignment and recreating a new one
194
194
  # by providing a transactional change that ensures an assignee always has an
195
195
  # associated reservation.
196
- rpc :MoveAssignment, Google::Cloud::Bigquery::Reservation::V1::MoveAssignmentRequest, Google::Cloud::Bigquery::Reservation::V1::Assignment
196
+ rpc :MoveAssignment, ::Google::Cloud::Bigquery::Reservation::V1::MoveAssignmentRequest, ::Google::Cloud::Bigquery::Reservation::V1::Assignment
197
197
  # Retrieves a BI reservation.
198
- rpc :GetBiReservation, Google::Cloud::Bigquery::Reservation::V1::GetBiReservationRequest, Google::Cloud::Bigquery::Reservation::V1::BiReservation
198
+ rpc :GetBiReservation, ::Google::Cloud::Bigquery::Reservation::V1::GetBiReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::BiReservation
199
199
  # Updates a BI reservation.
200
200
  #
201
201
  # Only fields specified in the `field_mask` are updated.
@@ -204,7 +204,7 @@ module Google
204
204
  # In order to reserve BI capacity it needs to be updated to an amount
205
205
  # greater than 0. In order to release BI capacity reservation size
206
206
  # must be set to 0.
207
- rpc :UpdateBiReservation, Google::Cloud::Bigquery::Reservation::V1::UpdateBiReservationRequest, Google::Cloud::Bigquery::Reservation::V1::BiReservation
207
+ rpc :UpdateBiReservation, ::Google::Cloud::Bigquery::Reservation::V1::UpdateBiReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::BiReservation
208
208
  end
209
209
 
210
210
  Stub = Service.rpc_stub_class
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Reservation
24
24
  module V1
25
- VERSION = "0.1.2"
25
+ VERSION = "0.1.3"
26
26
  end
27
27
  end
28
28
  end
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-reservation-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.1.3
202
+ rubygems_version: 3.2.6
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: API Client library for the BigQuery Reservation V1 API