lib/google/cloud/domains/v1beta1/domains/client.rb in google-cloud-domains-v1beta1-0.4.0 vs lib/google/cloud/domains/v1beta1/domains/client.rb in google-cloud-domains-v1beta1-0.5.0
- old
+ new
@@ -405,18 +405,18 @@
# request = Google::Cloud::Domains::V1beta1::RegisterDomainRequest.new
#
# # Call the register_domain method.
# result = client.register_domain 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 register_domain request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -632,18 +632,18 @@
# request = Google::Cloud::Domains::V1beta1::TransferDomainRequest.new
#
# # Call the transfer_domain method.
# result = client.transfer_domain 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 transfer_domain request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -748,17 +748,15 @@
# request = Google::Cloud::Domains::V1beta1::ListRegistrationsRequest.new
#
# # Call the list_registrations method.
# result = client.list_registrations 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::Domains::V1beta1::Registration.
- # p response
+ # p item
# end
#
def list_registrations request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -935,18 +933,18 @@
# request = Google::Cloud::Domains::V1beta1::UpdateRegistrationRequest.new
#
# # Call the update_registration method.
# result = client.update_registration 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_registration request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1035,18 +1033,18 @@
# request = Google::Cloud::Domains::V1beta1::ConfigureManagementSettingsRequest.new
#
# # Call the configure_management_settings method.
# result = client.configure_management_settings 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 configure_management_settings request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1143,18 +1141,18 @@
# request = Google::Cloud::Domains::V1beta1::ConfigureDnsSettingsRequest.new
#
# # Call the configure_dns_settings method.
# result = client.configure_dns_settings 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 configure_dns_settings request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1249,18 +1247,18 @@
# request = Google::Cloud::Domains::V1beta1::ConfigureContactSettingsRequest.new
#
# # Call the configure_contact_settings method.
# result = client.configure_contact_settings 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 configure_contact_settings request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1351,18 +1349,18 @@
# request = Google::Cloud::Domains::V1beta1::ExportRegistrationRequest.new
#
# # Call the export_registration method.
# result = client.export_registration 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 export_registration request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
@@ -1463,17 +1461,17 @@
# request = Google::Cloud::Domains::V1beta1::DeleteRegistrationRequest.new
#
# # Call the delete_registration method.
# result = client.delete_registration 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_registration request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?