Cloud Shell V1 API - Class Google::Cloud::Shell::V1::CloudShellService::Rest::ServiceStub (v0.5.0)

Reference documentation and code samples for the Cloud Shell V1 API class Google::Cloud::Shell::V1::CloudShellService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#add_public_key

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

Baseline implementation for the add_public_key REST call

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

#authorize_environment

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

Baseline implementation for the authorize_environment REST call

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

#get_environment

def get_environment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Shell::V1::Environment

Baseline implementation for the get_environment REST call

Parameters
  • request_pb (::Google::Cloud::Shell::V1::GetEnvironmentRequest) — 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:, credentials:) -> ServiceStub
Returns

#remove_public_key

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

Baseline implementation for the remove_public_key REST call

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

#start_environment

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

Baseline implementation for the start_environment REST call

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