# Cloud Controls Partner V1BETA API - Class Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client (v0.9.0)

0.9.0 (latest) 0.8.0 0.7.1 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Controls Partner V1BETA API class Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.

REST client for the CloudControlsPartnerCore service.


<br />

Service describing handlers for resources

## Inherits

- Object

## Includes

- [Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the CloudControlsPartnerCore Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration "Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all CloudControlsPartnerCore clients
::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the CloudControlsPartnerCore Client instance.


The configuration is set to the derived mode, meaning that values can be changed,
but structural changes (adding new fields, etc.) are not allowed. Structural changes
should be made on [Client.configure](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client#Google__Cloud__CloudControlsPartner__V1beta__CloudControlsPartnerCore__Rest__Client_configure_class_ "Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration "Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration))

### #create_customer

    def create_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer
    def create_customer(parent: nil, customer: nil, customer_id: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Creates a new customer.
**Overloads**

    def create_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `create_customer` via a request object, either of type [Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CreateCustomerRequest "Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CreateCustomerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def create_customer(parent: nil, customer: nil, customer_id: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `create_customer` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent resource Format: `organizations/{organization}/locations/{location}`
- **customer** ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer), ::Hash) --- Required. The customer to create.
- **customer_id** (::String) --- 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.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::CreateCustomerRequest.new

# Call the create_customer method.
result = client.create_customer request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
p result
```

### #delete_customer

    def delete_customer(request, options = nil) -> ::Google::Protobuf::Empty
    def delete_customer(name: nil) -> ::Google::Protobuf::Empty

Delete details of a single customer
**Overloads**

    def delete_customer(request, options = nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_customer` via a request object, either of type [DeleteCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-DeleteCustomerRequest "Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-DeleteCustomerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def delete_customer(name: nil) -> ::Google::Protobuf::Empty

Pass arguments to `delete_customer` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. name of the resource to be deleted format: name=organizations/*/locations/*/customers/\*
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Protobuf-Empty))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::DeleteCustomerRequest.new

# Call the delete_customer method.
result = client.delete_customer request

# The returned object is of type Google::Protobuf::Empty.
p result
```

### #get_customer

    def get_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer
    def get_customer(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Gets details of a single customer
**Overloads**

    def get_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `get_customer` via a request object, either of type [GetCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetCustomerRequest "Google::Cloud::CloudControlsPartner::V1beta::GetCustomerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::GetCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetCustomerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_customer(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `get_customer` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::GetCustomerRequest.new

# Call the get_customer method.
result = client.get_customer request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
p result
```

### #get_ekm_connections

    def get_ekm_connections(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections
    def get_ekm_connections(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections

Gets the EKM connections associated with a workload
**Overloads**

    def get_ekm_connections(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections

Pass arguments to `get_ekm_connections` via a request object, either of type [GetEkmConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetEkmConnectionsRequest "Google::Cloud::CloudControlsPartner::V1beta::GetEkmConnectionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::GetEkmConnectionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetEkmConnectionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_ekm_connections(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections

Pass arguments to `get_ekm_connections` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-EkmConnections))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::EkmConnections](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-EkmConnections))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::GetEkmConnectionsRequest.new

# Call the get_ekm_connections method.
result = client.get_ekm_connections request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::EkmConnections.
p result
```

### #get_partner

    def get_partner(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Partner
    def get_partner(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Partner

Get details of a Partner.
**Overloads**

    def get_partner(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Partner

Pass arguments to `get_partner` via a request object, either of type [GetPartnerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetPartnerRequest "Google::Cloud::CloudControlsPartner::V1beta::GetPartnerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::GetPartnerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetPartnerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_partner(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Partner

Pass arguments to `get_partner` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Format: `organizations/{organization}/locations/{location}/partner`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::Partner](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Partner))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::Partner](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Partner))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::GetPartnerRequest.new

# Call the get_partner method.
result = client.get_partner request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Partner.
p result
```

### #get_partner_permissions

    def get_partner_permissions(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions
    def get_partner_permissions(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions

Gets the partner permissions granted for a workload
**Overloads**

    def get_partner_permissions(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions

Pass arguments to `get_partner_permissions` via a request object, either of type [GetPartnerPermissionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetPartnerPermissionsRequest "Google::Cloud::CloudControlsPartner::V1beta::GetPartnerPermissionsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::GetPartnerPermissionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetPartnerPermissionsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_partner_permissions(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions

Pass arguments to `get_partner_permissions` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Name of the resource to get in the format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-PartnerPermissions))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-PartnerPermissions))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::GetPartnerPermissionsRequest.new

# Call the get_partner_permissions method.
result = client.get_partner_permissions request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::PartnerPermissions.
p result
```

### #get_workload

    def get_workload(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Workload
    def get_workload(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Workload

Gets details of a single workload
**Overloads**

    def get_workload(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Workload

Pass arguments to `get_workload` via a request object, either of type [GetWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetWorkloadRequest "Google::Cloud::CloudControlsPartner::V1beta::GetWorkloadRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::GetWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-GetWorkloadRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def get_workload(name: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Workload

Pass arguments to `get_workload` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameter**

- **name** (::String) --- Required. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::Workload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Workload))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::Workload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Workload))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::GetWorkloadRequest.new

# Call the get_workload method.
result = client.get_workload request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Workload.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new CloudControlsPartnerCore REST client object.
**Yields**

- (config) --- Configure the CloudControlsPartnerCore client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-CloudControlsPartnerCore-Rest-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_access_approval_requests

    def list_access_approval_requests(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>
    def list_access_approval_requests(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>

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

    def list_access_approval_requests(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>

Pass arguments to `list_access_approval_requests` via a request object, either of type [ListAccessApprovalRequestsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListAccessApprovalRequestsRequest "Google::Cloud::CloudControlsPartner::V1beta::ListAccessApprovalRequestsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::ListAccessApprovalRequestsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListAccessApprovalRequestsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_access_approval_requests(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest>

Pass arguments to `list_access_approval_requests` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
- **page_size** (::Integer) --- Optional. The maximum number of access requests to return. The service may return fewer than this value. If unspecified, at most 500 access requests will be returned.
- **page_token** (::String) --- Optional. A page token, received from a previous `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent page.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint for how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-AccessApprovalRequest)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-AccessApprovalRequest)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::ListAccessApprovalRequestsRequest.new

