- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.50.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.38.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.5
- 1.3.1
- 1.2.10
public class AccessContextManagerClient implements BackgroundResource
Service Description: 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
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName name = AccessPolicyName.of("[ACCESS_POLICY]");
AccessPolicy response = accessContextManagerClient.getAccessPolicy(name);
}
Note: close() needs to be called on the AccessContextManagerClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of AccessContextManagerSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
AccessContextManagerSettings accessContextManagerSettings =
AccessContextManagerSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create(accessContextManagerSettings);
To customize the endpoint:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
AccessContextManagerSettings accessContextManagerSettings =
AccessContextManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create(accessContextManagerSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final AccessContextManagerClient create()
Constructs an instance of AccessContextManagerClient with default settings.
Type | Description |
AccessContextManagerClient |
Type | Description |
IOException |
create(AccessContextManagerSettings settings)
public static final AccessContextManagerClient create(AccessContextManagerSettings settings)
Constructs an instance of AccessContextManagerClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Name | Description |
settings | AccessContextManagerSettings |
Type | Description |
AccessContextManagerClient |
Type | Description |
IOException |
create(AccessContextManagerStub stub)
public static final AccessContextManagerClient create(AccessContextManagerStub stub)
Constructs an instance of AccessContextManagerClient, using the given stub for making calls. This is for advanced usage - prefer using create(AccessContextManagerSettings).
Name | Description |
stub | AccessContextManagerStub |
Type | Description |
AccessContextManagerClient |
Constructors
AccessContextManagerClient(AccessContextManagerSettings settings)
protected AccessContextManagerClient(AccessContextManagerSettings settings)
Constructs an instance of AccessContextManagerClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Name | Description |
settings | AccessContextManagerSettings |
AccessContextManagerClient(AccessContextManagerStub stub)
protected AccessContextManagerClient(AccessContextManagerStub stub)
Name | Description |
stub | AccessContextManagerStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
commitServicePerimetersAsync(CommitServicePerimetersRequest request)
public final OperationFuture<CommitServicePerimetersResponse,AccessContextManagerOperationMetadata> commitServicePerimetersAsync(CommitServicePerimetersRequest request)
Commit the dry-run spec for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an Access
Policy. 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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CommitServicePerimetersRequest request =
CommitServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setEtag("etag3123477")
.build();
CommitServicePerimetersResponse response =
accessContextManagerClient.commitServicePerimetersAsync(request).get();
}
Name | Description |
request | CommitServicePerimetersRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<CommitServicePerimetersResponse,AccessContextManagerOperationMetadata> |
commitServicePerimetersCallable()
public final UnaryCallable<CommitServicePerimetersRequest,Operation> commitServicePerimetersCallable()
Commit the dry-run spec for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an Access
Policy. 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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CommitServicePerimetersRequest request =
CommitServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setEtag("etag3123477")
.build();
ApiFuture<Operation> future =
accessContextManagerClient.commitServicePerimetersCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<CommitServicePerimetersRequest,Operation> |
commitServicePerimetersOperationCallable()
public final OperationCallable<CommitServicePerimetersRequest,CommitServicePerimetersResponse,AccessContextManagerOperationMetadata> commitServicePerimetersOperationCallable()
Commit the dry-run spec for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an Access
Policy. 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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CommitServicePerimetersRequest request =
CommitServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setEtag("etag3123477")
.build();
OperationFuture<CommitServicePerimetersResponse, AccessContextManagerOperationMetadata>
future =
accessContextManagerClient
.commitServicePerimetersOperationCallable()
.futureCall(request);
// Do something.
CommitServicePerimetersResponse response = future.get();
}
Type | Description |
OperationCallable<CommitServicePerimetersRequest,CommitServicePerimetersResponse,AccessContextManagerOperationMetadata> |
createAccessLevelAsync(AccessPolicyName parent, AccessLevel accessLevel)
public final OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> createAccessLevelAsync(AccessPolicyName parent, AccessLevel accessLevel)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName parent = AccessPolicyName.of("[ACCESS_POLICY]");
AccessLevel accessLevel = AccessLevel.newBuilder().build();
AccessLevel response =
accessContextManagerClient.createAccessLevelAsync(parent, accessLevel).get();
}
Name | Description |
parent | AccessPolicyName Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
accessLevel | AccessLevel Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation. |
Type | Description |
OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> |
createAccessLevelAsync(CreateAccessLevelRequest request)
public final OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> createAccessLevelAsync(CreateAccessLevelRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateAccessLevelRequest request =
CreateAccessLevelRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setAccessLevel(AccessLevel.newBuilder().build())
.build();
AccessLevel response = accessContextManagerClient.createAccessLevelAsync(request).get();
}
Name | Description |
request | CreateAccessLevelRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> |
createAccessLevelAsync(String parent, AccessLevel accessLevel)
public final OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> createAccessLevelAsync(String parent, AccessLevel accessLevel)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = AccessPolicyName.of("[ACCESS_POLICY]").toString();
AccessLevel accessLevel = AccessLevel.newBuilder().build();
AccessLevel response =
accessContextManagerClient.createAccessLevelAsync(parent, accessLevel).get();
}
Name | Description |
parent | String Required. Resource name for the access policy which owns this [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
accessLevel | AccessLevel Required. The [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] to create. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation. |
Type | Description |
OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> |
createAccessLevelCallable()
public final UnaryCallable<CreateAccessLevelRequest,Operation> createAccessLevelCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateAccessLevelRequest request =
CreateAccessLevelRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setAccessLevel(AccessLevel.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.createAccessLevelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<CreateAccessLevelRequest,Operation> |
createAccessLevelOperationCallable()
public final OperationCallable<CreateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> createAccessLevelOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateAccessLevelRequest request =
CreateAccessLevelRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setAccessLevel(AccessLevel.newBuilder().build())
.build();
OperationFuture<AccessLevel, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.createAccessLevelOperationCallable().futureCall(request);
// Do something.
AccessLevel response = future.get();
}
Type | Description |
OperationCallable<CreateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> |
createAccessPolicyAsync(AccessPolicy request)
public final OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> createAccessPolicyAsync(AccessPolicy request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicy request =
AccessPolicy.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setParent("parent-995424086")
.setTitle("title110371416")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
AccessPolicy response = accessContextManagerClient.createAccessPolicyAsync(request).get();
}
Name | Description |
request | AccessPolicy The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> |
createAccessPolicyCallable()
public final UnaryCallable<AccessPolicy,Operation> createAccessPolicyCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicy request =
AccessPolicy.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setParent("parent-995424086")
.setTitle("title110371416")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
ApiFuture<Operation> future =
accessContextManagerClient.createAccessPolicyCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<AccessPolicy,Operation> |
createAccessPolicyOperationCallable()
public final OperationCallable<AccessPolicy,AccessPolicy,AccessContextManagerOperationMetadata> createAccessPolicyOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicy request =
AccessPolicy.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setParent("parent-995424086")
.setTitle("title110371416")
.setCreateTime(Timestamp.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
OperationFuture<AccessPolicy, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.createAccessPolicyOperationCallable().futureCall(request);
// Do something.
AccessPolicy response = future.get();
}
Type | Description |
OperationCallable<AccessPolicy,AccessPolicy,AccessContextManagerOperationMetadata> |
createGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest request)
public final OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> createGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateGcpUserAccessBindingRequest request =
CreateGcpUserAccessBindingRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.build();
GcpUserAccessBinding response =
accessContextManagerClient.createGcpUserAccessBindingAsync(request).get();
}
Name | Description |
request | CreateGcpUserAccessBindingRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
createGcpUserAccessBindingAsync(OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding)
public final OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> createGcpUserAccessBindingAsync(OrganizationName parent, GcpUserAccessBinding gcpUserAccessBinding)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
GcpUserAccessBinding gcpUserAccessBinding = GcpUserAccessBinding.newBuilder().build();
GcpUserAccessBinding response =
accessContextManagerClient
.createGcpUserAccessBindingAsync(parent, gcpUserAccessBinding)
.get();
}
Name | Description |
parent | OrganizationName Required. Example: "organizations/256" |
gcpUserAccessBinding | GcpUserAccessBinding Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] |
Type | Description |
OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
createGcpUserAccessBindingAsync(String parent, GcpUserAccessBinding gcpUserAccessBinding)
public final OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> createGcpUserAccessBindingAsync(String parent, GcpUserAccessBinding gcpUserAccessBinding)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = OrganizationName.of("[ORGANIZATION]").toString();
GcpUserAccessBinding gcpUserAccessBinding = GcpUserAccessBinding.newBuilder().build();
GcpUserAccessBinding response =
accessContextManagerClient
.createGcpUserAccessBindingAsync(parent, gcpUserAccessBinding)
.get();
}
Name | Description |
parent | String Required. Example: "organizations/256" |
gcpUserAccessBinding | GcpUserAccessBinding Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] |
Type | Description |
OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
createGcpUserAccessBindingCallable()
public final UnaryCallable<CreateGcpUserAccessBindingRequest,Operation> createGcpUserAccessBindingCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateGcpUserAccessBindingRequest request =
CreateGcpUserAccessBindingRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.createGcpUserAccessBindingCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<CreateGcpUserAccessBindingRequest,Operation> |
createGcpUserAccessBindingOperationCallable()
public final OperationCallable<CreateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> createGcpUserAccessBindingOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateGcpUserAccessBindingRequest request =
CreateGcpUserAccessBindingRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.build();
OperationFuture<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> future =
accessContextManagerClient
.createGcpUserAccessBindingOperationCallable()
.futureCall(request);
// Do something.
GcpUserAccessBinding response = future.get();
}
Type | Description |
OperationCallable<CreateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
createServicePerimeterAsync(AccessPolicyName parent, ServicePerimeter servicePerimeter)
public final OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> createServicePerimeterAsync(AccessPolicyName parent, ServicePerimeter servicePerimeter)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName parent = AccessPolicyName.of("[ACCESS_POLICY]");
ServicePerimeter servicePerimeter = ServicePerimeter.newBuilder().build();
ServicePerimeter response =
accessContextManagerClient.createServicePerimeterAsync(parent, servicePerimeter).get();
}
Name | Description |
parent | AccessPolicyName Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
servicePerimeter | ServicePerimeter Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation. |
Type | Description |
OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> |
createServicePerimeterAsync(CreateServicePerimeterRequest request)
public final OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> createServicePerimeterAsync(CreateServicePerimeterRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateServicePerimeterRequest request =
CreateServicePerimeterRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.build();
ServicePerimeter response =
accessContextManagerClient.createServicePerimeterAsync(request).get();
}
Name | Description |
request | CreateServicePerimeterRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> |
createServicePerimeterAsync(String parent, ServicePerimeter servicePerimeter)
public final OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> createServicePerimeterAsync(String parent, ServicePerimeter servicePerimeter)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = AccessPolicyName.of("[ACCESS_POLICY]").toString();
ServicePerimeter servicePerimeter = ServicePerimeter.newBuilder().build();
ServicePerimeter response =
accessContextManagerClient.createServicePerimeterAsync(parent, servicePerimeter).get();
}
Name | Description |
parent | String Required. Resource name for the access policy which owns this [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
servicePerimeter | ServicePerimeter Required. The [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. Syntactic correctness of the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is a precondition for creation. |
Type | Description |
OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> |
createServicePerimeterCallable()
public final UnaryCallable<CreateServicePerimeterRequest,Operation> createServicePerimeterCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateServicePerimeterRequest request =
CreateServicePerimeterRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.createServicePerimeterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<CreateServicePerimeterRequest,Operation> |
createServicePerimeterOperationCallable()
public final OperationCallable<CreateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> createServicePerimeterOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
CreateServicePerimeterRequest request =
CreateServicePerimeterRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.build();
OperationFuture<ServicePerimeter, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.createServicePerimeterOperationCallable().futureCall(request);
// Do something.
ServicePerimeter response = future.get();
}
Type | Description |
OperationCallable<CreateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> |
deleteAccessLevelAsync(AccessLevelName name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessLevelAsync(AccessLevelName name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessLevelName name = AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
accessContextManagerClient.deleteAccessLevelAsync(name).get();
}
Name | Description |
name | AccessLevelName Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessLevelAsync(DeleteAccessLevelRequest request)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessLevelAsync(DeleteAccessLevelRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessLevelRequest request =
DeleteAccessLevelRequest.newBuilder()
.setName(AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString())
.build();
accessContextManagerClient.deleteAccessLevelAsync(request).get();
}
Name | Description |
request | DeleteAccessLevelRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessLevelAsync(String name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessLevelAsync(String name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString();
accessContextManagerClient.deleteAccessLevelAsync(name).get();
}
Name | Description |
name | String Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessLevelCallable()
public final UnaryCallable<DeleteAccessLevelRequest,Operation> deleteAccessLevelCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessLevelRequest request =
DeleteAccessLevelRequest.newBuilder()
.setName(AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.deleteAccessLevelCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteAccessLevelRequest,Operation> |
deleteAccessLevelOperationCallable()
public final OperationCallable<DeleteAccessLevelRequest,Empty,AccessContextManagerOperationMetadata> deleteAccessLevelOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessLevelRequest request =
DeleteAccessLevelRequest.newBuilder()
.setName(AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString())
.build();
OperationFuture<Empty, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.deleteAccessLevelOperationCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
OperationCallable<DeleteAccessLevelRequest,Empty,AccessContextManagerOperationMetadata> |
deleteAccessPolicyAsync(AccessPolicyName name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessPolicyAsync(AccessPolicyName name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName name = AccessPolicyName.of("[ACCESS_POLICY]");
accessContextManagerClient.deleteAccessPolicyAsync(name).get();
}
Name | Description |
name | AccessPolicyName Required. Resource name for the access policy to delete. Format |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessPolicyAsync(DeleteAccessPolicyRequest request)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessPolicyAsync(DeleteAccessPolicyRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessPolicyRequest request =
DeleteAccessPolicyRequest.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.build();
accessContextManagerClient.deleteAccessPolicyAsync(request).get();
}
Name | Description |
request | DeleteAccessPolicyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessPolicyAsync(String name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteAccessPolicyAsync(String name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = AccessPolicyName.of("[ACCESS_POLICY]").toString();
accessContextManagerClient.deleteAccessPolicyAsync(name).get();
}
Name | Description |
name | String Required. Resource name for the access policy to delete. Format |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteAccessPolicyCallable()
public final UnaryCallable<DeleteAccessPolicyRequest,Operation> deleteAccessPolicyCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessPolicyRequest request =
DeleteAccessPolicyRequest.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.deleteAccessPolicyCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteAccessPolicyRequest,Operation> |
deleteAccessPolicyOperationCallable()
public final OperationCallable<DeleteAccessPolicyRequest,Empty,AccessContextManagerOperationMetadata> deleteAccessPolicyOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteAccessPolicyRequest request =
DeleteAccessPolicyRequest.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.build();
OperationFuture<Empty, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.deleteAccessPolicyOperationCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
OperationCallable<DeleteAccessPolicyRequest,Empty,AccessContextManagerOperationMetadata> |
deleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest request)
public final OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> deleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteGcpUserAccessBindingRequest request =
DeleteGcpUserAccessBindingRequest.newBuilder()
.setName(
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]")
.toString())
.build();
accessContextManagerClient.deleteGcpUserAccessBindingAsync(request).get();
}
Name | Description |
request | DeleteGcpUserAccessBindingRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> |
deleteGcpUserAccessBindingAsync(GcpUserAccessBindingName name)
public final OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> deleteGcpUserAccessBindingAsync(GcpUserAccessBindingName name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GcpUserAccessBindingName name =
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
accessContextManagerClient.deleteGcpUserAccessBindingAsync(name).get();
}
Name | Description |
name | GcpUserAccessBindingName Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" |
Type | Description |
OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> |
deleteGcpUserAccessBindingAsync(String name)
public final OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> deleteGcpUserAccessBindingAsync(String name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name =
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]").toString();
accessContextManagerClient.deleteGcpUserAccessBindingAsync(name).get();
}
Name | Description |
name | String Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" |
Type | Description |
OperationFuture<Empty,GcpUserAccessBindingOperationMetadata> |
deleteGcpUserAccessBindingCallable()
public final UnaryCallable<DeleteGcpUserAccessBindingRequest,Operation> deleteGcpUserAccessBindingCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteGcpUserAccessBindingRequest request =
DeleteGcpUserAccessBindingRequest.newBuilder()
.setName(
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]")
.toString())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.deleteGcpUserAccessBindingCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteGcpUserAccessBindingRequest,Operation> |
deleteGcpUserAccessBindingOperationCallable()
public final OperationCallable<DeleteGcpUserAccessBindingRequest,Empty,GcpUserAccessBindingOperationMetadata> deleteGcpUserAccessBindingOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteGcpUserAccessBindingRequest request =
DeleteGcpUserAccessBindingRequest.newBuilder()
.setName(
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]")
.toString())
.build();
OperationFuture<Empty, GcpUserAccessBindingOperationMetadata> future =
accessContextManagerClient
.deleteGcpUserAccessBindingOperationCallable()
.futureCall(request);
// Do something.
future.get();
}
Type | Description |
OperationCallable<DeleteGcpUserAccessBindingRequest,Empty,GcpUserAccessBindingOperationMetadata> |
deleteServicePerimeterAsync(DeleteServicePerimeterRequest request)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteServicePerimeterAsync(DeleteServicePerimeterRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteServicePerimeterRequest request =
DeleteServicePerimeterRequest.newBuilder()
.setName(ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString())
.build();
accessContextManagerClient.deleteServicePerimeterAsync(request).get();
}
Name | Description |
request | DeleteServicePerimeterRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteServicePerimeterAsync(ServicePerimeterName name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteServicePerimeterAsync(ServicePerimeterName name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ServicePerimeterName name = ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
accessContextManagerClient.deleteServicePerimeterAsync(name).get();
}
Name | Description |
name | ServicePerimeterName Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteServicePerimeterAsync(String name)
public final OperationFuture<Empty,AccessContextManagerOperationMetadata> deleteServicePerimeterAsync(String name)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString();
accessContextManagerClient.deleteServicePerimeterAsync(name).get();
}
Name | Description |
name | String Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
Type | Description |
OperationFuture<Empty,AccessContextManagerOperationMetadata> |
deleteServicePerimeterCallable()
public final UnaryCallable<DeleteServicePerimeterRequest,Operation> deleteServicePerimeterCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteServicePerimeterRequest request =
DeleteServicePerimeterRequest.newBuilder()
.setName(ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.deleteServicePerimeterCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
UnaryCallable<DeleteServicePerimeterRequest,Operation> |
deleteServicePerimeterOperationCallable()
public final OperationCallable<DeleteServicePerimeterRequest,Empty,AccessContextManagerOperationMetadata> deleteServicePerimeterOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
DeleteServicePerimeterRequest request =
DeleteServicePerimeterRequest.newBuilder()
.setName(ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString())
.build();
OperationFuture<Empty, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.deleteServicePerimeterOperationCallable().futureCall(request);
// Do something.
future.get();
}
Type | Description |
OperationCallable<DeleteServicePerimeterRequest,Empty,AccessContextManagerOperationMetadata> |
getAccessLevel(AccessLevelName name)
public final AccessLevel getAccessLevel(AccessLevelName name)
Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessLevelName name = AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]");
AccessLevel response = accessContextManagerClient.getAccessLevel(name);
}
Name | Description |
name | AccessLevelName Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
Type | Description |
AccessLevel |
getAccessLevel(GetAccessLevelRequest request)
public final AccessLevel getAccessLevel(GetAccessLevelRequest request)
Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetAccessLevelRequest request =
GetAccessLevelRequest.newBuilder()
.setName(AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString())
.setAccessLevelFormat(LevelFormat.forNumber(0))
.build();
AccessLevel response = accessContextManagerClient.getAccessLevel(request);
}
Name | Description |
request | GetAccessLevelRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessLevel |
getAccessLevel(String name)
public final AccessLevel getAccessLevel(String name)
Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString();
AccessLevel response = accessContextManagerClient.getAccessLevel(name);
}
Name | Description |
name | String Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: |
Type | Description |
AccessLevel |
getAccessLevelCallable()
public final UnaryCallable<GetAccessLevelRequest,AccessLevel> getAccessLevelCallable()
Get an [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetAccessLevelRequest request =
GetAccessLevelRequest.newBuilder()
.setName(AccessLevelName.of("[ACCESS_POLICY]", "[ACCESS_LEVEL]").toString())
.setAccessLevelFormat(LevelFormat.forNumber(0))
.build();
ApiFuture<AccessLevel> future =
accessContextManagerClient.getAccessLevelCallable().futureCall(request);
// Do something.
AccessLevel response = future.get();
}
Type | Description |
UnaryCallable<GetAccessLevelRequest,AccessLevel> |
getAccessPolicy(AccessPolicyName name)
public final AccessPolicy getAccessPolicy(AccessPolicyName name)
Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName name = AccessPolicyName.of("[ACCESS_POLICY]");
AccessPolicy response = accessContextManagerClient.getAccessPolicy(name);
}
Name | Description |
name | AccessPolicyName Required. Resource name for the access policy to get. Format |
Type | Description |
AccessPolicy |
getAccessPolicy(GetAccessPolicyRequest request)
public final AccessPolicy getAccessPolicy(GetAccessPolicyRequest request)
Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetAccessPolicyRequest request =
GetAccessPolicyRequest.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.build();
AccessPolicy response = accessContextManagerClient.getAccessPolicy(request);
}
Name | Description |
request | GetAccessPolicyRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessPolicy |
getAccessPolicy(String name)
public final AccessPolicy getAccessPolicy(String name)
Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = AccessPolicyName.of("[ACCESS_POLICY]").toString();
AccessPolicy response = accessContextManagerClient.getAccessPolicy(name);
}
Name | Description |
name | String Required. Resource name for the access policy to get. Format |
Type | Description |
AccessPolicy |
getAccessPolicyCallable()
public final UnaryCallable<GetAccessPolicyRequest,AccessPolicy> getAccessPolicyCallable()
Get an [AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] by name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetAccessPolicyRequest request =
GetAccessPolicyRequest.newBuilder()
.setName(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.build();
ApiFuture<AccessPolicy> future =
accessContextManagerClient.getAccessPolicyCallable().futureCall(request);
// Do something.
AccessPolicy response = future.get();
}
Type | Description |
UnaryCallable<GetAccessPolicyRequest,AccessPolicy> |
getGcpUserAccessBinding(GcpUserAccessBindingName name)
public final GcpUserAccessBinding getGcpUserAccessBinding(GcpUserAccessBindingName name)
Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GcpUserAccessBindingName name =
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]");
GcpUserAccessBinding response = accessContextManagerClient.getGcpUserAccessBinding(name);
}
Name | Description |
name | GcpUserAccessBindingName Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" |
Type | Description |
GcpUserAccessBinding |
getGcpUserAccessBinding(GetGcpUserAccessBindingRequest request)
public final GcpUserAccessBinding getGcpUserAccessBinding(GetGcpUserAccessBindingRequest request)
Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetGcpUserAccessBindingRequest request =
GetGcpUserAccessBindingRequest.newBuilder()
.setName(
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]")
.toString())
.build();
GcpUserAccessBinding response = accessContextManagerClient.getGcpUserAccessBinding(request);
}
Name | Description |
request | GetGcpUserAccessBindingRequest The request object containing all of the parameters for the API call. |
Type | Description |
GcpUserAccessBinding |
getGcpUserAccessBinding(String name)
public final GcpUserAccessBinding getGcpUserAccessBinding(String name)
Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name =
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]").toString();
GcpUserAccessBinding response = accessContextManagerClient.getGcpUserAccessBinding(name);
}
Name | Description |
name | String Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" |
Type | Description |
GcpUserAccessBinding |
getGcpUserAccessBindingCallable()
public final UnaryCallable<GetGcpUserAccessBindingRequest,GcpUserAccessBinding> getGcpUserAccessBindingCallable()
Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetGcpUserAccessBindingRequest request =
GetGcpUserAccessBindingRequest.newBuilder()
.setName(
GcpUserAccessBindingName.of("[ORGANIZATION]", "[GCP_USER_ACCESS_BINDING]")
.toString())
.build();
ApiFuture<GcpUserAccessBinding> future =
accessContextManagerClient.getGcpUserAccessBindingCallable().futureCall(request);
// Do something.
GcpUserAccessBinding response = future.get();
}
Type | Description |
UnaryCallable<GetGcpUserAccessBindingRequest,GcpUserAccessBinding> |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Type | Description |
OperationsClient |
getServicePerimeter(GetServicePerimeterRequest request)
public final ServicePerimeter getServicePerimeter(GetServicePerimeterRequest request)
Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetServicePerimeterRequest request =
GetServicePerimeterRequest.newBuilder()
.setName(ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString())
.build();
ServicePerimeter response = accessContextManagerClient.getServicePerimeter(request);
}
Name | Description |
request | GetServicePerimeterRequest The request object containing all of the parameters for the API call. |
Type | Description |
ServicePerimeter |
getServicePerimeter(ServicePerimeterName name)
public final ServicePerimeter getServicePerimeter(ServicePerimeterName name)
Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ServicePerimeterName name = ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]");
ServicePerimeter response = accessContextManagerClient.getServicePerimeter(name);
}
Name | Description |
name | ServicePerimeterName Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
Type | Description |
ServicePerimeter |
getServicePerimeter(String name)
public final ServicePerimeter getServicePerimeter(String name)
Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String name = ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString();
ServicePerimeter response = accessContextManagerClient.getServicePerimeter(name);
}
Name | Description |
name | String Required. Resource name for the [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. Format: |
Type | Description |
ServicePerimeter |
getServicePerimeterCallable()
public final UnaryCallable<GetServicePerimeterRequest,ServicePerimeter> getServicePerimeterCallable()
Get a [Service Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] by resource name.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GetServicePerimeterRequest request =
GetServicePerimeterRequest.newBuilder()
.setName(ServicePerimeterName.of("[ACCESS_POLICY]", "[SERVICE_PERIMETER]").toString())
.build();
ApiFuture<ServicePerimeter> future =
accessContextManagerClient.getServicePerimeterCallable().futureCall(request);
// Do something.
ServicePerimeter response = future.get();
}
Type | Description |
UnaryCallable<GetServicePerimeterRequest,ServicePerimeter> |
getSettings()
public final AccessContextManagerSettings getSettings()
Type | Description |
AccessContextManagerSettings |
getStub()
public AccessContextManagerStub getStub()
Type | Description |
AccessContextManagerStub |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
listAccessLevels(AccessPolicyName parent)
public final AccessContextManagerClient.ListAccessLevelsPagedResponse listAccessLevels(AccessPolicyName parent)
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName parent = AccessPolicyName.of("[ACCESS_POLICY]");
for (AccessLevel element : accessContextManagerClient.listAccessLevels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | AccessPolicyName Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from. Format: |
Type | Description |
AccessContextManagerClient.ListAccessLevelsPagedResponse |
listAccessLevels(ListAccessLevelsRequest request)
public final AccessContextManagerClient.ListAccessLevelsPagedResponse listAccessLevels(ListAccessLevelsRequest request)
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessLevelsRequest request =
ListAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setAccessLevelFormat(LevelFormat.forNumber(0))
.build();
for (AccessLevel element :
accessContextManagerClient.listAccessLevels(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListAccessLevelsRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessContextManagerClient.ListAccessLevelsPagedResponse |
listAccessLevels(String parent)
public final AccessContextManagerClient.ListAccessLevelsPagedResponse listAccessLevels(String parent)
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = AccessPolicyName.of("[ACCESS_POLICY]").toString();
for (AccessLevel element : accessContextManagerClient.listAccessLevels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | String Required. Resource name for the access policy to list [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] from. Format: |
Type | Description |
AccessContextManagerClient.ListAccessLevelsPagedResponse |
listAccessLevelsCallable()
public final UnaryCallable<ListAccessLevelsRequest,ListAccessLevelsResponse> listAccessLevelsCallable()
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessLevelsRequest request =
ListAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setAccessLevelFormat(LevelFormat.forNumber(0))
.build();
while (true) {
ListAccessLevelsResponse response =
accessContextManagerClient.listAccessLevelsCallable().call(request);
for (AccessLevel element : response.getAccessLevelsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListAccessLevelsRequest,ListAccessLevelsResponse> |
listAccessLevelsPagedCallable()
public final UnaryCallable<ListAccessLevelsRequest,AccessContextManagerClient.ListAccessLevelsPagedResponse> listAccessLevelsPagedCallable()
List all [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessLevelsRequest request =
ListAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setAccessLevelFormat(LevelFormat.forNumber(0))
.build();
ApiFuture<AccessLevel> future =
accessContextManagerClient.listAccessLevelsPagedCallable().futureCall(request);
// Do something.
for (AccessLevel element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListAccessLevelsRequest,ListAccessLevelsPagedResponse> |
listAccessPolicies(ListAccessPoliciesRequest request)
public final AccessContextManagerClient.ListAccessPoliciesPagedResponse listAccessPolicies(ListAccessPoliciesRequest request)
List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessPoliciesRequest request =
ListAccessPoliciesRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (AccessPolicy element :
accessContextManagerClient.listAccessPolicies(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListAccessPoliciesRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessContextManagerClient.ListAccessPoliciesPagedResponse |
listAccessPoliciesCallable()
public final UnaryCallable<ListAccessPoliciesRequest,ListAccessPoliciesResponse> listAccessPoliciesCallable()
List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessPoliciesRequest request =
ListAccessPoliciesRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListAccessPoliciesResponse response =
accessContextManagerClient.listAccessPoliciesCallable().call(request);
for (AccessPolicy element : response.getAccessPoliciesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListAccessPoliciesRequest,ListAccessPoliciesResponse> |
listAccessPoliciesPagedCallable()
public final UnaryCallable<ListAccessPoliciesRequest,AccessContextManagerClient.ListAccessPoliciesPagedResponse> listAccessPoliciesPagedCallable()
List all [AccessPolicies] [google.identity.accesscontextmanager.v1.AccessPolicy] under a container.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListAccessPoliciesRequest request =
ListAccessPoliciesRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<AccessPolicy> future =
accessContextManagerClient.listAccessPoliciesPagedCallable().futureCall(request);
// Do something.
for (AccessPolicy element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListAccessPoliciesRequest,ListAccessPoliciesPagedResponse> |
listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest request)
public final AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest request)
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListGcpUserAccessBindingsRequest request =
ListGcpUserAccessBindingsRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (GcpUserAccessBinding element :
accessContextManagerClient.listGcpUserAccessBindings(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListGcpUserAccessBindingsRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse |
listGcpUserAccessBindings(OrganizationName parent)
public final AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse listGcpUserAccessBindings(OrganizationName parent)
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
for (GcpUserAccessBinding element :
accessContextManagerClient.listGcpUserAccessBindings(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | OrganizationName Required. Example: "organizations/256" |
Type | Description |
AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse |
listGcpUserAccessBindings(String parent)
public final AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse listGcpUserAccessBindings(String parent)
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = OrganizationName.of("[ORGANIZATION]").toString();
for (GcpUserAccessBinding element :
accessContextManagerClient.listGcpUserAccessBindings(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | String Required. Example: "organizations/256" |
Type | Description |
AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse |
listGcpUserAccessBindingsCallable()
public final UnaryCallable<ListGcpUserAccessBindingsRequest,ListGcpUserAccessBindingsResponse> listGcpUserAccessBindingsCallable()
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListGcpUserAccessBindingsRequest request =
ListGcpUserAccessBindingsRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListGcpUserAccessBindingsResponse response =
accessContextManagerClient.listGcpUserAccessBindingsCallable().call(request);
for (GcpUserAccessBinding element : response.getGcpUserAccessBindingsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListGcpUserAccessBindingsRequest,ListGcpUserAccessBindingsResponse> |
listGcpUserAccessBindingsPagedCallable()
public final UnaryCallable<ListGcpUserAccessBindingsRequest,AccessContextManagerClient.ListGcpUserAccessBindingsPagedResponse> listGcpUserAccessBindingsPagedCallable()
Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListGcpUserAccessBindingsRequest request =
ListGcpUserAccessBindingsRequest.newBuilder()
.setParent(OrganizationName.of("[ORGANIZATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<GcpUserAccessBinding> future =
accessContextManagerClient.listGcpUserAccessBindingsPagedCallable().futureCall(request);
// Do something.
for (GcpUserAccessBinding element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListGcpUserAccessBindingsRequest,ListGcpUserAccessBindingsPagedResponse> |
listServicePerimeters(AccessPolicyName parent)
public final AccessContextManagerClient.ListServicePerimetersPagedResponse listServicePerimeters(AccessPolicyName parent)
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicyName parent = AccessPolicyName.of("[ACCESS_POLICY]");
for (ServicePerimeter element :
accessContextManagerClient.listServicePerimeters(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | AccessPolicyName Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from. Format: |
Type | Description |
AccessContextManagerClient.ListServicePerimetersPagedResponse |
listServicePerimeters(ListServicePerimetersRequest request)
public final AccessContextManagerClient.ListServicePerimetersPagedResponse listServicePerimeters(ListServicePerimetersRequest request)
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListServicePerimetersRequest request =
ListServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (ServicePerimeter element :
accessContextManagerClient.listServicePerimeters(request).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
request | ListServicePerimetersRequest The request object containing all of the parameters for the API call. |
Type | Description |
AccessContextManagerClient.ListServicePerimetersPagedResponse |
listServicePerimeters(String parent)
public final AccessContextManagerClient.ListServicePerimetersPagedResponse listServicePerimeters(String parent)
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
String parent = AccessPolicyName.of("[ACCESS_POLICY]").toString();
for (ServicePerimeter element :
accessContextManagerClient.listServicePerimeters(parent).iterateAll()) {
// doThingsWith(element);
}
}
Name | Description |
parent | String Required. Resource name for the access policy to list [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] from. Format: |
Type | Description |
AccessContextManagerClient.ListServicePerimetersPagedResponse |
listServicePerimetersCallable()
public final UnaryCallable<ListServicePerimetersRequest,ListServicePerimetersResponse> listServicePerimetersCallable()
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListServicePerimetersRequest request =
ListServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListServicePerimetersResponse response =
accessContextManagerClient.listServicePerimetersCallable().call(request);
for (ServicePerimeter element : response.getServicePerimetersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Type | Description |
UnaryCallable<ListServicePerimetersRequest,ListServicePerimetersResponse> |
listServicePerimetersPagedCallable()
public final UnaryCallable<ListServicePerimetersRequest,AccessContextManagerClient.ListServicePerimetersPagedResponse> listServicePerimetersPagedCallable()
List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ListServicePerimetersRequest request =
ListServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<ServicePerimeter> future =
accessContextManagerClient.listServicePerimetersPagedCallable().futureCall(request);
// Do something.
for (ServicePerimeter element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Type | Description |
UnaryCallable<ListServicePerimetersRequest,ListServicePerimetersPagedResponse> |
replaceAccessLevelsAsync(ReplaceAccessLevelsRequest request)
public final OperationFuture<ReplaceAccessLevelsResponse,AccessContextManagerOperationMetadata> replaceAccessLevelsAsync(ReplaceAccessLevelsRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceAccessLevelsRequest request =
ReplaceAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllAccessLevels(new ArrayList<AccessLevel>())
.setEtag("etag3123477")
.build();
ReplaceAccessLevelsResponse response =
accessContextManagerClient.replaceAccessLevelsAsync(request).get();
}
Name | Description |
request | ReplaceAccessLevelsRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<ReplaceAccessLevelsResponse,AccessContextManagerOperationMetadata> |
replaceAccessLevelsCallable()
public final UnaryCallable<ReplaceAccessLevelsRequest,Operation> replaceAccessLevelsCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceAccessLevelsRequest request =
ReplaceAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllAccessLevels(new ArrayList<AccessLevel>())
.setEtag("etag3123477")
.build();
ApiFuture<Operation> future =
accessContextManagerClient.replaceAccessLevelsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<ReplaceAccessLevelsRequest,Operation> |
replaceAccessLevelsOperationCallable()
public final OperationCallable<ReplaceAccessLevelsRequest,ReplaceAccessLevelsResponse,AccessContextManagerOperationMetadata> replaceAccessLevelsOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceAccessLevelsRequest request =
ReplaceAccessLevelsRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllAccessLevels(new ArrayList<AccessLevel>())
.setEtag("etag3123477")
.build();
OperationFuture<ReplaceAccessLevelsResponse, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.replaceAccessLevelsOperationCallable().futureCall(request);
// Do something.
ReplaceAccessLevelsResponse response = future.get();
}
Type | Description |
OperationCallable<ReplaceAccessLevelsRequest,ReplaceAccessLevelsResponse,AccessContextManagerOperationMetadata> |
replaceServicePerimetersAsync(ReplaceServicePerimetersRequest request)
public final OperationFuture<ReplaceServicePerimetersResponse,AccessContextManagerOperationMetadata> replaceServicePerimetersAsync(ReplaceServicePerimetersRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceServicePerimetersRequest request =
ReplaceServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllServicePerimeters(new ArrayList<ServicePerimeter>())
.setEtag("etag3123477")
.build();
ReplaceServicePerimetersResponse response =
accessContextManagerClient.replaceServicePerimetersAsync(request).get();
}
Name | Description |
request | ReplaceServicePerimetersRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<ReplaceServicePerimetersResponse,AccessContextManagerOperationMetadata> |
replaceServicePerimetersCallable()
public final UnaryCallable<ReplaceServicePerimetersRequest,Operation> replaceServicePerimetersCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceServicePerimetersRequest request =
ReplaceServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllServicePerimeters(new ArrayList<ServicePerimeter>())
.setEtag("etag3123477")
.build();
ApiFuture<Operation> future =
accessContextManagerClient.replaceServicePerimetersCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<ReplaceServicePerimetersRequest,Operation> |
replaceServicePerimetersOperationCallable()
public final OperationCallable<ReplaceServicePerimetersRequest,ReplaceServicePerimetersResponse,AccessContextManagerOperationMetadata> replaceServicePerimetersOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ReplaceServicePerimetersRequest request =
ReplaceServicePerimetersRequest.newBuilder()
.setParent(AccessPolicyName.of("[ACCESS_POLICY]").toString())
.addAllServicePerimeters(new ArrayList<ServicePerimeter>())
.setEtag("etag3123477")
.build();
OperationFuture<ReplaceServicePerimetersResponse, AccessContextManagerOperationMetadata>
future =
accessContextManagerClient
.replaceServicePerimetersOperationCallable()
.futureCall(request);
// Do something.
ReplaceServicePerimetersResponse response = future.get();
}
Type | Description |
OperationCallable<ReplaceServicePerimetersRequest,ReplaceServicePerimetersResponse,AccessContextManagerOperationMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
updateAccessLevelAsync(AccessLevel accessLevel, FieldMask updateMask)
public final OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> updateAccessLevelAsync(AccessLevel accessLevel, FieldMask updateMask)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessLevel accessLevel = AccessLevel.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
AccessLevel response =
accessContextManagerClient.updateAccessLevelAsync(accessLevel, updateMask).get();
}
Name | Description |
accessLevel | AccessLevel Required. The updated [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic correctness of the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel] is a precondition for creation. |
updateMask | FieldMask Required. Mask to control which fields get updated. Must be non-empty. |
Type | Description |
OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> |
updateAccessLevelAsync(UpdateAccessLevelRequest request)
public final OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> updateAccessLevelAsync(UpdateAccessLevelRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessLevelRequest request =
UpdateAccessLevelRequest.newBuilder()
.setAccessLevel(AccessLevel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
AccessLevel response = accessContextManagerClient.updateAccessLevelAsync(request).get();
}
Name | Description |
request | UpdateAccessLevelRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<AccessLevel,AccessContextManagerOperationMetadata> |
updateAccessLevelCallable()
public final UnaryCallable<UpdateAccessLevelRequest,Operation> updateAccessLevelCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessLevelRequest request =
UpdateAccessLevelRequest.newBuilder()
.setAccessLevel(AccessLevel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.updateAccessLevelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<UpdateAccessLevelRequest,Operation> |
updateAccessLevelOperationCallable()
public final OperationCallable<UpdateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> updateAccessLevelOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessLevelRequest request =
UpdateAccessLevelRequest.newBuilder()
.setAccessLevel(AccessLevel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<AccessLevel, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.updateAccessLevelOperationCallable().futureCall(request);
// Do something.
AccessLevel response = future.get();
}
Type | Description |
OperationCallable<UpdateAccessLevelRequest,AccessLevel,AccessContextManagerOperationMetadata> |
updateAccessPolicyAsync(AccessPolicy policy, FieldMask updateMask)
public final OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> updateAccessPolicyAsync(AccessPolicy policy, FieldMask updateMask)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
AccessPolicy policy = AccessPolicy.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
AccessPolicy response =
accessContextManagerClient.updateAccessPolicyAsync(policy, updateMask).get();
}
Name | Description |
policy | AccessPolicy Required. The updated AccessPolicy. |
updateMask | FieldMask Required. Mask to control which fields get updated. Must be non-empty. |
Type | Description |
OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> |
updateAccessPolicyAsync(UpdateAccessPolicyRequest request)
public final OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> updateAccessPolicyAsync(UpdateAccessPolicyRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessPolicyRequest request =
UpdateAccessPolicyRequest.newBuilder()
.setPolicy(AccessPolicy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
AccessPolicy response = accessContextManagerClient.updateAccessPolicyAsync(request).get();
}
Name | Description |
request | UpdateAccessPolicyRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<AccessPolicy,AccessContextManagerOperationMetadata> |
updateAccessPolicyCallable()
public final UnaryCallable<UpdateAccessPolicyRequest,Operation> updateAccessPolicyCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessPolicyRequest request =
UpdateAccessPolicyRequest.newBuilder()
.setPolicy(AccessPolicy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.updateAccessPolicyCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<UpdateAccessPolicyRequest,Operation> |
updateAccessPolicyOperationCallable()
public final OperationCallable<UpdateAccessPolicyRequest,AccessPolicy,AccessContextManagerOperationMetadata> updateAccessPolicyOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateAccessPolicyRequest request =
UpdateAccessPolicyRequest.newBuilder()
.setPolicy(AccessPolicy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<AccessPolicy, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.updateAccessPolicyOperationCallable().futureCall(request);
// Do something.
AccessPolicy response = future.get();
}
Type | Description |
OperationCallable<UpdateAccessPolicyRequest,AccessPolicy,AccessContextManagerOperationMetadata> |
updateGcpUserAccessBindingAsync(GcpUserAccessBinding gcpUserAccessBinding, FieldMask updateMask)
public final OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> updateGcpUserAccessBindingAsync(GcpUserAccessBinding gcpUserAccessBinding, FieldMask updateMask)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
GcpUserAccessBinding gcpUserAccessBinding = GcpUserAccessBinding.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
GcpUserAccessBinding response =
accessContextManagerClient
.updateGcpUserAccessBindingAsync(gcpUserAccessBinding, updateMask)
.get();
}
Name | Description |
gcpUserAccessBinding | GcpUserAccessBinding Required. [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] |
updateMask | FieldMask Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and must always be: update_mask { paths: "access_levels" } |
Type | Description |
OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
updateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest request)
public final OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> updateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateGcpUserAccessBindingRequest request =
UpdateGcpUserAccessBindingRequest.newBuilder()
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
GcpUserAccessBinding response =
accessContextManagerClient.updateGcpUserAccessBindingAsync(request).get();
}
Name | Description |
request | UpdateGcpUserAccessBindingRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
updateGcpUserAccessBindingCallable()
public final UnaryCallable<UpdateGcpUserAccessBindingRequest,Operation> updateGcpUserAccessBindingCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateGcpUserAccessBindingRequest request =
UpdateGcpUserAccessBindingRequest.newBuilder()
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.updateGcpUserAccessBindingCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<UpdateGcpUserAccessBindingRequest,Operation> |
updateGcpUserAccessBindingOperationCallable()
public final OperationCallable<UpdateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> updateGcpUserAccessBindingOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateGcpUserAccessBindingRequest request =
UpdateGcpUserAccessBindingRequest.newBuilder()
.setGcpUserAccessBinding(GcpUserAccessBinding.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<GcpUserAccessBinding, GcpUserAccessBindingOperationMetadata> future =
accessContextManagerClient
.updateGcpUserAccessBindingOperationCallable()
.futureCall(request);
// Do something.
GcpUserAccessBinding response = future.get();
}
Type | Description |
OperationCallable<UpdateGcpUserAccessBindingRequest,GcpUserAccessBinding,GcpUserAccessBindingOperationMetadata> |
updateServicePerimeterAsync(ServicePerimeter servicePerimeter, FieldMask updateMask)
public final OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> updateServicePerimeterAsync(ServicePerimeter servicePerimeter, FieldMask updateMask)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
ServicePerimeter servicePerimeter = ServicePerimeter.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
ServicePerimeter response =
accessContextManagerClient
.updateServicePerimeterAsync(servicePerimeter, updateMask)
.get();
}
Name | Description |
servicePerimeter | ServicePerimeter Required. The updated |
updateMask | FieldMask Required. Mask to control which fields get updated. Must be non-empty. |
Type | Description |
OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> |
updateServicePerimeterAsync(UpdateServicePerimeterRequest request)
public final OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> updateServicePerimeterAsync(UpdateServicePerimeterRequest request)
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateServicePerimeterRequest request =
UpdateServicePerimeterRequest.newBuilder()
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ServicePerimeter response =
accessContextManagerClient.updateServicePerimeterAsync(request).get();
}
Name | Description |
request | UpdateServicePerimeterRequest The request object containing all of the parameters for the API call. |
Type | Description |
OperationFuture<ServicePerimeter,AccessContextManagerOperationMetadata> |
updateServicePerimeterCallable()
public final UnaryCallable<UpdateServicePerimeterRequest,Operation> updateServicePerimeterCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateServicePerimeterRequest request =
UpdateServicePerimeterRequest.newBuilder()
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
accessContextManagerClient.updateServicePerimeterCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Type | Description |
UnaryCallable<UpdateServicePerimeterRequest,Operation> |
updateServicePerimeterOperationCallable()
public final OperationCallable<UpdateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> updateServicePerimeterOperationCallable()
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.
Sample code:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
try (AccessContextManagerClient accessContextManagerClient =
AccessContextManagerClient.create()) {
UpdateServicePerimeterRequest request =
UpdateServicePerimeterRequest.newBuilder()
.setServicePerimeter(ServicePerimeter.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
OperationFuture<ServicePerimeter, AccessContextManagerOperationMetadata> future =
accessContextManagerClient.updateServicePerimeterOperationCallable().futureCall(request);
// Do something.
ServicePerimeter response = future.get();
}
Type | Description |
OperationCallable<UpdateServicePerimeterRequest,ServicePerimeter,AccessContextManagerOperationMetadata> |