Identity Access Context Manager v1 API - Class AccessContextManagerClient (2.4.0)

public abstract class AccessContextManagerClient

Reference documentation and code samples for the Identity Access Context Manager v1 API class AccessContextManagerClient.

AccessContextManager client wrapper, for convenient use.

Inheritance

object > AccessContextManagerClient

Namespace

Google.Identity.AccessContextManager.V1

Assembly

Google.Identity.AccessContextManager.V1.dll

Remarks

API for setting [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for Google Cloud projects. Each organization has one [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that contains the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]. This [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is applicable to all resources in the organization. AccessPolicies

Properties

CommitServicePerimetersOperationsClient

public virtual OperationsClient CommitServicePerimetersOperationsClient { get; }

The long-running operations client for CommitServicePerimeters.

Property Value
Type Description
OperationsClient

CreateAccessLevelOperationsClient

public virtual OperationsClient CreateAccessLevelOperationsClient { get; }

The long-running operations client for CreateAccessLevel.

Property Value
Type Description
OperationsClient

CreateAccessPolicyOperationsClient

public virtual OperationsClient CreateAccessPolicyOperationsClient { get; }

The long-running operations client for CreateAccessPolicy.

Property Value
Type Description
OperationsClient

CreateGcpUserAccessBindingOperationsClient

public virtual OperationsClient CreateGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for CreateGcpUserAccessBinding.

Property Value
Type Description
OperationsClient

CreateServicePerimeterOperationsClient

public virtual OperationsClient CreateServicePerimeterOperationsClient { get; }

The long-running operations client for CreateServicePerimeter.

Property Value
Type Description
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the AccessContextManager service, which is a host of "accesscontextmanager.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default AccessContextManager scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default AccessContextManager scopes are:

DeleteAccessLevelOperationsClient

public virtual OperationsClient DeleteAccessLevelOperationsClient { get; }

The long-running operations client for DeleteAccessLevel.

Property Value
Type Description
OperationsClient

DeleteAccessPolicyOperationsClient

public virtual OperationsClient DeleteAccessPolicyOperationsClient { get; }

The long-running operations client for DeleteAccessPolicy.

Property Value
Type Description
OperationsClient

DeleteGcpUserAccessBindingOperationsClient

public virtual OperationsClient DeleteGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for DeleteGcpUserAccessBinding.

Property Value
Type Description
OperationsClient

DeleteServicePerimeterOperationsClient

public virtual OperationsClient DeleteServicePerimeterOperationsClient { get; }

The long-running operations client for DeleteServicePerimeter.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual AccessContextManager.AccessContextManagerClient GrpcClient { get; }

The underlying gRPC AccessContextManager client

Property Value
Type Description
AccessContextManagerAccessContextManagerClient

ReplaceAccessLevelsOperationsClient

public virtual OperationsClient ReplaceAccessLevelsOperationsClient { get; }

The long-running operations client for ReplaceAccessLevels.

Property Value
Type Description
OperationsClient

ReplaceServicePerimetersOperationsClient

public virtual OperationsClient ReplaceServicePerimetersOperationsClient { get; }

The long-running operations client for ReplaceServicePerimeters.

Property Value
Type Description
OperationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

UpdateAccessLevelOperationsClient

public virtual OperationsClient UpdateAccessLevelOperationsClient { get; }

The long-running operations client for UpdateAccessLevel.

Property Value
Type Description
OperationsClient

UpdateAccessPolicyOperationsClient

public virtual OperationsClient UpdateAccessPolicyOperationsClient { get; }

The long-running operations client for UpdateAccessPolicy.

Property Value
Type Description
OperationsClient

UpdateGcpUserAccessBindingOperationsClient

public virtual OperationsClient UpdateGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for UpdateGcpUserAccessBinding.

Property Value
Type Description
OperationsClient

UpdateServicePerimeterOperationsClient

public virtual OperationsClient UpdateServicePerimeterOperationsClient { get; }

The long-running operations client for UpdateServicePerimeter.

Property Value
Type Description
OperationsClient

Methods

CommitServicePerimeters(CommitServicePerimetersRequest, CallSettings)

public virtual Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> CommitServicePerimeters(CommitServicePerimetersRequest request, CallSettings callSettings = null)

Commits the dry-run specification for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. A commit operation on a service perimeter involves copying its spec field to the status field of the service perimeter. Only [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] with use_explicit_dry_run_spec field set to true are affected by a commit operation. The long-running operation from this RPC has a successful status after the dry-run specifications for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it causes the long-running operation to return an error response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The dry_run and the spec fields are cleared after a successful commit operation.

Parameters
Name Description
request CommitServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCommitServicePerimetersResponseAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
CommitServicePerimetersRequest request = new CommitServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Etag = "",
};
// Make the request
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CommitServicePerimeters(request);

// Poll until the returned long-running operation is complete
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
CommitServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCommitServicePerimeters(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CommitServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

CommitServicePerimetersAsync(CommitServicePerimetersRequest, CallSettings)

public virtual Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>> CommitServicePerimetersAsync(CommitServicePerimetersRequest request, CallSettings callSettings = null)

Commits the dry-run specification for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. A commit operation on a service perimeter involves copying its spec field to the status field of the service perimeter. Only [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] with use_explicit_dry_run_spec field set to true are affected by a commit operation. The long-running operation from this RPC has a successful status after the dry-run specifications for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it causes the long-running operation to return an error response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The dry_run and the spec fields are cleared after a successful commit operation.

Parameters
Name Description
request CommitServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCommitServicePerimetersResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CommitServicePerimetersRequest request = new CommitServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Etag = "",
};
// Make the request
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CommitServicePerimetersAsync(request);

// Poll until the returned long-running operation is complete
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CommitServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCommitServicePerimetersAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CommitServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

CommitServicePerimetersAsync(CommitServicePerimetersRequest, CancellationToken)

public virtual Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>> CommitServicePerimetersAsync(CommitServicePerimetersRequest request, CancellationToken cancellationToken)

Commits the dry-run specification for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. A commit operation on a service perimeter involves copying its spec field to the status field of the service perimeter. Only [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] with use_explicit_dry_run_spec field set to true are affected by a commit operation. The long-running operation from this RPC has a successful status after the dry-run specifications for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it causes the long-running operation to return an error response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The dry_run and the spec fields are cleared after a successful commit operation.

Parameters
Name Description
request CommitServicePerimetersRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationCommitServicePerimetersResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CommitServicePerimetersRequest request = new CommitServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Etag = "",
};
// Make the request
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CommitServicePerimetersAsync(request);

// Poll until the returned long-running operation is complete
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
CommitServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCommitServicePerimetersAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    CommitServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

Create()

public static AccessContextManagerClient Create()

