Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::ApplicationService::Client.
Client for the ApplicationService service.
A service that handles application management, including CRUD and enumeration.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the ApplicationService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all ApplicationService clients ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the ApplicationService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_application
def create_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
def create_application(parent: nil, application: nil) -> ::Google::Cloud::Talent::V4beta1::Application
Creates a new application entity.
def create_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
create_application
via a request object, either of type
CreateApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::CreateApplicationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_application(parent: nil, application: nil) -> ::Google::Cloud::Talent::V4beta1::Application
create_application
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Resource name of the profile under which the application is created.
The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".
- application (::Google::Cloud::Talent::V4beta1::Application, ::Hash) — Required. The application to be created.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Talent::V4beta1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::CreateApplicationRequest.new # Call the create_application method. result = client.create_application request # The returned object is of type Google::Cloud::Talent::V4beta1::Application. p result
#delete_application
def delete_application(request, options = nil) -> ::Google::Protobuf::Empty
def delete_application(name: nil) -> ::Google::Protobuf::Empty
Deletes specified application.
def delete_application(request, options = nil) -> ::Google::Protobuf::Empty
delete_application
via a request object, either of type
DeleteApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::DeleteApplicationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_application(name: nil) -> ::Google::Protobuf::Empty
delete_application
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the application to be deleted.
The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::DeleteApplicationRequest.new # Call the delete_application method. result = client.delete_application request # The returned object is of type Google::Protobuf::Empty. p result
#get_application
def get_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
def get_application(name: nil) -> ::Google::Cloud::Talent::V4beta1::Application
Retrieves specified application.
def get_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
get_application
via a request object, either of type
GetApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::GetApplicationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_application(name: nil) -> ::Google::Cloud::Talent::V4beta1::Application
get_application
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the application to be retrieved.
The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". For example, "projects/foo/tenants/bar/profiles/baz/applications/qux".
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Talent::V4beta1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::GetApplicationRequest.new # Call the get_application method. result = client.get_application request # The returned object is of type Google::Cloud::Talent::V4beta1::Application. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new ApplicationService client object.
- (config) — Configure the ApplicationService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Talent::V4beta1::ApplicationService::Client.new do |config| config.timeout = 10.0 end
#list_applications
def list_applications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>
def list_applications(parent: nil, page_token: nil, page_size: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>
Lists all applications associated with the profile.
def list_applications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>
list_applications
via a request object, either of type
ListApplicationsRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::ListApplicationsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_applications(parent: nil, page_token: nil, page_size: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>
list_applications
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. Resource name of the profile under which the application is created.
The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".
- page_token (::String) — The starting indicator from which to return results.
- page_size (::Integer) — The maximum number of applications to be returned, at most 100. Default is 100 if a non-positive number is provided.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Application>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::ListApplicationsRequest.new # Call the list_applications method. result = client.list_applications 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::Application. p response end
#update_application
def update_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
def update_application(application: nil, update_mask: nil) -> ::Google::Cloud::Talent::V4beta1::Application
Updates specified application.
def update_application(request, options = nil) -> ::Google::Cloud::Talent::V4beta1::Application
update_application
via a request object, either of type
UpdateApplicationRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::UpdateApplicationRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_application(application: nil, update_mask: nil) -> ::Google::Cloud::Talent::V4beta1::Application
update_application
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- application (::Google::Cloud::Talent::V4beta1::Application, ::Hash) — Required. The application resource to replace the current resource in the system.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Strongly recommended for the best service experience.
If update_mask is provided, only the specified fields in application are updated. Otherwise all the fields are updated.
A field mask to specify the application fields to be updated. Only top level fields of Application are supported.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Talent::V4beta1::Application)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4beta1::ApplicationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::UpdateApplicationRequest.new # Call the update_application method. result = client.update_application request # The returned object is of type Google::Cloud::Talent::V4beta1::Application. p result