google-apis-bigqueryreservation_v1 0.43.0 → 0.45.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/bigqueryreservation_v1/classes.rb +465 -34
- data/lib/google/apis/bigqueryreservation_v1/gem_version.rb +3 -3
- data/lib/google/apis/bigqueryreservation_v1/representations.rb +122 -0
- data/lib/google/apis/bigqueryreservation_v1/service.rb +253 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7031bc7ac5402ea0a55cbdd10393371dc4acbf9e834075b6234a98d86f16e7
|
4
|
+
data.tar.gz: a42c05fad400b119d86345af597ef58d5ecf6facbdc24d92c7c10b86738aca29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 742e35d44393c29b351b6bef577da9745420a25a6c8cb2d44026df4f20425940a1dc447052a49e5966386d529d03da883a345e14be318216b8f0f2e518851882
|
7
|
+
data.tar.gz: 6092e26f45fabba8a7c40aea1f95a1d2a0acc906ee207f2bbb76165731c34afe0850fbcce3bd6f530a1f8661fb4f8d8b943537706eb1b139cf79638216d93077
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-bigqueryreservation_v1
|
2
2
|
|
3
|
+
### v0.45.0 (2025-05-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250518
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
8
|
+
### v0.44.0 (2025-05-18)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20250503
|
11
|
+
* Regenerated using generator version 0.17.0
|
12
|
+
|
3
13
|
### v0.43.0 (2025-03-23)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20250316
|
data/OVERVIEW.md
CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/bigquery/) may provide guid
|
|
83
83
|
|
84
84
|
## Supported Ruby versions
|
85
85
|
|
86
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.1+.
|
87
87
|
|
88
88
|
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
|
89
89
|
|
@@ -27,8 +27,8 @@ module Google
|
|
27
27
|
class Assignment
|
28
28
|
include Google::Apis::Core::Hashable
|
29
29
|
|
30
|
-
# The resource which will use the reservation. E.g. `projects/
|
31
|
-
# folders/123`, or `organizations/456`.
|
30
|
+
# Optional. The resource which will use the reservation. E.g. `projects/
|
31
|
+
# myproject`, `folders/123`, or `organizations/456`.
|
32
32
|
# Corresponds to the JSON property `assignee`
|
33
33
|
# @return [String]
|
34
34
|
attr_accessor :assignee
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
attr_accessor :enable_gemini_in_bigquery
|
46
46
|
alias_method :enable_gemini_in_bigquery?, :enable_gemini_in_bigquery
|
47
47
|
|
48
|
-
# Which type of jobs will use the reservation.
|
48
|
+
# Optional. Which type of jobs will use the reservation.
|
49
49
|
# Corresponds to the JSON property `jobType`
|
50
50
|
# @return [String]
|
51
51
|
attr_accessor :job_type
|
@@ -77,6 +77,77 @@ module Google
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
# Specifies the audit configuration for a service. The configuration determines
|
81
|
+
# which permission types are logged, and what identities, if any, are exempted
|
82
|
+
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
83
|
+
# are AuditConfigs for both `allServices` and a specific service, the union of
|
84
|
+
# the two AuditConfigs is used for that service: the log_types specified in each
|
85
|
+
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
86
|
+
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
87
|
+
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
88
|
+
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
89
|
+
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
90
|
+
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
91
|
+
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
92
|
+
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
93
|
+
# exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
|
94
|
+
# from DATA_WRITE logging.
|
95
|
+
class AuditConfig
|
96
|
+
include Google::Apis::Core::Hashable
|
97
|
+
|
98
|
+
# The configuration for logging of each type of permission.
|
99
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
100
|
+
# @return [Array<Google::Apis::BigqueryreservationV1::AuditLogConfig>]
|
101
|
+
attr_accessor :audit_log_configs
|
102
|
+
|
103
|
+
# Specifies a service that will be enabled for audit logging. For example, `
|
104
|
+
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
105
|
+
# value that covers all services.
|
106
|
+
# Corresponds to the JSON property `service`
|
107
|
+
# @return [String]
|
108
|
+
attr_accessor :service
|
109
|
+
|
110
|
+
def initialize(**args)
|
111
|
+
update!(**args)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Update properties of this object
|
115
|
+
def update!(**args)
|
116
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
117
|
+
@service = args[:service] if args.key?(:service)
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# Provides the configuration for logging a type of permissions. Example: ` "
|
122
|
+
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
123
|
+
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
124
|
+
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
125
|
+
# DATA_READ logging.
|
126
|
+
class AuditLogConfig
|
127
|
+
include Google::Apis::Core::Hashable
|
128
|
+
|
129
|
+
# Specifies the identities that do not cause logging for this type of permission.
|
130
|
+
# Follows the same format of Binding.members.
|
131
|
+
# Corresponds to the JSON property `exemptedMembers`
|
132
|
+
# @return [Array<String>]
|
133
|
+
attr_accessor :exempted_members
|
134
|
+
|
135
|
+
# The log type that this config enables.
|
136
|
+
# Corresponds to the JSON property `logType`
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :log_type
|
139
|
+
|
140
|
+
def initialize(**args)
|
141
|
+
update!(**args)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Update properties of this object
|
145
|
+
def update!(**args)
|
146
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
147
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
80
151
|
# Auto scaling settings.
|
81
152
|
class Autoscale
|
82
153
|
include Google::Apis::Core::Hashable
|
@@ -90,7 +161,7 @@ module Google
|
|
90
161
|
# @return [Fixnum]
|
91
162
|
attr_accessor :current_slots
|
92
163
|
|
93
|
-
# Number of slots to be scaled when needed.
|
164
|
+
# Optional. Number of slots to be scaled when needed.
|
94
165
|
# Corresponds to the JSON property `maxSlots`
|
95
166
|
# @return [Fixnum]
|
96
167
|
attr_accessor :max_slots
|
@@ -110,18 +181,19 @@ module Google
|
|
110
181
|
class BiReservation
|
111
182
|
include Google::Apis::Core::Hashable
|
112
183
|
|
113
|
-
# The resource name of the singleton BI reservation. Reservation
|
114
|
-
# form `projects/`project_id`/locations/`location_id`/
|
184
|
+
# Identifier. The resource name of the singleton BI reservation. Reservation
|
185
|
+
# names have the form `projects/`project_id`/locations/`location_id`/
|
186
|
+
# biReservation`.
|
115
187
|
# Corresponds to the JSON property `name`
|
116
188
|
# @return [String]
|
117
189
|
attr_accessor :name
|
118
190
|
|
119
|
-
# Preferred tables to use BI capacity for.
|
191
|
+
# Optional. Preferred tables to use BI capacity for.
|
120
192
|
# Corresponds to the JSON property `preferredTables`
|
121
193
|
# @return [Array<Google::Apis::BigqueryreservationV1::TableReference>]
|
122
194
|
attr_accessor :preferred_tables
|
123
195
|
|
124
|
-
# Size of a reservation, in bytes.
|
196
|
+
# Optional. Size of a reservation, in bytes.
|
125
197
|
# Corresponds to the JSON property `size`
|
126
198
|
# @return [Fixnum]
|
127
199
|
attr_accessor :size
|
@@ -144,6 +216,107 @@ module Google
|
|
144
216
|
end
|
145
217
|
end
|
146
218
|
|
219
|
+
# Associates `members`, or principals, with a `role`.
|
220
|
+
class Binding
|
221
|
+
include Google::Apis::Core::Hashable
|
222
|
+
|
223
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
224
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
225
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
226
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
227
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
228
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
229
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
230
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
231
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
232
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
233
|
+
# string" description: "Create a notification string with a timestamp."
|
234
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
235
|
+
# exact variables and functions that may be referenced within an expression are
|
236
|
+
# determined by the service that evaluates it. See the service documentation for
|
237
|
+
# additional information.
|
238
|
+
# Corresponds to the JSON property `condition`
|
239
|
+
# @return [Google::Apis::BigqueryreservationV1::Expr]
|
240
|
+
attr_accessor :condition
|
241
|
+
|
242
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
243
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
244
|
+
# that represents anyone who is on the internet; with or without a Google
|
245
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
246
|
+
# anyone who is authenticated with a Google account or a service account. Does
|
247
|
+
# not include identities that come from external identity providers (IdPs)
|
248
|
+
# through identity federation. * `user:`emailid``: An email address that
|
249
|
+
# represents a specific Google account. For example, `alice@example.com` . * `
|
250
|
+
# serviceAccount:`emailid``: An email address that represents a Google service
|
251
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`. * `
|
252
|
+
# serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An
|
253
|
+
# identifier for a [Kubernetes service account](https://cloud.google.com/
|
254
|
+
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
|
255
|
+
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
256
|
+
# email address that represents a Google group. For example, `admins@example.com`
|
257
|
+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
258
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
259
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
260
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
261
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
262
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
263
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
264
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
265
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
266
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
267
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
268
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
269
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
270
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
271
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
272
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
273
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
274
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
275
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
276
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
277
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
278
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
279
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
280
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
281
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
282
|
+
# address (plus unique identifier) representing a service account that has been
|
283
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
284
|
+
# 123456789012345678901`. If the service account is undeleted, this value
|
285
|
+
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
286
|
+
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
287
|
+
# An email address (plus unique identifier) representing a Google group that has
|
288
|
+
# been recently deleted. For example, `admins@example.com?uid=
|
289
|
+
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
290
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
291
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
292
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
293
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
294
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
295
|
+
# Corresponds to the JSON property `members`
|
296
|
+
# @return [Array<String>]
|
297
|
+
attr_accessor :members
|
298
|
+
|
299
|
+
# Role that is assigned to the list of `members`, or principals. For example, `
|
300
|
+
# roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM
|
301
|
+
# roles and permissions, see the [IAM documentation](https://cloud.google.com/
|
302
|
+
# iam/docs/roles-overview). For a list of the available pre-defined roles, see [
|
303
|
+
# here](https://cloud.google.com/iam/docs/understanding-roles).
|
304
|
+
# Corresponds to the JSON property `role`
|
305
|
+
# @return [String]
|
306
|
+
attr_accessor :role
|
307
|
+
|
308
|
+
def initialize(**args)
|
309
|
+
update!(**args)
|
310
|
+
end
|
311
|
+
|
312
|
+
# Update properties of this object
|
313
|
+
def update!(**args)
|
314
|
+
@condition = args[:condition] if args.key?(:condition)
|
315
|
+
@members = args[:members] if args.key?(:members)
|
316
|
+
@role = args[:role] if args.key?(:role)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
147
320
|
# Capacity commitment is a way to purchase compute capacity for BigQuery jobs (
|
148
321
|
# in the form of slots) with some committed period of usage. Annual commitments
|
149
322
|
# renew by default. Commitments can be removed after their commitment end time
|
@@ -170,7 +343,7 @@ module Google
|
|
170
343
|
# @return [String]
|
171
344
|
attr_accessor :commitment_start_time
|
172
345
|
|
173
|
-
# Edition of the capacity commitment.
|
346
|
+
# Optional. Edition of the capacity commitment.
|
174
347
|
# Corresponds to the JSON property `edition`
|
175
348
|
# @return [String]
|
176
349
|
attr_accessor :edition
|
@@ -211,19 +384,20 @@ module Google
|
|
211
384
|
# @return [String]
|
212
385
|
attr_accessor :name
|
213
386
|
|
214
|
-
# Capacity commitment commitment plan.
|
387
|
+
# Optional. Capacity commitment commitment plan.
|
215
388
|
# Corresponds to the JSON property `plan`
|
216
389
|
# @return [String]
|
217
390
|
attr_accessor :plan
|
218
391
|
|
219
|
-
# The plan this capacity commitment is converted to after
|
220
|
-
# passes. Once the plan is changed, committed period is
|
221
|
-
# commitment plan. Only applicable for ANNUAL and TRIAL
|
392
|
+
# Optional. The plan this capacity commitment is converted to after
|
393
|
+
# commitment_end_time passes. Once the plan is changed, committed period is
|
394
|
+
# extended according to commitment plan. Only applicable for ANNUAL and TRIAL
|
395
|
+
# commitments.
|
222
396
|
# Corresponds to the JSON property `renewalPlan`
|
223
397
|
# @return [String]
|
224
398
|
attr_accessor :renewal_plan
|
225
399
|
|
226
|
-
# Number of slots in this commitment.
|
400
|
+
# Optional. Number of slots in this commitment.
|
227
401
|
# Corresponds to the JSON property `slotCount`
|
228
402
|
# @return [Fixnum]
|
229
403
|
attr_accessor :slot_count
|
@@ -269,16 +443,76 @@ module Google
|
|
269
443
|
end
|
270
444
|
end
|
271
445
|
|
446
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
447
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
448
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
449
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
450
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
451
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
452
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
453
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
454
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
455
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
456
|
+
# string" description: "Create a notification string with a timestamp."
|
457
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
458
|
+
# exact variables and functions that may be referenced within an expression are
|
459
|
+
# determined by the service that evaluates it. See the service documentation for
|
460
|
+
# additional information.
|
461
|
+
class Expr
|
462
|
+
include Google::Apis::Core::Hashable
|
463
|
+
|
464
|
+
# Optional. Description of the expression. This is a longer text which describes
|
465
|
+
# the expression, e.g. when hovered over it in a UI.
|
466
|
+
# Corresponds to the JSON property `description`
|
467
|
+
# @return [String]
|
468
|
+
attr_accessor :description
|
469
|
+
|
470
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
471
|
+
# Corresponds to the JSON property `expression`
|
472
|
+
# @return [String]
|
473
|
+
attr_accessor :expression
|
474
|
+
|
475
|
+
# Optional. String indicating the location of the expression for error reporting,
|
476
|
+
# e.g. a file name and a position in the file.
|
477
|
+
# Corresponds to the JSON property `location`
|
478
|
+
# @return [String]
|
479
|
+
attr_accessor :location
|
480
|
+
|
481
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
482
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
483
|
+
# Corresponds to the JSON property `title`
|
484
|
+
# @return [String]
|
485
|
+
attr_accessor :title
|
486
|
+
|
487
|
+
def initialize(**args)
|
488
|
+
update!(**args)
|
489
|
+
end
|
490
|
+
|
491
|
+
# Update properties of this object
|
492
|
+
def update!(**args)
|
493
|
+
@description = args[:description] if args.key?(:description)
|
494
|
+
@expression = args[:expression] if args.key?(:expression)
|
495
|
+
@location = args[:location] if args.key?(:location)
|
496
|
+
@title = args[:title] if args.key?(:title)
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
272
500
|
# The request for ReservationService.FailoverReservation.
|
273
501
|
class FailoverReservationRequest
|
274
502
|
include Google::Apis::Core::Hashable
|
275
503
|
|
504
|
+
# Optional. failover mode for the failover operation.
|
505
|
+
# Corresponds to the JSON property `failoverMode`
|
506
|
+
# @return [String]
|
507
|
+
attr_accessor :failover_mode
|
508
|
+
|
276
509
|
def initialize(**args)
|
277
510
|
update!(**args)
|
278
511
|
end
|
279
512
|
|
280
513
|
# Update properties of this object
|
281
514
|
def update!(**args)
|
515
|
+
@failover_mode = args[:failover_mode] if args.key?(:failover_mode)
|
282
516
|
end
|
283
517
|
end
|
284
518
|
|
@@ -422,6 +656,101 @@ module Google
|
|
422
656
|
end
|
423
657
|
end
|
424
658
|
|
659
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
660
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
661
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
662
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
663
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
664
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
665
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
666
|
+
# logical expression that allows access to a resource only if the expression
|
667
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
668
|
+
# the request, the resource, or both. To learn which resources support
|
669
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
670
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
671
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
672
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
673
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
674
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
675
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
676
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
677
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
678
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
679
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
680
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
681
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
682
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
683
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
684
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
685
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
686
|
+
class Policy
|
687
|
+
include Google::Apis::Core::Hashable
|
688
|
+
|
689
|
+
# Specifies cloud audit logging configuration for this policy.
|
690
|
+
# Corresponds to the JSON property `auditConfigs`
|
691
|
+
# @return [Array<Google::Apis::BigqueryreservationV1::AuditConfig>]
|
692
|
+
attr_accessor :audit_configs
|
693
|
+
|
694
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally, may
|
695
|
+
# specify a `condition` that determines how and when the `bindings` are applied.
|
696
|
+
# Each of the `bindings` must contain at least one principal. The `bindings` in
|
697
|
+
# a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
|
698
|
+
# can be Google groups. Each occurrence of a principal counts towards these
|
699
|
+
# limits. For example, if the `bindings` grant 50 different roles to `user:alice@
|
700
|
+
# example.com`, and not to any other principal, then you can add another 1,450
|
701
|
+
# principals to the `bindings` in the `Policy`.
|
702
|
+
# Corresponds to the JSON property `bindings`
|
703
|
+
# @return [Array<Google::Apis::BigqueryreservationV1::Binding>]
|
704
|
+
attr_accessor :bindings
|
705
|
+
|
706
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
707
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
708
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
709
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
710
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
711
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
712
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
713
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
714
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
715
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
716
|
+
# are lost.
|
717
|
+
# Corresponds to the JSON property `etag`
|
718
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
719
|
+
# @return [String]
|
720
|
+
attr_accessor :etag
|
721
|
+
|
722
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
723
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
724
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
725
|
+
# applies to the following operations: * Getting a policy that includes a
|
726
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
727
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
728
|
+
# with or without a condition, from a policy that includes conditions **
|
729
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
730
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
731
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
732
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
733
|
+
# any conditions, operations on that policy may specify any valid version or
|
734
|
+
# leave the field unset. To learn which resources support conditions in their
|
735
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
736
|
+
# conditions/resource-policies).
|
737
|
+
# Corresponds to the JSON property `version`
|
738
|
+
# @return [Fixnum]
|
739
|
+
attr_accessor :version
|
740
|
+
|
741
|
+
def initialize(**args)
|
742
|
+
update!(**args)
|
743
|
+
end
|
744
|
+
|
745
|
+
# Update properties of this object
|
746
|
+
def update!(**args)
|
747
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
748
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
749
|
+
@etag = args[:etag] if args.key?(:etag)
|
750
|
+
@version = args[:version] if args.key?(:version)
|
751
|
+
end
|
752
|
+
end
|
753
|
+
|
425
754
|
# Disaster Recovery(DR) replication status of the reservation.
|
426
755
|
class ReplicationStatus
|
427
756
|
include Google::Apis::Core::Hashable
|
@@ -449,6 +778,14 @@ module Google
|
|
449
778
|
# @return [String]
|
450
779
|
attr_accessor :last_replication_time
|
451
780
|
|
781
|
+
# Output only. The time at which a soft failover for the reservation and its
|
782
|
+
# associated datasets was initiated. After this field is set, all subsequent
|
783
|
+
# changes to the reservation will be rejected unless a hard failover overrides
|
784
|
+
# this operation. This field will be cleared once the failover is complete.
|
785
|
+
# Corresponds to the JSON property `softFailoverStartTime`
|
786
|
+
# @return [String]
|
787
|
+
attr_accessor :soft_failover_start_time
|
788
|
+
|
452
789
|
def initialize(**args)
|
453
790
|
update!(**args)
|
454
791
|
end
|
@@ -458,6 +795,7 @@ module Google
|
|
458
795
|
@error = args[:error] if args.key?(:error)
|
459
796
|
@last_error_time = args[:last_error_time] if args.key?(:last_error_time)
|
460
797
|
@last_replication_time = args[:last_replication_time] if args.key?(:last_replication_time)
|
798
|
+
@soft_failover_start_time = args[:soft_failover_start_time] if args.key?(:soft_failover_start_time)
|
461
799
|
end
|
462
800
|
end
|
463
801
|
|
@@ -470,12 +808,12 @@ module Google
|
|
470
808
|
# @return [Google::Apis::BigqueryreservationV1::Autoscale]
|
471
809
|
attr_accessor :autoscale
|
472
810
|
|
473
|
-
# Job concurrency target which sets a soft upper bound on the number
|
474
|
-
# that can run concurrently in this reservation. This is a soft target
|
475
|
-
# asynchronous nature of the system and various optimizations for small
|
476
|
-
# Default value is 0 which means that concurrency target will be
|
477
|
-
# computed by the system. NOTE: this field is exposed as target
|
478
|
-
# in the Information Schema, DDL and BigQuery CLI.
|
811
|
+
# Optional. Job concurrency target which sets a soft upper bound on the number
|
812
|
+
# of jobs that can run concurrently in this reservation. This is a soft target
|
813
|
+
# due to asynchronous nature of the system and various optimizations for small
|
814
|
+
# queries. Default value is 0 which means that concurrency target will be
|
815
|
+
# automatically computed by the system. NOTE: this field is exposed as target
|
816
|
+
# job concurrency in the Information Schema, DDL and BigQuery CLI.
|
479
817
|
# Corresponds to the JSON property `concurrency`
|
480
818
|
# @return [Fixnum]
|
481
819
|
attr_accessor :concurrency
|
@@ -485,15 +823,15 @@ module Google
|
|
485
823
|
# @return [String]
|
486
824
|
attr_accessor :creation_time
|
487
825
|
|
488
|
-
# Edition of the reservation.
|
826
|
+
# Optional. Edition of the reservation.
|
489
827
|
# Corresponds to the JSON property `edition`
|
490
828
|
# @return [String]
|
491
829
|
attr_accessor :edition
|
492
830
|
|
493
|
-
# If false, any query or pipeline job using this reservation will use
|
494
|
-
# from other reservations within the same admin project. If true, a
|
495
|
-
# pipeline job using this reservation will execute with the slot
|
496
|
-
# specified in the slot_capacity field at most.
|
831
|
+
# Optional. If false, any query or pipeline job using this reservation will use
|
832
|
+
# idle slots from other reservations within the same admin project. If true, a
|
833
|
+
# query or pipeline job using this reservation will execute with the slot
|
834
|
+
# capacity specified in the slot_capacity field at most.
|
497
835
|
# Corresponds to the JSON property `ignoreIdleSlots`
|
498
836
|
# @return [Boolean]
|
499
837
|
attr_accessor :ignore_idle_slots
|
@@ -553,8 +891,8 @@ module Google
|
|
553
891
|
attr_accessor :multi_region_auxiliary
|
554
892
|
alias_method :multi_region_auxiliary?, :multi_region_auxiliary
|
555
893
|
|
556
|
-
# The resource name of the reservation, e.g., `projects/*/locations
|
557
|
-
# reservations/team1-prod`. The reservation_id must only contain lower case
|
894
|
+
# Identifier. The resource name of the reservation, e.g., `projects/*/locations/*
|
895
|
+
# /reservations/team1-prod`. The reservation_id must only contain lower case
|
558
896
|
# alphanumeric characters or dashes. It must start with a letter and must not
|
559
897
|
# end with a dash. Its maximum length is 64 characters.
|
560
898
|
# Corresponds to the JSON property `name`
|
@@ -579,9 +917,9 @@ module Google
|
|
579
917
|
# @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
|
580
918
|
attr_accessor :replication_status
|
581
919
|
|
582
|
-
# The scaling mode for the reservation. If the field is present but
|
583
|
-
# not present, requests will be rejected with error code `google.
|
584
|
-
# INVALID_ARGUMENT`.
|
920
|
+
# Optional. The scaling mode for the reservation. If the field is present but
|
921
|
+
# max_slots is not present, requests will be rejected with error code `google.
|
922
|
+
# rpc.Code.INVALID_ARGUMENT`.
|
585
923
|
# Corresponds to the JSON property `scalingMode`
|
586
924
|
# @return [String]
|
587
925
|
attr_accessor :scaling_mode
|
@@ -595,7 +933,7 @@ module Google
|
|
595
933
|
# @return [String]
|
596
934
|
attr_accessor :secondary_location
|
597
935
|
|
598
|
-
# Baseline slots available to this reservation. A slot is a unit of
|
936
|
+
# Optional. Baseline slots available to this reservation. A slot is a unit of
|
599
937
|
# computational power in BigQuery, and serves as the unit of parallelism.
|
600
938
|
# Queries using this reservation might use more slots during runtime if
|
601
939
|
# ignore_idle_slots is set to false, or autoscaling is enabled. The total
|
@@ -692,6 +1030,59 @@ module Google
|
|
692
1030
|
end
|
693
1031
|
end
|
694
1032
|
|
1033
|
+
# Request message for `SetIamPolicy` method.
|
1034
|
+
class SetIamPolicyRequest
|
1035
|
+
include Google::Apis::Core::Hashable
|
1036
|
+
|
1037
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1038
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
1039
|
+
# A `binding` binds one or more `members`, or principals, to a single `role`.
|
1040
|
+
# Principals can be user accounts, service accounts, Google groups, and domains (
|
1041
|
+
# such as G Suite). A `role` is a named list of permissions; each `role` can be
|
1042
|
+
# an IAM predefined role or a user-created custom role. For some types of Google
|
1043
|
+
# Cloud resources, a `binding` can also specify a `condition`, which is a
|
1044
|
+
# logical expression that allows access to a resource only if the expression
|
1045
|
+
# evaluates to `true`. A condition can add constraints based on attributes of
|
1046
|
+
# the request, the resource, or both. To learn which resources support
|
1047
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1048
|
+
# google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
|
1049
|
+
# bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
|
1050
|
+
# "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
1051
|
+
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
1052
|
+
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
1053
|
+
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
1054
|
+
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
1055
|
+
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
|
1056
|
+
# example:** ``` bindings: - members: - user:mike@example.com - group:admins@
|
1057
|
+
# example.com - domain:google.com - serviceAccount:my-project-id@appspot.
|
1058
|
+
# gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
|
1059
|
+
# user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
|
1060
|
+
# title: expirable access description: Does not grant access after Sep 2020
|
1061
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
|
1062
|
+
# BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
|
1063
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
1064
|
+
# Corresponds to the JSON property `policy`
|
1065
|
+
# @return [Google::Apis::BigqueryreservationV1::Policy]
|
1066
|
+
attr_accessor :policy
|
1067
|
+
|
1068
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
1069
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
1070
|
+
# default mask is used: `paths: "bindings, etag"`
|
1071
|
+
# Corresponds to the JSON property `updateMask`
|
1072
|
+
# @return [String]
|
1073
|
+
attr_accessor :update_mask
|
1074
|
+
|
1075
|
+
def initialize(**args)
|
1076
|
+
update!(**args)
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# Update properties of this object
|
1080
|
+
def update!(**args)
|
1081
|
+
@policy = args[:policy] if args.key?(:policy)
|
1082
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
|
695
1086
|
# The request for ReservationService.SplitCapacityCommitment.
|
696
1087
|
class SplitCapacityCommitmentRequest
|
697
1088
|
include Google::Apis::Core::Hashable
|
@@ -790,17 +1181,17 @@ module Google
|
|
790
1181
|
class TableReference
|
791
1182
|
include Google::Apis::Core::Hashable
|
792
1183
|
|
793
|
-
# The ID of the dataset in the above project.
|
1184
|
+
# Optional. The ID of the dataset in the above project.
|
794
1185
|
# Corresponds to the JSON property `datasetId`
|
795
1186
|
# @return [String]
|
796
1187
|
attr_accessor :dataset_id
|
797
1188
|
|
798
|
-
# The assigned project ID of the project.
|
1189
|
+
# Optional. The assigned project ID of the project.
|
799
1190
|
# Corresponds to the JSON property `projectId`
|
800
1191
|
# @return [String]
|
801
1192
|
attr_accessor :project_id
|
802
1193
|
|
803
|
-
# The ID of the table in the above dataset.
|
1194
|
+
# Optional. The ID of the table in the above dataset.
|
804
1195
|
# Corresponds to the JSON property `tableId`
|
805
1196
|
# @return [String]
|
806
1197
|
attr_accessor :table_id
|
@@ -816,6 +1207,46 @@ module Google
|
|
816
1207
|
@table_id = args[:table_id] if args.key?(:table_id)
|
817
1208
|
end
|
818
1209
|
end
|
1210
|
+
|
1211
|
+
# Request message for `TestIamPermissions` method.
|
1212
|
+
class TestIamPermissionsRequest
|
1213
|
+
include Google::Apis::Core::Hashable
|
1214
|
+
|
1215
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
1216
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
1217
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
1218
|
+
# Corresponds to the JSON property `permissions`
|
1219
|
+
# @return [Array<String>]
|
1220
|
+
attr_accessor :permissions
|
1221
|
+
|
1222
|
+
def initialize(**args)
|
1223
|
+
update!(**args)
|
1224
|
+
end
|
1225
|
+
|
1226
|
+
# Update properties of this object
|
1227
|
+
def update!(**args)
|
1228
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
|
1232
|
+
# Response message for `TestIamPermissions` method.
|
1233
|
+
class TestIamPermissionsResponse
|
1234
|
+
include Google::Apis::Core::Hashable
|
1235
|
+
|
1236
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
1237
|
+
# Corresponds to the JSON property `permissions`
|
1238
|
+
# @return [Array<String>]
|
1239
|
+
attr_accessor :permissions
|
1240
|
+
|
1241
|
+
def initialize(**args)
|
1242
|
+
update!(**args)
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
# Update properties of this object
|
1246
|
+
def update!(**args)
|
1247
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1248
|
+
end
|
1249
|
+
end
|
819
1250
|
end
|
820
1251
|
end
|
821
1252
|
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.
|
19
|
+
GEM_VERSION = "0.45.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250518"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,6 +28,18 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class AuditConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class AuditLogConfig
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
31
43
|
class Autoscale
|
32
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
45
|
|
@@ -40,6 +52,12 @@ module Google
|
|
40
52
|
include Google::Apis::Core::JsonObjectSupport
|
41
53
|
end
|
42
54
|
|
55
|
+
class Binding
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
43
61
|
class CapacityCommitment
|
44
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
63
|
|
@@ -52,6 +70,12 @@ module Google
|
|
52
70
|
include Google::Apis::Core::JsonObjectSupport
|
53
71
|
end
|
54
72
|
|
73
|
+
class Expr
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
55
79
|
class FailoverReservationRequest
|
56
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
81
|
|
@@ -88,6 +112,12 @@ module Google
|
|
88
112
|
include Google::Apis::Core::JsonObjectSupport
|
89
113
|
end
|
90
114
|
|
115
|
+
class Policy
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
91
121
|
class ReplicationStatus
|
92
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
123
|
|
@@ -112,6 +142,12 @@ module Google
|
|
112
142
|
include Google::Apis::Core::JsonObjectSupport
|
113
143
|
end
|
114
144
|
|
145
|
+
class SetIamPolicyRequest
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
115
151
|
class SplitCapacityCommitmentRequest
|
116
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
153
|
|
@@ -136,6 +172,18 @@ module Google
|
|
136
172
|
include Google::Apis::Core::JsonObjectSupport
|
137
173
|
end
|
138
174
|
|
175
|
+
class TestIamPermissionsRequest
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class TestIamPermissionsResponse
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
139
187
|
class Assignment
|
140
188
|
# @private
|
141
189
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -147,6 +195,23 @@ module Google
|
|
147
195
|
end
|
148
196
|
end
|
149
197
|
|
198
|
+
class AuditConfig
|
199
|
+
# @private
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigqueryreservationV1::AuditLogConfig, decorator: Google::Apis::BigqueryreservationV1::AuditLogConfig::Representation
|
202
|
+
|
203
|
+
property :service, as: 'service'
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
class AuditLogConfig
|
208
|
+
# @private
|
209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
210
|
+
collection :exempted_members, as: 'exemptedMembers'
|
211
|
+
property :log_type, as: 'logType'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
150
215
|
class Autoscale
|
151
216
|
# @private
|
152
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -166,6 +231,16 @@ module Google
|
|
166
231
|
end
|
167
232
|
end
|
168
233
|
|
234
|
+
class Binding
|
235
|
+
# @private
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :condition, as: 'condition', class: Google::Apis::BigqueryreservationV1::Expr, decorator: Google::Apis::BigqueryreservationV1::Expr::Representation
|
238
|
+
|
239
|
+
collection :members, as: 'members'
|
240
|
+
property :role, as: 'role'
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
169
244
|
class CapacityCommitment
|
170
245
|
# @private
|
171
246
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -190,9 +265,20 @@ module Google
|
|
190
265
|
end
|
191
266
|
end
|
192
267
|
|
268
|
+
class Expr
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
property :description, as: 'description'
|
272
|
+
property :expression, as: 'expression'
|
273
|
+
property :location, as: 'location'
|
274
|
+
property :title, as: 'title'
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
193
278
|
class FailoverReservationRequest
|
194
279
|
# @private
|
195
280
|
class Representation < Google::Apis::Core::JsonRepresentation
|
281
|
+
property :failover_mode, as: 'failoverMode'
|
196
282
|
end
|
197
283
|
end
|
198
284
|
|
@@ -239,6 +325,18 @@ module Google
|
|
239
325
|
end
|
240
326
|
end
|
241
327
|
|
328
|
+
class Policy
|
329
|
+
# @private
|
330
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
331
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryreservationV1::AuditConfig, decorator: Google::Apis::BigqueryreservationV1::AuditConfig::Representation
|
332
|
+
|
333
|
+
collection :bindings, as: 'bindings', class: Google::Apis::BigqueryreservationV1::Binding, decorator: Google::Apis::BigqueryreservationV1::Binding::Representation
|
334
|
+
|
335
|
+
property :etag, :base64 => true, as: 'etag'
|
336
|
+
property :version, as: 'version'
|
337
|
+
end
|
338
|
+
end
|
339
|
+
|
242
340
|
class ReplicationStatus
|
243
341
|
# @private
|
244
342
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -246,6 +344,7 @@ module Google
|
|
246
344
|
|
247
345
|
property :last_error_time, as: 'lastErrorTime'
|
248
346
|
property :last_replication_time, as: 'lastReplicationTime'
|
347
|
+
property :soft_failover_start_time, as: 'softFailoverStartTime'
|
249
348
|
end
|
250
349
|
end
|
251
350
|
|
@@ -291,6 +390,15 @@ module Google
|
|
291
390
|
end
|
292
391
|
end
|
293
392
|
|
393
|
+
class SetIamPolicyRequest
|
394
|
+
# @private
|
395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
396
|
+
property :policy, as: 'policy', class: Google::Apis::BigqueryreservationV1::Policy, decorator: Google::Apis::BigqueryreservationV1::Policy::Representation
|
397
|
+
|
398
|
+
property :update_mask, as: 'updateMask'
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
294
402
|
class SplitCapacityCommitmentRequest
|
295
403
|
# @private
|
296
404
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -325,6 +433,20 @@ module Google
|
|
325
433
|
property :table_id, as: 'tableId'
|
326
434
|
end
|
327
435
|
end
|
436
|
+
|
437
|
+
class TestIamPermissionsRequest
|
438
|
+
# @private
|
439
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
440
|
+
collection :permissions, as: 'permissions'
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
class TestIamPermissionsResponse
|
445
|
+
# @private
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
447
|
+
collection :permissions, as: 'permissions'
|
448
|
+
end
|
449
|
+
end
|
328
450
|
end
|
329
451
|
end
|
330
452
|
end
|
@@ -190,8 +190,9 @@ module Google
|
|
190
190
|
# order to reserve BI capacity it needs to be updated to an amount greater than
|
191
191
|
# 0. In order to release BI capacity reservation size must be set to 0.
|
192
192
|
# @param [String] name
|
193
|
-
# The resource name of the singleton BI reservation. Reservation
|
194
|
-
# form `projects/`project_id`/locations/`location_id`/
|
193
|
+
# Identifier. The resource name of the singleton BI reservation. Reservation
|
194
|
+
# names have the form `projects/`project_id`/locations/`location_id`/
|
195
|
+
# biReservation`.
|
195
196
|
# @param [Google::Apis::BigqueryreservationV1::BiReservation] bi_reservation_object
|
196
197
|
# @param [String] update_mask
|
197
198
|
# A list of fields to be updated in this request.
|
@@ -633,6 +634,55 @@ module Google
|
|
633
634
|
execute_or_queue_command(command, &block)
|
634
635
|
end
|
635
636
|
|
637
|
+
# Gets the access control policy for a resource. May return: * A`NOT_FOUND`
|
638
|
+
# error if the resource doesn't exist or you don't have the permission to view
|
639
|
+
# it. * An empty policy if the resource exists but doesn't have a set policy.
|
640
|
+
# Supported resources are: - Reservations - ReservationAssignments To call this
|
641
|
+
# method, you must have the following Google IAM permissions: - `
|
642
|
+
# bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.
|
643
|
+
# @param [String] resource
|
644
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
645
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
646
|
+
# appropriate value for this field.
|
647
|
+
# @param [Fixnum] options_requested_policy_version
|
648
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
649
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
650
|
+
# rejected. Requests for policies with any conditional role bindings must
|
651
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
652
|
+
# valid value or leave the field unset. The policy in the response might use the
|
653
|
+
# policy version that you specified, or it might use a lower policy version. For
|
654
|
+
# example, if you specify version 3, but the policy has no conditional role
|
655
|
+
# bindings, the response uses version 1. To learn which resources support
|
656
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
657
|
+
# google.com/iam/help/conditions/resource-policies).
|
658
|
+
# @param [String] fields
|
659
|
+
# Selector specifying which fields to include in a partial response.
|
660
|
+
# @param [String] quota_user
|
661
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
662
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
663
|
+
# @param [Google::Apis::RequestOptions] options
|
664
|
+
# Request-specific options
|
665
|
+
#
|
666
|
+
# @yield [result, err] Result & error if block supplied
|
667
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
|
668
|
+
# @yieldparam err [StandardError] error object if request failed
|
669
|
+
#
|
670
|
+
# @return [Google::Apis::BigqueryreservationV1::Policy]
|
671
|
+
#
|
672
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
673
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
674
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
675
|
+
def get_project_location_reservation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
676
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
677
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
|
678
|
+
command.response_class = Google::Apis::BigqueryreservationV1::Policy
|
679
|
+
command.params['resource'] = resource unless resource.nil?
|
680
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
681
|
+
command.query['fields'] = fields unless fields.nil?
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
683
|
+
execute_or_queue_command(command, &block)
|
684
|
+
end
|
685
|
+
|
636
686
|
# Lists all the reservations for the project in the specified location.
|
637
687
|
# @param [String] parent
|
638
688
|
# Required. The parent resource name containing project and location, e.g.: `
|
@@ -672,8 +722,8 @@ module Google
|
|
672
722
|
|
673
723
|
# Updates an existing reservation resource.
|
674
724
|
# @param [String] name
|
675
|
-
# The resource name of the reservation, e.g., `projects/*/locations
|
676
|
-
# reservations/team1-prod`. The reservation_id must only contain lower case
|
725
|
+
# Identifier. The resource name of the reservation, e.g., `projects/*/locations/*
|
726
|
+
# /reservations/team1-prod`. The reservation_id must only contain lower case
|
677
727
|
# alphanumeric characters or dashes. It must start with a letter and must not
|
678
728
|
# end with a dash. Its maximum length is 64 characters.
|
679
729
|
# @param [Google::Apis::BigqueryreservationV1::Reservation] reservation_object
|
@@ -709,6 +759,81 @@ module Google
|
|
709
759
|
execute_or_queue_command(command, &block)
|
710
760
|
end
|
711
761
|
|
762
|
+
# Sets an access control policy for a resource. Replaces any existing policy.
|
763
|
+
# Supported resources are: - Reservations To call this method, you must have the
|
764
|
+
# following Google IAM permissions: - `bigqueryreservation.reservations.
|
765
|
+
# setIamPolicy` to set policies on reservations.
|
766
|
+
# @param [String] resource
|
767
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
768
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
769
|
+
# appropriate value for this field.
|
770
|
+
# @param [Google::Apis::BigqueryreservationV1::SetIamPolicyRequest] set_iam_policy_request_object
|
771
|
+
# @param [String] fields
|
772
|
+
# Selector specifying which fields to include in a partial response.
|
773
|
+
# @param [String] quota_user
|
774
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
775
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
776
|
+
# @param [Google::Apis::RequestOptions] options
|
777
|
+
# Request-specific options
|
778
|
+
#
|
779
|
+
# @yield [result, err] Result & error if block supplied
|
780
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
|
781
|
+
# @yieldparam err [StandardError] error object if request failed
|
782
|
+
#
|
783
|
+
# @return [Google::Apis::BigqueryreservationV1::Policy]
|
784
|
+
#
|
785
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
786
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
787
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
788
|
+
def set_reservation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
789
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
790
|
+
command.request_representation = Google::Apis::BigqueryreservationV1::SetIamPolicyRequest::Representation
|
791
|
+
command.request_object = set_iam_policy_request_object
|
792
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
|
793
|
+
command.response_class = Google::Apis::BigqueryreservationV1::Policy
|
794
|
+
command.params['resource'] = resource unless resource.nil?
|
795
|
+
command.query['fields'] = fields unless fields.nil?
|
796
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
797
|
+
execute_or_queue_command(command, &block)
|
798
|
+
end
|
799
|
+
|
800
|
+
# Gets your permissions on a resource. Returns an empty set of permissions if
|
801
|
+
# the resource doesn't exist. Supported resources are: - Reservations No Google
|
802
|
+
# IAM permissions are required to call this method.
|
803
|
+
# @param [String] resource
|
804
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
805
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
806
|
+
# appropriate value for this field.
|
807
|
+
# @param [Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
808
|
+
# @param [String] fields
|
809
|
+
# Selector specifying which fields to include in a partial response.
|
810
|
+
# @param [String] quota_user
|
811
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
812
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
813
|
+
# @param [Google::Apis::RequestOptions] options
|
814
|
+
# Request-specific options
|
815
|
+
#
|
816
|
+
# @yield [result, err] Result & error if block supplied
|
817
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse] parsed result object
|
818
|
+
# @yieldparam err [StandardError] error object if request failed
|
819
|
+
#
|
820
|
+
# @return [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse]
|
821
|
+
#
|
822
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
823
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
824
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
825
|
+
def test_reservation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
826
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
827
|
+
command.request_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest::Representation
|
828
|
+
command.request_object = test_iam_permissions_request_object
|
829
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse::Representation
|
830
|
+
command.response_class = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse
|
831
|
+
command.params['resource'] = resource unless resource.nil?
|
832
|
+
command.query['fields'] = fields unless fields.nil?
|
833
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
834
|
+
execute_or_queue_command(command, &block)
|
835
|
+
end
|
836
|
+
|
712
837
|
# Creates an assignment object which allows the given project to submit jobs of
|
713
838
|
# a certain type using slots from the specified reservation. Currently a
|
714
839
|
# resource (project, folder, organization) can only have one assignment per each
|
@@ -805,6 +930,55 @@ module Google
|
|
805
930
|
execute_or_queue_command(command, &block)
|
806
931
|
end
|
807
932
|
|
933
|
+
# Gets the access control policy for a resource. May return: * A`NOT_FOUND`
|
934
|
+
# error if the resource doesn't exist or you don't have the permission to view
|
935
|
+
# it. * An empty policy if the resource exists but doesn't have a set policy.
|
936
|
+
# Supported resources are: - Reservations - ReservationAssignments To call this
|
937
|
+
# method, you must have the following Google IAM permissions: - `
|
938
|
+
# bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.
|
939
|
+
# @param [String] resource
|
940
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
941
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
942
|
+
# appropriate value for this field.
|
943
|
+
# @param [Fixnum] options_requested_policy_version
|
944
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
945
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
946
|
+
# rejected. Requests for policies with any conditional role bindings must
|
947
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
948
|
+
# valid value or leave the field unset. The policy in the response might use the
|
949
|
+
# policy version that you specified, or it might use a lower policy version. For
|
950
|
+
# example, if you specify version 3, but the policy has no conditional role
|
951
|
+
# bindings, the response uses version 1. To learn which resources support
|
952
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
953
|
+
# google.com/iam/help/conditions/resource-policies).
|
954
|
+
# @param [String] fields
|
955
|
+
# Selector specifying which fields to include in a partial response.
|
956
|
+
# @param [String] quota_user
|
957
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
958
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
959
|
+
# @param [Google::Apis::RequestOptions] options
|
960
|
+
# Request-specific options
|
961
|
+
#
|
962
|
+
# @yield [result, err] Result & error if block supplied
|
963
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
|
964
|
+
# @yieldparam err [StandardError] error object if request failed
|
965
|
+
#
|
966
|
+
# @return [Google::Apis::BigqueryreservationV1::Policy]
|
967
|
+
#
|
968
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
969
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
970
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
971
|
+
def get_project_location_reservation_assignment_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
972
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
973
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
|
974
|
+
command.response_class = Google::Apis::BigqueryreservationV1::Policy
|
975
|
+
command.params['resource'] = resource unless resource.nil?
|
976
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
977
|
+
command.query['fields'] = fields unless fields.nil?
|
978
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
979
|
+
execute_or_queue_command(command, &block)
|
980
|
+
end
|
981
|
+
|
808
982
|
# Lists assignments. Only explicitly created assignments will be returned.
|
809
983
|
# Example: * Organization `organizationA` contains two projects, `project1` and `
|
810
984
|
# project2`. * Reservation `res1` exists and was created previously. *
|
@@ -925,6 +1099,81 @@ module Google
|
|
925
1099
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
926
1100
|
execute_or_queue_command(command, &block)
|
927
1101
|
end
|
1102
|
+
|
1103
|
+
# Sets an access control policy for a resource. Replaces any existing policy.
|
1104
|
+
# Supported resources are: - Reservations To call this method, you must have the
|
1105
|
+
# following Google IAM permissions: - `bigqueryreservation.reservations.
|
1106
|
+
# setIamPolicy` to set policies on reservations.
|
1107
|
+
# @param [String] resource
|
1108
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1109
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1110
|
+
# appropriate value for this field.
|
1111
|
+
# @param [Google::Apis::BigqueryreservationV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1112
|
+
# @param [String] fields
|
1113
|
+
# Selector specifying which fields to include in a partial response.
|
1114
|
+
# @param [String] quota_user
|
1115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1117
|
+
# @param [Google::Apis::RequestOptions] options
|
1118
|
+
# Request-specific options
|
1119
|
+
#
|
1120
|
+
# @yield [result, err] Result & error if block supplied
|
1121
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::Policy] parsed result object
|
1122
|
+
# @yieldparam err [StandardError] error object if request failed
|
1123
|
+
#
|
1124
|
+
# @return [Google::Apis::BigqueryreservationV1::Policy]
|
1125
|
+
#
|
1126
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1127
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1128
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1129
|
+
def set_assignment_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1130
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1131
|
+
command.request_representation = Google::Apis::BigqueryreservationV1::SetIamPolicyRequest::Representation
|
1132
|
+
command.request_object = set_iam_policy_request_object
|
1133
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::Policy::Representation
|
1134
|
+
command.response_class = Google::Apis::BigqueryreservationV1::Policy
|
1135
|
+
command.params['resource'] = resource unless resource.nil?
|
1136
|
+
command.query['fields'] = fields unless fields.nil?
|
1137
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1138
|
+
execute_or_queue_command(command, &block)
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# Gets your permissions on a resource. Returns an empty set of permissions if
|
1142
|
+
# the resource doesn't exist. Supported resources are: - Reservations No Google
|
1143
|
+
# IAM permissions are required to call this method.
|
1144
|
+
# @param [String] resource
|
1145
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1146
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1147
|
+
# appropriate value for this field.
|
1148
|
+
# @param [Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1149
|
+
# @param [String] fields
|
1150
|
+
# Selector specifying which fields to include in a partial response.
|
1151
|
+
# @param [String] quota_user
|
1152
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1153
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1154
|
+
# @param [Google::Apis::RequestOptions] options
|
1155
|
+
# Request-specific options
|
1156
|
+
#
|
1157
|
+
# @yield [result, err] Result & error if block supplied
|
1158
|
+
# @yieldparam result [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse] parsed result object
|
1159
|
+
# @yieldparam err [StandardError] error object if request failed
|
1160
|
+
#
|
1161
|
+
# @return [Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse]
|
1162
|
+
#
|
1163
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1164
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1165
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1166
|
+
def test_assignment_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1167
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1168
|
+
command.request_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsRequest::Representation
|
1169
|
+
command.request_object = test_iam_permissions_request_object
|
1170
|
+
command.response_representation = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse::Representation
|
1171
|
+
command.response_class = Google::Apis::BigqueryreservationV1::TestIamPermissionsResponse
|
1172
|
+
command.params['resource'] = resource unless resource.nil?
|
1173
|
+
command.query['fields'] = fields unless fields.nil?
|
1174
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1175
|
+
execute_or_queue_command(command, &block)
|
1176
|
+
end
|
928
1177
|
|
929
1178
|
protected
|
930
1179
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-bigqueryreservation_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.45.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigqueryreservation_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.1'
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for BigQuery Reservation API V1
|
79
79
|
test_files: []
|