You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
359
-
360
-
## Parameters
361
-
362
-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
363
-
* `resource` (*type:* `String.t`) - 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.
* `:alt` (*type:* `String.t`) - Data format for response.
368
-
* `:callback` (*type:* `String.t`) - JSONP
369
-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
370
-
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
371
-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
372
-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
373
-
* `:quotaUser` (*type:* `String.t`) - 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.
374
-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
375
-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
376
-
* `:"options.requestedPolicyVersion"` (*type:* `integer()`) - 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).
377
-
* `opts` (*type:* `keyword()`) - Call options
378
-
379
-
## Returns
380
-
381
-
* `{:ok, %GoogleApi.IDS.V1.Model.Policy{}}` on success
Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
575
-
576
-
## Parameters
577
-
578
-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
579
-
* `resource` (*type:* `String.t`) - 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.
* `:alt` (*type:* `String.t`) - Data format for response.
584
-
* `:callback` (*type:* `String.t`) - JSONP
585
-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
586
-
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
587
-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
588
-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
589
-
* `:quotaUser` (*type:* `String.t`) - 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.
590
-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
591
-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
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.
647
-
648
-
## Parameters
649
-
650
-
* `connection` (*type:* `GoogleApi.IDS.V1.Connection.t`) - Connection to server
651
-
* `resource` (*type:* `String.t`) - 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.
* `:alt` (*type:* `String.t`) - Data format for response.
656
-
* `:callback` (*type:* `String.t`) - JSONP
657
-
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
658
-
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
659
-
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
660
-
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
661
-
* `:quotaUser` (*type:* `String.t`) - 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.
662
-
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
663
-
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
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`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
0 commit comments