Show / Hide Table of Contents

Class AccessPoliciesResource

The "accessPolicies" collection of methods.

Inheritance
object
AccessPoliciesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AccessContextManager.v1
Assembly: Google.Apis.AccessContextManager.v1.dll
Syntax
public class AccessPoliciesResource

Constructors

AccessPoliciesResource(IClientService)

Constructs a new resource.

Declaration
public AccessPoliciesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

AccessLevels

Gets the AccessLevels resource.

Declaration
public virtual AccessPoliciesResource.AccessLevelsResource AccessLevels { get; }
Property Value
Type Description
AccessPoliciesResource.AccessLevelsResource

AuthorizedOrgsDescs

Gets the AuthorizedOrgsDescs resource.

Declaration
public virtual AccessPoliciesResource.AuthorizedOrgsDescsResource AuthorizedOrgsDescs { get; }
Property Value
Type Description
AccessPoliciesResource.AuthorizedOrgsDescsResource

ServicePerimeters

Gets the ServicePerimeters resource.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource ServicePerimeters { get; }
Property Value
Type Description
AccessPoliciesResource.ServicePerimetersResource

Methods

Create(AccessPolicy)

Creates an access policy. This method fails if the organization already has an access policy. The long-running operation has a successful status after the access policy propagates to long-lasting storage. Syntactic and basic semantic errors are returned in metadata as a BadRequest proto.

Declaration
public virtual AccessPoliciesResource.CreateRequest Create(AccessPolicy body)
Parameters
Type Name Description
AccessPolicy body

The body of the request.

Returns
Type Description
AccessPoliciesResource.CreateRequest

Delete(string)

Deletes an access policy based on the resource name. The long-running operation has a successful status after the access policy is removed from long-lasting storage.

Declaration
public virtual AccessPoliciesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Resource name for the access policy to delete. Format accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.DeleteRequest

Get(string)

Returns an access policy based on the name.

Declaration
public virtual AccessPoliciesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Resource name for the access policy to get. Format accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the IAM policy for the specified Access Context Manager access policy.

Declaration
public virtual AccessPoliciesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
AccessPoliciesResource.GetIamPolicyRequest

List()

Lists all access policies in an organization.

Declaration
public virtual AccessPoliciesResource.ListRequest List()
Returns
Type Description
AccessPoliciesResource.ListRequest

Patch(AccessPolicy, string)

Updates an access policy. The long-running operation from this RPC has a successful status after the changes to the access policy propagate to long-lasting storage.

Declaration
public virtual AccessPoliciesResource.PatchRequest Patch(AccessPolicy body, string name)
Parameters
Type Name Description
AccessPolicy body

The body of the request.

string name

Output only. Identifier. Resource name of the AccessPolicy. Format: accessPolicies/{access_policy}

Returns
Type Description
AccessPoliciesResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the IAM policy for the specified Access Context Manager access policy. This method replaces the existing IAM policy on the access policy. The IAM policy controls the set of users who can perform specific operations on the Access Context Manager access policy.

Declaration
public virtual AccessPoliciesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
AccessPoliciesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does not support other resources.

Declaration
public virtual AccessPoliciesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
AccessPoliciesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX