App Hub V1 API - Class Google::Cloud::AppHub::V1::AppHub::Rest::ServiceStub (v0.2.0)

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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
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) — 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
Returns
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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)