google-apis-bigqueryreservation_v1 0.43.0 → 0.44.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: 77c5f905a2a2f7f23d42eb8bdedbc950a765a24d5ce49faed56f201b9ca3de6c
4
- data.tar.gz: 94ada5dd1ecf80f7cc3dc854e26156184f5cb9662d903984d03dd96927560cf4
3
+ metadata.gz: 154c880d5f9e8ddbd5cd5e1571d4e1f4b921f8d4d2466d80adc8791829e064a6
4
+ data.tar.gz: 25137aceae030a3767903e040b18d902bfa74c505e2bca316b83a889afd0f580
5
5
  SHA512:
6
- metadata.gz: 29705975059c2d8346e3a50277c1d22fd840f888454c4cb21f96ffdb6b0bbebc7d868ac8bd5469f982dd0b4b46551b4020740b6cf3abefe8ce09bcc007b20b2e
7
- data.tar.gz: 9d427d328099f8b0f50681acd4b81522724f6e3c056b31abf3f2f1ba364b90f9b284847d5937e2ce0428047176c99e4ed7ef4ee6c35904da5d4662053d594c07
6
+ metadata.gz: be6276a2baa2201dbf5a8be6e7412491419a5a81d0e2cca826f4e549db086d7fb83ad2f0d2bd02908504239d5650c298184b84c61cfba31c42ca3005da85b931
7
+ data.tar.gz: 20bf29e5469235697f129304b43d2529caafab2552da38113d286bd1704f73e99283a04c083ecc18219b58edcb083733b1366add23001e32fd3f35bdcbb03e0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-bigqueryreservation_v1
2
2
 
3
+ ### v0.44.0 (2025-05-18)
4
+
5
+ * Regenerated from discovery document revision 20250503
6
+ * Regenerated using generator version 0.17.0
7
+
3
8
  ### v0.43.0 (2025-03-23)
4
9
 
5
10
  * 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 2.7+.
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/myproject`, `
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 names have the
114
- # form `projects/`project_id`/locations/`location_id`/biReservation`.
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 commitment_end_time
220
- # passes. Once the plan is changed, committed period is extended according to
221
- # commitment plan. Only applicable for ANNUAL and TRIAL commitments.
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,6 +443,60 @@ 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
@@ -422,6 +650,101 @@ module Google
422
650
  end
423
651
  end
424
652
 
653
+ # An Identity and Access Management (IAM) policy, which specifies access
654
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
655
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
656
+ # Principals can be user accounts, service accounts, Google groups, and domains (
657
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
658
+ # an IAM predefined role or a user-created custom role. For some types of Google
659
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
660
+ # logical expression that allows access to a resource only if the expression
661
+ # evaluates to `true`. A condition can add constraints based on attributes of
662
+ # the request, the resource, or both. To learn which resources support
663
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
664
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
665
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
666
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
667
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
668
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
669
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
670
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
671
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
672
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
673
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
674
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
675
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
676
+ # title: expirable access description: Does not grant access after Sep 2020
677
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
678
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
679
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
680
+ class Policy
681
+ include Google::Apis::Core::Hashable
682
+
683
+ # Specifies cloud audit logging configuration for this policy.
684
+ # Corresponds to the JSON property `auditConfigs`
685
+ # @return [Array<Google::Apis::BigqueryreservationV1::AuditConfig>]
686
+ attr_accessor :audit_configs
687
+
688
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
689
+ # specify a `condition` that determines how and when the `bindings` are applied.
690
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
691
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
692
+ # can be Google groups. Each occurrence of a principal counts towards these
693
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
694
+ # example.com`, and not to any other principal, then you can add another 1,450
695
+ # principals to the `bindings` in the `Policy`.
696
+ # Corresponds to the JSON property `bindings`
697
+ # @return [Array<Google::Apis::BigqueryreservationV1::Binding>]
698
+ attr_accessor :bindings
699
+
700
+ # `etag` is used for optimistic concurrency control as a way to help prevent
701
+ # simultaneous updates of a policy from overwriting each other. It is strongly
702
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
703
+ # to perform policy updates in order to avoid race conditions: An `etag` is
704
+ # returned in the response to `getIamPolicy`, and systems are expected to put
705
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
706
+ # applied to the same version of the policy. **Important:** If you use IAM
707
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
708
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
709
+ # with a version `1` policy, and all of the conditions in the version `3` policy
710
+ # are lost.
711
+ # Corresponds to the JSON property `etag`
712
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
713
+ # @return [String]
714
+ attr_accessor :etag
715
+
716
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
717
+ # Requests that specify an invalid value are rejected. Any operation that
718
+ # affects conditional role bindings must specify version `3`. This requirement
719
+ # applies to the following operations: * Getting a policy that includes a
720
+ # conditional role binding * Adding a conditional role binding to a policy *
721
+ # Changing a conditional role binding in a policy * Removing any role binding,
722
+ # with or without a condition, from a policy that includes conditions **
723
+ # Important:** If you use IAM Conditions, you must include the `etag` field
724
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
725
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
726
+ # conditions in the version `3` policy are lost. If a policy does not include
727
+ # any conditions, operations on that policy may specify any valid version or
728
+ # leave the field unset. To learn which resources support conditions in their
729
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
730
+ # conditions/resource-policies).
731
+ # Corresponds to the JSON property `version`
732
+ # @return [Fixnum]
733
+ attr_accessor :version
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
742
+ @bindings = args[:bindings] if args.key?(:bindings)
743
+ @etag = args[:etag] if args.key?(:etag)
744
+ @version = args[:version] if args.key?(:version)
745
+ end
746
+ end
747
+
425
748
  # Disaster Recovery(DR) replication status of the reservation.
