API hub V1 API - Class Google::Cloud::ApiHub::V1::LintingService::Rest::ServiceStub (v0.1.1)

Reference documentation and code samples for the API hub V1 API class Google::Cloud::ApiHub::V1::LintingService::Rest::ServiceStub.

REST service stub for the LintingService 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_style_guide

def get_style_guide(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::StyleGuide

Baseline implementation for the get_style_guide REST call

Parameters
  • request_pb (::Google::Cloud::ApiHub::V1::GetStyleGuideRequest) — 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_style_guide_contents

def get_style_guide_contents(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::StyleGuideContents

Baseline implementation for the get_style_guide_contents REST call

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

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#lint_spec

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

Baseline implementation for the lint_spec REST call

Parameters
  • request_pb (::Google::Cloud::ApiHub::V1::LintSpecRequest) — 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)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_style_guide

def update_style_guide(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ApiHub::V1::StyleGuide

Baseline implementation for the update_style_guide REST call

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