Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::Projects::Rest::ServiceStub (v1.7.1)

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

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

Inherits

  • Object

Methods

#disable_xpn_host

def disable_xpn_host(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the disable_xpn_host REST call

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

#disable_xpn_resource

def disable_xpn_resource(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the disable_xpn_resource REST call

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

#enable_xpn_host

def enable_xpn_host(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the enable_xpn_host REST call

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

#enable_xpn_resource

def enable_xpn_resource(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the enable_xpn_resource REST call

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

#get

def get(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Project

Baseline implementation for the get REST call

Parameters
  • request_pb (::Google::Cloud::Compute::V1::GetProjectRequest) — 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, response) — Access the result along with the Faraday response object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_xpn_host

def get_xpn_host(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Project

Baseline implementation for the get_xpn_host REST call

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

#get_xpn_resources

def get_xpn_resources(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::ProjectsGetXpnResources

Baseline implementation for the get_xpn_resources REST call

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

#initialize

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

#list_xpn_hosts

def list_xpn_hosts(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::XpnHostList

Baseline implementation for the list_xpn_hosts REST call

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

#move_disk

def move_disk(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the move_disk REST call

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

#move_instance

def move_instance(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the move_instance REST call

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

#set_common_instance_metadata

def set_common_instance_metadata(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the set_common_instance_metadata REST call

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

#set_default_network_tier

def set_default_network_tier(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the set_default_network_tier REST call

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

#set_usage_export_bucket

def set_usage_export_bucket(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation

Baseline implementation for the set_usage_export_bucket REST call

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