Class AccessContextManagerClient (1.4.0)

public abstract 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 [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] containing the [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] and [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]. This [AccessPolicy] [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
TypeDescription
OperationsClient

CreateAccessLevelOperationsClient

public virtual OperationsClient CreateAccessLevelOperationsClient { get; }

The long-running operations client for CreateAccessLevel.

Property Value
TypeDescription
OperationsClient

CreateAccessPolicyOperationsClient

public virtual OperationsClient CreateAccessPolicyOperationsClient { get; }

The long-running operations client for CreateAccessPolicy.

Property Value
TypeDescription
OperationsClient

CreateGcpUserAccessBindingOperationsClient

public virtual OperationsClient CreateGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for CreateGcpUserAccessBinding.

Property Value
TypeDescription
OperationsClient

CreateServicePerimeterOperationsClient

public virtual OperationsClient CreateServicePerimeterOperationsClient { get; }

The long-running operations client for CreateServicePerimeter.

Property Value
TypeDescription
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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default AccessContextManager scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

The default AccessContextManager scopes are:

DeleteAccessLevelOperationsClient

public virtual OperationsClient DeleteAccessLevelOperationsClient { get; }

The long-running operations client for DeleteAccessLevel.

Property Value
TypeDescription
OperationsClient

DeleteAccessPolicyOperationsClient

public virtual OperationsClient DeleteAccessPolicyOperationsClient { get; }

The long-running operations client for DeleteAccessPolicy.

Property Value
TypeDescription
OperationsClient

DeleteGcpUserAccessBindingOperationsClient

public virtual OperationsClient DeleteGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for DeleteGcpUserAccessBinding.

Property Value
TypeDescription
OperationsClient

DeleteServicePerimeterOperationsClient

public virtual OperationsClient DeleteServicePerimeterOperationsClient { get; }

The long-running operations client for DeleteServicePerimeter.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual AccessContextManager.AccessContextManagerClient GrpcClient { get; }

The underlying gRPC AccessContextManager client

Property Value
TypeDescription
AccessContextManager.AccessContextManagerClient

ReplaceAccessLevelsOperationsClient

public virtual OperationsClient ReplaceAccessLevelsOperationsClient { get; }

The long-running operations client for ReplaceAccessLevels.

Property Value
TypeDescription
OperationsClient

ReplaceServicePerimetersOperationsClient

public virtual OperationsClient ReplaceServicePerimetersOperationsClient { get; }

The long-running operations client for ReplaceServicePerimeters.

Property Value
TypeDescription
OperationsClient

UpdateAccessLevelOperationsClient

public virtual OperationsClient UpdateAccessLevelOperationsClient { get; }

The long-running operations client for UpdateAccessLevel.

Property Value
TypeDescription
OperationsClient

UpdateAccessPolicyOperationsClient

public virtual OperationsClient UpdateAccessPolicyOperationsClient { get; }

The long-running operations client for UpdateAccessPolicy.

Property Value
TypeDescription
OperationsClient

UpdateGcpUserAccessBindingOperationsClient

public virtual OperationsClient UpdateGcpUserAccessBindingOperationsClient { get; }

The long-running operations client for UpdateGcpUserAccessBinding.

Property Value
TypeDescription
OperationsClient

UpdateServicePerimeterOperationsClient

public virtual OperationsClient UpdateServicePerimeterOperationsClient { get; }

The long-running operations client for UpdateServicePerimeter.

Property Value
TypeDescription
OperationsClient

Methods

CommitServicePerimeters(CommitServicePerimetersRequest, CallSettings)

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

Commit the dry-run spec 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 that Service Perimeter's status field. 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 longrunning operation from this RPC will have a successful status once the dry-run specs for all the [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it will cause the longrunning operation to return an error response and the entire commit operation will be cancelled. When successful, Operation.response field will contain CommitServicePerimetersResponse. The dry_run and the spec fields will be cleared after a successful commit operation.

Parameters
NameDescription
requestCommitServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>

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)

Commit the dry-run spec 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 that Service Perimeter's status field. 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 longrunning operation from this RPC will have a successful status once the dry-run specs for all the [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it will cause the longrunning operation to return an error response and the entire commit operation will be cancelled. When successful, Operation.response field will contain CommitServicePerimetersResponse. The dry_run and the spec fields will be cleared after a successful commit operation.

Parameters
NameDescription
requestCommitServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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)

Commit the dry-run spec 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 that Service Perimeter's status field. 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 longrunning operation from this RPC will have a successful status once the dry-run specs for all the [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it will cause the longrunning operation to return an error response and the entire commit operation will be cancelled. When successful, Operation.response field will contain CommitServicePerimetersResponse. The dry_run and the spec fields will be cleared after a successful commit operation.

Parameters
NameDescription
requestCommitServicePerimetersRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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
TypeDescription
AccessContextManagerClient

The created AccessContextManagerClient.