426
749
  class ReplicationStatus
427
750
  include Google::Apis::Core::Hashable
@@ -470,12 +793,12 @@ module Google
470
793
  # @return [Google::Apis::BigqueryreservationV1::Autoscale]
471
794
  attr_accessor :autoscale
472
795
 
473
- # Job concurrency target which sets a soft upper bound on the number of jobs
474
- # that can run concurrently in this reservation. This is a soft target due to
475
- # asynchronous nature of the system and various optimizations for small queries.
476
- # Default value is 0 which means that concurrency target will be automatically
477
- # computed by the system. NOTE: this field is exposed as target job concurrency
478
- # in the Information Schema, DDL and BigQuery CLI.
796
+ # Optional. Job concurrency target which sets a soft upper bound on the number
797
+ # of jobs that can run concurrently in this reservation. This is a soft target
798
+ # due to asynchronous nature of the system and various optimizations for small
799
+ # queries. Default value is 0 which means that concurrency target will be
800
+ # automatically computed by the system. NOTE: this field is exposed as target
801
+ # job concurrency in the Information Schema, DDL and BigQuery CLI.
479
802
  # Corresponds to the JSON property `concurrency`
480
803
  # @return [Fixnum]
481
804
  attr_accessor :concurrency
@@ -485,15 +808,15 @@ module Google
485
808
  # @return [String]
486
809
  attr_accessor :creation_time
487
810
 
488
- # Edition of the reservation.
811
+ # Optional. Edition of the reservation.
489
812
  # Corresponds to the JSON property `edition`
490
813
  # @return [String]
491
814
  attr_accessor :edition
492
815
 
493
- # If false, any query or pipeline job using this reservation will use idle slots
494
- # from other reservations within the same admin project. If true, a query or
495
- # pipeline job using this reservation will execute with the slot capacity
496
- # specified in the slot_capacity field at most.
816
+ # Optional. If false, any query or pipeline job using this reservation will use
817
+ # idle slots from other reservations within the same admin project. If true, a
818
+ # query or pipeline job using this reservation will execute with the slot
819
+ # capacity specified in the slot_capacity field at most.
497
820
  # Corresponds to the JSON property `ignoreIdleSlots`
498
821
  # @return [Boolean]
499
822
  attr_accessor :ignore_idle_slots
@@ -553,8 +876,8 @@ module Google
553
876
  attr_accessor :multi_region_auxiliary
554
877
  alias_method :multi_region_auxiliary?, :multi_region_auxiliary
555
878
 
556
- # The resource name of the reservation, e.g., `projects/*/locations/*/
557
- # reservations/team1-prod`. The reservation_id must only contain lower case
879
+ # Identifier. The resource name of the reservation, e.g., `projects/*/locations/*
880
+ # /reservations/team1-prod`. The reservation_id must only contain lower case
558
881
  # alphanumeric characters or dashes. It must start with a letter and must not
