Autogenerated update (2019-01-28)

Update:
- jobs_v3p1beta1
This commit is contained in:
Google APIs 2019-01-28 00:36:26 +00:00
parent 8bccb9cefa
commit af61aea402
5 changed files with 7 additions and 221 deletions

View File

@ -147,78 +147,6 @@ module Google
end
end
# An event issued when an end user interacts with the application that
# implements Cloud Talent Solution. Providing this information improves the
# quality of search and recommendation for the API clients, enabling the
# service to perform optimally. The number of events sent must be consistent
# with other calls, such as job searches, issued to the service by the client.
class ClientEvent
include Google::Apis::Core::Hashable
# Required.
# The timestamp of the event.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Required.
# A unique identifier, generated by the client application. This `event_id`
# is used to establish the relationship between different events
# (see parent_event_id).
# Corresponds to the JSON property `eventId`
# @return [String]
attr_accessor :event_id
# Optional.
# Extra information about this event. Used for storing information with no
# matching field in event payload, for example, user application specific
# context or details.
# At most 20 keys are supported. The maximum total size of all keys and
# values is 2 KB.
# Corresponds to the JSON property `extraInfo`
# @return [Hash<String,String>]
attr_accessor :extra_info
# An event issued when a job seeker interacts with the application that
# implements Cloud Talent Solution.
# Corresponds to the JSON property `jobEvent`
# @return [Google::Apis::JobsV3::JobEvent]
attr_accessor :job_event
# Required except the first event.
# The event_id of an event that resulted in the current event. For example, a
# Job view event usually follows a parent
# impression event: A job seeker first does a
# search where a list of jobs appears
# (impression). The job seeker then selects a
# result and views the description of a particular job (Job
# view).
# Corresponds to the JSON property `parentEventId`
# @return [String]
attr_accessor :parent_event_id
# Required.
# A unique ID generated in the API responses. It can be found in
# ResponseMetadata.request_id.
# Corresponds to the JSON property `requestId`
# @return [String]
attr_accessor :request_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@event_id = args[:event_id] if args.key?(:event_id)
@extra_info = args[:extra_info] if args.key?(:extra_info)
@job_event = args[:job_event] if args.key?(:job_event)
@parent_event_id = args[:parent_event_id] if args.key?(:parent_event_id)
@request_id = args[:request_id] if args.key?(:request_id)
end
end
# Input only.
# Parameters needed for commute search.
class CommuteFilter
@ -754,29 +682,6 @@ module Google
end
end
# The report event request.
class CreateClientEventRequest
include Google::Apis::Core::Hashable
# An event issued when an end user interacts with the application that
# implements Cloud Talent Solution. Providing this information improves the
# quality of search and recommendation for the API clients, enabling the
# service to perform optimally. The number of events sent must be consistent
# with other calls, such as job searches, issued to the service by the client.
# Corresponds to the JSON property `clientEvent`
# @return [Google::Apis::JobsV3::ClientEvent]
attr_accessor :client_event
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_event = args[:client_event] if args.key?(:client_event)
end
end
# Input only.
# The Request of the CreateCompany method.
class CreateCompanyRequest
@ -1306,9 +1211,9 @@ module Google
# The job PostingRegion (for example, state, country) throughout which
# the job is available. If this field is set, a
# LocationFilter in a search query within the job region
# finds this job posting if an exact location match isn't specified.
# If this field is set to PostingRegion.NATION or
# PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses
# finds this job posting if an exact location match is not specified.
# If this field is set to PostingRegion.NATION_WIDE or
# [PostingRegion.ADMINISTRATIVE_AREA], setting job addresses
# to the same location level as this field is strongly recommended.
# Corresponds to the JSON property `postingRegion`
# @return [String]
@ -1450,38 +1355,6 @@ module Google
end
end
# An event issued when a job seeker interacts with the application that
# implements Cloud Talent Solution.
class JobEvent
include Google::Apis::Core::Hashable
# Required.
# The job name(s) associated with this event.
# For example, if this is an impression event,
# this field contains the identifiers of all jobs shown to the job seeker.
# If this was a view event, this field contains the
# identifier of the viewed job.
# Corresponds to the JSON property `jobs`
# @return [Array<String>]
attr_accessor :jobs
# Required.
# The type of the event (see JobEventType).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@jobs = args[:jobs] if args.key?(:jobs)
@type = args[:type] if args.key?(:type)
end
end
# Input only.
# The query required to perform a search query.
class JobQuery

View File

@ -46,12 +46,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClientEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CommuteFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -124,12 +118,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class CreateClientEventRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateCompanyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -202,12 +190,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class JobEvent
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JobQuery
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -367,19 +349,6 @@ module Google
end
end
class ClientEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :event_id, as: 'eventId'
hash :extra_info, as: 'extraInfo'
property :job_event, as: 'jobEvent', class: Google::Apis::JobsV3::JobEvent, decorator: Google::Apis::JobsV3::JobEvent::Representation
property :parent_event_id, as: 'parentEventId'
property :request_id, as: 'requestId'
end
end
class CommuteFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -515,14 +484,6 @@ module Google
end
end
class CreateClientEventRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_event, as: 'clientEvent', class: Google::Apis::JobsV3::ClientEvent, decorator: Google::Apis::JobsV3::ClientEvent::Representation
end
end
class CreateCompanyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -663,14 +624,6 @@ module Google
end
end
class JobEvent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :jobs, as: 'jobs'
property :type, as: 'type'
end
end
class JobQuery
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -139,46 +139,6 @@ module Google
execute_or_queue_command(command, &block)
end
# 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](https://console.cloud.google.com/talent-solution/overview).
# [Learn
# more](https://cloud.google.com/talent-solution/job-search/docs/management-
# tools)
# about self service tools.
# @param [String] parent
# Parent project name.
# @param [Google::Apis::JobsV3::CreateClientEventRequest] create_client_event_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::JobsV3::ClientEvent] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3::ClientEvent]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_client_event(parent, create_client_event_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3/{+parent}/clientEvents', options)
command.request_representation = Google::Apis::JobsV3::CreateClientEventRequest::Representation
command.request_object = create_client_event_request_object
command.response_representation = Google::Apis::JobsV3::ClientEvent::Representation
command.response_class = Google::Apis::JobsV3::ClientEvent
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new company entity.
# @param [String] parent
# Required.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV3p1beta1
VERSION = 'V3p1beta1'
REVISION = '20190110'
REVISION = '20190123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1477,9 +1477,9 @@ module Google
# The job PostingRegion (for example, state, country) throughout which
# the job is available. If this field is set, a
# LocationFilter in a search query within the job region
# finds this job posting if an exact location match is not specified.
# If this field is set to PostingRegion.NATION_WIDE or
# [PostingRegion.ADMINISTRATIVE_AREA], setting job addresses
# finds this job posting if an exact location match isn't specified.
# If this field is set to PostingRegion.NATION or
# PostingRegion.ADMINISTRATIVE_AREA, setting job Job.addresses
# to the same location level as this field is strongly recommended.
# Corresponds to the JSON property `postingRegion`
# @return [String]