CreateAccessLevel(AccessPolicyName, AccessLevel, CallSettings)

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

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateAccessLevelRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

accessLevelAccessLevel

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Create an AccessPolicy. Fails if this organization already has a AccessPolicy. The longrunning Operation will have a successful status once the AccessPolicy has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestAccessPolicy

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessPolicy, AccessContextManagerOperationMetadata>

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 = "",
};
// 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)

Create an AccessPolicy. Fails if this organization already has a AccessPolicy. The longrunning Operation will have a successful status once the AccessPolicy has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestAccessPolicy

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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 = "",
};
// 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)

Create an AccessPolicy. Fails if this organization already has a AccessPolicy. The longrunning Operation will have a successful status once the AccessPolicy has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestAccessPolicy

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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 = "",
};
// 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(CancellationToken))

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

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<AccessContextManagerClient>

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 will ignore 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
NameDescription
parentOrganizationName

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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 will ignore 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
NameDescription
requestCreateGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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 will ignore 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
NameDescription
parentString

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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 will ignore 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
NameDescription
parentOrganizationName

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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 will ignore 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
NameDescription
parentOrganizationName

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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 will ignore 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
NameDescription
requestCreateGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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 will ignore 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
NameDescription
requestCreateGcpUserAccessBindingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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 will ignore 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
NameDescription
parentString

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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 will ignore 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
NameDescription
parentString

Required. Example: "organizations/256"

gcpUserAccessBindingGcpUserAccessBinding

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestCreateServicePerimeterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Create a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has propagated to long-lasting storage. [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

servicePerimeterServicePerimeter

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessLevelName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessLevelName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessLevelName

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessLevelRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name. The longrunning operation from this RPC will have a successful status once the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteAccessPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by resource name. The longrunning Operation will have a successful status once the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to delete.

Format accessPolicies/{policy_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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
NameDescription
requestDeleteGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, GcpUserAccessBindingOperationMetadata>

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
NameDescription
nameGcpUserAccessBindingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, GcpUserAccessBindingOperationMetadata>

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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, GcpUserAccessBindingOperationMetadata>

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
NameDescription
requestDeleteGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
requestDeleteGcpUserAccessBindingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
nameGcpUserAccessBindingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
nameGcpUserAccessBindingName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameServicePerimeterName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
requestDeleteServicePerimeterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameServicePerimeterName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameServicePerimeterName

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Delete a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name. The longrunning operation from this RPC will have a successful status once the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] has been removed from long-lasting storage.

Parameters
NameDescription
nameString

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameAccessLevelName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
requestGetAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameAccessLevelName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameAccessLevelName

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
requestGetAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
requestGetAccessLevelRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.

Parameters
NameDescription
nameString

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessLevel>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
requestGetAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessPolicy>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameAccessPolicyName

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessPolicy>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
requestGetAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessPolicy>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
requestGetAccessPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessPolicy>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<AccessPolicy>

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)

Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.

Parameters
NameDescription
nameString

Required. Resource name for the access policy to get.

Format accessPolicies/{policy_id}

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<AccessPolicy>

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
NameDescription
nameGcpUserAccessBindingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
nameGcpUserAccessBindingName

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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
NameDescription
nameGcpUserAccessBindingName

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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
NameDescription
requestGetGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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
NameDescription
requestGetGcpUserAccessBindingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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
NameDescription
nameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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
NameDescription
nameString

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<GcpUserAccessBinding>

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);

GetServicePerimeter(GetServicePerimeterRequest, CallSettings)

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

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
requestGetServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameServicePerimeterName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
requestGetServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServicePerimeter>

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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
requestGetServicePerimeterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServicePerimeter>

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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameServicePerimeterName

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServicePerimeter>

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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameServicePerimeterName

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServicePerimeter>

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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameString

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ServicePerimeter>

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)

Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.

Parameters
NameDescription
nameString

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

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ServicePerimeter>

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, Nullable<Int32>, CallSettings)

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

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAccessLevelsResponse, AccessLevel>

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)

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
requestListAccessLevelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAccessLevelsResponse, AccessLevel>

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, Nullable<Int32>, CallSettings)

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

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAccessLevelsResponse, AccessLevel>

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, Nullable<Int32>, CallSettings)

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

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel>

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)

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
requestListAccessLevelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel>

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, Nullable<Int32>, CallSettings)

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

List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAccessLevelsResponse, AccessLevel>

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)

List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.

Parameters
NameDescription
requestListAccessPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListAccessPoliciesResponse, AccessPolicy>

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)

List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.

Parameters
NameDescription
requestListAccessPoliciesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListAccessPoliciesResponse, AccessPolicy>

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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationName

Required. Example: "organizations/256"

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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
NameDescription
requestListGcpUserAccessBindingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentString

Required. Example: "organizations/256"

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentOrganizationName

