# Dataplex V1 API - Class Google::Cloud::Dataplex::V1::MetadataService::Rest::ServiceStub (v2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.2 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::MetadataService::Rest::ServiceStub.

REST service stub for the MetadataService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_entity

    def create_entity(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::Entity

Baseline implementation for the create_entity REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::CreateEntityRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-CreateEntityRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #create_partition

    def create_partition(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::Partition

Baseline implementation for the create_partition REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::CreatePartitionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-CreatePartitionRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::Partition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Partition))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::Partition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Partition)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_entity

    def delete_entity(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_entity REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::DeleteEntityRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DeleteEntityRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**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-dataplex-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_partition

    def delete_partition(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_partition REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::DeletePartitionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-DeletePartitionRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**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-dataplex-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_entity

    def get_entity(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::Entity

Baseline implementation for the get_entity REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::GetEntityRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-GetEntityRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_partition

    def get_partition(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::Partition

Baseline implementation for the get_partition REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::GetPartitionRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-GetPartitionRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::Partition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Partition))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::Partition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Partition)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_entities

    def list_entities(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::ListEntitiesResponse

Baseline implementation for the list_entities REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::ListEntitiesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListEntitiesRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::ListEntitiesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListEntitiesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::ListEntitiesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListEntitiesResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_partitions

    def list_partitions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::ListPartitionsResponse

Baseline implementation for the list_partitions REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::ListPartitionsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListPartitionsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::ListPartitionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListPartitionsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::ListPartitionsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-ListPartitionsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

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

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_entity

    def update_entity(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dataplex::V1::Entity

Baseline implementation for the update_entity REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Dataplex::V1::UpdateEntityRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-UpdateEntityRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

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

- **result** ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Dataplex::V1::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Entity)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)