lib/google/cloud/spanner/admin/instance/v1/instance_admin/client.rb in google-cloud-spanner-admin-instance-v1-0.8.0 vs lib/google/cloud/spanner/admin/instance/v1/instance_admin/client.rb in google-cloud-spanner-admin-instance-v1-0.9.0
- old
+ new
@@ -266,17 +266,15 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigsRequest.new
#
# # Call the list_instance_configs method.
# result = client.list_instance_configs 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::Spanner::Admin::Instance::V1::InstanceConfig.
- # p response
+ # p item
# end
#
def list_instance_configs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -499,18 +497,18 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceConfigRequest.new
#
# # Call the create_instance_config method.
# result = client.create_instance_config 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_instance_config request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -650,18 +648,18 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceConfigRequest.new
#
# # Call the update_instance_config method.
# result = client.update_instance_config 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_instance_config request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -912,17 +910,15 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstanceConfigOperationsRequest.new
#
# # Call the list_instance_config_operations method.
# result = client.list_instance_config_operations 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::Longrunning::Operation.
- # p response
+ # p item
# end
#
def list_instance_config_operations request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1034,17 +1030,15 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::ListInstancesRequest.new
#
# # Call the list_instances method.
# result = client.list_instances 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::Spanner::Admin::Instance::V1::Instance.
- # p response
+ # p item
# end
#
def list_instances request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1258,18 +1252,18 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::CreateInstanceRequest.new
#
# # Call the create_instance method.
# result = client.create_instance 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_instance request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1399,17 +1393,17 @@
# request = Google::Cloud::Spanner::Admin::Instance::V1::UpdateInstanceRequest.new
#
# # Call the update_instance method.
# result = client.update_instance 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_instance request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?