Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::Networks::Rest::ServiceStub.
REST service stub for the Networks service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#add_peering
def add_peering(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the add_peering REST call
- request_pb (::Google::Cloud::Compute::V1::AddPeeringNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete
def delete(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the delete REST call
- request_pb (::Google::Cloud::Compute::V1::DeleteNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#get
def get(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Network
Baseline implementation for the get REST call
- request_pb (::Google::Cloud::Compute::V1::GetNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Network)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Network) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_effective_firewalls
def get_effective_firewalls(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse
Baseline implementation for the get_effective_firewalls REST call
- request_pb (::Google::Cloud::Compute::V1::GetEffectiveFirewallsNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#insert
def insert(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the insert REST call
- request_pb (::Google::Cloud::Compute::V1::InsertNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#list
def list(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::NetworkList
Baseline implementation for the list REST call
- request_pb (::Google::Cloud::Compute::V1::ListNetworksRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::NetworkList)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::NetworkList) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_peering_routes
def list_peering_routes(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList
Baseline implementation for the list_peering_routes REST call
- request_pb (::Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList) — A result object deserialized from the server's reply
- (::ArgumentError)
#patch
def patch(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the patch REST call
- request_pb (::Google::Cloud::Compute::V1::PatchNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#remove_peering
def remove_peering(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the remove_peering REST call
- request_pb (::Google::Cloud::Compute::V1::RemovePeeringNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#switch_to_custom_mode
def switch_to_custom_mode(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the switch_to_custom_mode REST call
- request_pb (::Google::Cloud::Compute::V1::SwitchToCustomModeNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_peering
def update_peering(request_pb, options = nil) { |result, response| ... } -> ::Google::Cloud::Compute::V1::Operation
Baseline implementation for the update_peering REST call
- request_pb (::Google::Cloud::Compute::V1::UpdatePeeringNetworkRequest) — 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, response) — Access the result along with the Faraday response object
- result (::Google::Cloud::Compute::V1::Operation)
- response (::Faraday::Response)
- (::Google::Cloud::Compute::V1::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)