Service Health V1 API - Class Google::Cloud::ServiceHealth::V1::ServiceHealth::Rest::ServiceStub (v1.2.0)

Reference documentation and code samples for the Service Health V1 API class Google::Cloud::ServiceHealth::V1::ServiceHealth::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_event

def get_event(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::Event

Baseline implementation for the get_event REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_organization_event

def get_organization_event(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::OrganizationEvent

Baseline implementation for the get_organization_event REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_organization_impact

def get_organization_impact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::OrganizationImpact

Baseline implementation for the get_organization_impact REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_events

def list_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::ListEventsResponse

Baseline implementation for the list_events REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_organization_events

def list_organization_events(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::ListOrganizationEventsResponse

Baseline implementation for the list_organization_events REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_organization_impacts

def list_organization_impacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ServiceHealth::V1::ListOrganizationImpactsResponse

Baseline implementation for the list_organization_impacts REST call

Parameters
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)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)