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
Copy file name to clipboardExpand all lines: clients/eventarc/lib/google_api/eventarc/v1/api/projects.ex
+218Lines changed: 218 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2607,6 +2607,224 @@ defmodule GoogleApi.Eventarc.V1.Api.Projects do
2607
2607
)
2608
2608
end
2609
2609
2610
+
@doc"""
2611
+
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
2612
+
2613
+
## Parameters
2614
+
2615
+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2616
+
* `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.
2621
+
* `:callback` (*type:* `String.t`) - JSONP
2622
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2623
+
* `: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.
2624
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2625
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2626
+
* `: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.
2627
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2628
+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
2629
+
* `:"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).
2630
+
* `opts` (*type:* `keyword()`) - Call options
2631
+
2632
+
## Returns
2633
+
2634
+
* `{:ok, %GoogleApi.Eventarc.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.
2684
+
2685
+
## Parameters
2686
+
2687
+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2688
+
* `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.
2693
+
* `:callback` (*type:* `String.t`) - JSONP
2694
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2695
+
* `: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.
2696
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2697
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2698
+
* `: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.
2699
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2700
+
* `: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.
2756
+
2757
+
## Parameters
2758
+
2759
+
* `connection` (*type:* `GoogleApi.Eventarc.V1.Connection.t`) - Connection to server
2760
+
* `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.
2765
+
* `:callback` (*type:* `String.t`) - JSONP
2766
+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
2767
+
* `: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.
2768
+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
2769
+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
2770
+
* `: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.
2771
+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
2772
+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
0 commit comments