Class Google::Cloud::Compute::V1::Projects::Rest::ServiceStub (v1.0.0)

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)

#transcode_disable_xpn_host_request

def transcode_disable_xpn_host_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the disable_xpn_host REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_disable_xpn_resource_request

def transcode_disable_xpn_resource_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the disable_xpn_resource REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_enable_xpn_host_request

def transcode_enable_xpn_host_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the enable_xpn_host REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_enable_xpn_resource_request

def transcode_enable_xpn_resource_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the enable_xpn_resource REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_get_request

def transcode_get_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the get REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_get_xpn_host_request

def transcode_get_xpn_host_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the get_xpn_host REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_get_xpn_resources_request

def transcode_get_xpn_resources_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the get_xpn_resources REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_list_xpn_hosts_request

def transcode_list_xpn_hosts_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the list_xpn_hosts REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_move_disk_request

def transcode_move_disk_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the move_disk REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_move_instance_request

def transcode_move_instance_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the move_instance REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_set_common_instance_metadata_request

def transcode_set_common_instance_metadata_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the set_common_instance_metadata REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_set_default_network_tier_request

def transcode_set_default_network_tier_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the set_default_network_tier REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters

#transcode_set_usage_export_bucket_request

def transcode_set_usage_export_bucket_request(request_pb) -> Array(String, [String, nil], Hash{String => String})

GRPC transcoding helper method for the set_usage_export_bucket REST call

Parameter
Returns
  • (Array(String, [String, nil], Hash{String => String})) — Uri, Body, Query string parameters