lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb in google-cloud-compute-v1-2.4.0 vs lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb in google-cloud-compute-v1-2.5.0
- old
+ new
@@ -170,10 +170,26 @@
# @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Google::Cloud::Compute::V1::InterconnectRemoteLocation]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
+ #
+ # @example Basic example
+ # require "google/cloud/compute/v1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest.new
+ #
+ # # Call the get method.
+ # result = client.get request
+ #
+ # # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocation.
+ # p result
+ #
def get request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetInterconnectRemoteLocationRequest
@@ -242,9 +258,25 @@
# @yieldparam operation [::Gapic::Rest::TransportOperation]
#
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InterconnectRemoteLocation>]
#
# @raise [::Google::Cloud::Error] if the REST call is aborted.
+ #
+ # @example Basic example
+ # require "google/cloud/compute/v1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest.new
+ #
+ # # Call the list method.
+ # result = client.list request
+ #
+ # # The returned object is of type Google::Cloud::Compute::V1::InterconnectRemoteLocationList.
+ # p result
+ #
def list request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListInterconnectRemoteLocationsRequest