google-cloud-compute-v1/lib/google/cloud/compute/v1/networks/rest/service_stub.rb
##
# Baseline implementation for the list_peering_routes REST call
#
# @param request_pb [::Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest]
#   A request object representing the call parameters. Required.
# @param options [::Gapic::CallOptions]
#   Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
#
# @yield [result, response] Access the result along with the Faraday response object
# @yieldparam result [::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList]
# @yieldparam response [::Faraday::Response]
#
# @return [::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList]
#   A result object deserialized from the server's reply
Baseline implementation for the list_peering_routes REST call
Baseline implementation for the list_peering_routes REST call
def list_peering_routes request_pb, options = nil
                raise ::ArgumentError, "request must be provided" if request_pb.nil?
                uri, _body, query_string_params = transcode_list_peering_routes_request request_pb
                response = @client_stub.make_get_request(
                  uri:     uri,
                  params:  query_string_params,
                  options: options
                )
                result = ::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList.decode_json response.body, ignore_unknown_fields: true
                yield result, response if block_given?
                result
              end
def list_peering_routes request_pb , options = nil raise :: ArgumentError , "request must be provided" if request_pb . nil? uri , _body , query_string_params = transcode_list_peering_routes_request request_pb response = @client_stub . make_get_request ( uri : uri , params : query_string_params , options : options ) result = :: Google :: Cloud :: Compute :: V1 :: ExchangedPeeringRoutesList . decode_json response . body , ignore_unknown_fields : true yield result , response if block_given? result end
Baseline implementation for the list_peering_routes REST call
Baseline implementation for the list_peering_routes REST call
A result object deserialized from the server's reply
A result object deserialized from the server ' s reply
::Google::Cloud::Compute::V1::ExchangedPeeringRoutesList
request_pb
A request object representing the call parameters. Required.
A request object representing the call parameters . Required .
options
Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Overrides the default settings for this call e . g timeout retries etc . Optional .
]
Access the result along with the Faraday response object
Access the result along with the Faraday response object
None