From 7bc9f9a8a916cf52a863a1b2ce2f0072a205253b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Sep 2025 10:41:05 +0000 Subject: [PATCH] feat: Automated regeneration of dataform v1beta1 client --- .../google-apis-dataform_v1beta1/CHANGELOG.md | 4 + .../google/apis/dataform_v1beta1/classes.rb | 329 ------------ .../apis/dataform_v1beta1/gem_version.rb | 4 +- .../apis/dataform_v1beta1/representations.rb | 88 ---- .../google/apis/dataform_v1beta1/service.rb | 484 ------------------ 5 files changed, 6 insertions(+), 903 deletions(-) diff --git a/generated/google-apis-dataform_v1beta1/CHANGELOG.md b/generated/google-apis-dataform_v1beta1/CHANGELOG.md index b52469dfdef..4730868c7e5 100644 --- a/generated/google-apis-dataform_v1beta1/CHANGELOG.md +++ b/generated/google-apis-dataform_v1beta1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-dataform_v1beta1 +### v0.49.0 (2025-09-21) + +* Regenerated from discovery document revision 20250917 + ### v0.48.0 (2025-09-14) * Regenerated from discovery document revision 20250907 diff --git a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb index 62efdd18dd1..18522cfac81 100644 --- a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb +++ b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb @@ -227,107 +227,6 @@ def update!(**args) end end - # Associates `members`, or principals, with a `role`. - class Binding - include Google::Apis::Core::Hashable - - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - # Corresponds to the JSON property `condition` - # @return [Google::Apis::DataformV1beta1::Expr] - attr_accessor :condition - - # Specifies the principals requesting access for a Google Cloud resource. ` - # members` can have the following values: * `allUsers`: A special identifier - # that represents anyone who is on the internet; with or without a Google - # account. * `allAuthenticatedUsers`: A special identifier that represents - # anyone who is authenticated with a Google account or a service account. Does - # not include identities that come from external identity providers (IdPs) - # through identity federation. * `user:`emailid``: An email address that - # represents a specific Google account. For example, `alice@example.com` . * ` - # serviceAccount:`emailid``: An email address that represents a Google service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. * ` - # serviceAccount:`projectid`.svc.id.goog[`namespace`/`kubernetes-sa`]`: An - # identifier for a [Kubernetes service account](https://cloud.google.com/ - # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my- - # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An - # email address that represents a Google group. For example, `admins@example.com` - # . * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. * `principal: - # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/` - # subject_attribute_value``: A single identity in a workforce identity pool. * ` - # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/ - # group/`group_id``: All workforce identities in a group. * `principalSet://iam. - # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.` - # attribute_name`/`attribute_value``: All workforce identities with a specific - # attribute value. * `principalSet://iam.googleapis.com/locations/global/ - # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * ` - # principal://iam.googleapis.com/projects/`project_number`/locations/global/ - # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single - # identity in a workload identity pool. * `principalSet://iam.googleapis.com/ - # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/ - # group/`group_id``: A workload identity pool group. * `principalSet://iam. - # googleapis.com/projects/`project_number`/locations/global/ - # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``: - # All identities in a workload identity pool with a certain attribute. * ` - # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/ - # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For example, ` - # alice@example.com?uid=123456789012345678901`. If the user is recovered, this - # value reverts to `user:`emailid`` and the recovered user retains the role in - # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email - # address (plus unique identifier) representing a service account that has been - # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid= - # 123456789012345678901`. If the service account is undeleted, this value - # reverts to `serviceAccount:`emailid`` and the undeleted service account - # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``: - # An email address (plus unique identifier) representing a Google group that has - # been recently deleted. For example, `admins@example.com?uid= - # 123456789012345678901`. If the group is recovered, this value reverts to ` - # group:`emailid`` and the recovered group retains the role in the binding. * ` - # deleted:principal://iam.googleapis.com/locations/global/workforcePools/` - # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a - # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/ - # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to the list of `members`, or principals. For example, ` - # roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM - # roles and permissions, see the [IAM documentation](https://cloud.google.com/ - # iam/docs/roles-overview). For a list of the available pre-defined roles, see [ - # here](https://cloud.google.com/iam/docs/understanding-roles). - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @condition = args[:condition] if args.key?(:condition) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - # The request message for Operations.CancelOperation. class CancelOperationRequest include Google::Apis::Core::Hashable @@ -1133,60 +1032,6 @@ def update!(**args) end end - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - class Expr - include Google::Apis::Core::Hashable - - # Optional. Description of the expression. This is a longer text which describes - # the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Textual representation of an expression in Common Expression Language syntax. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - # Optional. String indicating the location of the expression for error reporting, - # e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # Optional. Title for the expression, i.e. a short string describing its purpose. - # This can be used e.g. in UIs which allow to enter the expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - @location = args[:location] if args.key?(:location) - @title = args[:title] if args.key?(:title) - end - end - # `FetchFileDiff` response message. class FetchFileDiffResponse include Google::Apis::Core::Hashable @@ -2308,95 +2153,6 @@ def update!(**args) end end - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. - # A `binding` binds one or more `members`, or principals, to a single `role`. - # Principals can be user accounts, service accounts, Google groups, and domains ( - # such as G Suite). A `role` is a named list of permissions; each `role` can be - # an IAM predefined role or a user-created custom role. For some types of Google - # Cloud resources, a `binding` can also specify a `condition`, which is a - # logical expression that allows access to a resource only if the expression - # evaluates to `true`. A condition can add constraints based on attributes of - # the request, the resource, or both. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` " - # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [ - # "user:mike@example.com", "group:admins@example.com", "domain:google.com", " - # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " - # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" - # ], "condition": ` "title": "expirable access", "description": "Does not grant - # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: - # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML - # example:** ``` bindings: - members: - user:mike@example.com - group:admins@ - # example.com - domain:google.com - serviceAccount:my-project-id@appspot. - # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - - # user:eve@example.com role: roles/resourcemanager.organizationViewer condition: - # title: expirable access description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: - # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - class Policy - include Google::Apis::Core::Hashable - - # Associates a list of `members`, or principals, with a `role`. Optionally, may - # specify a `condition` that determines how and when the `bindings` are applied. - # Each of the `bindings` must contain at least one principal. The `bindings` in - # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals - # can be Google groups. Each occurrence of a principal counts towards these - # limits. For example, if the `bindings` grant 50 different roles to `user:alice@ - # example.com`, and not to any other principal, then you can add another 1,450 - # principals to the `bindings` in the `Policy`. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help prevent - # simultaneous updates of a policy from overwriting each other. It is strongly - # suggested that systems make use of the `etag` in the read-modify-write cycle - # to perform policy updates in order to avoid race conditions: An `etag` is - # returned in the response to `getIamPolicy`, and systems are expected to put - # that etag in the request to `setIamPolicy` to ensure that their change will be - # applied to the same version of the policy. **Important:** If you use IAM - # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. - # If you omit this field, then IAM allows you to overwrite a version `3` policy - # with a version `1` policy, and all of the conditions in the version `3` policy - # are lost. - # Corresponds to the JSON property `etag` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :etag - - # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. - # Requests that specify an invalid value are rejected. Any operation that - # affects conditional role bindings must specify version `3`. This requirement - # applies to the following operations: * Getting a policy that includes a - # conditional role binding * Adding a conditional role binding to a policy * - # Changing a conditional role binding in a policy * Removing any role binding, - # with or without a condition, from a policy that includes conditions ** - # Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you - # to overwrite a version `3` policy with a version `1` policy, and all of the - # conditions in the version `3` policy are lost. If a policy does not include - # any conditions, operations on that policy may specify any valid version or - # leave the field unset. To learn which resources support conditions in their - # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ - # conditions/resource-policies). - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @version = args[:version] if args.key?(:version) - end - end - # An internal name for an IAM policy, based on the resource to which the policy # applies. Not to be confused with a resource's external full resource name. For # more information on this distinction, see go/iam-full-resource-names. @@ -3209,51 +2965,6 @@ def update!(**args) end end - # Request message for `SetIamPolicy` method. - class SetIamPolicyRequest - include Google::Apis::Core::Hashable - - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. - # A `binding` binds one or more `members`, or principals, to a single `role`. - # Principals can be user accounts, service accounts, Google groups, and domains ( - # such as G Suite). A `role` is a named list of permissions; each `role` can be - # an IAM predefined role or a user-created custom role. For some types of Google - # Cloud resources, a `binding` can also specify a `condition`, which is a - # logical expression that allows access to a resource only if the expression - # evaluates to `true`. A condition can add constraints based on attributes of - # the request, the resource, or both. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` " - # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [ - # "user:mike@example.com", "group:admins@example.com", "domain:google.com", " - # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " - # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" - # ], "condition": ` "title": "expirable access", "description": "Does not grant - # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: - # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML - # example:** ``` bindings: - members: - user:mike@example.com - group:admins@ - # example.com - domain:google.com - serviceAccount:my-project-id@appspot. - # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - - # user:eve@example.com role: roles/resourcemanager.organizationViewer condition: - # title: expirable access description: Does not grant access after Sep 2020 - # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: - # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the - # [IAM documentation](https://cloud.google.com/iam/docs/). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::DataformV1beta1::Policy] - attr_accessor :policy - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - end - end - # Simple load definition class SimpleLoadMode include Google::Apis::Core::Hashable @@ -3398,46 +3109,6 @@ def update!(**args) end end - # Request message for `TestIamPermissions` method. - class TestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as `*` or `storage.*`) are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Response message for `TestIamPermissions` method. - class TestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - # Represents the Git state of a file with uncommitted changes. class UncommittedFileChange include Google::Apis::Core::Hashable diff --git a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb index f5acedd5b52..970906ebb0d 100644 --- a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb +++ b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DataformV1beta1 # Version of the google-apis-dataform_v1beta1 gem - GEM_VERSION = "0.48.0" + GEM_VERSION = "0.49.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250907" + REVISION = "20250917" end end end diff --git a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb index 13527027b18..3f088d253f6 100644 --- a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb +++ b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb @@ -64,12 +64,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Binding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class CancelOperationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -226,12 +220,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Expr - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class FetchFileDiffResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -454,12 +442,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Policy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class PolicyName class Representation < Google::Apis::Core::JsonRepresentation; end @@ -610,12 +592,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class SetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class SimpleLoadMode class Representation < Google::Apis::Core::JsonRepresentation; end @@ -646,18 +622,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class TestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class UncommittedFileChange class Representation < Google::Apis::Core::JsonRepresentation; end @@ -782,16 +746,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class Binding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :condition, as: 'condition', class: Google::Apis::DataformV1beta1::Expr, decorator: Google::Apis::DataformV1beta1::Expr::Representation - - collection :members, as: 'members' - property :role, as: 'role' - end - end - class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1043,16 +997,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class Expr - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :expression, as: 'expression' - property :location, as: 'location' - property :title, as: 'title' - end - end - class FetchFileDiffResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1392,16 +1336,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class Policy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :bindings, as: 'bindings', class: Google::Apis::DataformV1beta1::Binding, decorator: Google::Apis::DataformV1beta1::Binding::Representation - - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - end - end - class PolicyName # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1639,14 +1573,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class SetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::DataformV1beta1::Policy, decorator: Google::Apis::DataformV1beta1::Policy::Representation - - end - end - class SimpleLoadMode # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1690,20 +1616,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class TestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class TestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - class UncommittedFileChange # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/service.rb b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/service.rb index f0b7c9b4fa3..65be7179272 100644 --- a/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/service.rb +++ b/generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/service.rb @@ -198,127 +198,6 @@ def update_project_location_config(name, config_object = nil, update_mask: nil, execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_folder_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_folder_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_folder_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. @@ -705,51 +584,6 @@ def get_project_location_repository(name, fields: nil, quota_user: nil, options: execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_repository_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Lists Repositories in a given project and location. **Note:** *This method can # return repositories not shown in the [Dataform UI](https://console.cloud. # google.com/bigquery/dataform)*. @@ -930,82 +764,6 @@ def read_project_location_repository_file(name, commit_sha: nil, path: nil, fiel execute_or_queue_command(command, &block) end - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_repository_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_repository_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Creates a new CompilationResult in a given project and location. # @param [String] parent # Required. The repository in which to create the compilation result. Must be in @@ -1973,51 +1731,6 @@ def get_project_location_repository_workspace(name, fields: nil, quota_user: nil execute_or_queue_command(command, &block) end - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_repository_workspace_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Installs dependency NPM packages (inside a Workspace). # @param [String] workspace # Required. The workspace's name. @@ -2494,82 +2207,6 @@ def search_project_location_repository_workspace_files(workspace, filter: nil, p execute_or_queue_command(command, &block) end - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_workspace_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_workspace_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Writes to a file (inside a Workspace). # @param [String] workspace # Required. The workspace's name. @@ -2602,127 +2239,6 @@ def write_workspace_file(workspace, write_file_request_object = nil, fields: nil command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The maximum policy version that will be used to format the policy. - # Valid values are 0, 1, and 3. Requests specifying an invalid value will be - # rejected. Requests for policies with any conditional role bindings must - # specify version 3. Policies with no conditional role bindings may specify any - # valid value or leave the field unset. The policy in the response might use the - # policy version that you specified, or it might use a lower policy version. For - # example, if you specify version 3, but the policy has no conditional role - # bindings, the response uses version 1. To learn which resources support - # conditions in their IAM policies, see the [IAM documentation](https://cloud. - # google.com/iam/help/conditions/resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_team_folder_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See [Resource - # names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::SetIamPolicyRequest] set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::Policy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::Policy] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_team_folder_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::DataformV1beta1::SetIamPolicyRequest::Representation - command.request_object = set_iam_policy_request_object - command.response_representation = Google::Apis::DataformV1beta1::Policy::Representation - command.response_class = Google::Apis::DataformV1beta1::Policy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See [ - # Resource names](https://cloud.google.com/apis/design/resource_names) for the - # appropriate value for this field. - # @param [Google::Apis::DataformV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::DataformV1beta1::TestIamPermissionsResponse] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_team_folder_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::DataformV1beta1::TestIamPermissionsRequest::Representation - command.request_object = test_iam_permissions_request_object - command.response_representation = Google::Apis::DataformV1beta1::TestIamPermissionsResponse::Representation - command.response_class = Google::Apis::DataformV1beta1::TestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end protected