# App Hub V1 API - Class Google::Cloud::AppHub::V1::AppHub::Rest::ServiceStub (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the App Hub V1 API class Google::Cloud::AppHub::V1::AppHub::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #create_application

    def create_application(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::CreateApplicationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-CreateApplicationRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #create_service

    def create_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::CreateServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-CreateServiceRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #create_service_project_attachment

    def create_service_project_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::CreateServiceProjectAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-CreateServiceProjectAttachmentRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #create_workload

    def create_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::CreateWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-CreateWorkloadRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #delete_application

    def delete_application(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::DeleteApplicationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DeleteApplicationRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #delete_service

    def delete_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::DeleteServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DeleteServiceRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #delete_service_project_attachment

    def delete_service_project_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::DeleteServiceProjectAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DeleteServiceProjectAttachmentRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #delete_workload

    def delete_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::DeleteWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DeleteWorkloadRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #detach_service_project_attachment

    def detach_service_project_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::DetachServiceProjectAttachmentResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::DetachServiceProjectAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DetachServiceProjectAttachmentRequest)) --- 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::AppHub::V1::DetachServiceProjectAttachmentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DetachServiceProjectAttachmentResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_application

    def get_application(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::Application

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetApplicationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetApplicationRequest)) --- 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::AppHub::V1::Application](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-Application))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #get_discovered_service

    def get_discovered_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::DiscoveredService

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetDiscoveredServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetDiscoveredServiceRequest)) --- 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::AppHub::V1::DiscoveredService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DiscoveredService))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #get_discovered_workload

    def get_discovered_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::DiscoveredWorkload

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetDiscoveredWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetDiscoveredWorkloadRequest)) --- 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::AppHub::V1::DiscoveredWorkload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-DiscoveredWorkload))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #get_service

    def get_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::Service

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetServiceRequest)) --- 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::AppHub::V1::Service](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-Service))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #get_service_project_attachment

    def get_service_project_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ServiceProjectAttachment

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetServiceProjectAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetServiceProjectAttachmentRequest)) --- 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::AppHub::V1::ServiceProjectAttachment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ServiceProjectAttachment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #get_workload

    def get_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::Workload

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

- **request_pb** ([::Google::Cloud::AppHub::V1::GetWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-GetWorkloadRequest)) --- 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::AppHub::V1::Workload](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-Workload))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_applications

    def list_applications(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListApplicationsResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListApplicationsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListApplicationsRequest)) --- 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::AppHub::V1::ListApplicationsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListApplicationsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_discovered_services

    def list_discovered_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListDiscoveredServicesResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListDiscoveredServicesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListDiscoveredServicesRequest)) --- 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::AppHub::V1::ListDiscoveredServicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListDiscoveredServicesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_discovered_workloads

    def list_discovered_workloads(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListDiscoveredWorkloadsResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListDiscoveredWorkloadsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListDiscoveredWorkloadsRequest)) --- 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::AppHub::V1::ListDiscoveredWorkloadsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListDiscoveredWorkloadsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_service_project_attachments

    def list_service_project_attachments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListServiceProjectAttachmentsResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListServiceProjectAttachmentsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListServiceProjectAttachmentsRequest)) --- 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::AppHub::V1::ListServiceProjectAttachmentsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListServiceProjectAttachmentsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_services

    def list_services(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListServicesResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListServicesRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListServicesRequest)) --- 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::AppHub::V1::ListServicesResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListServicesResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #list_workloads

    def list_workloads(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::ListWorkloadsResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::ListWorkloadsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListWorkloadsRequest)) --- 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::AppHub::V1::ListWorkloadsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListWorkloadsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::AppHub::V1::ListWorkloadsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-ListWorkloadsResponse)) --- 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)

### #lookup_discovered_service

    def lookup_discovered_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::LookupDiscoveredServiceResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::LookupDiscoveredServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupDiscoveredServiceRequest)) --- 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::AppHub::V1::LookupDiscoveredServiceResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupDiscoveredServiceResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #lookup_discovered_workload

    def lookup_discovered_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::LookupDiscoveredWorkloadResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::LookupDiscoveredWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupDiscoveredWorkloadRequest)) --- 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::AppHub::V1::LookupDiscoveredWorkloadResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupDiscoveredWorkloadResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #lookup_service_project_attachment

    def lookup_service_project_attachment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AppHub::V1::LookupServiceProjectAttachmentResponse

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

- **request_pb** ([::Google::Cloud::AppHub::V1::LookupServiceProjectAttachmentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupServiceProjectAttachmentRequest)) --- 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::AppHub::V1::LookupServiceProjectAttachmentResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-LookupServiceProjectAttachmentResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_application

    def update_application(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::UpdateApplicationRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-UpdateApplicationRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #update_service

    def update_service(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::UpdateServiceRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-UpdateServiceRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)

### #update_workload

    def update_workload(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

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

- **request_pb** ([::Google::Cloud::AppHub::V1::UpdateWorkloadRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Cloud-AppHub-V1-UpdateWorkloadRequest)) --- 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::Longrunning::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-app_hub-v1/latest/Google-Longrunning-Operation))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

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

- (::ArgumentError)