# Class CloudControlsPartnerCoreClient (0.57.0)

0.57.0 (latest) 0.55.0 0.52.0 0.51.0 0.49.0 0.47.0 0.46.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.28.0 0.27.0 0.26.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

|---|---|
| [GitHub Repository](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java) | [Product Reference](https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners) |

Service Description: Service describing handlers for resources

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 and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       WorkloadName name =
           WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
       Workload response = cloudControlsPartnerCoreClient.getWorkload(name);
     }
     
Note: close() needs to be called on the CloudControlsPartnerCoreClient object to clean up
resources such as threads. In the example above, try-with-resources is used, which automatically
calls close().

| Method | Description | Method Variants |
|---|---|---|
| GetWorkload | Gets details of a single workload | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getWorkload(GetWorkloadRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getWorkload(WorkloadName name) - getWorkload(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getWorkloadCallable() |
| ListWorkloads | Lists customer workloads for a given customer org id | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listWorkloads(ListWorkloadsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listWorkloads(CustomerName parent) - listWorkloads(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listWorkloadsPagedCallable() - listWorkloadsCallable() |
| GetCustomer | Gets details of a single customer | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getCustomer(GetCustomerRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getCustomer(CustomerName name) - getCustomer(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getCustomerCallable() |
| ListCustomers | Lists customers of a partner identified by its Google Cloud organization ID | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listCustomers(ListCustomersRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listCustomers(OrganizationLocationName parent) - listCustomers(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listCustomersPagedCallable() - listCustomersCallable() |
| GetEkmConnections | Gets the EKM connections associated with a workload | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getEkmConnections(GetEkmConnectionsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getEkmConnections(EkmConnectionsName name) - getEkmConnections(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getEkmConnectionsCallable() |
| GetPartnerPermissions | Gets the partner permissions granted for a workload | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getPartnerPermissions(GetPartnerPermissionsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getPartnerPermissions(PartnerPermissionsName name) - getPartnerPermissions(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getPartnerPermissionsCallable() |
| ListAccessApprovalRequests | Deprecated: Only returns access approval requests directly associated with an assured workload folder. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - listAccessApprovalRequests(ListAccessApprovalRequestsRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - listAccessApprovalRequests(WorkloadName parent) - listAccessApprovalRequests(String parent) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - listAccessApprovalRequestsPagedCallable() - listAccessApprovalRequestsCallable() |
| GetPartner | Get details of a Partner. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - getPartner(GetPartnerRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - getPartner(PartnerName name) - getPartner(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - getPartnerCallable() |
| CreateCustomer | Creates a new customer. | Request object method variants only take one parameter, a request object, which must be constructed before the call. - createCustomer(CreateCustomerRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - createCustomer(OrganizationLocationName parent, Customer customer, String customerId) - createCustomer(String parent, Customer customer, String customerId) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - createCustomerCallable() |
| UpdateCustomer | Update details of a single customer | Request object method variants only take one parameter, a request object, which must be constructed before the call. - updateCustomer(UpdateCustomerRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - updateCustomer(Customer customer, FieldMask updateMask) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - updateCustomerCallable() |
| DeleteCustomer | Delete details of a single customer | Request object method variants only take one parameter, a request object, which must be constructed before the call. - deleteCustomer(DeleteCustomerRequest request) "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. - deleteCustomer(CustomerName name) - deleteCustomer(String name) Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. - deleteCustomerCallable() |
[Methods]

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
CloudControlsPartnerCoreSettings to create(). For example:

To customize credentials:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings =
         CloudControlsPartnerCoreSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
             .build();
     CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings);
     
To customize the endpoint:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings =
         CloudControlsPartnerCoreSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings);
     
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
the wire:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     CloudControlsPartnerCoreSettings cloudControlsPartnerCoreSettings =
         CloudControlsPartnerCoreSettings.newHttpJsonBuilder().build();
     CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create(cloudControlsPartnerCoreSettings);
     
Please refer to the GitHub repository's samples for more quickstart code snippets.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> CloudControlsPartnerCoreClient

## Static Methods

### create()

    public static final CloudControlsPartnerCoreClient create()

Constructs an instance of CloudControlsPartnerCoreClient with default settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(CloudControlsPartnerCoreSettings settings)

    public static final CloudControlsPartnerCoreClient create(CloudControlsPartnerCoreSettings settings)

Constructs an instance of CloudControlsPartnerCoreClient, using the given settings. The
channels are created based on the settings passed in, or defaults for any settings that are not
set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(CloudControlsPartnerCoreStub stub)

    public static final CloudControlsPartnerCoreClient create(CloudControlsPartnerCoreStub stub)

Constructs an instance of CloudControlsPartnerCoreClient, using the given stub for making
calls. This is for advanced usage - prefer using create(CloudControlsPartnerCoreSettings).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStub` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient` |   |

## Constructors

### CloudControlsPartnerCoreClient(CloudControlsPartnerCoreSettings settings)

    protected CloudControlsPartnerCoreClient(CloudControlsPartnerCoreSettings settings)

Constructs an instance of CloudControlsPartnerCoreClient, 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreSettings` |

### CloudControlsPartnerCoreClient(CloudControlsPartnerCoreStub stub)

    protected CloudControlsPartnerCoreClient(CloudControlsPartnerCoreStub stub)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `stub` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStub` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### close()

    public final void close()

### createCustomer(CreateCustomerRequest request)

    public final Customer createCustomer(CreateCustomerRequest request)

Creates a new customer.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       CreateCustomerRequest request =
           CreateCustomerRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setCustomer(Customer.newBuilder().build())
               .setCustomerId("customerId-1581184615")
               .build();
       Customer response = cloudControlsPartnerCoreClient.createCustomer(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### createCustomer(OrganizationLocationName parent, Customer customer, String customerId)

    public final Customer createCustomer(OrganizationLocationName parent, Customer customer, String customerId)

Creates a new customer.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       Customer customer = Customer.newBuilder().build();
       String customerId = "customerId-1581184615";
       Customer response =
           cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName` Required. Parent resource Format: `organizations/{organization}/locations/{location}` |
| `customer` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` Required. The customer to create. |
| `customerId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### createCustomer(String parent, Customer customer, String customerId)

    public final Customer createCustomer(String parent, Customer customer, String customerId)

Creates a new customer.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       Customer customer = Customer.newBuilder().build();
       String customerId = "customerId-1581184615";
       Customer response =
           cloudControlsPartnerCoreClient.createCustomer(parent, customer, customerId);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent resource Format: `organizations/{organization}/locations/{location}` |
| `customer` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` Required. The customer to create. |
| `customerId` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. The customer id to use for the customer, which will become the final component of the customer's resource name. The specified value must be a valid Google cloud organization id. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### createCustomerCallable()

    public final UnaryCallable<CreateCustomerRequest,Customer> createCustomerCallable()

Creates a new customer.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       CreateCustomerRequest request =
           CreateCustomerRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setCustomer(Customer.newBuilder().build())
               .setCustomerId("customerId-1581184615")
               .build();
       ApiFuture<Customer> future =
           cloudControlsPartnerCoreClient.createCustomerCallable().futureCall(request);
       // Do something.
       Customer response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CreateCustomerRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer>` |   |

### deleteCustomer(CustomerName name)

    public final void deleteCustomer(CustomerName name)

Delete details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]");
       cloudControlsPartnerCoreClient.deleteCustomer(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CustomerName` Required. name of the resource to be deleted format: name=organizations/\*/locations/\*/customers/\* |

### deleteCustomer(DeleteCustomerRequest request)

    public final void deleteCustomer(DeleteCustomerRequest request)

Delete details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       DeleteCustomerRequest request =
           DeleteCustomerRequest.newBuilder()
               .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .build();
       cloudControlsPartnerCoreClient.deleteCustomer(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest` The request object containing all of the parameters for the API call. |

### deleteCustomer(String name)

    public final void deleteCustomer(String name)

Delete details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString();
       cloudControlsPartnerCoreClient.deleteCustomer(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. name of the resource to be deleted format: name=organizations/\*/locations/\*/customers/\* |

### deleteCustomerCallable()

    public final UnaryCallable<DeleteCustomerRequest,Empty> deleteCustomerCallable()

Delete details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       DeleteCustomerRequest request =
           DeleteCustomerRequest.newBuilder()
               .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .build();
       ApiFuture<Empty> future =
           cloudControlsPartnerCoreClient.deleteCustomerCallable().futureCall(request);
       // Do something.
       future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.DeleteCustomerRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getCustomer(CustomerName name)

    public final Customer getCustomer(CustomerName name)

Gets details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       CustomerName name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]");
       Customer response = cloudControlsPartnerCoreClient.getCustomer(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CustomerName` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### getCustomer(GetCustomerRequest request)

    public final Customer getCustomer(GetCustomerRequest request)

Gets details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetCustomerRequest request =
           GetCustomerRequest.newBuilder()
               .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .build();
       Customer response = cloudControlsPartnerCoreClient.getCustomer(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### getCustomer(String name)

    public final Customer getCustomer(String name)

Gets details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString();
       Customer response = cloudControlsPartnerCoreClient.getCustomer(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### getCustomerCallable()

    public final UnaryCallable<GetCustomerRequest,Customer> getCustomerCallable()

Gets details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetCustomerRequest request =
           GetCustomerRequest.newBuilder()
               .setName(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .build();
       ApiFuture<Customer> future =
           cloudControlsPartnerCoreClient.getCustomerCallable().futureCall(request);
       // Do something.
       Customer response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetCustomerRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer>` |   |

### getEkmConnections(EkmConnectionsName name)

    public final EkmConnections getEkmConnections(EkmConnectionsName name)

Gets the EKM connections associated with a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       EkmConnectionsName name =
           EkmConnectionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
       EkmConnections response = cloudControlsPartnerCoreClient.getEkmConnections(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.EkmConnectionsName` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections` |   |

### getEkmConnections(GetEkmConnectionsRequest request)

    public final EkmConnections getEkmConnections(GetEkmConnectionsRequest request)

Gets the EKM connections associated with a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetEkmConnectionsRequest request =
           GetEkmConnectionsRequest.newBuilder()
               .setName(
                   EkmConnectionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       EkmConnections response = cloudControlsPartnerCoreClient.getEkmConnections(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections` |   |

### getEkmConnections(String name)

    public final EkmConnections getEkmConnections(String name)

Gets the EKM connections associated with a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name =
           EkmConnectionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
               .toString();
       EkmConnections response = cloudControlsPartnerCoreClient.getEkmConnections(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections` |   |

### getEkmConnectionsCallable()

    public final UnaryCallable<GetEkmConnectionsRequest,EkmConnections> getEkmConnectionsCallable()

Gets the EKM connections associated with a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetEkmConnectionsRequest request =
           GetEkmConnectionsRequest.newBuilder()
               .setName(
                   EkmConnectionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       ApiFuture<EkmConnections> future =
           cloudControlsPartnerCoreClient.getEkmConnectionsCallable().futureCall(request);
       // Do something.
       EkmConnections response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetEkmConnectionsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.EkmConnections>` |   |

### getPartner(GetPartnerRequest request)

    public final Partner getPartner(GetPartnerRequest request)

Get details of a Partner.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetPartnerRequest request =
           GetPartnerRequest.newBuilder()
               .setName(PartnerName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .build();
       Partner response = cloudControlsPartnerCoreClient.getPartner(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Partner` |   |

### getPartner(PartnerName name)

    public final Partner getPartner(PartnerName name)

Get details of a Partner.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       PartnerName name = PartnerName.of("[ORGANIZATION]", "[LOCATION]");
       Partner response = cloudControlsPartnerCoreClient.getPartner(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerName` Required. Format: `organizations/{organization}/locations/{location}/partner` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Partner` |   |

### getPartner(String name)

    public final Partner getPartner(String name)

Get details of a Partner.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name = PartnerName.of("[ORGANIZATION]", "[LOCATION]").toString();
       Partner response = cloudControlsPartnerCoreClient.getPartner(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: `organizations/{organization}/locations/{location}/partner` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Partner` |   |

### getPartnerCallable()

    public final UnaryCallable<GetPartnerRequest,Partner> getPartnerCallable()

Get details of a Partner.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetPartnerRequest request =
           GetPartnerRequest.newBuilder()
               .setName(PartnerName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .build();
       ApiFuture<Partner> future =
           cloudControlsPartnerCoreClient.getPartnerCallable().futureCall(request);
       // Do something.
       Partner response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Partner>` |   |

### getPartnerPermissions(GetPartnerPermissionsRequest request)

    public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsRequest request)

Gets the partner permissions granted for a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetPartnerPermissionsRequest request =
           GetPartnerPermissionsRequest.newBuilder()
               .setName(
                   PartnerPermissionsName.of(
                           "[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       PartnerPermissions response = cloudControlsPartnerCoreClient.getPartnerPermissions(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions` |   |

### getPartnerPermissions(PartnerPermissionsName name)

    public final PartnerPermissions getPartnerPermissions(PartnerPermissionsName name)

Gets the partner permissions granted for a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       PartnerPermissionsName name =
           PartnerPermissionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
       PartnerPermissions response = cloudControlsPartnerCoreClient.getPartnerPermissions(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissionsName` Required. Name of the resource to get in the format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions` |   |

### getPartnerPermissions(String name)

    public final PartnerPermissions getPartnerPermissions(String name)

Gets the partner permissions granted for a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name =
           PartnerPermissionsName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
               .toString();
       PartnerPermissions response = cloudControlsPartnerCoreClient.getPartnerPermissions(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Name of the resource to get in the format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions` |   |

### getPartnerPermissionsCallable()

    public final UnaryCallable<GetPartnerPermissionsRequest,PartnerPermissions> getPartnerPermissionsCallable()

Gets the partner permissions granted for a workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetPartnerPermissionsRequest request =
           GetPartnerPermissionsRequest.newBuilder()
               .setName(
                   PartnerPermissionsName.of(
                           "[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       ApiFuture<PartnerPermissions> future =
           cloudControlsPartnerCoreClient.getPartnerPermissionsCallable().futureCall(request);
       // Do something.
       PartnerPermissions response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetPartnerPermissionsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions>` |   |

### getSettings()

    public final CloudControlsPartnerCoreSettings getSettings()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreSettings` |   |

### getStub()

    public CloudControlsPartnerCoreStub getStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.stub.CloudControlsPartnerCoreStub` |   |

### getWorkload(GetWorkloadRequest request)

    public final Workload getWorkload(GetWorkloadRequest request)

Gets details of a single workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetWorkloadRequest request =
           GetWorkloadRequest.newBuilder()
               .setName(
                   WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       Workload response = cloudControlsPartnerCoreClient.getWorkload(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Workload` |   |

### getWorkload(WorkloadName name)

    public final Workload getWorkload(WorkloadName name)

Gets details of a single workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       WorkloadName name =
           WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
       Workload response = cloudControlsPartnerCoreClient.getWorkload(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.WorkloadName` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Workload` |   |

### getWorkload(String name)

    public final Workload getWorkload(String name)

Gets details of a single workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String name =
           WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]").toString();
       Workload response = cloudControlsPartnerCoreClient.getWorkload(name);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Workload` |   |

### getWorkloadCallable()

    public final UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()

Gets details of a single workload

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       GetWorkloadRequest request =
           GetWorkloadRequest.newBuilder()
               .setName(
                   WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .build();
       ApiFuture<Workload> future =
           cloudControlsPartnerCoreClient.getWorkloadCallable().futureCall(request);
       // Do something.
       Workload response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.GetWorkloadRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Workload>` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listAccessApprovalRequests(ListAccessApprovalRequestsRequest request) (deprecated)

    public final CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests(ListAccessApprovalRequestsRequest request)

**Deprecated.** *This method is deprecated and will be removed in the next major version update.*

Deprecated: Only returns access approval requests directly associated with an assured workload
folder.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListAccessApprovalRequestsRequest request =
           ListAccessApprovalRequestsRequest.newBuilder()
               .setParent(
                   WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (AccessApprovalRequest element :
           cloudControlsPartnerCoreClient.listAccessApprovalRequests(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse` |   |

### listAccessApprovalRequests(WorkloadName parent) (deprecated)

    public final CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests(WorkloadName parent)

**Deprecated.** *This method is deprecated and will be removed in the next major version update.*

Deprecated: Only returns access approval requests directly associated with an assured workload
folder.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       WorkloadName parent =
           WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]");
       for (AccessApprovalRequest element :
           cloudControlsPartnerCoreClient.listAccessApprovalRequests(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.WorkloadName` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse` |   |

### listAccessApprovalRequests(String parent) (deprecated)

    public final CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests(String parent)

**Deprecated.** *This method is deprecated and will be removed in the next major version update.*

Deprecated: Only returns access approval requests directly associated with an assured workload
folder.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String parent =
           WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]").toString();
       for (AccessApprovalRequest element :
           cloudControlsPartnerCoreClient.listAccessApprovalRequests(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse` |   |

### listAccessApprovalRequestsCallable() (deprecated)

    public final UnaryCallable<ListAccessApprovalRequestsRequest,ListAccessApprovalRequestsResponse> listAccessApprovalRequestsCallable()

**Deprecated.** *This method is deprecated and will be removed in the next major version update.*

Deprecated: Only returns access approval requests directly associated with an assured workload
folder.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListAccessApprovalRequestsRequest request =
           ListAccessApprovalRequestsRequest.newBuilder()
               .setParent(
                   WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListAccessApprovalRequestsResponse response =
             cloudControlsPartnerCoreClient.listAccessApprovalRequestsCallable().call(request);
         for (AccessApprovalRequest element : response.getAccessApprovalRequestsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse>` |   |

### listAccessApprovalRequestsPagedCallable() (deprecated)

    public final UnaryCallable<ListAccessApprovalRequestsRequest,CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsPagedCallable()

**Deprecated.** *This method is deprecated and will be removed in the next major version update.*

Deprecated: Only returns access approval requests directly associated with an assured workload
folder.

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListAccessApprovalRequestsRequest request =
           ListAccessApprovalRequestsRequest.newBuilder()
               .setParent(
                   WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]", "[WORKLOAD]")
                       .toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<AccessApprovalRequest> future =
           cloudControlsPartnerCoreClient
               .listAccessApprovalRequestsPagedCallable()
               .futureCall(request);
       // Do something.
       for (AccessApprovalRequest element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListAccessApprovalRequestsPagedResponse>` |   |

### listCustomers(ListCustomersRequest request)

    public final CloudControlsPartnerCoreClient.ListCustomersPagedResponse listCustomers(ListCustomersRequest request)

Lists customers of a partner identified by its Google Cloud organization ID

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListCustomersRequest request =
           ListCustomersRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (Customer element : cloudControlsPartnerCoreClient.listCustomers(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListCustomersPagedResponse` |   |

### listCustomers(OrganizationLocationName parent)

    public final CloudControlsPartnerCoreClient.ListCustomersPagedResponse listCustomers(OrganizationLocationName parent)

Lists customers of a partner identified by its Google Cloud organization ID

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
       for (Customer element : cloudControlsPartnerCoreClient.listCustomers(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.OrganizationLocationName` Required. Parent resource Format: `organizations/{organization}/locations/{location}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListCustomersPagedResponse` |   |

### listCustomers(String parent)

    public final CloudControlsPartnerCoreClient.ListCustomersPagedResponse listCustomers(String parent)

Lists customers of a partner identified by its Google Cloud organization ID

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
       for (Customer element : cloudControlsPartnerCoreClient.listCustomers(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent resource Format: `organizations/{organization}/locations/{location}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListCustomersPagedResponse` |   |

### listCustomersCallable()

    public final UnaryCallable<ListCustomersRequest,ListCustomersResponse> listCustomersCallable()

Lists customers of a partner identified by its Google Cloud organization ID

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListCustomersRequest request =
           ListCustomersRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListCustomersResponse response =
             cloudControlsPartnerCoreClient.listCustomersCallable().call(request);
         for (Customer element : response.getCustomersList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse>` |   |

### listCustomersPagedCallable()

    public final UnaryCallable<ListCustomersRequest,CloudControlsPartnerCoreClient.ListCustomersPagedResponse> listCustomersPagedCallable()

Lists customers of a partner identified by its Google Cloud organization ID

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListCustomersRequest request =
           ListCustomersRequest.newBuilder()
               .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<Customer> future =
           cloudControlsPartnerCoreClient.listCustomersPagedCallable().futureCall(request);
       // Do something.
       for (Customer element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListCustomersRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListCustomersPagedResponse>` |   |

### listWorkloads(CustomerName parent)

    public final CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse listWorkloads(CustomerName parent)

Lists customer workloads for a given customer org id

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       CustomerName parent = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]");
       for (Workload element : cloudControlsPartnerCoreClient.listWorkloads(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CustomerName` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse` |   |

### listWorkloads(ListWorkloadsRequest request)

    public final CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse listWorkloads(ListWorkloadsRequest request)

Lists customer workloads for a given customer org id

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListWorkloadsRequest request =
           ListWorkloadsRequest.newBuilder()
               .setParent(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       for (Workload element : cloudControlsPartnerCoreClient.listWorkloads(request).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse` |   |

### listWorkloads(String parent)

    public final CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse listWorkloads(String parent)

Lists customer workloads for a given customer org id

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       String parent = CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString();
       for (Workload element : cloudControlsPartnerCoreClient.listWorkloads(parent).iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse` |   |

### listWorkloadsCallable()

    public final UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()

Lists customer workloads for a given customer org id

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListWorkloadsRequest request =
           ListWorkloadsRequest.newBuilder()
               .setParent(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       while (true) {
         ListWorkloadsResponse response =
             cloudControlsPartnerCoreClient.listWorkloadsCallable().call(request);
         for (Workload element : response.getWorkloadsList()) {
           // doThingsWith(element);
         }
         String nextPageToken = response.getNextPageToken();
         if (!Strings.isNullOrEmpty(nextPageToken)) {
           request = request.toBuilder().setPageToken(nextPageToken).build();
         } else {
           break;
         }
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse>` |   |

### listWorkloadsPagedCallable()

    public final UnaryCallable<ListWorkloadsRequest,CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()

Lists customer workloads for a given customer org id

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       ListWorkloadsRequest request =
           ListWorkloadsRequest.newBuilder()
               .setParent(CustomerName.of("[ORGANIZATION]", "[LOCATION]", "[CUSTOMER]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .setFilter("filter-1274492040")
               .setOrderBy("orderBy-1207110587")
               .build();
       ApiFuture<Workload> future =
           cloudControlsPartnerCoreClient.listWorkloadsPagedCallable().futureCall(request);
       // Do something.
       for (Workload element : future.get().iterateAll()) {
         // doThingsWith(element);
       }
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient.ListWorkloadsPagedResponse>` |   |

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()

### updateCustomer(Customer customer, FieldMask updateMask)

    public final Customer updateCustomer(Customer customer, FieldMask updateMask)

Update details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       Customer customer = Customer.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
       Customer response = cloudControlsPartnerCoreClient.updateCustomer(customer, updateMask);
     }
     
| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `customer` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` Required. The customer to update Format: `organizations/{organization}/locations/{location}/customers/{customer}` |
| `updateMask` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.FieldMask.html` Optional. The list of fields to update |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### updateCustomer(UpdateCustomerRequest request)

    public final Customer updateCustomer(UpdateCustomerRequest request)

Update details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       UpdateCustomerRequest request =
           UpdateCustomerRequest.newBuilder()
               .setCustomer(Customer.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       Customer response = cloudControlsPartnerCoreClient.updateCustomer(request);
     }
     
| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest` The request object containing all of the parameters for the API call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer` |   |

### updateCustomerCallable()

    public final UnaryCallable<UpdateCustomerRequest,Customer> updateCustomerCallable()

Update details of a single customer

Sample code:


     // This snippet has been automatically generated and should be regarded as a code template only.
     // It will require modifications to work:
     // - It may require correct/in-range values for request initialization.
     // - It may require specifying regional endpoints when creating the service client as shown in
     // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
     try (CloudControlsPartnerCoreClient cloudControlsPartnerCoreClient =
         CloudControlsPartnerCoreClient.create()) {
       UpdateCustomerRequest request =
           UpdateCustomerRequest.newBuilder()
               .setCustomer(Customer.newBuilder().build())
               .setUpdateMask(FieldMask.newBuilder().build())
               .build();
       ApiFuture<Customer> future =
           cloudControlsPartnerCoreClient.updateCustomerCallable().futureCall(request);
       // Do something.
       Customer response = future.get();
     }
     
| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.UpdateCustomerRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/com.google.cloud.cloudcontrolspartner.v1beta.Customer>` |   |