lib/google/cloud/talent/v4beta1/job_service/client.rb in google-cloud-talent-v4beta1-0.4.4 vs lib/google/cloud/talent/v4beta1/job_service/client.rb in google-cloud-talent-v4beta1-0.4.5
- old
+ new
@@ -221,10 +221,25 @@
#
# @return [::Google::Cloud::Talent::V4beta1::Job]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::CreateJobRequest.new
+ #
+ # # Call the create_job method.
+ # result = client.create_job request
+ #
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
+ # p result
+ #
def create_job request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::CreateJobRequest
@@ -297,10 +312,32 @@
#
# @return [::Gapic::Operation]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest.new
+ #
+ # # Call the batch_create_jobs method.
+ # result = client.batch_create_jobs 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:
+ # result.wait_until_done! timeout: 60
+ # if result.response?
+ # p result.response
+ # else
+ # puts "Error!"
+ # end
+ #
def batch_create_jobs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest
@@ -376,10 +413,25 @@
#
# @return [::Google::Cloud::Talent::V4beta1::Job]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::GetJobRequest.new
+ #
+ # # Call the get_job method.
+ # result = client.get_job request
+ #
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
+ # p result
+ #
def get_job request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::GetJobRequest
@@ -457,10 +509,25 @@
#
# @return [::Google::Cloud::Talent::V4beta1::Job]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::UpdateJobRequest.new
+ #
+ # # Call the update_job method.
+ # result = client.update_job request
+ #
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
+ # p result
+ #
def update_job request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::UpdateJobRequest
@@ -548,10 +615,32 @@
#
# @return [::Gapic::Operation]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest.new
+ #
+ # # Call the batch_update_jobs method.
+ # result = client.batch_update_jobs 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:
+ # result.wait_until_done! timeout: 60
+ # if result.response?
+ # p result.response
+ # else
+ # puts "Error!"
+ # end
+ #
def batch_update_jobs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest
@@ -629,10 +718,25 @@
#
# @return [::Google::Protobuf::Empty]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::DeleteJobRequest.new
+ #
+ # # Call the delete_job method.
+ # result = client.delete_job request
+ #
+ # # The returned object is of type Google::Protobuf::Empty.
+ # p result
+ #
def delete_job request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::DeleteJobRequest
@@ -715,10 +819,25 @@
#
# @return [::Google::Protobuf::Empty]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest.new
+ #
+ # # Call the batch_delete_jobs method.
+ # result = client.batch_delete_jobs request
+ #
+ # # The returned object is of type Google::Protobuf::Empty.
+ # p result
+ #
def batch_delete_jobs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest
@@ -821,10 +940,31 @@
#
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Job>]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::ListJobsRequest.new
+ #
+ # # Call the list_jobs method.
+ # result = client.list_jobs 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|
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Job.
+ # p response
+ # end
+ #
def list_jobs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::ListJobsRequest
@@ -1124,10 +1264,25 @@
#
# @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
#
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
+ #
+ # # Call the search_jobs method.
+ # result = client.search_jobs request
+ #
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
+ # p result
+ #
def search_jobs request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchJobsRequest
@@ -1430,9 +1585,24 @@
# @yieldparam operation [::GRPC::ActiveCall::Operation]
#
# @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
#
# @raise [::Google::Cloud::Error] if the RPC is aborted.
+ #
+ # @example Basic example
+ # require "google/cloud/talent/v4beta1"
+ #
+ # # Create a client object. The client can be reused for multiple calls.
+ # client = Google::Cloud::Talent::V4beta1::JobService::Client.new
+ #
+ # # Create a request. To set request fields, pass in keyword arguments.
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
+ #
+ # # Call the search_jobs_for_alert method.
+ # result = client.search_jobs_for_alert request
+ #
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
+ # p result
#
def search_jobs_for_alert request, options = nil
raise ::ArgumentError, "request must be provided" if request.nil?
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Talent::V4beta1::SearchJobsRequest