Required. Example: "organizations/256"

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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
NameDescription
requestListGcpUserAccessBindingsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentString

Required. Example: "organizations/256"

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListGcpUserAccessBindingsResponse, GcpUserAccessBinding>

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, Nullable<Int32>, CallSettings)

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

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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)

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
requestListServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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, Nullable<Int32>, CallSettings)

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

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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, Nullable<Int32>, CallSettings)

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

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
parentAccessPolicyName

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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)

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
requestListServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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, Nullable<Int32>, CallSettings)

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

List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.

Parameters
NameDescription
parentString

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

Format: accessPolicies/{policy_id}

pageTokenString

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

pageSizeNullable<Int32>

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListServicePerimetersResponse, ServicePerimeter>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessPolicy, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, GcpUserAccessBindingOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessPolicy, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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
NameDescription
operationNameString

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

A task representing the result of polling the operation.

ReplaceAccessLevels(ReplaceAccessLevelsRequest, CallSettings)

public virtual Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> ReplaceAccessLevels(ReplaceAccessLevelsRequest request, CallSettings callSettings = null)

Replace 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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] will not be affected. Operation.response field will contain ReplaceAccessLevelsResponse. Removing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will result in error.

Parameters
NameDescription
requestReplaceAccessLevelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>

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)

Replace 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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] will not be affected. Operation.response field will contain ReplaceAccessLevelsResponse. Removing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will result in error.

Parameters
NameDescription
requestReplaceAccessLevelsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>>

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)

Replace 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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] will not be affected. Operation.response field will contain ReplaceAccessLevelsResponse. Removing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will result in error.

Parameters
NameDescription
requestReplaceAccessLevelsRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata>>

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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will not be affected. Operation.response field will contain ReplaceServicePerimetersResponse.

Parameters
NameDescription
requestReplaceServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>

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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will not be affected. Operation.response field will contain ReplaceServicePerimetersResponse.

Parameters
NameDescription
requestReplaceServicePerimetersRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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 longrunning operation from this RPC will have a successful status once all replacements have propagated to long-lasting storage. Replacements containing errors will result in an error response for the first error encountered. Replacement will be cancelled on error, existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] will not be affected. Operation.response field will contain ReplaceServicePerimetersResponse.

Parameters
NameDescription
requestReplaceServicePerimetersRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>>

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;
}

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
TypeDescription
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.

UpdateAccessLevel(AccessLevel, FieldMask, CallSettings)

public virtual Operation<AccessLevel, AccessContextManagerOperationMetadata> UpdateAccessLevel(AccessLevel accessLevel, FieldMask updateMask, CallSettings callSettings = null)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
accessLevelAccessLevel

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.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessLevel, AccessContextManagerOperationMetadata>

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)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
accessLevelAccessLevel

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.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
accessLevelAccessLevel

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.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateAccessLevelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Update an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning operation from this RPC will have a successful status once the changes to the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] have propagated to long-lasting storage. [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateAccessLevelRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessLevel, AccessContextManagerOperationMetadata>>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
policyAccessPolicy

Required. The updated AccessPolicy.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessPolicy, AccessContextManagerOperationMetadata>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestUpdateAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<AccessPolicy, AccessContextManagerOperationMetadata>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
policyAccessPolicy

Required. The updated AccessPolicy.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
policyAccessPolicy

Required. The updated AccessPolicy.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestUpdateAccessPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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)

Update an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The longrunning Operation from this RPC will have a successful status once the changes to the [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in metadata as a BadRequest proto.

Parameters
NameDescription
requestUpdateAccessPolicyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<AccessPolicy, AccessContextManagerOperationMetadata>>

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
NameDescription
gcpUserAccessBindingGcpUserAccessBinding

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

updateMaskFieldMask

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" }

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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
NameDescription
requestUpdateGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>

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
NameDescription
gcpUserAccessBindingGcpUserAccessBinding

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

updateMaskFieldMask

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" }

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
gcpUserAccessBindingGcpUserAccessBinding

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

updateMaskFieldMask

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" }

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
requestUpdateGcpUserAccessBindingRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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
NameDescription
requestUpdateGcpUserAccessBindingRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata>>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
servicePerimeterServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<ServicePerimeter, AccessContextManagerOperationMetadata>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
servicePerimeterServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
servicePerimeterServicePerimeter

Required. The updated ServicePerimeter. Syntactic correctness of the ServicePerimeter is a precondition for creation.

updateMaskFieldMask

Required. Mask to control which fields get updated. Must be non-empty.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateServicePerimeterRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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)

Update a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The longrunning operation from this RPC will have a successful status once the changes to the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] have propagated to long-lasting storage. [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] containing errors will result in an error response for the first error encountered.

Parameters
NameDescription
requestUpdateServicePerimeterRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<ServicePerimeter, AccessContextManagerOperationMetadata>>

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;
}