Class ProjectsResource.LocationsResource.ServicesResource.GetIamPolicyRequest
Get the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRun.v1alpha1
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class GetIamPolicyRequest : CloudRunBaseServiceRequest<Policy>, IClientServiceRequest<Policy>, IClientServiceRequest
Constructors
GetIamPolicyRequest(IClientService, String)
Constructs a new GetIamPolicy request.
Declaration
public GetIamPolicyRequest(IClientService service, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | resource |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
OptionsRequestedPolicyVersion
Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value 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).
Declaration
[RequestParameter("options.requestedPolicyVersion", RequestParameterType.Query)]
public virtual int? OptionsRequestedPolicyVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Resource
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
Declaration
[RequestParameter("resource", RequestParameterType.Path)]
public virtual string Resource { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
InitParameters()
Initializes GetIamPolicy parameter list.
Declaration
protected override void InitParameters()