lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb in google-cloud-orchestration-airflow-service-v1-0.3.1 vs lib/google/cloud/orchestration/airflow/service/v1/environments/client.rb in google-cloud-orchestration-airflow-service-v1-0.4.0

- old
+ new

@@ -201,18 +201,18 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::CreateEnvironmentRequest.new # # # Call the create_environment method. # result = client.create_environment 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_environment request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -385,17 +385,15 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::ListEnvironmentsRequest.new # # # Call the list_environments method. # result = client.list_environments 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::Orchestration::Airflow::Service::V1::Environment. - # p response + # p item # end # def list_environments request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -605,18 +603,18 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::UpdateEnvironmentRequest.new # # # Call the update_environment method. # result = client.update_environment 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_environment request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -699,18 +697,18 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::DeleteEnvironmentRequest.new # # # Call the delete_environment method. # result = client.delete_environment 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_environment request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -799,18 +797,18 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::SaveSnapshotRequest.new # # # Call the save_snapshot method. # result = client.save_snapshot 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 save_snapshot request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? @@ -911,17 +909,17 @@ # request = Google::Cloud::Orchestration::Airflow::Service::V1::LoadSnapshotRequest.new # # # Call the load_snapshot method. # result = client.load_snapshot 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 load_snapshot request, options = nil raise ::ArgumentError, "request must be provided" if request.nil?