559
882
  # end with a dash. Its maximum length is 64 characters.
560
883
  # Corresponds to the JSON property `name`
@@ -579,9 +902,9 @@ module Google
579
902
  # @return [Google::Apis::BigqueryreservationV1::ReplicationStatus]
580
903
  attr_accessor :replication_status
581
904
 
582
- # The scaling mode for the reservation. If the field is present but max_slots is
583
- # not present, requests will be rejected with error code `google.rpc.Code.
584
- # INVALID_ARGUMENT`.
905
+ # Optional. The scaling mode for the reservation. If the field is present but
906
+ # max_slots is not present, requests will be rejected with error code `google.
907
+ # rpc.Code.INVALID_ARGUMENT`.
585
908
  # Corresponds to the JSON property `scalingMode`
586
909
  # @return [String]
587
910
  attr_accessor :scaling_mode
@@ -595,7 +918,7 @@ module Google
595
918
  # @return [String]
596
919
  attr_accessor :secondary_location
597
920
 
598
- # Baseline slots available to this reservation. A slot is a unit of
921
+ # Optional. Baseline slots available to this reservation. A slot is a unit of
599
922
  # computational power in BigQuery, and serves as the unit of parallelism.
600
923
  # Queries using this reservation might use more slots during runtime if
601
924
  # ignore_idle_slots is set to false, or autoscaling is enabled. The total
@@ -692,6 +1015,59 @@ module Google
692
1015
  end
693
1016
  end
694
1017
 
1018
+ # Request message for `SetIamPolicy` method.
1019
+ class SetIamPolicyRequest
1020
+ include Google::Apis::Core::Hashable
1021
+
1022
+ # An Identity and Access Management (IAM) policy, which specifies access
1023
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1024
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
1025
+ # Principals can be user accounts, service accounts, Google groups, and domains (
1026
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
1027
+ # an IAM predefined role or a user-created custom role. For some types of Google
1028
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
1029
+ # logical expression that allows access to a resource only if the expression
1030
+ # evaluates to `true`. A condition can add constraints based on attributes of
1031
+ # the request, the resource, or both. To learn which resources support
1032
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1033
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
1034
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1035
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1036
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1037
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1038
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
1039
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1040
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
1041
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
1042
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
1043
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
1044
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
1045
+ # title: expirable access description: Does not grant access after Sep 2020
1046
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
1047
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
1048
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1049
+ # Corresponds to the JSON property `policy`
1050
+ # @return [Google::Apis::BigqueryreservationV1::Policy]
1051
+ attr_accessor :policy
1052
+
1053
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1054
+ # the fields in the mask will be modified. If no mask is provided, the following
1055
+ # default mask is used: `paths: "bindings, etag"`
1056
+ # Corresponds to the JSON property `updateMask`
1057
+ # @return [String]
1058
+ attr_accessor :update_mask
1059
+
1060
+ def initialize(**args)
1061
+ update!(**args)
1062
+ end
1063
+
1064
+ # Update properties of this object
1065
+ def update!(**args)
1066
+ @policy = args[:policy] if args.key?(:policy)
1067
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1068
+ end
1069
+ end
1070
+
695
1071
  # The request for ReservationService.SplitCapacityCommitment.
696
1072
  class SplitCapacityCommitmentRequest
697
1073
  include Google::Apis::Core::Hashable
@@ -790,17 +1166,17 @@ module Google
790
1166
  class TableReference
791
1167
  include Google::Apis::Core::Hashable
792
1168
 
793
- # The ID of the dataset in the above project.
1169
+ # Optional. The ID of the dataset in the above project.
794
1170
  # Corresponds to the JSON property `datasetId`
795
1171
  # @return [String]
796
1172
  attr_accessor :dataset_id
797
1173
 
798
- # The assigned project ID of the project.
1174
+ # Optional. The assigned project ID of the project.
799
1175
  # Corresponds to the JSON property `projectId`
800
1176
  # @return [String]
801
1177
  attr_accessor :project_id
802
1178
 
