lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.4.0 vs lib/google/cloud/datastream/v1/datastream/client.rb in google-cloud-datastream-v1-0.5.0
- old
+ new
@@ -264,17 +264,15 @@
# request = Google::Cloud::Datastream::V1::ListConnectionProfilesRequest.new
#
# # Call the list_connection_profiles method.
# result = client.list_connection_profiles request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Cloud::Datastream::V1::ConnectionProfile.
- # p response
+ # p item
# end
#
def list_connection_profiles request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -464,18 +462,18 @@
# request = Google::Cloud::Datastream::V1::CreateConnectionProfileRequest.new
#
# # Call the create_connection_profile method.
# result = client.create_connection_profile request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_connection_profile request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -582,18 +580,18 @@
# request = Google::Cloud::Datastream::V1::UpdateConnectionProfileRequest.new
#
# # Call the update_connection_profile method.
# result = client.update_connection_profile request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def update_connection_profile request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -689,18 +687,18 @@
# request = Google::Cloud::Datastream::V1::DeleteConnectionProfileRequest.new
#
# # Call the delete_connection_profile method.
# result = client.delete_connection_profile request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_connection_profile request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -900,17 +898,15 @@
# request = Google::Cloud::Datastream::V1::ListStreamsRequest.new
#
# # Call the list_streams method.
# result = client.list_streams request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Cloud::Datastream::V1::Stream.
- # p response
+ # p item
# end
#
def list_streams request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1100,18 +1096,18 @@
# request = Google::Cloud::Datastream::V1::CreateStreamRequest.new
#
# # Call the create_stream method.
# result = client.create_stream request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_stream request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1218,18 +1214,18 @@
# request = Google::Cloud::Datastream::V1::UpdateStreamRequest.new
#
# # Call the update_stream method.
# result = client.update_stream request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def update_stream request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1325,18 +1321,18 @@
# request = Google::Cloud::Datastream::V1::DeleteStreamRequest.new
#
# # Call the delete_stream method.
# result = client.delete_stream request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_stream request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1600,17 +1596,15 @@
# request = Google::Cloud::Datastream::V1::ListStreamObjectsRequest.new
#
# # Call the list_stream_objects method.
# result = client.list_stream_objects request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Cloud::Datastream::V1::StreamObject.
- # p response
+ # p item
# end
#
def list_stream_objects request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1972,18 +1966,18 @@
# request = Google::Cloud::Datastream::V1::CreatePrivateConnectionRequest.new
#
# # Call the create_private_connection method.
# result = client.create_private_connection request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_private_connection request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -2167,17 +2161,15 @@
# request = Google::Cloud::Datastream::V1::ListPrivateConnectionsRequest.new
#
# # Call the list_private_connections method.
# result = client.list_private_connections request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Cloud::Datastream::V1::PrivateConnection.
- # p response
+ # p item
# end
#
def list_private_connections request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -2276,18 +2268,18 @@
# request = Google::Cloud::Datastream::V1::DeletePrivateConnectionRequest.new
#
# # Call the delete_private_connection method.
# result = client.delete_private_connection request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_private_connection request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -2388,18 +2380,18 @@
# request = Google::Cloud::Datastream::V1::CreateRouteRequest.new
#
# # Call the create_route method.
# result = client.create_route request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def create_route request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -2583,17 +2575,15 @@
# request = Google::Cloud::Datastream::V1::ListRoutesRequest.new
#
# # Call the list_routes method.
# result = client.list_routes request
#
- # # The returned object is of type Gapic::PagedEnumerable. You can
- # # iterate over all elements by calling #each, and the enumerable
- # # will lazily make API calls to fetch subsequent pages. Other
- # # methods are also available for managing paging directly.
- # result.each do |response|
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
+ # # over elements, and API calls will be issued to fetch pages as needed.
+ # result.each do |item|
# # Each element is of type ::Google::Cloud::Datastream::V1::Route.
- # p response
+ # p item
# end
#
def list_routes request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -2689,17 +2679,17 @@
# request = Google::Cloud::Datastream::V1::DeleteRouteRequest.new
#
# # Call the delete_route method.
# result = client.delete_route request
#
- # # The returned object is of type Gapic::Operation. You can use this
- # # object to check the status of an operation, cancel it, or wait
- # # for results. Here is how to block until completion:
+ # # The returned object is of type Gapic::Operation. You can use it to
+ # # check the status of an operation, cancel it, or wait for results.
+ # # Here is how to wait for a response.
# result.wait_until_done! timeout: 60
# if result.response?
# p result.response
# else
- # puts "Error!"
+ # puts "No response received."
# end
#
def delete_route request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?