Autogenerated update (2019-01-27)

Update:
- doubleclickbidmanager_v1
- jobs_v3
- testing_v1
This commit is contained in:
Google APIs 2019-01-27 00:36:51 +00:00
parent 396ceeb8fa
commit 8bccb9cefa
7 changed files with 236 additions and 6 deletions

View File

@ -74747,6 +74747,14 @@
"/jobs:v3/BucketizedCount": bucketized_count
"/jobs:v3/BucketizedCount/count": count
"/jobs:v3/BucketizedCount/range": range
"/jobs:v3/ClientEvent": client_event
"/jobs:v3/ClientEvent/createTime": create_time
"/jobs:v3/ClientEvent/eventId": event_id
"/jobs:v3/ClientEvent/extraInfo": extra_info
"/jobs:v3/ClientEvent/extraInfo/extra_info": extra_info
"/jobs:v3/ClientEvent/jobEvent": job_event
"/jobs:v3/ClientEvent/parentEventId": parent_event_id
"/jobs:v3/ClientEvent/requestId": request_id
"/jobs:v3/CommuteFilter": commute_filter
"/jobs:v3/CommuteFilter/allowImpreciseAddresses": allow_imprecise_addresses
"/jobs:v3/CommuteFilter/commuteMethod": commute_method
@ -74809,6 +74817,8 @@
"/jobs:v3/CompletionResult/imageUri": image_uri
"/jobs:v3/CompletionResult/suggestion": suggestion
"/jobs:v3/CompletionResult/type": type
"/jobs:v3/CreateClientEventRequest": create_client_event_request
"/jobs:v3/CreateClientEventRequest/clientEvent": client_event
"/jobs:v3/CreateCompanyRequest": create_company_request
"/jobs:v3/CreateCompanyRequest/company": company
"/jobs:v3/CreateJobRequest": create_job_request
@ -74891,6 +74901,10 @@
"/jobs:v3/JobDerivedInfo/jobCategories/job_category": job_category
"/jobs:v3/JobDerivedInfo/locations": locations
"/jobs:v3/JobDerivedInfo/locations/location": location
"/jobs:v3/JobEvent": job_event
"/jobs:v3/JobEvent/jobs": jobs
"/jobs:v3/JobEvent/jobs/job": job
"/jobs:v3/JobEvent/type": type
"/jobs:v3/JobQuery": job_query
"/jobs:v3/JobQuery/commuteFilter": commute_filter
"/jobs:v3/JobQuery/companyDisplayNames": company_display_names
@ -75021,6 +75035,8 @@
"/jobs:v3/UpdateJobRequest/job": job
"/jobs:v3/UpdateJobRequest/updateMask": update_mask
"/jobs:v3/fields": fields
"/jobs:v3/jobs.projects.clientEvents.create": create_client_event
"/jobs:v3/jobs.projects.clientEvents.create/parent": parent
"/jobs:v3/jobs.projects.companies.create": create_company
"/jobs:v3/jobs.projects.companies.create/parent": parent
"/jobs:v3/jobs.projects.companies.delete": delete_project_company

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/bid-manager/
module DoubleclickbidmanagerV1
VERSION = 'V1'
REVISION = '20190114'
REVISION = '20190125'
# View and manage your reports in DoubleClick Bid Manager
AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'

View File

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

View File

@ -147,6 +147,78 @@ 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
@ -682,6 +754,29 @@ 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
@ -1211,9 +1306,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]
@ -1355,6 +1450,38 @@ 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,6 +46,12 @@ 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
@ -118,6 +124,12 @@ 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
@ -190,6 +202,12 @@ 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
@ -349,6 +367,19 @@ 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
@ -484,6 +515,14 @@ 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
@ -624,6 +663,14 @@ 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,6 +139,46 @@ 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://developers.google.com/cloud-test-lab/
module TestingV1
VERSION = 'V1'
REVISION = '20190107'
REVISION = '20190123'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'