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, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the disable_xpn_host REST call
- request_pb (::Google::Cloud::Compute::V1::DisableXpnHostProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#disable_xpn_resource
def disable_xpn_resource(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the disable_xpn_resource REST call
- request_pb (::Google::Cloud::Compute::V1::DisableXpnResourceProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#enable_xpn_host
def enable_xpn_host(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the enable_xpn_host REST call
- request_pb (::Google::Cloud::Compute::V1::EnableXpnHostProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#enable_xpn_resource
def enable_xpn_resource(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the enable_xpn_resource REST call
- request_pb (::Google::Cloud::Compute::V1::EnableXpnResourceProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get
def get(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Project
Baseline implementation for the get REST call
- 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Project)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Project) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_xpn_host
def get_xpn_host(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Project
Baseline implementation for the get_xpn_host REST call
- request_pb (::Google::Cloud::Compute::V1::GetXpnHostProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Project)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Project) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_xpn_resources
def get_xpn_resources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::ProjectsGetXpnResources
Baseline implementation for the get_xpn_resources REST call
- request_pb (::Google::Cloud::Compute::V1::GetXpnResourcesProjectsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::ProjectsGetXpnResources)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::ProjectsGetXpnResources) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_xpn_hosts
def list_xpn_hosts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::XpnHostList
Baseline implementation for the list_xpn_hosts REST call
- request_pb (::Google::Cloud::Compute::V1::ListXpnHostsProjectsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::XpnHostList)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::XpnHostList) — A result object deserialized from the server's reply
- (::ArgumentError)
#move_disk
def move_disk(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the move_disk REST call
- request_pb (::Google::Cloud::Compute::V1::MoveDiskProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#move_instance
def move_instance(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the move_instance REST call
- request_pb (::Google::Cloud::Compute::V1::MoveInstanceProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_common_instance_metadata
def set_common_instance_metadata(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the set_common_instance_metadata REST call
- request_pb (::Google::Cloud::Compute::V1::SetCommonInstanceMetadataProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_default_network_tier
def set_default_network_tier(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the set_default_network_tier REST call
- request_pb (::Google::Cloud::Compute::V1::SetDefaultNetworkTierProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_usage_export_bucket
def set_usage_export_bucket(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the set_usage_export_bucket REST call
- request_pb (::Google::Cloud::Compute::V1::SetUsageExportBucketProjectRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Compute::V1::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)