Autogenerated update (2018-09-24)

Update:
- jobs_v2
This commit is contained in:
Google APIs committed 2018-09-24 00:36:36 +00:00
1 parent ee74cb52fb
commit 1d5c7afb84
7 files changed
+5002 -36

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV2
VERSION = 'V2'
REVISION = '20180906'
REVISION = '20180917'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
+35 -35
View File
@@ -945,13 +945,13 @@ module Google
end
end
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Represents a whole calendar date, for example date of birth. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
# represent a year and month where the day is not significant, for example
# credit card expiration date. The year can be 0 to represent a month and day
# independent of year, for example anniversary date. Related types are
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
class Date
include Google::Apis::Core::Hashable
@@ -1686,13 +1686,13 @@ module Google
# @return [Array<String>]
attr_accessor :employment_types
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Represents a whole calendar date, for example date of birth. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
# represent a year and month where the day is not significant, for example
# credit card expiration date. The year can be 0 to represent a month and day
# independent of year, for example anniversary date. Related types are
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `endDate`
# @return [Google::Apis::JobsV2::Date]
attr_accessor :end_date
@@ -1736,13 +1736,13 @@ module Google
# @return [String]
attr_accessor :expire_time
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Represents a whole calendar date, for example date of birth. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
# represent a year and month where the day is not significant, for example
# credit card expiration date. The year can be 0 to represent a month and day
# independent of year, for example anniversary date. Related types are
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `expiryDate`
# @return [Google::Apis::JobsV2::Date]
attr_accessor :expiry_date
@@ -1845,13 +1845,13 @@ module Google
# @return [Fixnum]
attr_accessor :promotion_value
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Represents a whole calendar date, for example date of birth. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
# represent a year and month where the day is not significant, for example
# credit card expiration date. The year can be 0 to represent a month and day
# independent of year, for example anniversary date. Related types are
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `publishDate`
# @return [Google::Apis::JobsV2::Date]
attr_accessor :publish_date
@@ -1906,13 +1906,13 @@ module Google
# @return [String]
attr_accessor :responsibilities
# Represents a whole calendar date, e.g. date of birth. The time of day and
# time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day may be 0 to
# represent a year and month where the day is not significant, e.g. credit card
# expiration date. The year may be 0 to represent a month and day independent
# of year, e.g. anniversary date. Related types are google.type.TimeOfDay
# and `google.protobuf.Timestamp`.
# Represents a whole calendar date, for example date of birth. The time of day
# and time zone are either specified elsewhere or are not significant. The date
# is relative to the Proleptic Gregorian Calendar. The day can be 0 to
# represent a year and month where the day is not significant, for example
# credit card expiration date. The year can be 0 to represent a month and day
# independent of year, for example anniversary date. Related types are
# google.type.TimeOfDay and `google.protobuf.Timestamp`.
# Corresponds to the JSON property `startDate`
# @return [Google::Apis::JobsV2::Date]
attr_accessor :start_date
+38
View File
@@ -0,0 +1,38 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/jobs_v3p1beta1/service.rb'
require 'google/apis/jobs_v3p1beta1/classes.rb'
require 'google/apis/jobs_v3p1beta1/representations.rb'
module Google
module Apis
# Cloud Talent Solution API
#
# Cloud Talent Solution provides the capability to create, read, update, and
# delete job postings, as well as search jobs based on keywords and filters.
#
# @see https://cloud.google.com/talent-solution/job-search/docs/
module JobsV3p1beta1
VERSION = 'V3p1beta1'
REVISION = '20180917'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# Manage job postings
AUTH_JOBS = 'https://www.googleapis.com/auth/jobs'
end
end
end
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,966 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module JobsV3p1beta1
class ApplicationInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchDeleteJobsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BucketRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BucketizedCount
class Representation < Google::Apis::Core::JsonRepresentation; end
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
include Google::Apis::Core::JsonObjectSupport
end
class CommuteInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Company
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompanyDerivedInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationHistogramRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationHistogramResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompensationRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompleteQueryResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CompletionResult
class Representation < Google::Apis::Core::JsonRepresentation; end
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
include Google::Apis::Core::JsonObjectSupport
end
class CreateJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttribute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttributeHistogramRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomAttributeHistogramResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CustomRankingInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeviceInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HistogramFacets
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HistogramQuery
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HistogramQueryResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HistogramResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HistogramResults
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Job
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class JobDerivedInfo
class Representation < Google::Apis::Core::JsonRepresentation; end
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
include Google::Apis::Core::JsonObjectSupport
end
class LatLng
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListCompaniesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LocationFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MatchingJob
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Money
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NumericBucketingOption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class NumericBucketingResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PostalAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProcessingOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RequestMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResponseMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchJobsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SpellingCorrection
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimeOfDay
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TimestampRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateCompanyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateJobRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ApplicationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :emails, as: 'emails'
property :instruction, as: 'instruction'
collection :uris, as: 'uris'
end
end
class BatchDeleteJobsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter'
end
end
class BucketRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :from, as: 'from'
property :to, as: 'to'
end
end
class BucketizedCount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :count, as: 'count'
property :range, as: 'range', class: Google::Apis::JobsV3p1beta1::BucketRange, decorator: Google::Apis::JobsV3p1beta1::BucketRange::Representation
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::JobsV3p1beta1::JobEvent, decorator: Google::Apis::JobsV3p1beta1::JobEvent::Representation
property :parent_event_id, as: 'parentEventId'
property :request_id, as: 'requestId'
end
end
class CommuteFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_imprecise_addresses, as: 'allowImpreciseAddresses'
property :commute_method, as: 'commuteMethod'
property :departure_time, as: 'departureTime', class: Google::Apis::JobsV3p1beta1::TimeOfDay, decorator: Google::Apis::JobsV3p1beta1::TimeOfDay::Representation
property :road_traffic, as: 'roadTraffic'
property :start_coordinates, as: 'startCoordinates', class: Google::Apis::JobsV3p1beta1::LatLng, decorator: Google::Apis::JobsV3p1beta1::LatLng::Representation
property :travel_duration, as: 'travelDuration'
end
end
class CommuteInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job_location, as: 'jobLocation', class: Google::Apis::JobsV3p1beta1::Location, decorator: Google::Apis::JobsV3p1beta1::Location::Representation
property :travel_duration, as: 'travelDuration'
end
end
class Company
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :career_site_uri, as: 'careerSiteUri'
property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV3p1beta1::CompanyDerivedInfo, decorator: Google::Apis::JobsV3p1beta1::CompanyDerivedInfo::Representation
property :display_name, as: 'displayName'
property :eeo_text, as: 'eeoText'
property :external_id, as: 'externalId'
property :headquarters_address, as: 'headquartersAddress'
property :hiring_agency, as: 'hiringAgency'
property :image_uri, as: 'imageUri'
collection :keyword_searchable_job_custom_attributes, as: 'keywordSearchableJobCustomAttributes'
property :name, as: 'name'
property :size, as: 'size'
property :suspended, as: 'suspended'
property :website_uri, as: 'websiteUri'
end
end
class CompanyDerivedInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :headquarters_location, as: 'headquartersLocation', class: Google::Apis::JobsV3p1beta1::Location, decorator: Google::Apis::JobsV3p1beta1::Location::Representation
end
end
class CompensationEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::JobsV3p1beta1::Money, decorator: Google::Apis::JobsV3p1beta1::Money::Representation
property :description, as: 'description'
property :expected_units_per_year, as: 'expectedUnitsPerYear'
property :range, as: 'range', class: Google::Apis::JobsV3p1beta1::CompensationRange, decorator: Google::Apis::JobsV3p1beta1::CompensationRange::Representation
property :type, as: 'type'
property :unit, as: 'unit'
end
end
class CompensationFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_jobs_with_unspecified_compensation_range, as: 'includeJobsWithUnspecifiedCompensationRange'
property :range, as: 'range', class: Google::Apis::JobsV3p1beta1::CompensationRange, decorator: Google::Apis::JobsV3p1beta1::CompensationRange::Representation
property :type, as: 'type'
collection :units, as: 'units'
end
end
class CompensationHistogramRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucketing_option, as: 'bucketingOption', class: Google::Apis::JobsV3p1beta1::NumericBucketingOption, decorator: Google::Apis::JobsV3p1beta1::NumericBucketingOption::Representation
property :type, as: 'type'
end
end
class CompensationHistogramResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :result, as: 'result', class: Google::Apis::JobsV3p1beta1::NumericBucketingResult, decorator: Google::Apis::JobsV3p1beta1::NumericBucketingResult::Representation
property :type, as: 'type'
end
end
class CompensationInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :annualized_base_compensation_range, as: 'annualizedBaseCompensationRange', class: Google::Apis::JobsV3p1beta1::CompensationRange, decorator: Google::Apis::JobsV3p1beta1::CompensationRange::Representation
property :annualized_total_compensation_range, as: 'annualizedTotalCompensationRange', class: Google::Apis::JobsV3p1beta1::CompensationRange, decorator: Google::Apis::JobsV3p1beta1::CompensationRange::Representation
collection :entries, as: 'entries', class: Google::Apis::JobsV3p1beta1::CompensationEntry, decorator: Google::Apis::JobsV3p1beta1::CompensationEntry::Representation
end
end
class CompensationRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_compensation, as: 'maxCompensation', class: Google::Apis::JobsV3p1beta1::Money, decorator: Google::Apis::JobsV3p1beta1::Money::Representation
property :min_compensation, as: 'minCompensation', class: Google::Apis::JobsV3p1beta1::Money, decorator: Google::Apis::JobsV3p1beta1::Money::Representation
end
end
class CompleteQueryResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :completion_results, as: 'completionResults', class: Google::Apis::JobsV3p1beta1::CompletionResult, decorator: Google::Apis::JobsV3p1beta1::CompletionResult::Representation
property :metadata, as: 'metadata', class: Google::Apis::JobsV3p1beta1::ResponseMetadata, decorator: Google::Apis::JobsV3p1beta1::ResponseMetadata::Representation
end
end
class CompletionResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image_uri, as: 'imageUri'
property :suggestion, as: 'suggestion'
property :type, as: 'type'
end
end
class CreateClientEventRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_event, as: 'clientEvent', class: Google::Apis::JobsV3p1beta1::ClientEvent, decorator: Google::Apis::JobsV3p1beta1::ClientEvent::Representation
end
end
class CreateCompanyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :company, as: 'company', class: Google::Apis::JobsV3p1beta1::Company, decorator: Google::Apis::JobsV3p1beta1::Company::Representation
end
end
class CreateJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job, as: 'job', class: Google::Apis::JobsV3p1beta1::Job, decorator: Google::Apis::JobsV3p1beta1::Job::Representation
end
end
class CustomAttribute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filterable, as: 'filterable'
collection :long_values, as: 'longValues'
collection :string_values, as: 'stringValues'
end
end
class CustomAttributeHistogramRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :long_value_histogram_bucketing_option, as: 'longValueHistogramBucketingOption', class: Google::Apis::JobsV3p1beta1::NumericBucketingOption, decorator: Google::Apis::JobsV3p1beta1::NumericBucketingOption::Representation
property :string_value_histogram, as: 'stringValueHistogram'
end
end
class CustomAttributeHistogramResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :long_value_histogram_result, as: 'longValueHistogramResult', class: Google::Apis::JobsV3p1beta1::NumericBucketingResult, decorator: Google::Apis::JobsV3p1beta1::NumericBucketingResult::Representation
hash :string_value_histogram_result, as: 'stringValueHistogramResult'
end
end
class CustomRankingInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :importance_level, as: 'importanceLevel'
property :ranking_expression, as: 'rankingExpression'
end
end
class DeviceInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_type, as: 'deviceType'
property :id, as: 'id'
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class HistogramFacets
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :compensation_histogram_facets, as: 'compensationHistogramFacets', class: Google::Apis::JobsV3p1beta1::CompensationHistogramRequest, decorator: Google::Apis::JobsV3p1beta1::CompensationHistogramRequest::Representation
collection :custom_attribute_histogram_facets, as: 'customAttributeHistogramFacets', class: Google::Apis::JobsV3p1beta1::CustomAttributeHistogramRequest, decorator: Google::Apis::JobsV3p1beta1::CustomAttributeHistogramRequest::Representation
collection :simple_histogram_facets, as: 'simpleHistogramFacets'
end
end
class HistogramQuery
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :histogram_query, as: 'histogramQuery'
end
end
class HistogramQueryResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :histogram, as: 'histogram'
property :histogram_query, as: 'histogramQuery'
end
end
class HistogramResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :search_type, as: 'searchType'
hash :values, as: 'values'
end
end
class HistogramResults
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :compensation_histogram_results, as: 'compensationHistogramResults', class: Google::Apis::JobsV3p1beta1::CompensationHistogramResult, decorator: Google::Apis::JobsV3p1beta1::CompensationHistogramResult::Representation
collection :custom_attribute_histogram_results, as: 'customAttributeHistogramResults', class: Google::Apis::JobsV3p1beta1::CustomAttributeHistogramResult, decorator: Google::Apis::JobsV3p1beta1::CustomAttributeHistogramResult::Representation
collection :simple_histogram_results, as: 'simpleHistogramResults', class: Google::Apis::JobsV3p1beta1::HistogramResult, decorator: Google::Apis::JobsV3p1beta1::HistogramResult::Representation
end
end
class Job
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :addresses, as: 'addresses'
property :application_info, as: 'applicationInfo', class: Google::Apis::JobsV3p1beta1::ApplicationInfo, decorator: Google::Apis::JobsV3p1beta1::ApplicationInfo::Representation
property :company_display_name, as: 'companyDisplayName'
property :company_name, as: 'companyName'
property :compensation_info, as: 'compensationInfo', class: Google::Apis::JobsV3p1beta1::CompensationInfo, decorator: Google::Apis::JobsV3p1beta1::CompensationInfo::Representation
hash :custom_attributes, as: 'customAttributes', class: Google::Apis::JobsV3p1beta1::CustomAttribute, decorator: Google::Apis::JobsV3p1beta1::CustomAttribute::Representation
collection :degree_types, as: 'degreeTypes'
property :department, as: 'department'
property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV3p1beta1::JobDerivedInfo, decorator: Google::Apis::JobsV3p1beta1::JobDerivedInfo::Representation
property :description, as: 'description'
collection :employment_types, as: 'employmentTypes'
property :incentives, as: 'incentives'
collection :job_benefits, as: 'jobBenefits'
property :job_end_time, as: 'jobEndTime'
property :job_level, as: 'jobLevel'
property :job_start_time, as: 'jobStartTime'
property :language_code, as: 'languageCode'
property :name, as: 'name'
property :posting_create_time, as: 'postingCreateTime'
property :posting_expire_time, as: 'postingExpireTime'
property :posting_publish_time, as: 'postingPublishTime'
property :posting_region, as: 'postingRegion'
property :posting_update_time, as: 'postingUpdateTime'
property :processing_options, as: 'processingOptions', class: Google::Apis::JobsV3p1beta1::ProcessingOptions, decorator: Google::Apis::JobsV3p1beta1::ProcessingOptions::Representation
property :promotion_value, as: 'promotionValue'
property :qualifications, as: 'qualifications'
property :requisition_id, as: 'requisitionId'
property :responsibilities, as: 'responsibilities'
property :title, as: 'title'
property :visibility, as: 'visibility'
end
end
class JobDerivedInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :job_categories, as: 'jobCategories'
collection :locations, as: 'locations', class: Google::Apis::JobsV3p1beta1::Location, decorator: Google::Apis::JobsV3p1beta1::Location::Representation
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
property :commute_filter, as: 'commuteFilter', class: Google::Apis::JobsV3p1beta1::CommuteFilter, decorator: Google::Apis::JobsV3p1beta1::CommuteFilter::Representation
collection :company_display_names, as: 'companyDisplayNames'
collection :company_names, as: 'companyNames'
property :compensation_filter, as: 'compensationFilter', class: Google::Apis::JobsV3p1beta1::CompensationFilter, decorator: Google::Apis::JobsV3p1beta1::CompensationFilter::Representation
property :custom_attribute_filter, as: 'customAttributeFilter'
property :disable_spell_check, as: 'disableSpellCheck'
collection :employment_types, as: 'employmentTypes'
collection :job_categories, as: 'jobCategories'
collection :language_codes, as: 'languageCodes'
collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV3p1beta1::LocationFilter, decorator: Google::Apis::JobsV3p1beta1::LocationFilter::Representation
property :publish_time_range, as: 'publishTimeRange', class: Google::Apis::JobsV3p1beta1::TimestampRange, decorator: Google::Apis::JobsV3p1beta1::TimestampRange::Representation
property :query, as: 'query'
end
end
class LatLng
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
class ListCompaniesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :companies, as: 'companies', class: Google::Apis::JobsV3p1beta1::Company, decorator: Google::Apis::JobsV3p1beta1::Company::Representation
property :metadata, as: 'metadata', class: Google::Apis::JobsV3p1beta1::ResponseMetadata, decorator: Google::Apis::JobsV3p1beta1::ResponseMetadata::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :jobs, as: 'jobs', class: Google::Apis::JobsV3p1beta1::Job, decorator: Google::Apis::JobsV3p1beta1::Job::Representation
property :metadata, as: 'metadata', class: Google::Apis::JobsV3p1beta1::ResponseMetadata, decorator: Google::Apis::JobsV3p1beta1::ResponseMetadata::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :lat_lng, as: 'latLng', class: Google::Apis::JobsV3p1beta1::LatLng, decorator: Google::Apis::JobsV3p1beta1::LatLng::Representation
property :location_type, as: 'locationType'
property :postal_address, as: 'postalAddress', class: Google::Apis::JobsV3p1beta1::PostalAddress, decorator: Google::Apis::JobsV3p1beta1::PostalAddress::Representation
property :radius_in_miles, as: 'radiusInMiles'
end
end
class LocationFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :distance_in_miles, as: 'distanceInMiles'
property :lat_lng, as: 'latLng', class: Google::Apis::JobsV3p1beta1::LatLng, decorator: Google::Apis::JobsV3p1beta1::LatLng::Representation
property :region_code, as: 'regionCode'
property :telecommute_preference, as: 'telecommutePreference'
end
end
class MatchingJob
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :commute_info, as: 'commuteInfo', class: Google::Apis::JobsV3p1beta1::CommuteInfo, decorator: Google::Apis::JobsV3p1beta1::CommuteInfo::Representation
property :job, as: 'job', class: Google::Apis::JobsV3p1beta1::Job, decorator: Google::Apis::JobsV3p1beta1::Job::Representation
property :job_summary, as: 'jobSummary'
property :job_title_snippet, as: 'jobTitleSnippet'
property :search_text_snippet, as: 'searchTextSnippet'
end
end
class Money
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_code, as: 'currencyCode'
property :nanos, as: 'nanos'
property :units, :numeric_string => true, as: 'units'
end
end
class NumericBucketingOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bucket_bounds, as: 'bucketBounds'
property :requires_min_max, as: 'requiresMinMax'
end
end
class NumericBucketingResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :counts, as: 'counts', class: Google::Apis::JobsV3p1beta1::BucketizedCount, decorator: Google::Apis::JobsV3p1beta1::BucketizedCount::Representation
property :max_value, as: 'maxValue'
property :min_value, as: 'minValue'
end
end
class PostalAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :address_lines, as: 'addressLines'
property :administrative_area, as: 'administrativeArea'
property :language_code, as: 'languageCode'
property :locality, as: 'locality'
property :organization, as: 'organization'
property :postal_code, as: 'postalCode'
collection :recipients, as: 'recipients'
property :region_code, as: 'regionCode'
property :revision, as: 'revision'
property :sorting_code, as: 'sortingCode'
property :sublocality, as: 'sublocality'
end
end
class ProcessingOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disable_street_address_resolution, as: 'disableStreetAddressResolution'
property :html_sanitization, as: 'htmlSanitization'
end
end
class RequestMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :device_info, as: 'deviceInfo', class: Google::Apis::JobsV3p1beta1::DeviceInfo, decorator: Google::Apis::JobsV3p1beta1::DeviceInfo::Representation
property :domain, as: 'domain'
property :session_id, as: 'sessionId'
property :user_id, as: 'userId'
end
end
class ResponseMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :request_id, as: 'requestId'
end
end
class SearchJobsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :custom_ranking_info, as: 'customRankingInfo', class: Google::Apis::JobsV3p1beta1::CustomRankingInfo, decorator: Google::Apis::JobsV3p1beta1::CustomRankingInfo::Representation
property :disable_keyword_match, as: 'disableKeywordMatch'
property :enable_broadening, as: 'enableBroadening'
property :histogram_facets, as: 'histogramFacets', class: Google::Apis::JobsV3p1beta1::HistogramFacets, decorator: Google::Apis::JobsV3p1beta1::HistogramFacets::Representation
collection :histogram_queries, as: 'histogramQueries', class: Google::Apis::JobsV3p1beta1::HistogramQuery, decorator: Google::Apis::JobsV3p1beta1::HistogramQuery::Representation
property :job_query, as: 'jobQuery', class: Google::Apis::JobsV3p1beta1::JobQuery, decorator: Google::Apis::JobsV3p1beta1::JobQuery::Representation
property :job_view, as: 'jobView'
property :offset, as: 'offset'
property :order_by, as: 'orderBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :request_metadata, as: 'requestMetadata', class: Google::Apis::JobsV3p1beta1::RequestMetadata, decorator: Google::Apis::JobsV3p1beta1::RequestMetadata::Representation
property :require_precise_result_size, as: 'requirePreciseResultSize'
property :search_mode, as: 'searchMode'
end
end
class SearchJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :broadened_query_jobs_count, as: 'broadenedQueryJobsCount'
property :estimated_total_size, as: 'estimatedTotalSize'
collection :histogram_query_results, as: 'histogramQueryResults', class: Google::Apis::JobsV3p1beta1::HistogramQueryResult, decorator: Google::Apis::JobsV3p1beta1::HistogramQueryResult::Representation
property :histogram_results, as: 'histogramResults', class: Google::Apis::JobsV3p1beta1::HistogramResults, decorator: Google::Apis::JobsV3p1beta1::HistogramResults::Representation
collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV3p1beta1::Location, decorator: Google::Apis::JobsV3p1beta1::Location::Representation
collection :matching_jobs, as: 'matchingJobs', class: Google::Apis::JobsV3p1beta1::MatchingJob, decorator: Google::Apis::JobsV3p1beta1::MatchingJob::Representation
property :metadata, as: 'metadata', class: Google::Apis::JobsV3p1beta1::ResponseMetadata, decorator: Google::Apis::JobsV3p1beta1::ResponseMetadata::Representation
property :next_page_token, as: 'nextPageToken'
property :spell_correction, as: 'spellCorrection', class: Google::Apis::JobsV3p1beta1::SpellingCorrection, decorator: Google::Apis::JobsV3p1beta1::SpellingCorrection::Representation
property :total_size, as: 'totalSize'
end
end
class SpellingCorrection
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :corrected, as: 'corrected'
property :corrected_text, as: 'correctedText'
end
end
class TimeOfDay
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hours, as: 'hours'
property :minutes, as: 'minutes'
property :nanos, as: 'nanos'
property :seconds, as: 'seconds'
end
end
class TimestampRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time, as: 'endTime'
property :start_time, as: 'startTime'
end
end
class UpdateCompanyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :company, as: 'company', class: Google::Apis::JobsV3p1beta1::Company, decorator: Google::Apis::JobsV3p1beta1::Company::Representation
property :update_mask, as: 'updateMask'
end
end
class UpdateJobRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :job, as: 'job', class: Google::Apis::JobsV3p1beta1::Job, decorator: Google::Apis::JobsV3p1beta1::Job::Representation
property :update_mask, as: 'updateMask'
end
end
end
end
end
@@ -0,0 +1,692 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module JobsV3p1beta1
# Cloud Talent Solution API
#
# Cloud Talent Solution provides the capability to create, read, update, and
# delete job postings, as well as search jobs based on keywords and filters.
#
# @example
# require 'google/apis/jobs_v3p1beta1'
#
# Jobs = Google::Apis::JobsV3p1beta1 # Alias the module
# service = Jobs::CloudTalentSolutionService.new
#
# @see https://cloud.google.com/talent-solution/job-search/docs/
class CloudTalentSolutionService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# 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.
attr_accessor :quota_user
def initialize
super('https://jobs.googleapis.com/', '')
@batch_path = 'batch'
end
# Completes the specified prefix with keyword suggestions.
# Intended for use by a job search auto-complete search box.
# @param [String] name
# Required.
# Resource name of project the completion is performed within.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [String] company_name
# Optional.
# If provided, restricts completion to specified company.
# The format is "projects/`project_id`/companies/`company_id`", for example,
# "projects/api-test-project/companies/foo".
# @param [String] language_code
# Required.
# The language of the query. This is
# the BCP-47 language code, such as "en-US" or "sr-Latn".
# For more information, see
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
# For CompletionType.JOB_TITLE type, only open jobs with same
# language_code are returned.
# For CompletionType.COMPANY_NAME type,
# only companies having open jobs with same language_code are
# returned.
# For CompletionType.COMBINED type, only open jobs with same
# language_code or companies having open jobs with same
# language_code are returned.
# The maximum number of allowed characters is 255.
# @param [Fixnum] page_size
# Required.
# Completion result count.
# The maximum allowed page size is 10.
# @param [String] query
# Required.
# The query used to generate suggestions.
# The maximum number of allowed characters is 255.
# @param [String] scope
# Optional.
# The scope of the completion. The defaults is CompletionScope.PUBLIC.
# @param [String] type
# Optional.
# The completion topic. The default is CompletionType.COMBINED.
# @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::JobsV3p1beta1::CompleteQueryResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::CompleteQueryResponse]
#
# @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 complete_project(name, company_name: nil, language_code: nil, page_size: nil, query: nil, scope: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3p1beta1/{+name}:complete', options)
command.response_representation = Google::Apis::JobsV3p1beta1::CompleteQueryResponse::Representation
command.response_class = Google::Apis::JobsV3p1beta1::CompleteQueryResponse
command.params['name'] = name unless name.nil?
command.query['companyName'] = company_name unless company_name.nil?
command.query['languageCode'] = language_code unless language_code.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['query'] = query unless query.nil?
command.query['scope'] = scope unless scope.nil?
command.query['type'] = type unless type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
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::JobsV3p1beta1::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::JobsV3p1beta1::ClientEvent] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::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, 'v3p1beta1/{+parent}/clientEvents', options)
command.request_representation = Google::Apis::JobsV3p1beta1::CreateClientEventRequest::Representation
command.request_object = create_client_event_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::ClientEvent::Representation
command.response_class = Google::Apis::JobsV3p1beta1::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.
# Resource name of the project under which the company is created.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Google::Apis::JobsV3p1beta1::CreateCompanyRequest] create_company_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::JobsV3p1beta1::Company] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Company]
#
# @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_company(parent, create_company_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3p1beta1/{+parent}/companies', options)
command.request_representation = Google::Apis::JobsV3p1beta1::CreateCompanyRequest::Representation
command.request_object = create_company_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Company
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
# Deletes specified company.
# @param [String] name
# Required.
# The resource name of the company to be deleted.
# The format is "projects/`project_id`/companies/`company_id`", for example,
# "projects/api-test-project/companies/foo".
# @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::JobsV3p1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Empty]
#
# @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 delete_project_company(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3p1beta1/{+name}', options)
command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves specified company.
# @param [String] name
# Required.
# The resource name of the company to be retrieved.
# The format is "projects/`project_id`/companies/`company_id`", for example,
# "projects/api-test-project/companies/foo".
# @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::JobsV3p1beta1::Company] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Company]
#
# @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 get_project_company(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3p1beta1/{+name}', options)
command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Company
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists all companies associated with the service account.
# @param [String] parent
# Required.
# Resource name of the project under which the company is created.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Fixnum] page_size
# Optional.
# The maximum number of companies to be returned, at most 100.
# Default is 100 if a non-positive number is provided.
# @param [String] page_token
# Optional.
# The starting indicator from which to return results.
# @param [Boolean] require_open_jobs
# Optional.
# Set to true if the companies requested must have open jobs.
# Defaults to false.
# If true, at most page_size of companies are fetched, among which
# only those with open jobs are returned.
# @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::JobsV3p1beta1::ListCompaniesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::ListCompaniesResponse]
#
# @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 list_project_companies(parent, page_size: nil, page_token: nil, require_open_jobs: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3p1beta1/{+parent}/companies', options)
command.response_representation = Google::Apis::JobsV3p1beta1::ListCompaniesResponse::Representation
command.response_class = Google::Apis::JobsV3p1beta1::ListCompaniesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['requireOpenJobs'] = require_open_jobs unless require_open_jobs.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates specified company. Company names can't be updated. To update a
# company name, delete the company and all jobs associated with it, and only
# then re-create them.
# @param [String] name
# Required during company update.
# The resource name for a company. This is generated by the service when a
# company is created.
# The format is "projects/`project_id`/companies/`company_id`", for example,
# "projects/api-test-project/companies/foo".
# @param [Google::Apis::JobsV3p1beta1::UpdateCompanyRequest] update_company_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::JobsV3p1beta1::Company] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Company]
#
# @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 patch_project_company(name, update_company_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v3p1beta1/{+name}', options)
command.request_representation = Google::Apis::JobsV3p1beta1::UpdateCompanyRequest::Representation
command.request_object = update_company_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::Company::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Company
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a list of Jobs by filter.
# @param [String] parent
# Required.
# The resource name of the project under which the job is created.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Google::Apis::JobsV3p1beta1::BatchDeleteJobsRequest] batch_delete_jobs_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::JobsV3p1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Empty]
#
# @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 batch_delete_jobs(parent, batch_delete_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:batchDelete', options)
command.request_representation = Google::Apis::JobsV3p1beta1::BatchDeleteJobsRequest::Representation
command.request_object = batch_delete_jobs_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Empty
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 job.
# Typically, the job becomes searchable within 10 seconds, but it may take
# up to 5 minutes.
# @param [String] parent
# Required.
# The resource name of the project under which the job is created.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Google::Apis::JobsV3p1beta1::CreateJobRequest] create_job_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::JobsV3p1beta1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Job]
#
# @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_job(parent, create_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs', options)
command.request_representation = Google::Apis::JobsV3p1beta1::CreateJobRequest::Representation
command.request_object = create_job_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Job
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
# Deletes the specified job.
# Typically, the job becomes unsearchable within 10 seconds, but it may take
# up to 5 minutes.
# @param [String] name
# Required.
# The resource name of the job to be deleted.
# The format is "projects/`project_id`/jobs/`job_id`",
# for example, "projects/api-test-project/jobs/1234".
# @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::JobsV3p1beta1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Empty]
#
# @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 delete_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3p1beta1/{+name}', options)
command.response_representation = Google::Apis::JobsV3p1beta1::Empty::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the specified job, whose status is OPEN or recently EXPIRED
# within the last 90 days.
# @param [String] name
# Required.
# The resource name of the job to retrieve.
# The format is "projects/`project_id`/jobs/`job_id`",
# for example, "projects/api-test-project/jobs/1234".
# @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::JobsV3p1beta1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Job]
#
# @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 get_project_job(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3p1beta1/{+name}', options)
command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Job
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists jobs by filter.
# @param [String] parent
# Required.
# The resource name of the project under which the job is created.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [String] filter
# Required.
# The filter string specifies the jobs to be enumerated.
# Supported operator: =, AND
# The fields eligible for filtering are:
# * `companyName` (Required)
# * `requisitionId` (Optional)
# Sample Query:
# * companyName = "projects/api-test-project/companies/123"
# * companyName = "projects/api-test-project/companies/123" AND requisitionId
# = "req-1"
# @param [String] job_view
# Optional.
# The desired job attributes returned for jobs in the
# search response. Defaults to JobView.JOB_VIEW_FULL if no value is
# specified.
# @param [Fixnum] page_size
# Optional.
# The maximum number of jobs to be returned per page of results.
# If job_view is set to JobView.JOB_VIEW_ID_ONLY, the maximum allowed
# page size is 1000. Otherwise, the maximum allowed page size is 100.
# Default is 100 if empty or a number < 1 is specified.
# @param [String] page_token
# Optional.
# The starting point of a query result.
# @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::JobsV3p1beta1::ListJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::ListJobsResponse]
#
# @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 list_project_jobs(parent, filter: nil, job_view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3p1beta1/{+parent}/jobs', options)
command.response_representation = Google::Apis::JobsV3p1beta1::ListJobsResponse::Representation
command.response_class = Google::Apis::JobsV3p1beta1::ListJobsResponse
command.params['parent'] = parent unless parent.nil?
command.query['filter'] = filter unless filter.nil?
command.query['jobView'] = job_view unless job_view.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates specified job.
# Typically, updated contents become visible in search results within 10
# seconds, but it may take up to 5 minutes.
# @param [String] name
# Required during job update.
# The resource name for the job. This is generated by the service when a
# job is created.
# The format is "projects/`project_id`/jobs/`job_id`",
# for example, "projects/api-test-project/jobs/1234".
# Use of this field in job queries and API calls is preferred over the use of
# requisition_id since this value is unique.
# @param [Google::Apis::JobsV3p1beta1::UpdateJobRequest] update_job_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::JobsV3p1beta1::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::Job]
#
# @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 patch_project_job(name, update_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v3p1beta1/{+name}', options)
command.request_representation = Google::Apis::JobsV3p1beta1::UpdateJobRequest::Representation
command.request_object = update_job_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::Job::Representation
command.response_class = Google::Apis::JobsV3p1beta1::Job
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches for jobs using the provided SearchJobsRequest.
# This call constrains the visibility of jobs
# present in the database, and only returns jobs that the caller has
# permission to search against.
# @param [String] parent
# Required.
# The resource name of the project to search within.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_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::JobsV3p1beta1::SearchJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::SearchJobsResponse]
#
# @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 search_jobs(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:search', options)
command.request_representation = Google::Apis::JobsV3p1beta1::SearchJobsRequest::Representation
command.request_object = search_jobs_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::SearchJobsResponse::Representation
command.response_class = Google::Apis::JobsV3p1beta1::SearchJobsResponse
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
# Searches for jobs using the provided SearchJobsRequest.
# This API call is intended for the use case of targeting passive job
# seekers (for example, job seekers who have signed up to receive email
# alerts about potential job opportunities), and has different algorithmic
# adjustments that are targeted to passive job seekers.
# This call constrains the visibility of jobs
# present in the database, and only returns jobs the caller has
# permission to search against.
# @param [String] parent
# Required.
# The resource name of the project to search within.
# The format is "projects/`project_id`", for example,
# "projects/api-test-project".
# @param [Google::Apis::JobsV3p1beta1::SearchJobsRequest] search_jobs_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::JobsV3p1beta1::SearchJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::JobsV3p1beta1::SearchJobsResponse]
#
# @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 search_project_job_for_alert(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3p1beta1/{+parent}/jobs:searchForAlert', options)
command.request_representation = Google::Apis::JobsV3p1beta1::SearchJobsRequest::Representation
command.request_object = search_jobs_request_object
command.response_representation = Google::Apis::JobsV3p1beta1::SearchJobsResponse::Representation
command.response_class = Google::Apis::JobsV3p1beta1::SearchJobsResponse
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
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end