# Call the list_access_approval_requests method.
result = client.list_access_approval_requests request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::CloudControlsPartner::V1beta::AccessApprovalRequest.
  p item
end
```

### #list_customers

    def list_customers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>
    def list_customers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>

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

    def list_customers(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>

Pass arguments to `list_customers` via a request object, either of type [ListCustomersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListCustomersRequest "Google::Cloud::CloudControlsPartner::V1beta::ListCustomersRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::ListCustomersRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListCustomersRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_customers(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Customer>

Pass arguments to `list_customers` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent resource Format: `organizations/{organization}/locations/{location}`
- **page_size** (::Integer) --- The maximum number of Customers to return. The service may return fewer than this value. If unspecified, at most 500 Customers will be returned.
- **page_token** (::String) --- A page token, received from a previous `ListCustomers` call. Provide this to retrieve the subsequent page.
- **filter** (::String) --- Optional. Filtering results
- **order_by** (::String) --- Optional. Hint for how to order the results
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::ListCustomersRequest.new

# Call the list_customers method.
result = client.list_customers request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::CloudControlsPartner::V1beta::Customer.
  p item
end
```

### #list_workloads

    def list_workloads(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>
    def list_workloads(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>

Lists customer workloads for a given customer org id
**Overloads**

    def list_workloads(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>

Pass arguments to `list_workloads` via a request object, either of type [ListWorkloadsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListWorkloadsRequest "Google::Cloud::CloudControlsPartner::V1beta::ListWorkloadsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::ListWorkloadsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-ListWorkloadsRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def list_workloads(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudControlsPartner::V1beta::Workload>

Pass arguments to `list_workloads` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **parent** (::String) --- Required. Parent resource Format: `organizations/{organization}/locations/{location}/customers/{customer}`
- **page_size** (::Integer) --- The maximum number of workloads to return. The service may return fewer than this value. If unspecified, at most 500 workloads will be returned.
- **page_token** (::String) --- A page token, received from a previous `ListWorkloads` call. Provide this to retrieve the subsequent page.
- **filter** (::String) --- Optional. Filtering results.
- **order_by** (::String) --- Optional. Hint for how to order the results.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::Workload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Workload)\>)
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- (::Gapic::Rest::PagedEnumerable\<[::Google::Cloud::CloudControlsPartner::V1beta::Workload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Workload)\>)
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::ListWorkloadsRequest.new

# Call the list_workloads method.
result = client.list_workloads request

# The returned object is of type Gapic::PagedEnumerable. You can iterate
# over elements, and API calls will be issued to fetch pages as needed.
result.each do |item|
  # Each element is of type ::Google::Cloud::CloudControlsPartner::V1beta::Workload.
  p item
end
```

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_customer

    def update_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer
    def update_customer(customer: nil, update_mask: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Update details of a single customer
**Overloads**

    def update_customer(request, options = nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `update_customer` via a request object, either of type [UpdateCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-UpdateCustomerRequest "Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-UpdateCustomerRequest), ::Hash) --- A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- **options** (::Gapic::CallOptions, ::Hash) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.

    def update_customer(customer: nil, update_mask: nil) -> ::Google::Cloud::CloudControlsPartner::V1beta::Customer

Pass arguments to `update_customer` via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above). **Parameters**

- **customer** ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer), ::Hash) --- Required. The customer to update Format: `organizations/{organization}/locations/{location}/customers/{customer}`
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Protobuf-FieldMask), ::Hash) --- Optional. The list of fields to update
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::CloudControlsPartner::V1beta::Customer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-cloud_controls_partner-v1beta/latest/Google-Cloud-CloudControlsPartner-V1beta-Customer))
**Raises**

- (::Google::Cloud::Error) --- if the REST call is aborted.
**Example**

Basic example

```ruby
require "google/cloud/cloud_controls_partner/v1beta"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::CloudControlsPartner::V1beta::CloudControlsPartnerCore::Rest::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::CloudControlsPartner::V1beta::UpdateCustomerRequest.new

# Call the update_customer method.
result = client.update_customer request

# The returned object is of type Google::Cloud::CloudControlsPartner::V1beta::Customer.
p result
```