Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::EventService::Rest::Client.
REST 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::V4beta1::EventService::Rest::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::V4beta1::ClientEvent
def create_client_event(parent: nil, client_event: nil) -> ::Google::Cloud::Talent::V4beta1::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::V4beta1::ClientEvent
create_client_event
via a request object, either of type
CreateClientEventRequest or an equivalent Hash.
- request (::Google::Cloud::Talent::V4beta1::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::V4beta1::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/tenant/bar". If tenant id is unspecified, a default tenant is created, for example, "projects/foo".
- client_event (::Google::Cloud::Talent::V4beta1::ClientEvent, ::Hash) — Required. Events issued when end user interacts with customer's application that uses Cloud Talent Solution.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Talent::V4beta1::ClientEvent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::EventService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Talent::V4beta1::CreateClientEventRequest.new # Call the create_client_event method. result = client.create_client_event request # The returned object is of type Google::Cloud::Talent::V4beta1::ClientEvent. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new EventService REST 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::V4beta1::EventService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Talent::V4beta1::EventService::Rest::Client.new do |config| config.timeout = 10.0 end
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)