Reference documentation and code samples for the Cloud Talent Solution V4 API class Google::Cloud::Talent::V4::EventService::Client.
Client for the EventService service.
A service handles client event report.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the EventService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all EventService clients ::Google::Cloud::Talent::V4::EventService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the EventService 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_client_event
def create_client_event(request, options = nil) -> ::Google::Cloud::Talent::V4::ClientEvent
def create_client_event(parent: nil, client_event: nil) -> ::Google::Cloud::Talent::V4::ClientEvent
Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in self service tools. Learn more about self service tools.
def create_client_event(request, options = nil) -> ::Google::Cloud::Talent::V4::ClientEvent
create_client_event
via a request object, either of type
CreateClientEventRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4::CreateClientEventRequest, ::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_client_event(parent: nil, client_event: nil) -> ::Google::Cloud::Talent::V4::ClientEvent
create_client_event
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 tenant under which the event is created.
The format is "projects/{project_id}/tenants/{tenant_id}", for example, "projects/foo/tenants/bar".
- client_event (::Google::Cloud::Talent::V4::ClientEvent, ::Hash) — Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Talent::V4::ClientEvent)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/talent/v4" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Talent::V4::EventService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4::CreateClientEventRequest.new # Call the create_client_event method. result = client.create_client_event request # The returned object is of type Google::Cloud::Talent::V4::ClientEvent. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new EventService client object.
- (config) — Configure the EventService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Talent::V4::EventService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Talent::V4::EventService::Client.new do |config| config.timeout = 10.0 end
#logger
def logger() -> Logger
The logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)