803
- # The ID of the table in the above dataset.
1179
+ # Optional. The ID of the table in the above dataset.
804
1180
  # Corresponds to the JSON property `tableId`
805
1181
  # @return [String]
806
1182
  attr_accessor :table_id
@@ -816,6 +1192,46 @@ module Google
816
1192
  @table_id = args[:table_id] if args.key?(:table_id)
817
1193
  end
818
1194
  end
1195
+
1196
+ # Request message for `TestIamPermissions` method.
1197
+ class TestIamPermissionsRequest
1198
+ include Google::Apis::Core::Hashable
1199
+
1200
+ # The set of permissions to check for the `resource`. Permissions with wildcards
1201
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
1202
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
1203
+ # Corresponds to the JSON property `permissions`
1204
+ # @return [Array<String>]
1205
+ attr_accessor :permissions
1206
+
1207
+ def initialize(**args)
1208
+ update!(**args)
1209
+ end
1210
+
1211
+ # Update properties of this object
1212
+ def update!(**args)
1213
+ @permissions = args[:permissions] if args.key?(:permissions)
1214
+ end
1215
+ end
1216
+
1217
+ # Response message for `TestIamPermissions` method.
1218
+ class TestIamPermissionsResponse
1219
+ include Google::Apis::Core::Hashable
1220
+
1221
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1222
+ # Corresponds to the JSON property `permissions`
1223
+ # @return [Array<String>]
1224
+ attr_accessor :permissions
1225
+
1226
+ def initialize(**args)
1227
+ update!(**args)
1228
+ end
1229
+
1230
+ # Update properties of this object
1231
+ def update!(**args)
1232
+ @permissions = args[:permissions] if args.key?(:permissions)
1233
+ end
1234
+ end
819
1235
  end
820
1236
  end
821
1237
  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.43.0"
19
+ GEM_VERSION = "0.44.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250316"
25
+ REVISION = "20250503"
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,6 +265,16 @@ 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
@@ -239,6 +324,18 @@ module Google
239
324
  end
240
325
  end
241
326
 
327
+ class Policy
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryreservationV1::AuditConfig, decorator: Google::Apis::BigqueryreservationV1::AuditConfig::Representation
331
+
332
+ collection :bindings, as: 'bindings', class: Google::Apis::BigqueryreservationV1::Binding, decorator: Google::Apis::BigqueryreservationV1::Binding::Representation
333
+
334
+ property :etag, :base64 => true, as: 'etag'
335
+ property :version, as: 'version'
336
+ end
337
+ end
338
+
242
339
  class ReplicationStatus
243
340
  # @private
244
341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +388,15 @@ module Google
291
388
  end
292
389
  end
293
390
 
391
+ class SetIamPolicyRequest
392
+ # @private
393
+ class Representation < Google::Apis::Core::JsonRepresentation
394
+ property :policy, as: 'policy', class: Google::Apis::BigqueryreservationV1::Policy, decorator: Google::Apis::BigqueryreservationV1::Policy::Representation
395
+
396
+ property :update_mask, as: 'updateMask'
397
+ end
398
+ end
399
+
294
400
  class SplitCapacityCommitmentRequest
295
401
  # @private
296
402
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -325,6 +431,20 @@ module Google
325
431
  property :table_id, as: 'tableId'
326
432
  end
327
433
  end
434
+
435
+ class TestIamPermissionsRequest
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ collection :permissions, as: 'permissions'
439
+ end
440
+ end
441
+
442
+ class TestIamPermissionsResponse
443
+ # @private
444
+ class Representation < Google::Apis::Core::JsonRepresentation
445
+ collection :permissions, as: 'permissions'
446
+ end
447
+ end
328
448
  end
329
449
  end
330
450
  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 names have the
194
- # form `projects/`project_id`/locations/`location_id`/biReservation`.
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 To call this method, you must have the
641
+ # following Google IAM permissions: - `bigqueryreservation.reservations.
642
+ # 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
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.43.0
4
+ version: 0.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
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.43.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigqueryreservation_v1/v0.44.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: '2.7'
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.5
76
+ rubygems_version: 3.6.8
77
77
  specification_version: 4
78
78
  summary: Simple REST client for BigQuery Reservation API V1
79
79
  test_files: []