GKE Hub V1 API - Class Google::Cloud::GkeHub::V1::GkeHub::Rest::ServiceStub (v1.0.1)

Reference documentation and code samples for the GKE Hub V1 API class Google::Cloud::GkeHub::V1::GkeHub::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_feature

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

Baseline implementation for the create_feature REST call

Parameters
  • request_pb (::Google::Cloud::GkeHub::V1::CreateFeatureRequest) — 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_membership

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

Baseline implementation for the create_membership REST call

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

#delete_feature

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

Baseline implementation for the delete_feature REST call

Parameters
  • request_pb (::Google::Cloud::GkeHub::V1::DeleteFeatureRequest) — 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_membership

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

Baseline implementation for the delete_membership 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)

#generate_connect_manifest

def generate_connect_manifest(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::GkeHub::V1::GenerateConnectManifestResponse

Baseline implementation for the generate_connect_manifest REST call

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

#get_feature

def get_feature(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::GkeHub::V1::Feature

Baseline implementation for the get_feature REST call

Parameters
  • request_pb (::Google::Cloud::GkeHub::V1::GetFeatureRequest) — 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_membership

def get_membership(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::GkeHub::V1::Membership

Baseline implementation for the get_membership REST call

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

#initialize

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

#list_features

def list_features(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::GkeHub::V1::ListFeaturesResponse

Baseline implementation for the list_features REST call

Parameters
  • request_pb (::Google::Cloud::GkeHub::V1::ListFeaturesRequest) — 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_memberships

def list_memberships(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::GkeHub::V1::ListMembershipsResponse

Baseline implementation for the list_memberships 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_feature

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

Baseline implementation for the update_feature REST call

Parameters
  • request_pb (::Google::Cloud::GkeHub::V1::UpdateFeatureRequest) — 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_membership

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

Baseline implementation for the update_membership REST call

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