Synchronously creates a AccessContextManagerClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AccessContextManagerClientBuilder.

Returns
Type Description
AccessContextManagerClient

The created AccessContextManagerClient.

CreateAccessLevel(AccessPolicyName, AccessLevel, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> CreateAccessLevel(AccessPolicyName parent, AccessLevel accessLevel, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateAccessLevel(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevel(CreateAccessLevelRequest, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> CreateAccessLevel(CreateAccessLevelRequest request, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
CreateAccessLevelRequest request = new CreateAccessLevelRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevel = new AccessLevel(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateAccessLevel(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevel(string, AccessLevel, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> CreateAccessLevel(string parent, AccessLevel accessLevel, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateAccessLevel(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(AccessPolicyName, AccessLevel, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(AccessPolicyName parent, AccessLevel accessLevel, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(AccessPolicyName, AccessLevel, CancellationToken)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(AccessPolicyName parent, AccessLevel accessLevel, CancellationToken cancellationToken)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(CreateAccessLevelRequest, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(CreateAccessLevelRequest request, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateAccessLevelRequest request = new CreateAccessLevelRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevel = new AccessLevel(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(CreateAccessLevelRequest, CancellationToken)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(CreateAccessLevelRequest request, CancellationToken cancellationToken)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateAccessLevelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateAccessLevelRequest request = new CreateAccessLevelRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevel = new AccessLevel(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(string, AccessLevel, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(string parent, AccessLevel accessLevel, CallSettings callSettings = null)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessLevelAsync(string, AccessLevel, CancellationToken)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> CreateAccessLevelAsync(string parent, AccessLevel accessLevel, CancellationToken cancellationToken)

Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

accessLevel AccessLevel

Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
AccessLevel accessLevel = new AccessLevel();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessLevelAsync(parent, accessLevel);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

CreateAccessPolicy(AccessPolicy, CallSettings)

public virtual Operation<AccessPolicy, AccessContextManagerOperationMetadata> CreateAccessPolicy(AccessPolicy request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AccessPolicy

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessPolicyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicy request = new AccessPolicy
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Parent = "",
    Title = "",
    CreateTime = new Timestamp(),
    UpdateTime = new Timestamp(),
    Etag = "",
    Scopes = { "", },
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateAccessPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

CreateAccessPolicyAsync(AccessPolicy, CallSettings)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> CreateAccessPolicyAsync(AccessPolicy request, CallSettings callSettings = null)

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.

Parameters
Name Description
request AccessPolicy

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicy request = new AccessPolicy
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Parent = "",
    Title = "",
    CreateTime = new Timestamp(),
    UpdateTime = new Timestamp(),
    Etag = "",
    Scopes = { "", },
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

CreateAccessPolicyAsync(AccessPolicy, CancellationToken)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> CreateAccessPolicyAsync(AccessPolicy request, CancellationToken cancellationToken)

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.

Parameters
Name Description
request AccessPolicy

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicy request = new AccessPolicy
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    Parent = "",
    Title = "",
    CreateTime = new Timestamp(),
    UpdateTime = new Timestamp(),
    Etag = "",
    Scopes = { "", },
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

CreateAsync(CancellationToken)

public static Task<AccessContextManagerClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a AccessContextManagerClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AccessContextManagerClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskAccessContextManagerClient

The task representing the created AccessContextManagerClient.

CreateGcpUserAccessBinding(OrganizationName, GcpUserAccessBinding, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> CreateGcpUserAccessBinding(OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent OrganizationName

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.CreateGcpUserAccessBinding(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBinding(CreateGcpUserAccessBindingRequest, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> CreateGcpUserAccessBinding(CreateGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request CreateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
CreateGcpUserAccessBindingRequest request = new CreateGcpUserAccessBindingRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    GcpUserAccessBinding = new GcpUserAccessBinding(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.CreateGcpUserAccessBinding(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBinding(string, GcpUserAccessBinding, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> CreateGcpUserAccessBinding(string parent, GcpUserAccessBinding gcpUserAccessBinding, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent string

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.CreateGcpUserAccessBinding(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(OrganizationName, GcpUserAccessBinding, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent OrganizationName

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(OrganizationName, GcpUserAccessBinding, CancellationToken)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding, CancellationToken cancellationToken)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent OrganizationName

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request CreateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateGcpUserAccessBindingRequest request = new CreateGcpUserAccessBindingRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    GcpUserAccessBinding = new GcpUserAccessBinding(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest, CancellationToken)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest request, CancellationToken cancellationToken)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request CreateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateGcpUserAccessBindingRequest request = new CreateGcpUserAccessBindingRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
    GcpUserAccessBinding = new GcpUserAccessBinding(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(string, GcpUserAccessBinding, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(string parent, GcpUserAccessBinding gcpUserAccessBinding, CallSettings callSettings = null)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent string

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateGcpUserAccessBindingAsync(string, GcpUserAccessBinding, CancellationToken)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> CreateGcpUserAccessBindingAsync(string parent, GcpUserAccessBinding gcpUserAccessBinding, CancellationToken cancellationToken)

Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
parent string

Required. Example: "organizations/256"

gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.CreateGcpUserAccessBindingAsync(parent, gcpUserAccessBinding);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeter(AccessPolicyName, ServicePerimeter, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> CreateServicePerimeter(AccessPolicyName parent, ServicePerimeter servicePerimeter, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateServicePerimeter(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeter(CreateServicePerimeterRequest, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> CreateServicePerimeter(CreateServicePerimeterRequest request, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
CreateServicePerimeterRequest request = new CreateServicePerimeterRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeter = new ServicePerimeter(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateServicePerimeter(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeter(string, ServicePerimeter, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> CreateServicePerimeter(string parent, ServicePerimeter servicePerimeter, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = accessContextManagerClient.CreateServicePerimeter(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceCreateServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(AccessPolicyName, ServicePerimeter, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(AccessPolicyName parent, ServicePerimeter servicePerimeter, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(AccessPolicyName, ServicePerimeter, CancellationToken)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(AccessPolicyName parent, ServicePerimeter servicePerimeter, CancellationToken cancellationToken)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(CreateServicePerimeterRequest, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(CreateServicePerimeterRequest request, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateServicePerimeterRequest request = new CreateServicePerimeterRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeter = new ServicePerimeter(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(CreateServicePerimeterRequest, CancellationToken)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(CreateServicePerimeterRequest request, CancellationToken cancellationToken)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request CreateServicePerimeterRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
CreateServicePerimeterRequest request = new CreateServicePerimeterRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeter = new ServicePerimeter(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(string, ServicePerimeter, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(string parent, ServicePerimeter servicePerimeter, CallSettings callSettings = null)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

CreateServicePerimeterAsync(string, ServicePerimeter, CancellationToken)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> CreateServicePerimeterAsync(string parent, ServicePerimeter servicePerimeter, CancellationToken cancellationToken)

Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
parent string

Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}

servicePerimeter ServicePerimeter

Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
ServicePerimeter servicePerimeter = new ServicePerimeter();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.CreateServicePerimeterAsync(parent, servicePerimeter);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceCreateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevel(AccessLevelName, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessLevel(AccessLevelName name, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessLevel(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevel(DeleteAccessLevelRequest, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessLevel(DeleteAccessLevelRequest request, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
DeleteAccessLevelRequest request = new DeleteAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessLevel(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevel(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessLevel(string name, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessLevel(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(AccessLevelName, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(AccessLevelName name, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(AccessLevelName, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(AccessLevelName name, CancellationToken cancellationToken)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(DeleteAccessLevelRequest, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(DeleteAccessLevelRequest request, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteAccessLevelRequest request = new DeleteAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(DeleteAccessLevelRequest, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(DeleteAccessLevelRequest request, CancellationToken cancellationToken)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessLevelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteAccessLevelRequest request = new DeleteAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(string name, CallSettings callSettings = null)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessLevelAsync(string, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessLevelAsync(string name, CancellationToken cancellationToken)

Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessLevelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicy(AccessPolicyName, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessPolicy(AccessPolicyName name, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicy(DeleteAccessPolicyRequest, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessPolicy(DeleteAccessPolicyRequest request, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessPolicy(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicy(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteAccessPolicy(string name, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteAccessPolicy(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(AccessPolicyName, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(AccessPolicyName name, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(AccessPolicyName, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(AccessPolicyName name, CancellationToken cancellationToken)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(DeleteAccessPolicyRequest, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(DeleteAccessPolicyRequest request, CancellationToken cancellationToken)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
request DeleteAccessPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteAccessPolicyRequest request = new DeleteAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(string name, CallSettings callSettings = null)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteAccessPolicyAsync(string, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteAccessPolicyAsync(string name, CancellationToken cancellationToken)

Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteAccessPolicyAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest, CallSettings)

public virtual Operation<Empty, GcpUserAccessBindingOperationMetadata> DeleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
request DeleteGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
DeleteGcpUserAccessBindingRequest request = new DeleteGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.DeleteGcpUserAccessBinding(request);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBinding(GcpUserAccessBindingName, CallSettings)

public virtual Operation<Empty, GcpUserAccessBindingOperationMetadata> DeleteGcpUserAccessBinding(GcpUserAccessBindingName name, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.DeleteGcpUserAccessBinding(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBinding(string, CallSettings)

public virtual Operation<Empty, GcpUserAccessBindingOperationMetadata> DeleteGcpUserAccessBinding(string name, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.DeleteGcpUserAccessBinding(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest, CallSettings)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
request DeleteGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteGcpUserAccessBindingRequest request = new DeleteGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest, CancellationToken)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest request, CancellationToken cancellationToken)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
request DeleteGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteGcpUserAccessBindingRequest request = new DeleteGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(GcpUserAccessBindingName, CallSettings)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(GcpUserAccessBindingName name, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(GcpUserAccessBindingName, CancellationToken)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(GcpUserAccessBindingName name, CancellationToken cancellationToken)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(string, CallSettings)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(string name, CallSettings callSettings = null)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteGcpUserAccessBindingAsync(string, CancellationToken)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> DeleteGcpUserAccessBindingAsync(string name, CancellationToken cancellationToken)

Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
Operation<Empty, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.DeleteGcpUserAccessBindingAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeter(DeleteServicePerimeterRequest, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteServicePerimeter(DeleteServicePerimeterRequest request, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
request DeleteServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
DeleteServicePerimeterRequest request = new DeleteServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteServicePerimeter(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeter(ServicePerimeterName, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteServicePerimeter(ServicePerimeterName name, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteServicePerimeter(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeter(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> DeleteServicePerimeter(string name, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = accessContextManagerClient.DeleteServicePerimeter(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceDeleteServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(DeleteServicePerimeterRequest, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(DeleteServicePerimeterRequest request, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
request DeleteServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteServicePerimeterRequest request = new DeleteServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(DeleteServicePerimeterRequest, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(DeleteServicePerimeterRequest request, CancellationToken cancellationToken)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
request DeleteServicePerimeterRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
DeleteServicePerimeterRequest request = new DeleteServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(ServicePerimeterName, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(ServicePerimeterName name, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(ServicePerimeterName, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(ServicePerimeterName name, CancellationToken cancellationToken)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(string name, CallSettings callSettings = null)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteServicePerimeterAsync(string, CancellationToken)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> DeleteServicePerimeterAsync(string name, CancellationToken cancellationToken)

Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
Operation<Empty, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.DeleteServicePerimeterAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceDeleteServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetAccessLevel(AccessLevelName, CallSettings)

public virtual AccessLevel GetAccessLevel(AccessLevelName name, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessLevel

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
AccessLevel response = accessContextManagerClient.GetAccessLevel(name);

GetAccessLevel(GetAccessLevelRequest, CallSettings)

public virtual AccessLevel GetAccessLevel(GetAccessLevelRequest request, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
request GetAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessLevel

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GetAccessLevelRequest request = new GetAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
    AccessLevelFormat = LevelFormat.Unspecified,
};
// Make the request
AccessLevel response = accessContextManagerClient.GetAccessLevel(request);

GetAccessLevel(string, CallSettings)

public virtual AccessLevel GetAccessLevel(string name, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessLevel

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
AccessLevel response = accessContextManagerClient.GetAccessLevel(name);

GetAccessLevelAsync(AccessLevelName, CallSettings)

public virtual Task<AccessLevel> GetAccessLevelAsync(AccessLevelName name, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(name);

GetAccessLevelAsync(AccessLevelName, CancellationToken)

public virtual Task<AccessLevel> GetAccessLevelAsync(AccessLevelName name, CancellationToken cancellationToken)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name AccessLevelName

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevelName name = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(name);

GetAccessLevelAsync(GetAccessLevelRequest, CallSettings)

public virtual Task<AccessLevel> GetAccessLevelAsync(GetAccessLevelRequest request, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
request GetAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetAccessLevelRequest request = new GetAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
    AccessLevelFormat = LevelFormat.Unspecified,
};
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(request);

GetAccessLevelAsync(GetAccessLevelRequest, CancellationToken)

public virtual Task<AccessLevel> GetAccessLevelAsync(GetAccessLevelRequest request, CancellationToken cancellationToken)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
request GetAccessLevelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetAccessLevelRequest request = new GetAccessLevelRequest
{
    AccessLevelName = AccessLevelName.FromAccessPolicyAccessLevel("[ACCESS_POLICY]", "[ACCESS_LEVEL]"),
    AccessLevelFormat = LevelFormat.Unspecified,
};
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(request);

GetAccessLevelAsync(string, CallSettings)

public virtual Task<AccessLevel> GetAccessLevelAsync(string name, CallSettings callSettings = null)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(name);

GetAccessLevelAsync(string, CancellationToken)

public virtual Task<AccessLevel> GetAccessLevelAsync(string name, CancellationToken cancellationToken)

Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessLevel

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/accessLevels/[ACCESS_LEVEL]";
// Make the request
AccessLevel response = await accessContextManagerClient.GetAccessLevelAsync(name);

GetAccessPolicy(AccessPolicyName, CallSettings)

public virtual AccessPolicy GetAccessPolicy(AccessPolicyName name, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessPolicy

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
AccessPolicy response = accessContextManagerClient.GetAccessPolicy(name);

GetAccessPolicy(GetAccessPolicyRequest, CallSettings)

public virtual AccessPolicy GetAccessPolicy(GetAccessPolicyRequest request, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
request GetAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessPolicy

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GetAccessPolicyRequest request = new GetAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
AccessPolicy response = accessContextManagerClient.GetAccessPolicy(request);

GetAccessPolicy(string, CallSettings)

public virtual AccessPolicy GetAccessPolicy(string name, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name string

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
AccessPolicy

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
AccessPolicy response = accessContextManagerClient.GetAccessPolicy(name);

GetAccessPolicyAsync(AccessPolicyName, CallSettings)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(AccessPolicyName name, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(name);

GetAccessPolicyAsync(AccessPolicyName, CancellationToken)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(AccessPolicyName name, CancellationToken cancellationToken)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name AccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName name = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(name);

GetAccessPolicyAsync(GetAccessPolicyRequest, CallSettings)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(GetAccessPolicyRequest request, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
request GetAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetAccessPolicyRequest request = new GetAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(request);

GetAccessPolicyAsync(GetAccessPolicyRequest, CancellationToken)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(GetAccessPolicyRequest request, CancellationToken cancellationToken)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
request GetAccessPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetAccessPolicyRequest request = new GetAccessPolicyRequest
{
    AccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(request);

GetAccessPolicyAsync(string, CallSettings)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(string name, CallSettings callSettings = null)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name string

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(name);

GetAccessPolicyAsync(string, CancellationToken)

public virtual Task<AccessPolicy> GetAccessPolicyAsync(string name, CancellationToken cancellationToken)

Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.

Parameters
Name Description
name string

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskAccessPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]";
// Make the request
AccessPolicy response = await accessContextManagerClient.GetAccessPolicyAsync(name);

GetGcpUserAccessBinding(GcpUserAccessBindingName, CallSettings)

public virtual GcpUserAccessBinding GetGcpUserAccessBinding(GcpUserAccessBindingName name, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GcpUserAccessBinding

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
GcpUserAccessBinding response = accessContextManagerClient.GetGcpUserAccessBinding(name);

GetGcpUserAccessBinding(GetGcpUserAccessBindingRequest, CallSettings)

public virtual GcpUserAccessBinding GetGcpUserAccessBinding(GetGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
request GetGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GcpUserAccessBinding

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GetGcpUserAccessBindingRequest request = new GetGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
GcpUserAccessBinding response = accessContextManagerClient.GetGcpUserAccessBinding(request);

GetGcpUserAccessBinding(string, CallSettings)

public virtual GcpUserAccessBinding GetGcpUserAccessBinding(string name, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
GcpUserAccessBinding

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
GcpUserAccessBinding response = accessContextManagerClient.GetGcpUserAccessBinding(name);

GetGcpUserAccessBindingAsync(GcpUserAccessBindingName, CallSettings)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(GcpUserAccessBindingName name, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(name);

GetGcpUserAccessBindingAsync(GcpUserAccessBindingName, CancellationToken)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(GcpUserAccessBindingName name, CancellationToken cancellationToken)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name GcpUserAccessBindingName

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBindingName name = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(name);

GetGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest, CallSettings)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
request GetGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetGcpUserAccessBindingRequest request = new GetGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(request);

GetGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest, CancellationToken)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest request, CancellationToken cancellationToken)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
request GetGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetGcpUserAccessBindingRequest request = new GetGcpUserAccessBindingRequest
{
    GcpUserAccessBindingName = GcpUserAccessBindingName.FromOrganizationGcpUserAccessBinding("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]"),
};
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(request);

GetGcpUserAccessBindingAsync(string, CallSettings)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(string name, CallSettings callSettings = null)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(name);

GetGcpUserAccessBindingAsync(string, CancellationToken)

public virtual Task<GcpUserAccessBinding> GetGcpUserAccessBindingAsync(string name, CancellationToken cancellationToken)

Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.

Parameters
Name Description
name string

Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskGcpUserAccessBinding

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "organizations/[ORGANIZATION]/gcpUserAccessBindings/[GCP_USER_ACCESS_BINDING]";
// Make the request
GcpUserAccessBinding response = await accessContextManagerClient.GetGcpUserAccessBindingAsync(name);

GetIamPolicy(GetIamPolicyRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request GetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = accessContextManagerClient.GetIamPolicy(request);

GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request GetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await accessContextManagerClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request GetIamPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await accessContextManagerClient.GetIamPolicyAsync(request);

GetServicePerimeter(GetServicePerimeterRequest, CallSettings)

public virtual ServicePerimeter GetServicePerimeter(GetServicePerimeterRequest request, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
request GetServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServicePerimeter

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GetServicePerimeterRequest request = new GetServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
ServicePerimeter response = accessContextManagerClient.GetServicePerimeter(request);

GetServicePerimeter(ServicePerimeterName, CallSettings)

public virtual ServicePerimeter GetServicePerimeter(ServicePerimeterName name, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServicePerimeter

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
ServicePerimeter response = accessContextManagerClient.GetServicePerimeter(name);

GetServicePerimeter(string, CallSettings)

public virtual ServicePerimeter GetServicePerimeter(string name, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ServicePerimeter

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
ServicePerimeter response = accessContextManagerClient.GetServicePerimeter(name);

GetServicePerimeterAsync(GetServicePerimeterRequest, CallSettings)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(GetServicePerimeterRequest request, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
request GetServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetServicePerimeterRequest request = new GetServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(request);

GetServicePerimeterAsync(GetServicePerimeterRequest, CancellationToken)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(GetServicePerimeterRequest request, CancellationToken cancellationToken)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
request GetServicePerimeterRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GetServicePerimeterRequest request = new GetServicePerimeterRequest
{
    ServicePerimeterName = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]"),
};
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(request);

GetServicePerimeterAsync(ServicePerimeterName, CallSettings)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(ServicePerimeterName name, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(name);

GetServicePerimeterAsync(ServicePerimeterName, CancellationToken)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(ServicePerimeterName name, CancellationToken cancellationToken)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name ServicePerimeterName

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeterName name = ServicePerimeterName.FromAccessPolicyServicePerimeter("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(name);

GetServicePerimeterAsync(string, CallSettings)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(string name, CallSettings callSettings = null)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(name);

GetServicePerimeterAsync(string, CancellationToken)

public virtual Task<ServicePerimeter> GetServicePerimeterAsync(string name, CancellationToken cancellationToken)

Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.

Parameters
Name Description
name string

Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter].

Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskServicePerimeter

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string name = "accessPolicies/[ACCESS_POLICY]/servicePerimeters/[SERVICE_PERIMETER]";
// Make the request
ServicePerimeter response = await accessContextManagerClient.GetServicePerimeterAsync(name);

ListAccessLevels(AccessPolicyName, string, int?, CallSettings)

public virtual PagedEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevels(AccessPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccessLevelsResponseAccessLevel

A pageable sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
PagedEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessLevel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccessLevelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessLevels(ListAccessLevelsRequest, CallSettings)

public virtual PagedEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevels(ListAccessLevelsRequest request, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
request ListAccessLevelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccessLevelsResponseAccessLevel

A pageable sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ListAccessLevelsRequest request = new ListAccessLevelsRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevelFormat = LevelFormat.Unspecified,
};
// Make the request
PagedEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevels(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessLevel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccessLevelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessLevels(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
parent string

Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccessLevelsResponseAccessLevel

A pageable sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
// Make the request
PagedEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessLevel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccessLevelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessLevelsAsync(AccessPolicyName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevelsAsync(AccessPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccessLevelsResponseAccessLevel

A pageable asynchronous sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessLevel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccessLevelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessLevelsAsync(ListAccessLevelsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevelsAsync(ListAccessLevelsRequest request, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
request ListAccessLevelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccessLevelsResponseAccessLevel

A pageable asynchronous sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ListAccessLevelsRequest request = new ListAccessLevelsRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevelFormat = LevelFormat.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevelsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessLevel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccessLevelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessLevelsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> ListAccessLevelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
Name Description
parent string

Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccessLevelsResponseAccessLevel

A pageable asynchronous sequence of AccessLevel resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
// Make the request
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel> response = accessContextManagerClient.ListAccessLevelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessLevel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccessLevelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessLevel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessLevel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessLevel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessPolicies(ListAccessPoliciesRequest, CallSettings)

public virtual PagedEnumerable<ListAccessPoliciesResponse, AccessPolicy> ListAccessPolicies(ListAccessPoliciesRequest request, CallSettings callSettings = null)

Lists all [access policies] [google.identity.accesscontextmanager.v1.AccessPolicy] in an organization.

Parameters
Name Description
request ListAccessPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListAccessPoliciesResponseAccessPolicy

A pageable sequence of AccessPolicy resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListAccessPoliciesResponse, AccessPolicy> response = accessContextManagerClient.ListAccessPolicies(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (AccessPolicy item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAccessPoliciesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessPolicy> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListAccessPoliciesAsync(ListAccessPoliciesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListAccessPoliciesResponse, AccessPolicy> ListAccessPoliciesAsync(ListAccessPoliciesRequest request, CallSettings callSettings = null)

Lists all [access policies] [google.identity.accesscontextmanager.v1.AccessPolicy] in an organization.

Parameters
Name Description
request ListAccessPoliciesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListAccessPoliciesResponseAccessPolicy

A pageable asynchronous sequence of AccessPolicy resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ListAccessPoliciesRequest request = new ListAccessPoliciesRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListAccessPoliciesResponse, AccessPolicy> response = accessContextManagerClient.ListAccessPoliciesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AccessPolicy item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAccessPoliciesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (AccessPolicy item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AccessPolicy> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AccessPolicy item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindings(OrganizationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindings(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
parent OrganizationName

Required. Example: "organizations/256"

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindings(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GcpUserAccessBinding item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGcpUserAccessBindingsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindings(ListGcpUserAccessBindingsRequest, CallSettings)

public virtual PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindings(ListGcpUserAccessBindingsRequest request, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
request ListGcpUserAccessBindingsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ListGcpUserAccessBindingsRequest request = new ListGcpUserAccessBindingsRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindings(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (GcpUserAccessBinding item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGcpUserAccessBindingsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindings(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
parent string

Required. Example: "organizations/256"

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindings(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (GcpUserAccessBinding item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListGcpUserAccessBindingsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindingsAsync(OrganizationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindingsAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
parent OrganizationName

Required. Example: "organizations/256"

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable asynchronous sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
// Make the request
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindingsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GcpUserAccessBinding item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGcpUserAccessBindingsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindingsAsync(ListGcpUserAccessBindingsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindingsAsync(ListGcpUserAccessBindingsRequest request, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
request ListGcpUserAccessBindingsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable asynchronous sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ListGcpUserAccessBindingsRequest request = new ListGcpUserAccessBindingsRequest
{
    ParentAsOrganizationName = OrganizationName.FromOrganization("[ORGANIZATION]"),
};
// Make the request
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindingsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GcpUserAccessBinding item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGcpUserAccessBindingsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListGcpUserAccessBindingsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> ListGcpUserAccessBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.

Parameters
Name Description
parent string

Required. Example: "organizations/256"

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListGcpUserAccessBindingsResponseGcpUserAccessBinding

A pageable asynchronous sequence of GcpUserAccessBinding resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "organizations/[ORGANIZATION]";
// Make the request
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding> response = accessContextManagerClient.ListGcpUserAccessBindingsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((GcpUserAccessBinding item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListGcpUserAccessBindingsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (GcpUserAccessBinding item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<GcpUserAccessBinding> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (GcpUserAccessBinding item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimeters(AccessPolicyName, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimeters(AccessPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServicePerimetersResponseServicePerimeter

A pageable sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimeters(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServicePerimeter item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicePerimetersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimeters(ListServicePerimetersRequest, CallSettings)

public virtual PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimeters(ListServicePerimetersRequest request, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
request ListServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServicePerimetersResponseServicePerimeter

A pageable sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ListServicePerimetersRequest request = new ListServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimeters(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServicePerimeter item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicePerimetersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimeters(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimeters(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
parent string

Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListServicePerimetersResponseServicePerimeter

A pageable sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
// Make the request
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimeters(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (ServicePerimeter item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListServicePerimetersResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimetersAsync(AccessPolicyName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimetersAsync(AccessPolicyName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
parent AccessPolicyName

Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServicePerimetersResponseServicePerimeter

A pageable asynchronous sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicyName parent = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]");
// Make the request
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimetersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServicePerimeter item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicePerimetersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimetersAsync(ListServicePerimetersRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimetersAsync(ListServicePerimetersRequest request, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
request ListServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServicePerimetersResponseServicePerimeter

A pageable asynchronous sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ListServicePerimetersRequest request = new ListServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
};
// Make the request
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimetersAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServicePerimeter item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicePerimetersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListServicePerimetersAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> ListServicePerimetersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
Name Description
parent string

Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from.

Format: accessPolicies/{policy_id}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListServicePerimetersResponseServicePerimeter

A pageable asynchronous sequence of ServicePerimeter resources.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
string parent = "accessPolicies/[ACCESS_POLICY]";
// Make the request
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter> response = accessContextManagerClient.ListServicePerimetersAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ServicePerimeter item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListServicePerimetersResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (ServicePerimeter item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<ServicePerimeter> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (ServicePerimeter item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCommitServicePerimeters(string, CallSettings)

public virtual Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata> PollOnceCommitServicePerimeters(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CommitServicePerimeters.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationCommitServicePerimetersResponseAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceCommitServicePerimetersAsync(string, CallSettings)

public virtual Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>> PollOnceCommitServicePerimetersAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CommitServicePerimeters.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationCommitServicePerimetersResponseAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateAccessLevel(string, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> PollOnceCreateAccessLevel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateAccessLevel .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceCreateAccessLevelAsync(string, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> PollOnceCreateAccessLevelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateAccessLevel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateAccessPolicy(string, CallSettings)

public virtual Operation<AccessPolicy, AccessContextManagerOperationMetadata> PollOnceCreateAccessPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateAccessPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessPolicyAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceCreateAccessPolicyAsync(string, CallSettings)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> PollOnceCreateAccessPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateAccessPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateGcpUserAccessBinding(string, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> PollOnceCreateGcpUserAccessBinding(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The result of polling the operation.

PollOnceCreateGcpUserAccessBindingAsync(string, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> PollOnceCreateGcpUserAccessBindingAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateServicePerimeter(string, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> PollOnceCreateServicePerimeter(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceCreateServicePerimeterAsync(string, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> PollOnceCreateServicePerimeterAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteAccessLevel(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> PollOnceDeleteAccessLevel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteAccessLevel .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceDeleteAccessLevelAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> PollOnceDeleteAccessLevelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteAccessLevel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteAccessPolicy(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> PollOnceDeleteAccessPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteAccessPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceDeleteAccessPolicyAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> PollOnceDeleteAccessPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteAccessPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteGcpUserAccessBinding(string, CallSettings)

public virtual Operation<Empty, GcpUserAccessBindingOperationMetadata> PollOnceDeleteGcpUserAccessBinding(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyGcpUserAccessBindingOperationMetadata

The result of polling the operation.

PollOnceDeleteGcpUserAccessBindingAsync(string, CallSettings)

public virtual Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>> PollOnceDeleteGcpUserAccessBindingAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyGcpUserAccessBindingOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteServicePerimeter(string, CallSettings)

public virtual Operation<Empty, AccessContextManagerOperationMetadata> PollOnceDeleteServicePerimeter(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationEmptyAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceDeleteServicePerimeterAsync(string, CallSettings)

public virtual Task<Operation<Empty, AccessContextManagerOperationMetadata>> PollOnceDeleteServicePerimeterAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationEmptyAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceReplaceAccessLevels(string, CallSettings)

public virtual Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> PollOnceReplaceAccessLevels(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ReplaceAccessLevels .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplaceAccessLevelsResponseAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceReplaceAccessLevelsAsync(string, CallSettings)

public virtual Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>> PollOnceReplaceAccessLevelsAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ReplaceAccessLevels.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplaceAccessLevelsResponseAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceReplaceServicePerimeters(string, CallSettings)

public virtual Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> PollOnceReplaceServicePerimeters(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of ReplaceServicePerimeters.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplaceServicePerimetersResponseAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceReplaceServicePerimetersAsync(string, CallSettings)

public virtual Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>> PollOnceReplaceServicePerimetersAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of ReplaceServicePerimeters.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplaceServicePerimetersResponseAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateAccessLevel(string, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> PollOnceUpdateAccessLevel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateAccessLevel .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceUpdateAccessLevelAsync(string, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> PollOnceUpdateAccessLevelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateAccessLevel.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateAccessPolicy(string, CallSettings)

public virtual Operation<AccessPolicy, AccessContextManagerOperationMetadata> PollOnceUpdateAccessPolicy(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateAccessPolicy .

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessPolicyAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceUpdateAccessPolicyAsync(string, CallSettings)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> PollOnceUpdateAccessPolicyAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateAccessPolicy.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateGcpUserAccessBinding(string, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> PollOnceUpdateGcpUserAccessBinding(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The result of polling the operation.

PollOnceUpdateGcpUserAccessBindingAsync(string, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> PollOnceUpdateGcpUserAccessBindingAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateGcpUserAccessBinding.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateServicePerimeter(string, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> PollOnceUpdateServicePerimeter(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The result of polling the operation.

PollOnceUpdateServicePerimeterAsync(string, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> PollOnceUpdateServicePerimeterAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateServicePerimeter.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A task representing the result of polling the operation.

ReplaceAccessLevels(ReplaceAccessLevelsRequest, CallSettings)

public virtual Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> ReplaceAccessLevels(ReplaceAccessLevelsRequest request, CallSettings callSettings = null)

Replaces all existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] result in an error.

Parameters
Name Description
request ReplaceAccessLevelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplaceAccessLevelsResponseAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ReplaceAccessLevelsRequest request = new ReplaceAccessLevelsRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevels = { new AccessLevel(), },
    Etag = "",
};
// Make the request
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> response = accessContextManagerClient.ReplaceAccessLevels(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ReplaceAccessLevelsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceReplaceAccessLevels(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceAccessLevelsResponse retrievedResult = retrievedResponse.Result;
}

ReplaceAccessLevelsAsync(ReplaceAccessLevelsRequest, CallSettings)

public virtual Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>> ReplaceAccessLevelsAsync(ReplaceAccessLevelsRequest request, CallSettings callSettings = null)

Replaces all existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] result in an error.

Parameters
Name Description
request ReplaceAccessLevelsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplaceAccessLevelsResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ReplaceAccessLevelsRequest request = new ReplaceAccessLevelsRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevels = { new AccessLevel(), },
    Etag = "",
};
// Make the request
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.ReplaceAccessLevelsAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReplaceAccessLevelsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceReplaceAccessLevelsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceAccessLevelsResponse retrievedResult = retrievedResponse.Result;
}

ReplaceAccessLevelsAsync(ReplaceAccessLevelsRequest, CancellationToken)

public virtual Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>> ReplaceAccessLevelsAsync(ReplaceAccessLevelsRequest request, CancellationToken cancellationToken)

Replaces all existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] result in an error.

Parameters
Name Description
request ReplaceAccessLevelsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplaceAccessLevelsResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ReplaceAccessLevelsRequest request = new ReplaceAccessLevelsRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    AccessLevels = { new AccessLevel(), },
    Etag = "",
};
// Make the request
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.ReplaceAccessLevelsAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReplaceAccessLevelsResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceReplaceAccessLevelsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceAccessLevelsResponse retrievedResult = retrievedResponse.Result;
}

ReplaceServicePerimeters(ReplaceServicePerimetersRequest, CallSettings)

public virtual Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> ReplaceServicePerimeters(ReplaceServicePerimetersRequest request, CallSettings callSettings = null)

Replace all existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.

Parameters
Name Description
request ReplaceServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationReplaceServicePerimetersResponseAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ReplaceServicePerimetersRequest request = new ReplaceServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeters =
    {
        new ServicePerimeter(),
    },
    Etag = "",
};
// Make the request
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> response = accessContextManagerClient.ReplaceServicePerimeters(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ReplaceServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceReplaceServicePerimeters(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

ReplaceServicePerimetersAsync(ReplaceServicePerimetersRequest, CallSettings)

public virtual Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>> ReplaceServicePerimetersAsync(ReplaceServicePerimetersRequest request, CallSettings callSettings = null)

Replace all existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.

Parameters
Name Description
request ReplaceServicePerimetersRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationReplaceServicePerimetersResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ReplaceServicePerimetersRequest request = new ReplaceServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeters =
    {
        new ServicePerimeter(),
    },
    Etag = "",
};
// Make the request
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.ReplaceServicePerimetersAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReplaceServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceReplaceServicePerimetersAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

ReplaceServicePerimetersAsync(ReplaceServicePerimetersRequest, CancellationToken)

public virtual Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>> ReplaceServicePerimetersAsync(ReplaceServicePerimetersRequest request, CancellationToken cancellationToken)

Replace all existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.

Parameters
Name Description
request ReplaceServicePerimetersRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationReplaceServicePerimetersResponseAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ReplaceServicePerimetersRequest request = new ReplaceServicePerimetersRequest
{
    ParentAsAccessPolicyName = AccessPolicyName.FromAccessPolicy("[ACCESS_POLICY]"),
    ServicePerimeters =
    {
        new ServicePerimeter(),
    },
    Etag = "",
};
// Make the request
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.ReplaceServicePerimetersAsync(request);

// Poll until the returned long-running operation is complete
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ReplaceServicePerimetersResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceReplaceServicePerimetersAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ReplaceServicePerimetersResponse retrievedResult = retrievedResponse.Result;
}

SetIamPolicy(SetIamPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. 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][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request SetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = accessContextManagerClient.SetIamPolicy(request);

SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)

Sets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. 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][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request SetIamPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await accessContextManagerClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)

Sets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. 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][google.identity.accesscontextmanager.v1.AccessPolicy].

Parameters
Name Description
request SetIamPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Policy = new Policy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await accessContextManagerClient.SetIamPolicyAsync(request);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

TestIamPermissions(TestIamPermissionsRequest, CallSettings)

public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestIamPermissionsResponse

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = accessContextManagerClient.TestIamPermissions(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await accessContextManagerClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)

public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request TestIamPermissionsRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestIamPermissionsResponse

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
    ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
    Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await accessContextManagerClient.TestIamPermissionsAsync(request);

UpdateAccessLevel(AccessLevel, FieldMask, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> UpdateAccessLevel(AccessLevel accessLevel, FieldMask updateMask, CallSettings callSettings = null)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
accessLevel AccessLevel

Required. The updated [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessLevel accessLevel = new AccessLevel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateAccessLevel(accessLevel, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessLevel(UpdateAccessLevelRequest, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> UpdateAccessLevel(UpdateAccessLevelRequest request, CallSettings callSettings = null)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessLevelAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
UpdateAccessLevelRequest request = new UpdateAccessLevelRequest
{
    AccessLevel = new AccessLevel(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateAccessLevel(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateAccessLevel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessLevelAsync(AccessLevel, FieldMask, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> UpdateAccessLevelAsync(AccessLevel accessLevel, FieldMask updateMask, CallSettings callSettings = null)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
accessLevel AccessLevel

Required. The updated [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevel accessLevel = new AccessLevel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessLevelAsync(accessLevel, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessLevelAsync(AccessLevel, FieldMask, CancellationToken)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> UpdateAccessLevelAsync(AccessLevel accessLevel, FieldMask updateMask, CancellationToken cancellationToken)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
accessLevel AccessLevel

Required. The updated [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessLevel accessLevel = new AccessLevel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessLevelAsync(accessLevel, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessLevelAsync(UpdateAccessLevelRequest, CallSettings)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> UpdateAccessLevelAsync(UpdateAccessLevelRequest request, CallSettings callSettings = null)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateAccessLevelRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateAccessLevelRequest request = new UpdateAccessLevelRequest
{
    AccessLevel = new AccessLevel(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessLevelAsync(UpdateAccessLevelRequest, CancellationToken)

public virtual Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>> UpdateAccessLevelAsync(UpdateAccessLevelRequest request, CancellationToken cancellationToken)

Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateAccessLevelRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessLevelAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateAccessLevelRequest request = new UpdateAccessLevelRequest
{
    AccessLevel = new AccessLevel(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessLevel, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessLevelAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessLevel, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessLevel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessLevel, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessLevelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessLevel retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicy(AccessPolicy, FieldMask, CallSettings)

public virtual Operation<AccessPolicy, AccessContextManagerOperationMetadata> UpdateAccessPolicy(AccessPolicy policy, FieldMask updateMask, CallSettings callSettings = null)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
policy AccessPolicy

Required. The updated AccessPolicy.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessPolicyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
AccessPolicy policy = new AccessPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateAccessPolicy(policy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicy(UpdateAccessPolicyRequest, CallSettings)

public virtual Operation<AccessPolicy, AccessContextManagerOperationMetadata> UpdateAccessPolicy(UpdateAccessPolicyRequest request, CallSettings callSettings = null)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
request UpdateAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationAccessPolicyAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
{
    Policy = new AccessPolicy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateAccessPolicy(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateAccessPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicyAsync(AccessPolicy, FieldMask, CallSettings)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> UpdateAccessPolicyAsync(AccessPolicy policy, FieldMask updateMask, CallSettings callSettings = null)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
policy AccessPolicy

Required. The updated AccessPolicy.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicy policy = new AccessPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessPolicyAsync(policy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicyAsync(AccessPolicy, FieldMask, CancellationToken)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> UpdateAccessPolicyAsync(AccessPolicy policy, FieldMask updateMask, CancellationToken cancellationToken)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
policy AccessPolicy

Required. The updated AccessPolicy.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
AccessPolicy policy = new AccessPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessPolicyAsync(policy, updateMask);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CallSettings)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, CallSettings callSettings = null)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
request UpdateAccessPolicyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
{
    Policy = new AccessPolicy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateAccessPolicyAsync(UpdateAccessPolicyRequest, CancellationToken)

public virtual Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>> UpdateAccessPolicyAsync(UpdateAccessPolicyRequest request, CancellationToken cancellationToken)

Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.

Parameters
Name Description
request UpdateAccessPolicyRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationAccessPolicyAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateAccessPolicyRequest request = new UpdateAccessPolicyRequest
{
    Policy = new AccessPolicy(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<AccessPolicy, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateAccessPolicyAsync(request);

// Poll until the returned long-running operation is complete
Operation<AccessPolicy, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
AccessPolicy result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<AccessPolicy, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateAccessPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    AccessPolicy retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBinding(GcpUserAccessBinding, FieldMask, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> UpdateGcpUserAccessBinding(GcpUserAccessBinding gcpUserAccessBinding, FieldMask updateMask, CallSettings callSettings = null)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

updateMask FieldMask

Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be:

update_mask { paths: "access_levels" }

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.UpdateGcpUserAccessBinding(gcpUserAccessBinding, updateMask);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest, CallSettings)

public virtual Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> UpdateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request UpdateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
UpdateGcpUserAccessBindingRequest request = new UpdateGcpUserAccessBindingRequest
{
    GcpUserAccessBinding = new GcpUserAccessBinding(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = accessContextManagerClient.UpdateGcpUserAccessBinding(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateGcpUserAccessBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBindingAsync(GcpUserAccessBinding, FieldMask, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> UpdateGcpUserAccessBindingAsync(GcpUserAccessBinding gcpUserAccessBinding, FieldMask updateMask, CallSettings callSettings = null)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

updateMask FieldMask

Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be:

update_mask { paths: "access_levels" }

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.UpdateGcpUserAccessBindingAsync(gcpUserAccessBinding, updateMask);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBindingAsync(GcpUserAccessBinding, FieldMask, CancellationToken)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> UpdateGcpUserAccessBindingAsync(GcpUserAccessBinding gcpUserAccessBinding, FieldMask updateMask, CancellationToken cancellationToken)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
gcpUserAccessBinding GcpUserAccessBinding

Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]

updateMask FieldMask

Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be:

update_mask { paths: "access_levels" }

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
GcpUserAccessBinding gcpUserAccessBinding = new GcpUserAccessBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.UpdateGcpUserAccessBindingAsync(gcpUserAccessBinding, updateMask);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest, CallSettings)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> UpdateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest request, CallSettings callSettings = null)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request UpdateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateGcpUserAccessBindingRequest request = new UpdateGcpUserAccessBindingRequest
{
    GcpUserAccessBinding = new GcpUserAccessBinding(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.UpdateGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest, CancellationToken)

public virtual Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>> UpdateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest request, CancellationToken cancellationToken)

Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.

Parameters
Name Description
request UpdateGcpUserAccessBindingRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationGcpUserAccessBindingGcpUserAccessBindingOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateGcpUserAccessBindingRequest request = new UpdateGcpUserAccessBindingRequest
{
    GcpUserAccessBinding = new GcpUserAccessBinding(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> response = await accessContextManagerClient.UpdateGcpUserAccessBindingAsync(request);

// Poll until the returned long-running operation is complete
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
GcpUserAccessBinding result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateGcpUserAccessBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    GcpUserAccessBinding retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeter(ServicePerimeter, FieldMask, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> UpdateServicePerimeter(ServicePerimeter servicePerimeter, FieldMask updateMask, CallSettings callSettings = null)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
servicePerimeter ServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
ServicePerimeter servicePerimeter = new ServicePerimeter();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateServicePerimeter(servicePerimeter, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeter(UpdateServicePerimeterRequest, CallSettings)

public virtual Operation<ServicePerimeter, AccessContextManagerOperationMetadata> UpdateServicePerimeter(UpdateServicePerimeterRequest request, CallSettings callSettings = null)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationServicePerimeterAccessContextManagerOperationMetadata

The RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = AccessContextManagerClient.Create();
// Initialize request argument(s)
UpdateServicePerimeterRequest request = new UpdateServicePerimeterRequest
{
    ServicePerimeter = new ServicePerimeter(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = accessContextManagerClient.UpdateServicePerimeter(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = accessContextManagerClient.PollOnceUpdateServicePerimeter(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeterAsync(ServicePerimeter, FieldMask, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> UpdateServicePerimeterAsync(ServicePerimeter servicePerimeter, FieldMask updateMask, CallSettings callSettings = null)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
servicePerimeter ServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeter servicePerimeter = new ServicePerimeter();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateServicePerimeterAsync(servicePerimeter, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeterAsync(ServicePerimeter, FieldMask, CancellationToken)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> UpdateServicePerimeterAsync(ServicePerimeter servicePerimeter, FieldMask updateMask, CancellationToken cancellationToken)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
servicePerimeter ServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMask FieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
ServicePerimeter servicePerimeter = new ServicePerimeter();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateServicePerimeterAsync(servicePerimeter, updateMask);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeterAsync(UpdateServicePerimeterRequest, CallSettings)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> UpdateServicePerimeterAsync(UpdateServicePerimeterRequest request, CallSettings callSettings = null)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateServicePerimeterRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateServicePerimeterRequest request = new UpdateServicePerimeterRequest
{
    ServicePerimeter = new ServicePerimeter(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}

UpdateServicePerimeterAsync(UpdateServicePerimeterRequest, CancellationToken)

public virtual Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>> UpdateServicePerimeterAsync(UpdateServicePerimeterRequest request, CancellationToken cancellationToken)

Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.

Parameters
Name Description
request UpdateServicePerimeterRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationServicePerimeterAccessContextManagerOperationMetadata

A Task containing the RPC response.

Example
// Create client
AccessContextManagerClient accessContextManagerClient = await AccessContextManagerClient.CreateAsync();
// Initialize request argument(s)
UpdateServicePerimeterRequest request = new UpdateServicePerimeterRequest
{
    ServicePerimeter = new ServicePerimeter(),
    UpdateMask = new FieldMask(),
};
// Make the request
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> response = await accessContextManagerClient.UpdateServicePerimeterAsync(request);

// Poll until the returned long-running operation is complete
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ServicePerimeter result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ServicePerimeter, AccessContextManagerOperationMetadata> retrievedResponse = await accessContextManagerClient.PollOnceUpdateServicePerimeterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ServicePerimeter retrievedResult = retrievedResponse.Result;
}