From 7c08c028e5d59ebddcda030f440a16aa13b09f02 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Dec 2020 02:54:02 -0800 Subject: [PATCH] feat: Automated regeneration of jobs v4 client (#1623) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-12-03 02:40:58,413 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-jobs-v4 nothing to commit, working tree clean 2020-12-03 02:40:58,439 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v4 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth jobs v4 bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.8 Installing tzinfo 1.2.8 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.50.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.0 Installing rspec-support 3.10.0 Fetching rspec-core 3.10.0 Installing rspec-core 3.10.0 Fetching rspec-expectations 3.10.0 Installing rspec-expectations 3.10.0 Fetching rspec-mocks 3.10.0 Installing rspec-mocks 3.10.0 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=jobs.v4 --names-out=/workspace/api_names_out.yaml Loading jobs, version v4 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/jobs.v4.json conflict google/apis/jobs_v4.rb Wrote metadata to generated/google/apis/jobs_v4/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/jobs_v4/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/7b006b37-fae5-4e1c-9d57-231db3ac031c/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 176 ++ generated/google/apis/jobs_v4.rb | 2 +- generated/google/apis/jobs_v4/classes.rb | 2687 ++++++----------- .../google/apis/jobs_v4/representations.rb | 715 ++--- generated/google/apis/jobs_v4/service.rb | 224 +- generated/google/apis/jobs_v4/synth.metadata | 2 +- 6 files changed, 1517 insertions(+), 2289 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index e45c8e6802b..e291b27dce6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -114381,6 +114381,18 @@ "/jobs:v4/ApplicationInfo/instruction": instruction "/jobs:v4/ApplicationInfo/uris": uris "/jobs:v4/ApplicationInfo/uris/uri": uri +"/jobs:v4/BatchCreateJobsRequest": batch_create_jobs_request +"/jobs:v4/BatchCreateJobsRequest/jobs": jobs +"/jobs:v4/BatchCreateJobsRequest/jobs/job": job +"/jobs:v4/BatchCreateJobsResponse": batch_create_jobs_response +"/jobs:v4/BatchCreateJobsResponse/jobResults": job_results +"/jobs:v4/BatchCreateJobsResponse/jobResults/job_result": job_result +"/jobs:v4/BatchDeleteJobsRequest": batch_delete_jobs_request +"/jobs:v4/BatchDeleteJobsRequest/names": names +"/jobs:v4/BatchDeleteJobsRequest/names/name": name +"/jobs:v4/BatchDeleteJobsResponse": batch_delete_jobs_response +"/jobs:v4/BatchDeleteJobsResponse/jobResults": job_results +"/jobs:v4/BatchDeleteJobsResponse/jobResults/job_result": job_result "/jobs:v4/BatchOperationMetadata": batch_operation_metadata "/jobs:v4/BatchOperationMetadata/createTime": create_time "/jobs:v4/BatchOperationMetadata/endTime": end_time @@ -114390,6 +114402,46 @@ "/jobs:v4/BatchOperationMetadata/successCount": success_count "/jobs:v4/BatchOperationMetadata/totalCount": total_count "/jobs:v4/BatchOperationMetadata/updateTime": update_time +"/jobs:v4/BatchUpdateJobsRequest": batch_update_jobs_request +"/jobs:v4/BatchUpdateJobsRequest/jobs": jobs +"/jobs:v4/BatchUpdateJobsRequest/jobs/job": job +"/jobs:v4/BatchUpdateJobsRequest/updateMask": update_mask +"/jobs:v4/BatchUpdateJobsResponse": batch_update_jobs_response +"/jobs:v4/BatchUpdateJobsResponse/jobResults": job_results +"/jobs:v4/BatchUpdateJobsResponse/jobResults/job_result": job_result +"/jobs:v4/ClientEvent": client_event +"/jobs:v4/ClientEvent/createTime": create_time +"/jobs:v4/ClientEvent/eventId": event_id +"/jobs:v4/ClientEvent/eventNotes": event_notes +"/jobs:v4/ClientEvent/jobEvent": job_event +"/jobs:v4/ClientEvent/requestId": request_id +"/jobs:v4/CommuteFilter": commute_filter +"/jobs:v4/CommuteFilter/allowImpreciseAddresses": allow_imprecise_addresses +"/jobs:v4/CommuteFilter/commuteMethod": commute_method +"/jobs:v4/CommuteFilter/departureTime": departure_time +"/jobs:v4/CommuteFilter/roadTraffic": road_traffic +"/jobs:v4/CommuteFilter/startCoordinates": start_coordinates +"/jobs:v4/CommuteFilter/travelDuration": travel_duration +"/jobs:v4/CommuteInfo": commute_info +"/jobs:v4/CommuteInfo/jobLocation": job_location +"/jobs:v4/CommuteInfo/travelDuration": travel_duration +"/jobs:v4/Company": company +"/jobs:v4/Company/careerSiteUri": career_site_uri +"/jobs:v4/Company/derivedInfo": derived_info +"/jobs:v4/Company/displayName": display_name +"/jobs:v4/Company/eeoText": eeo_text +"/jobs:v4/Company/externalId": external_id +"/jobs:v4/Company/headquartersAddress": headquarters_address +"/jobs:v4/Company/hiringAgency": hiring_agency +"/jobs:v4/Company/imageUri": image_uri +"/jobs:v4/Company/keywordSearchableJobCustomAttributes": keyword_searchable_job_custom_attributes +"/jobs:v4/Company/keywordSearchableJobCustomAttributes/keyword_searchable_job_custom_attribute": keyword_searchable_job_custom_attribute +"/jobs:v4/Company/name": name +"/jobs:v4/Company/size": size +"/jobs:v4/Company/suspended": suspended +"/jobs:v4/Company/websiteUri": website_uri +"/jobs:v4/CompanyDerivedInfo": company_derived_info +"/jobs:v4/CompanyDerivedInfo/headquartersLocation": headquarters_location "/jobs:v4/CompensationEntry": compensation_entry "/jobs:v4/CompensationEntry/amount": amount "/jobs:v4/CompensationEntry/description": description @@ -114397,6 +114449,12 @@ "/jobs:v4/CompensationEntry/range": range "/jobs:v4/CompensationEntry/type": type "/jobs:v4/CompensationEntry/unit": unit +"/jobs:v4/CompensationFilter": compensation_filter +"/jobs:v4/CompensationFilter/includeJobsWithUnspecifiedCompensationRange": include_jobs_with_unspecified_compensation_range +"/jobs:v4/CompensationFilter/range": range +"/jobs:v4/CompensationFilter/type": type +"/jobs:v4/CompensationFilter/units": units +"/jobs:v4/CompensationFilter/units/unit": unit "/jobs:v4/CompensationInfo": compensation_info "/jobs:v4/CompensationInfo/annualizedBaseCompensationRange": annualized_base_compensation_range "/jobs:v4/CompensationInfo/annualizedTotalCompensationRange": annualized_total_compensation_range @@ -114405,6 +114463,14 @@ "/jobs:v4/CompensationRange": compensation_range "/jobs:v4/CompensationRange/maxCompensation": max_compensation "/jobs:v4/CompensationRange/minCompensation": min_compensation +"/jobs:v4/CompleteQueryResponse": complete_query_response +"/jobs:v4/CompleteQueryResponse/completionResults": completion_results +"/jobs:v4/CompleteQueryResponse/completionResults/completion_result": completion_result +"/jobs:v4/CompleteQueryResponse/metadata": metadata +"/jobs:v4/CompletionResult": completion_result +"/jobs:v4/CompletionResult/imageUri": image_uri +"/jobs:v4/CompletionResult/suggestion": suggestion +"/jobs:v4/CompletionResult/type": type "/jobs:v4/CustomAttribute": custom_attribute "/jobs:v4/CustomAttribute/filterable": filterable "/jobs:v4/CustomAttribute/keywordSearchable": keyword_searchable @@ -114412,6 +114478,12 @@ "/jobs:v4/CustomAttribute/longValues/long_value": long_value "/jobs:v4/CustomAttribute/stringValues": string_values "/jobs:v4/CustomAttribute/stringValues/string_value": string_value +"/jobs:v4/CustomRankingInfo": custom_ranking_info +"/jobs:v4/CustomRankingInfo/importanceLevel": importance_level +"/jobs:v4/CustomRankingInfo/rankingExpression": ranking_expression +"/jobs:v4/DeviceInfo": device_info +"/jobs:v4/DeviceInfo/deviceType": device_type +"/jobs:v4/DeviceInfo/id": id "/jobs:v4/Empty": empty "/jobs:v4/GoogleCloudTalentV4BatchCreateJobsRequest": google_cloud_talent_v4_batch_create_jobs_request "/jobs:v4/GoogleCloudTalentV4BatchCreateJobsRequest/jobs": jobs @@ -114678,6 +114750,12 @@ "/jobs:v4/GoogleCloudTalentV4TimestampRange": google_cloud_talent_v4_timestamp_range "/jobs:v4/GoogleCloudTalentV4TimestampRange/endTime": end_time "/jobs:v4/GoogleCloudTalentV4TimestampRange/startTime": start_time +"/jobs:v4/HistogramQuery": histogram_query +"/jobs:v4/HistogramQuery/histogramQuery": histogram_query +"/jobs:v4/HistogramQueryResult": histogram_query_result +"/jobs:v4/HistogramQueryResult/histogram": histogram +"/jobs:v4/HistogramQueryResult/histogram/histogram": histogram +"/jobs:v4/HistogramQueryResult/histogramQuery": histogram_query "/jobs:v4/Job": job "/jobs:v4/Job/addresses": addresses "/jobs:v4/Job/addresses/address": address @@ -114719,20 +114797,73 @@ "/jobs:v4/JobDerivedInfo/jobCategories/job_category": job_category "/jobs:v4/JobDerivedInfo/locations": locations "/jobs:v4/JobDerivedInfo/locations/location": location +"/jobs:v4/JobEvent": job_event +"/jobs:v4/JobEvent/jobs": jobs +"/jobs:v4/JobEvent/jobs/job": job +"/jobs:v4/JobEvent/type": type "/jobs:v4/JobOperationResult": job_operation_result "/jobs:v4/JobOperationResult/jobResults": job_results "/jobs:v4/JobOperationResult/jobResults/job_result": job_result +"/jobs:v4/JobQuery": job_query +"/jobs:v4/JobQuery/commuteFilter": commute_filter +"/jobs:v4/JobQuery/companies": companies +"/jobs:v4/JobQuery/companies/company": company +"/jobs:v4/JobQuery/companyDisplayNames": company_display_names +"/jobs:v4/JobQuery/companyDisplayNames/company_display_name": company_display_name +"/jobs:v4/JobQuery/compensationFilter": compensation_filter +"/jobs:v4/JobQuery/customAttributeFilter": custom_attribute_filter +"/jobs:v4/JobQuery/disableSpellCheck": disable_spell_check +"/jobs:v4/JobQuery/employmentTypes": employment_types +"/jobs:v4/JobQuery/employmentTypes/employment_type": employment_type +"/jobs:v4/JobQuery/excludedJobs": excluded_jobs +"/jobs:v4/JobQuery/excludedJobs/excluded_job": excluded_job +"/jobs:v4/JobQuery/jobCategories": job_categories +"/jobs:v4/JobQuery/jobCategories/job_category": job_category +"/jobs:v4/JobQuery/languageCodes": language_codes +"/jobs:v4/JobQuery/languageCodes/language_code": language_code +"/jobs:v4/JobQuery/locationFilters": location_filters +"/jobs:v4/JobQuery/locationFilters/location_filter": location_filter +"/jobs:v4/JobQuery/publishTimeRange": publish_time_range +"/jobs:v4/JobQuery/query": query +"/jobs:v4/JobQuery/queryLanguageCode": query_language_code "/jobs:v4/JobResult": job_result "/jobs:v4/JobResult/job": job "/jobs:v4/JobResult/status": status "/jobs:v4/LatLng": lat_lng "/jobs:v4/LatLng/latitude": latitude "/jobs:v4/LatLng/longitude": longitude +"/jobs:v4/ListCompaniesResponse": list_companies_response +"/jobs:v4/ListCompaniesResponse/companies": companies +"/jobs:v4/ListCompaniesResponse/companies/company": company +"/jobs:v4/ListCompaniesResponse/metadata": metadata +"/jobs:v4/ListCompaniesResponse/nextPageToken": next_page_token +"/jobs:v4/ListJobsResponse": list_jobs_response +"/jobs:v4/ListJobsResponse/jobs": jobs +"/jobs:v4/ListJobsResponse/jobs/job": job +"/jobs:v4/ListJobsResponse/metadata": metadata +"/jobs:v4/ListJobsResponse/nextPageToken": next_page_token +"/jobs:v4/ListTenantsResponse": list_tenants_response +"/jobs:v4/ListTenantsResponse/metadata": metadata +"/jobs:v4/ListTenantsResponse/nextPageToken": next_page_token +"/jobs:v4/ListTenantsResponse/tenants": tenants +"/jobs:v4/ListTenantsResponse/tenants/tenant": tenant "/jobs:v4/Location": location "/jobs:v4/Location/latLng": lat_lng "/jobs:v4/Location/locationType": location_type "/jobs:v4/Location/postalAddress": postal_address "/jobs:v4/Location/radiusMiles": radius_miles +"/jobs:v4/LocationFilter": location_filter +"/jobs:v4/LocationFilter/address": address +"/jobs:v4/LocationFilter/distanceInMiles": distance_in_miles +"/jobs:v4/LocationFilter/latLng": lat_lng +"/jobs:v4/LocationFilter/regionCode": region_code +"/jobs:v4/LocationFilter/telecommutePreference": telecommute_preference +"/jobs:v4/MatchingJob": matching_job +"/jobs:v4/MatchingJob/commuteInfo": commute_info +"/jobs:v4/MatchingJob/job": job +"/jobs:v4/MatchingJob/jobSummary": job_summary +"/jobs:v4/MatchingJob/jobTitleSnippet": job_title_snippet +"/jobs:v4/MatchingJob/searchTextSnippet": search_text_snippet "/jobs:v4/MendelDebugInput": mendel_debug_input "/jobs:v4/MendelDebugInput/namespacedDebugInput": namespaced_debug_input "/jobs:v4/MendelDebugInput/namespacedDebugInput/namespaced_debug_input": namespaced_debug_input @@ -114791,17 +114922,62 @@ "/jobs:v4/ProcessingOptions": processing_options "/jobs:v4/ProcessingOptions/disableStreetAddressResolution": disable_street_address_resolution "/jobs:v4/ProcessingOptions/htmlSanitization": html_sanitization +"/jobs:v4/RequestMetadata": request_metadata +"/jobs:v4/RequestMetadata/allowMissingIds": allow_missing_ids +"/jobs:v4/RequestMetadata/deviceInfo": device_info +"/jobs:v4/RequestMetadata/domain": domain +"/jobs:v4/RequestMetadata/sessionId": session_id +"/jobs:v4/RequestMetadata/userId": user_id +"/jobs:v4/ResponseMetadata": response_metadata +"/jobs:v4/ResponseMetadata/requestId": request_id +"/jobs:v4/SearchJobsRequest": search_jobs_request +"/jobs:v4/SearchJobsRequest/customRankingInfo": custom_ranking_info +"/jobs:v4/SearchJobsRequest/disableKeywordMatch": disable_keyword_match +"/jobs:v4/SearchJobsRequest/diversificationLevel": diversification_level +"/jobs:v4/SearchJobsRequest/enableBroadening": enable_broadening +"/jobs:v4/SearchJobsRequest/histogramQueries": histogram_queries +"/jobs:v4/SearchJobsRequest/histogramQueries/histogram_query": histogram_query +"/jobs:v4/SearchJobsRequest/jobQuery": job_query +"/jobs:v4/SearchJobsRequest/jobView": job_view +"/jobs:v4/SearchJobsRequest/maxPageSize": max_page_size +"/jobs:v4/SearchJobsRequest/offset": offset +"/jobs:v4/SearchJobsRequest/orderBy": order_by +"/jobs:v4/SearchJobsRequest/pageToken": page_token +"/jobs:v4/SearchJobsRequest/requestMetadata": request_metadata +"/jobs:v4/SearchJobsRequest/searchMode": search_mode +"/jobs:v4/SearchJobsResponse": search_jobs_response +"/jobs:v4/SearchJobsResponse/broadenedQueryJobsCount": broadened_query_jobs_count +"/jobs:v4/SearchJobsResponse/histogramQueryResults": histogram_query_results +"/jobs:v4/SearchJobsResponse/histogramQueryResults/histogram_query_result": histogram_query_result +"/jobs:v4/SearchJobsResponse/locationFilters": location_filters +"/jobs:v4/SearchJobsResponse/locationFilters/location_filter": location_filter +"/jobs:v4/SearchJobsResponse/matchingJobs": matching_jobs +"/jobs:v4/SearchJobsResponse/matchingJobs/matching_job": matching_job +"/jobs:v4/SearchJobsResponse/metadata": metadata +"/jobs:v4/SearchJobsResponse/nextPageToken": next_page_token +"/jobs:v4/SearchJobsResponse/spellCorrection": spell_correction +"/jobs:v4/SearchJobsResponse/totalSize": total_size +"/jobs:v4/SpellingCorrection": spelling_correction +"/jobs:v4/SpellingCorrection/corrected": corrected +"/jobs:v4/SpellingCorrection/correctedHtml": corrected_html +"/jobs:v4/SpellingCorrection/correctedText": corrected_text "/jobs:v4/Status": status "/jobs:v4/Status/code": code "/jobs:v4/Status/details": details "/jobs:v4/Status/details/detail": detail "/jobs:v4/Status/details/detail/detail": detail "/jobs:v4/Status/message": message +"/jobs:v4/Tenant": tenant +"/jobs:v4/Tenant/externalId": external_id +"/jobs:v4/Tenant/name": name "/jobs:v4/TimeOfDay": time_of_day "/jobs:v4/TimeOfDay/hours": hours "/jobs:v4/TimeOfDay/minutes": minutes "/jobs:v4/TimeOfDay/nanos": nanos "/jobs:v4/TimeOfDay/seconds": seconds +"/jobs:v4/TimestampRange": timestamp_range +"/jobs:v4/TimestampRange/endTime": end_time +"/jobs:v4/TimestampRange/startTime": start_time "/jobs:v4/fields": fields "/jobs:v4/jobs.projects.tenants.clientEvents.create": create_project_tenant_client_event "/jobs:v4/jobs.projects.tenants.clientEvents.create/parent": parent diff --git a/generated/google/apis/jobs_v4.rb b/generated/google/apis/jobs_v4.rb index e301a11cea7..447c203109d 100644 --- a/generated/google/apis/jobs_v4.rb +++ b/generated/google/apis/jobs_v4.rb @@ -26,7 +26,7 @@ module Apis # @see https://cloud.google.com/talent-solution/job-search/docs/ module JobsV4 VERSION = 'V4' - REVISION = '20201111' + REVISION = '20201124' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/jobs_v4/classes.rb b/generated/google/apis/jobs_v4/classes.rb index 3a5c5e5ea11..876a1128099 100644 --- a/generated/google/apis/jobs_v4/classes.rb +++ b/generated/google/apis/jobs_v4/classes.rb @@ -59,261 +59,14 @@ def update!(**args) end end - # Metadata used for long running operations returned by CTS batch APIs. It's - # used to replace google.longrunning.Operation.metadata. - class BatchOperationMetadata - include Google::Apis::Core::Hashable - - # The time when the batch operation is created. - # Corresponds to the JSON property `createTime` - # @return [String] - attr_accessor :create_time - - # The time when the batch operation is finished and google.longrunning.Operation. - # done is set to `true`. - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Count of failed item(s) inside an operation. - # Corresponds to the JSON property `failureCount` - # @return [Fixnum] - attr_accessor :failure_count - - # The state of a long running operation. - # Corresponds to the JSON property `state` - # @return [String] - attr_accessor :state - - # More detailed information about operation state. - # Corresponds to the JSON property `stateDescription` - # @return [String] - attr_accessor :state_description - - # Count of successful item(s) inside an operation. - # Corresponds to the JSON property `successCount` - # @return [Fixnum] - attr_accessor :success_count - - # Count of total item(s) inside an operation. - # Corresponds to the JSON property `totalCount` - # @return [Fixnum] - attr_accessor :total_count - - # The time when the batch operation status is updated. The metadata and the - # update_time is refreshed every minute otherwise cached data is returned. - # Corresponds to the JSON property `updateTime` - # @return [String] - attr_accessor :update_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @create_time = args[:create_time] if args.key?(:create_time) - @end_time = args[:end_time] if args.key?(:end_time) - @failure_count = args[:failure_count] if args.key?(:failure_count) - @state = args[:state] if args.key?(:state) - @state_description = args[:state_description] if args.key?(:state_description) - @success_count = args[:success_count] if args.key?(:success_count) - @total_count = args[:total_count] if args.key?(:total_count) - @update_time = args[:update_time] if args.key?(:update_time) - end - end - - # A compensation entry that represents one component of compensation, such as - # base pay, bonus, or other compensation type. Annualization: One compensation - # entry can be annualized if - it contains valid amount or range. - and its - # expected_units_per_year is set or can be derived. Its annualized range is - # determined as (amount or range) times expected_units_per_year. - class CompensationEntry - include Google::Apis::Core::Hashable - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `amount` - # @return [Google::Apis::JobsV4::Money] - attr_accessor :amount - - # Compensation description. For example, could indicate equity terms or provide - # additional context to an estimated bonus. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Expected number of units paid each year. If not specified, when Job. - # employment_types is FULLTIME, a default value is inferred based on unit. - # Default values: - HOURLY: 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - - # ANNUAL: 1 - # Corresponds to the JSON property `expectedUnitsPerYear` - # @return [Float] - attr_accessor :expected_units_per_year - - # Compensation range. - # Corresponds to the JSON property `range` - # @return [Google::Apis::JobsV4::CompensationRange] - attr_accessor :range - - # Compensation type. Default is CompensationType.COMPENSATION_TYPE_UNSPECIFIED. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Frequency of the specified amount. Default is CompensationUnit. - # COMPENSATION_UNIT_UNSPECIFIED. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @amount = args[:amount] if args.key?(:amount) - @description = args[:description] if args.key?(:description) - @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year) - @range = args[:range] if args.key?(:range) - @type = args[:type] if args.key?(:type) - @unit = args[:unit] if args.key?(:unit) - end - end - - # Job compensation details. - class CompensationInfo - include Google::Apis::Core::Hashable - - # Compensation range. - # Corresponds to the JSON property `annualizedBaseCompensationRange` - # @return [Google::Apis::JobsV4::CompensationRange] - attr_accessor :annualized_base_compensation_range - - # Compensation range. - # Corresponds to the JSON property `annualizedTotalCompensationRange` - # @return [Google::Apis::JobsV4::CompensationRange] - attr_accessor :annualized_total_compensation_range - - # Job compensation information. At most one entry can be of type - # CompensationInfo.CompensationType.BASE, which is referred as **base - # compensation entry** for the job. - # Corresponds to the JSON property `entries` - # @return [Array] - attr_accessor :entries - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @annualized_base_compensation_range = args[:annualized_base_compensation_range] if args.key?(:annualized_base_compensation_range) - @annualized_total_compensation_range = args[:annualized_total_compensation_range] if args.key?(:annualized_total_compensation_range) - @entries = args[:entries] if args.key?(:entries) - end - end - - # Compensation range. - class CompensationRange - include Google::Apis::Core::Hashable - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `maxCompensation` - # @return [Google::Apis::JobsV4::Money] - attr_accessor :max_compensation - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `minCompensation` - # @return [Google::Apis::JobsV4::Money] - attr_accessor :min_compensation - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @max_compensation = args[:max_compensation] if args.key?(:max_compensation) - @min_compensation = args[:min_compensation] if args.key?(:min_compensation) - end - end - - # Custom attribute values that are either filterable or non-filterable. - class CustomAttribute - include Google::Apis::Core::Hashable - - # If the `filterable` flag is true, the custom field values may be used for - # custom attribute filters JobQuery.custom_attribute_filter. If false, these - # values may not be used for custom attribute filters. Default is false. - # Corresponds to the JSON property `filterable` - # @return [Boolean] - attr_accessor :filterable - alias_method :filterable?, :filterable - - # If the `keyword_searchable` flag is true, the keywords in custom fields are - # searchable by keyword match. If false, the values are not searchable by - # keyword match. Default is false. - # Corresponds to the JSON property `keywordSearchable` - # @return [Boolean] - attr_accessor :keyword_searchable - alias_method :keyword_searchable?, :keyword_searchable - - # Exactly one of string_values or long_values must be specified. This field is - # used to perform number range search. (`EQ`, `GT`, `GE`, `LE`, `LT`) over - # filterable `long_value`. Currently at most 1 long_values is supported. - # Corresponds to the JSON property `longValues` - # @return [Array] - attr_accessor :long_values - - # Exactly one of string_values or long_values must be specified. This field is - # used to perform a string match (`CASE_SENSITIVE_MATCH` or ` - # CASE_INSENSITIVE_MATCH`) search. For filterable `string_value`s, a maximum - # total number of 200 values is allowed, with each `string_value` has a byte - # size of no more than 500B. For unfilterable `string_values`, the maximum total - # byte size of unfilterable `string_values` is 50KB. Empty string isn't allowed. - # Corresponds to the JSON property `stringValues` - # @return [Array] - attr_accessor :string_values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @filterable = args[:filterable] if args.key?(:filterable) - @keyword_searchable = args[:keyword_searchable] if args.key?(:keyword_searchable) - @long_values = args[:long_values] if args.key?(:long_values) - @string_values = args[:string_values] if args.key?(:string_values) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: service Foo ` rpc Bar(google. - # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for - # `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - # Request to create a batch of jobs. - class GoogleCloudTalentV4BatchCreateJobsRequest + class BatchCreateJobsRequest include Google::Apis::Core::Hashable # Required. The jobs to be created. A maximum of 200 jobs can be created in a # batch. # Corresponds to the JSON property `jobs` - # @return [Array] + # @return [Array] attr_accessor :jobs def initialize(**args) @@ -328,13 +81,13 @@ def update!(**args) # The result of JobService.BatchCreateJobs. It's used to replace google. # longrunning.Operation.response in case of success. - class GoogleCloudTalentV4BatchCreateJobsResponse + class BatchCreateJobsResponse include Google::Apis::Core::Hashable # List of job mutation results from a batch create operation. It can change # until operation status is FINISHED, FAILED or CANCELLED. # Corresponds to the JSON property `jobResults` - # @return [Array] + # @return [Array] attr_accessor :job_results def initialize(**args) @@ -348,7 +101,7 @@ def update!(**args) end # Request to delete a batch of jobs. - class GoogleCloudTalentV4BatchDeleteJobsRequest + class BatchDeleteJobsRequest include Google::Apis::Core::Hashable # The names of the jobs to delete. The format is "projects/`project_id`/tenants/` @@ -370,13 +123,13 @@ def update!(**args) # The result of JobService.BatchDeleteJobs. It's used to replace google. # longrunning.Operation.response in case of success. - class GoogleCloudTalentV4BatchDeleteJobsResponse + class BatchDeleteJobsResponse include Google::Apis::Core::Hashable # List of job mutation results from a batch delete operation. It can change # until operation status is FINISHED, FAILED or CANCELLED. # Corresponds to the JSON property `jobResults` - # @return [Array] + # @return [Array] attr_accessor :job_results def initialize(**args) @@ -391,7 +144,7 @@ def update!(**args) # Metadata used for long running operations returned by CTS batch APIs. It's # used to replace google.longrunning.Operation.metadata. - class GoogleCloudTalentV4BatchOperationMetadata + class BatchOperationMetadata include Google::Apis::Core::Hashable # The time when the batch operation is created. @@ -454,13 +207,13 @@ def update!(**args) end # Request to update a batch of jobs. - class GoogleCloudTalentV4BatchUpdateJobsRequest + class BatchUpdateJobsRequest include Google::Apis::Core::Hashable # Required. The jobs to be updated. A maximum of 200 jobs can be updated in a # batch. # Corresponds to the JSON property `jobs` - # @return [Array] + # @return [Array] attr_accessor :jobs # Strongly recommended for the best service experience. Be aware that it will @@ -488,13 +241,13 @@ def update!(**args) # The result of JobService.BatchUpdateJobs. It's used to replace google. # longrunning.Operation.response in case of success. - class GoogleCloudTalentV4BatchUpdateJobsResponse + class BatchUpdateJobsResponse include Google::Apis::Core::Hashable # List of job mutation results from a batch update operation. It can change # until operation status is FINISHED, FAILED or CANCELLED. # Corresponds to the JSON property `jobResults` - # @return [Array] + # @return [Array] attr_accessor :job_results def initialize(**args) @@ -512,7 +265,7 @@ def update!(**args) # quality of results 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 GoogleCloudTalentV4ClientEvent + class ClientEvent include Google::Apis::Core::Hashable # Required. The timestamp of the event. @@ -534,7 +287,7 @@ class GoogleCloudTalentV4ClientEvent # 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::JobsV4::GoogleCloudTalentV4JobEvent] + # @return [Google::Apis::JobsV4::JobEvent] attr_accessor :job_event # Strongly recommended for the best service experience. A unique ID generated in @@ -558,7 +311,7 @@ def update!(**args) end # Parameters needed for commute search. - class GoogleCloudTalentV4CommuteFilter + class CommuteFilter include Google::Apis::Core::Hashable # If `true`, jobs without street level addresses may also be returned. For city @@ -588,8 +341,8 @@ class GoogleCloudTalentV4CommuteFilter # @return [String] attr_accessor :road_traffic - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `startCoordinates` @@ -617,13 +370,40 @@ def update!(**args) end end - # A Company resource represents a company in the service. A company is the - # entity that owns job postings, that is, the hiring entity responsible for - # employing applicants for the job position. - class GoogleCloudTalentV4Company + # Commute details related to this job. + class CommuteInfo include Google::Apis::Core::Hashable - # The URI to employer's career site or careers page on the employer's web site, + # A resource that represents a location with full geographic information. + # Corresponds to the JSON property `jobLocation` + # @return [Google::Apis::JobsV4::Location] + attr_accessor :job_location + + # The number of seconds required to travel to the job location from the query + # location. A duration of 0 seconds indicates that the job isn't reachable + # within the requested duration, but was returned as part of an expanded query. + # Corresponds to the JSON property `travelDuration` + # @return [String] + attr_accessor :travel_duration + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @job_location = args[:job_location] if args.key?(:job_location) + @travel_duration = args[:travel_duration] if args.key?(:travel_duration) + end + end + + # A Company resource represents a company in the service. A company is the + # entity that owns job postings, that is, the hiring entity responsible for + # employing applicants for the job position. + class Company + include Google::Apis::Core::Hashable + + # The URI to employer's career site or careers page on the employer's web site, # for example, "https://careers.google.com". # Corresponds to the JSON property `careerSiteUri` # @return [String] @@ -631,7 +411,7 @@ class GoogleCloudTalentV4Company # Derived details about the company. # Corresponds to the JSON property `derivedInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompanyDerivedInfo] + # @return [Google::Apis::JobsV4::CompanyDerivedInfo] attr_accessor :derived_info # Required. The display name of the company, for example, "Google LLC". @@ -732,12 +512,12 @@ def update!(**args) end # Derived details about the company. - class GoogleCloudTalentV4CompanyDerivedInfo + class CompanyDerivedInfo include Google::Apis::Core::Hashable # A resource that represents a location with full geographic information. # Corresponds to the JSON property `headquartersLocation` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Location] + # @return [Google::Apis::JobsV4::Location] attr_accessor :headquarters_location def initialize(**args) @@ -750,8 +530,66 @@ def update!(**args) end end + # A compensation entry that represents one component of compensation, such as + # base pay, bonus, or other compensation type. Annualization: One compensation + # entry can be annualized if - it contains valid amount or range. - and its + # expected_units_per_year is set or can be derived. Its annualized range is + # determined as (amount or range) times expected_units_per_year. + class CompensationEntry + include Google::Apis::Core::Hashable + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::JobsV4::Money] + attr_accessor :amount + + # Compensation description. For example, could indicate equity terms or provide + # additional context to an estimated bonus. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Expected number of units paid each year. If not specified, when Job. + # employment_types is FULLTIME, a default value is inferred based on unit. + # Default values: - HOURLY: 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - + # ANNUAL: 1 + # Corresponds to the JSON property `expectedUnitsPerYear` + # @return [Float] + attr_accessor :expected_units_per_year + + # Compensation range. + # Corresponds to the JSON property `range` + # @return [Google::Apis::JobsV4::CompensationRange] + attr_accessor :range + + # Compensation type. Default is CompensationType.COMPENSATION_TYPE_UNSPECIFIED. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Frequency of the specified amount. Default is CompensationUnit. + # COMPENSATION_UNIT_UNSPECIFIED. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @description = args[:description] if args.key?(:description) + @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year) + @range = args[:range] if args.key?(:range) + @type = args[:type] if args.key?(:type) + @unit = args[:unit] if args.key?(:unit) + end + end + # Filter on job compensation type and amount. - class GoogleCloudTalentV4CompensationFilter + class CompensationFilter include Google::Apis::Core::Hashable # If set to true, jobs with unspecified compensation range fields are included. @@ -762,7 +600,7 @@ class GoogleCloudTalentV4CompensationFilter # Compensation range. # Corresponds to the JSON property `range` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange] + # @return [Google::Apis::JobsV4::CompensationRange] attr_accessor :range # Required. Type of filter. @@ -790,24 +628,24 @@ def update!(**args) end # Job compensation details. - class GoogleCloudTalentV4CompensationInfo + class CompensationInfo include Google::Apis::Core::Hashable # Compensation range. # Corresponds to the JSON property `annualizedBaseCompensationRange` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange] + # @return [Google::Apis::JobsV4::CompensationRange] attr_accessor :annualized_base_compensation_range # Compensation range. # Corresponds to the JSON property `annualizedTotalCompensationRange` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange] + # @return [Google::Apis::JobsV4::CompensationRange] attr_accessor :annualized_total_compensation_range # Job compensation information. At most one entry can be of type # CompensationInfo.CompensationType.BASE, which is referred as **base # compensation entry** for the job. # Corresponds to the JSON property `entries` - # @return [Array] + # @return [Array] attr_accessor :entries def initialize(**args) @@ -822,66 +660,8 @@ def update!(**args) end end - # A compensation entry that represents one component of compensation, such as - # base pay, bonus, or other compensation type. Annualization: One compensation - # entry can be annualized if - it contains valid amount or range. - and its - # expected_units_per_year is set or can be derived. Its annualized range is - # determined as (amount or range) times expected_units_per_year. - class GoogleCloudTalentV4CompensationInfoCompensationEntry - include Google::Apis::Core::Hashable - - # Represents an amount of money with its currency type. - # Corresponds to the JSON property `amount` - # @return [Google::Apis::JobsV4::Money] - attr_accessor :amount - - # Compensation description. For example, could indicate equity terms or provide - # additional context to an estimated bonus. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Expected number of units paid each year. If not specified, when Job. - # employment_types is FULLTIME, a default value is inferred based on unit. - # Default values: - HOURLY: 2080 - DAILY: 260 - WEEKLY: 52 - MONTHLY: 12 - - # ANNUAL: 1 - # Corresponds to the JSON property `expectedUnitsPerYear` - # @return [Float] - attr_accessor :expected_units_per_year - - # Compensation range. - # Corresponds to the JSON property `range` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange] - attr_accessor :range - - # Compensation type. Default is CompensationType.COMPENSATION_TYPE_UNSPECIFIED. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # Frequency of the specified amount. Default is CompensationUnit. - # COMPENSATION_UNIT_UNSPECIFIED. - # Corresponds to the JSON property `unit` - # @return [String] - attr_accessor :unit - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @amount = args[:amount] if args.key?(:amount) - @description = args[:description] if args.key?(:description) - @expected_units_per_year = args[:expected_units_per_year] if args.key?(:expected_units_per_year) - @range = args[:range] if args.key?(:range) - @type = args[:type] if args.key?(:type) - @unit = args[:unit] if args.key?(:unit) - end - end - # Compensation range. - class GoogleCloudTalentV4CompensationInfoCompensationRange + class CompensationRange include Google::Apis::Core::Hashable # Represents an amount of money with its currency type. @@ -906,17 +686,17 @@ def update!(**args) end # Response of auto-complete query. - class GoogleCloudTalentV4CompleteQueryResponse + class CompleteQueryResponse include Google::Apis::Core::Hashable # Results of the matching job/company candidates. # Corresponds to the JSON property `completionResults` - # @return [Array] + # @return [Array] attr_accessor :completion_results # Additional information returned to client, such as debugging information. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata] + # @return [Google::Apis::JobsV4::ResponseMetadata] attr_accessor :metadata def initialize(**args) @@ -931,7 +711,7 @@ def update!(**args) end # Resource that represents completion results. - class GoogleCloudTalentV4CompleteQueryResponseCompletionResult + class CompletionResult include Google::Apis::Core::Hashable # The URI of the company image for COMPANY_NAME. @@ -962,7 +742,7 @@ def update!(**args) end # Custom attribute values that are either filterable or non-filterable. - class GoogleCloudTalentV4CustomAttribute + class CustomAttribute include Google::Apis::Core::Hashable # If the `filterable` flag is true, the custom field values may be used for @@ -1011,10 +791,49 @@ def update!(**args) end end + # Custom ranking information for SearchJobsRequest. + class CustomRankingInfo + include Google::Apis::Core::Hashable + + # Required. Controls over how important the score of CustomRankingInfo. + # ranking_expression gets applied to job's final ranking position. An error is + # thrown if not specified. + # Corresponds to the JSON property `importanceLevel` + # @return [String] + attr_accessor :importance_level + + # Required. Controls over how job documents get ranked on top of existing + # relevance score (determined by API algorithm). A combination of the ranking + # expression and relevance score is used to determine job's final ranking + # position. The syntax for this expression is a subset of Google SQL syntax. + # Supported operators are: +, -, *, /, where the left and right side of the + # operator is either a numeric Job.custom_attributes key, integer/double value + # or an expression that can be evaluated to a number. Parenthesis are supported + # to adjust calculation precedence. The expression must be < 100 characters in + # length. The expression is considered invalid for a job if the expression + # references custom attributes that are not populated on the job or if the + # expression results in a divide by zero. If an expression is invalid for a job, + # that job is demoted to the end of the results. Sample ranking expression (year + # + 25) * 0.25 - (freshness / 0.5) + # Corresponds to the JSON property `rankingExpression` + # @return [String] + attr_accessor :ranking_expression + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @importance_level = args[:importance_level] if args.key?(:importance_level) + @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression) + end + end + # Device information collected from the job seeker, candidate, or other entity # conducting the job search. Providing this information improves the quality of # the search results across devices. - class GoogleCloudTalentV4DeviceInfo + class DeviceInfo include Google::Apis::Core::Hashable # Type of the device. @@ -1039,8 +858,25 @@ def update!(**args) end end + # A generic empty message that you can re-use to avoid defining duplicated empty + # messages in your APIs. A typical example is to use it as the request or the + # response type of an API method. For instance: service Foo ` rpc Bar(google. + # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for + # `Empty` is empty JSON object ````. + class Empty + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # The histogram request. - class GoogleCloudTalentV4HistogramQuery + class HistogramQuery include Google::Apis::Core::Hashable # An expression specifies a histogram request against matching jobs for searches. @@ -1060,7 +896,7 @@ def update!(**args) end # Histogram result that matches HistogramQuery specified in searches. - class GoogleCloudTalentV4HistogramQueryResult + class HistogramQueryResult include Google::Apis::Core::Hashable # A map from the values of the facet associated with distinct values to the @@ -1092,7 +928,7 @@ def update!(**args) # A Job resource represents a job posting (also referred to as a "job listing" # or "job requisition"). A job belongs to a Company, which is the hiring entity # responsible for the job. - class GoogleCloudTalentV4Job + class Job include Google::Apis::Core::Hashable # Strongly recommended for the best service experience. Location(s) where the @@ -1112,7 +948,7 @@ class GoogleCloudTalentV4Job # Application related details of a job posting. # Corresponds to the JSON property `applicationInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4JobApplicationInfo] + # @return [Google::Apis::JobsV4::ApplicationInfo] attr_accessor :application_info # Required. The resource name of the company listing the job. The format is " @@ -1129,7 +965,7 @@ class GoogleCloudTalentV4Job # Job compensation details. # Corresponds to the JSON property `compensationInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfo] + # @return [Google::Apis::JobsV4::CompensationInfo] attr_accessor :compensation_info # A map of fields to hold both filterable and non-filterable custom job @@ -1141,7 +977,7 @@ class GoogleCloudTalentV4Job # characters. For unfilterable `string_values`, the maximum total size of ` # string_values` across all keys is 50KB. # Corresponds to the JSON property `customAttributes` - # @return [Hash] + # @return [Hash] attr_accessor :custom_attributes # The desired education degrees for the job, such as Bachelors, Masters. @@ -1157,7 +993,7 @@ class GoogleCloudTalentV4Job # Derived details about the job posting. # Corresponds to the JSON property `derivedInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4JobDerivedInfo] + # @return [Google::Apis::JobsV4::JobDerivedInfo] attr_accessor :derived_info # Required. The description of the job, which typically includes a multi- @@ -1285,7 +1121,7 @@ class GoogleCloudTalentV4Job # Options for job processing. # Corresponds to the JSON property `processingOptions` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4JobProcessingOptions] + # @return [Google::Apis::JobsV4::ProcessingOptions] attr_accessor :processing_options # A promotion value of the job, as determined by the client. The value @@ -1375,45 +1211,8 @@ def update!(**args) end end - # Application related details of a job posting. - class GoogleCloudTalentV4JobApplicationInfo - include Google::Apis::Core::Hashable - - # Use this field to specify email address(es) to which resumes or applications - # can be sent. The maximum number of allowed characters for each entry is 255. - # Corresponds to the JSON property `emails` - # @return [Array] - attr_accessor :emails - - # Use this field to provide instructions, such as "Mail your application to ...", - # that a candidate can follow to apply for the job. This field accepts and - # sanitizes HTML input, and also accepts bold, italic, ordered list, and - # unordered list markup tags. The maximum number of allowed characters is 3,000. - # Corresponds to the JSON property `instruction` - # @return [String] - attr_accessor :instruction - - # Use this URI field to direct an applicant to a website, for example to link to - # an online application form. The maximum number of allowed characters for each - # entry is 2,000. - # Corresponds to the JSON property `uris` - # @return [Array] - attr_accessor :uris - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @emails = args[:emails] if args.key?(:emails) - @instruction = args[:instruction] if args.key?(:instruction) - @uris = args[:uris] if args.key?(:uris) - end - end - # Derived details about the job posting. - class GoogleCloudTalentV4JobDerivedInfo + class JobDerivedInfo include Google::Apis::Core::Hashable # Job categories derived from Job.title and Job.description. @@ -1424,7 +1223,7 @@ class GoogleCloudTalentV4JobDerivedInfo # Structured locations of the job, resolved from Job.addresses. locations are # exactly matched to Job.addresses in the same order. # Corresponds to the JSON property `locations` - # @return [Array] + # @return [Array] attr_accessor :locations def initialize(**args) @@ -1440,7 +1239,7 @@ def update!(**args) # An event issued when a job seeker interacts with the application that # implements Cloud Talent Solution. - class GoogleCloudTalentV4JobEvent + class JobEvent include Google::Apis::Core::Hashable # Required. The job name(s) associated with this event. For example, if this is @@ -1468,43 +1267,13 @@ def update!(**args) end end - # Options for job processing. - class GoogleCloudTalentV4JobProcessingOptions - include Google::Apis::Core::Hashable - - # If set to `true`, the service does not attempt to resolve a more precise - # address for the job. - # Corresponds to the JSON property `disableStreetAddressResolution` - # @return [Boolean] - attr_accessor :disable_street_address_resolution - alias_method :disable_street_address_resolution?, :disable_street_address_resolution - - # Option for job HTML content sanitization. Applied fields are: * description * - # applicationInfo.instruction * incentives * qualifications * responsibilities - # HTML tags in these fields may be stripped if sanitiazation isn't disabled. - # Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. - # Corresponds to the JSON property `htmlSanitization` - # @return [String] - attr_accessor :html_sanitization - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) - @html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization) - end - end - - # The query required to perform a search query. - class GoogleCloudTalentV4JobQuery + # The query required to perform a search query. + class JobQuery include Google::Apis::Core::Hashable # Parameters needed for commute search. # Corresponds to the JSON property `commuteFilter` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CommuteFilter] + # @return [Google::Apis::JobsV4::CommuteFilter] attr_accessor :commute_filter # This filter specifies the company entities to search against. If a value isn't @@ -1528,7 +1297,7 @@ class GoogleCloudTalentV4JobQuery # Filter on job compensation type and amount. # Corresponds to the JSON property `compensationFilter` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompensationFilter] + # @return [Google::Apis::JobsV4::CompensationFilter] attr_accessor :compensation_filter # This filter specifies a structured syntax to match against the Job. @@ -1595,12 +1364,12 @@ class GoogleCloudTalentV4JobQuery # LocationFilter.distance_in_miles parameter, the maximum provided distance is # used for all locations. At most 5 location filters are allowed. # Corresponds to the JSON property `locationFilters` - # @return [Array] + # @return [Array] attr_accessor :location_filters # Message representing a period of time between two timestamps. # Corresponds to the JSON property `publishTimeRange` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4TimestampRange] + # @return [Google::Apis::JobsV4::TimestampRange] attr_accessor :publish_time_range # The query string that matches against the job title, description, and location @@ -1642,14 +1411,14 @@ def update!(**args) end # Mutation result of a job from a batch operation. - class GoogleCloudTalentV4JobResult + class JobResult include Google::Apis::Core::Hashable # A Job resource represents a job posting (also referred to as a "job listing" # or "job requisition"). A job belongs to a Company, which is the hiring entity # responsible for the job. # Corresponds to the JSON property `job` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Job] + # @return [Google::Apis::JobsV4::Job] attr_accessor :job # The `Status` type defines a logical error model that is suitable for different @@ -1673,18 +1442,46 @@ def update!(**args) end end + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless + # specified otherwise, this must conform to the WGS84 standard. Values must be + # within normalized ranges. + class LatLng + include Google::Apis::Core::Hashable + + # The latitude in degrees. It must be in the range [-90.0, +90.0]. + # Corresponds to the JSON property `latitude` + # @return [Float] + attr_accessor :latitude + + # The longitude in degrees. It must be in the range [-180.0, +180.0]. + # Corresponds to the JSON property `longitude` + # @return [Float] + attr_accessor :longitude + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + end + end + # The List companies response object. - class GoogleCloudTalentV4ListCompaniesResponse + class ListCompaniesResponse include Google::Apis::Core::Hashable # Companies for the current client. # Corresponds to the JSON property `companies` - # @return [Array] + # @return [Array] attr_accessor :companies # Additional information returned to client, such as debugging information. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata] + # @return [Google::Apis::JobsV4::ResponseMetadata] attr_accessor :metadata # A token to retrieve the next page of results. @@ -1705,18 +1502,18 @@ def update!(**args) end # List jobs response. - class GoogleCloudTalentV4ListJobsResponse + class ListJobsResponse include Google::Apis::Core::Hashable # The Jobs for a given company. The maximum number of items returned is based on # the limit field provided in the request. # Corresponds to the JSON property `jobs` - # @return [Array] + # @return [Array] attr_accessor :jobs # Additional information returned to client, such as debugging information. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata] + # @return [Google::Apis::JobsV4::ResponseMetadata] attr_accessor :metadata # A token to retrieve the next page of results. @@ -1737,12 +1534,12 @@ def update!(**args) end # The List tenants response object. - class GoogleCloudTalentV4ListTenantsResponse + class ListTenantsResponse include Google::Apis::Core::Hashable # Additional information returned to client, such as debugging information. # Corresponds to the JSON property `metadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata] + # @return [Google::Apis::JobsV4::ResponseMetadata] attr_accessor :metadata # A token to retrieve the next page of results. @@ -1752,7 +1549,7 @@ class GoogleCloudTalentV4ListTenantsResponse # Tenants for the current client. # Corresponds to the JSON property `tenants` - # @return [Array] + # @return [Array] attr_accessor :tenants def initialize(**args) @@ -1768,11 +1565,11 @@ def update!(**args) end # A resource that represents a location with full geographic information. - class GoogleCloudTalentV4Location + class Location include Google::Apis::Core::Hashable - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `latLng` @@ -1823,7 +1620,7 @@ def update!(**args) end # Geographic region of the search. - class GoogleCloudTalentV4LocationFilter + class LocationFilter include Google::Apis::Core::Hashable # The address name, such as "Mountain View" or "Bay Area". @@ -1838,8 +1635,8 @@ class GoogleCloudTalentV4LocationFilter # @return [Float] attr_accessor :distance_in_miles - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless + # An object that represents a latitude/longitude pair. This is expressed as a + # pair of doubles to represent degrees latitude and degrees longitude. Unless # specified otherwise, this must conform to the WGS84 standard. Values must be # within normalized ranges. # Corresponds to the JSON property `latLng` @@ -1887,59 +1684,42 @@ def update!(**args) end end - # Meta information related to the job searcher or entity conducting the job - # search. This information is used to improve the performance of the service. - class GoogleCloudTalentV4RequestMetadata + # Job entry with metadata inside SearchJobsResponse. + class MatchingJob include Google::Apis::Core::Hashable - # Only set when any of domain, session_id and user_id isn't available for some - # reason. It is highly recommended not to set this field and provide accurate - # domain, session_id and user_id for the best service experience. - # Corresponds to the JSON property `allowMissingIds` - # @return [Boolean] - attr_accessor :allow_missing_ids - alias_method :allow_missing_ids?, :allow_missing_ids + # Commute details related to this job. + # Corresponds to the JSON property `commuteInfo` + # @return [Google::Apis::JobsV4::CommuteInfo] + attr_accessor :commute_info - # Device information collected from the job seeker, candidate, or other entity - # conducting the job search. Providing this information improves the quality of - # the search results across devices. - # Corresponds to the JSON property `deviceInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4DeviceInfo] - attr_accessor :device_info + # A Job resource represents a job posting (also referred to as a "job listing" + # or "job requisition"). A job belongs to a Company, which is the hiring entity + # responsible for the job. + # Corresponds to the JSON property `job` + # @return [Google::Apis::JobsV4::Job] + attr_accessor :job - # Required if allow_missing_ids is unset or `false`. The client-defined scope or - # source of the service call, which typically is the domain on which the service - # has been implemented and is currently being run. For example, if the service - # is being run by client *Foo, Inc.*, on job board www.foo.com and career site - # www.bar.com, then this field is set to "foo.com" for use on the job board, and - # "bar.com" for use on the career site. Note that any improvements to the model - # for a particular tenant site rely on this field being set correctly to a - # unique domain. The maximum number of allowed characters is 255. - # Corresponds to the JSON property `domain` + # A summary of the job with core information that's displayed on the search + # results listing page. + # Corresponds to the JSON property `jobSummary` # @return [String] - attr_accessor :domain + attr_accessor :job_summary - # Required if allow_missing_ids is unset or `false`. A unique session - # identification string. A session is defined as the duration of an end user's - # interaction with the service over a certain period. Obfuscate this field for - # privacy concerns before providing it to the service. Note that any - # improvements to the model for a particular tenant site rely on this field - # being set correctly to a unique session ID. The maximum number of allowed - # characters is 255. - # Corresponds to the JSON property `sessionId` + # Contains snippets of text from the Job.title field most closely matching a + # search query's keywords, if available. The matching query keywords are + # enclosed in HTML bold tags. + # Corresponds to the JSON property `jobTitleSnippet` # @return [String] - attr_accessor :session_id + attr_accessor :job_title_snippet - # Required if allow_missing_ids is unset or `false`. A unique user - # identification string, as determined by the client. To have the strongest - # positive impact on search quality make sure the client-level is unique. - # Obfuscate this field for privacy concerns before providing it to the service. - # Note that any improvements to the model for a particular tenant site rely on - # this field being set correctly to a unique user ID. The maximum number of - # allowed characters is 255. - # Corresponds to the JSON property `userId` + # Contains snippets of text from the Job.description and similar fields that + # most closely match a search query's keywords, if available. All HTML tags in + # the original fields are stripped when returned in this field, and matching + # query keywords are enclosed in HTML bold tags. + # Corresponds to the JSON property `searchTextSnippet` # @return [String] - attr_accessor :user_id + attr_accessor :search_text_snippet def initialize(**args) update!(**args) @@ -1947,22 +1727,63 @@ def initialize(**args) # Update properties of this object def update!(**args) - @allow_missing_ids = args[:allow_missing_ids] if args.key?(:allow_missing_ids) - @device_info = args[:device_info] if args.key?(:device_info) - @domain = args[:domain] if args.key?(:domain) - @session_id = args[:session_id] if args.key?(:session_id) - @user_id = args[:user_id] if args.key?(:user_id) + @commute_info = args[:commute_info] if args.key?(:commute_info) + @job = args[:job] if args.key?(:job) + @job_summary = args[:job_summary] if args.key?(:job_summary) + @job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet) + @search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet) end end - # Additional information returned to client, such as debugging information. - class GoogleCloudTalentV4ResponseMetadata + # Message representing input to a Mendel server for debug forcing. See go/mendel- + # debug-forcing for more details. Next ID: 2 + class MendelDebugInput include Google::Apis::Core::Hashable - # A unique id associated with this call. This id is logged for tracking purposes. - # Corresponds to the JSON property `requestId` + # When a request spans multiple servers, a MendelDebugInput may travel with the + # request and take effect in all the servers. This field is a map of namespaces + # to NamespacedMendelDebugInput protos. In a single server, up to two + # NamespacedMendelDebugInput protos are applied: 1. NamespacedMendelDebugInput + # with the global namespace (key == ""). 2. NamespacedMendelDebugInput with the + # server's namespace. When both NamespacedMendelDebugInput protos are present, + # they are merged. See go/mendel-debug-forcing for more details. + # Corresponds to the JSON property `namespacedDebugInput` + # @return [Hash] + attr_accessor :namespaced_debug_input + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @namespaced_debug_input = args[:namespaced_debug_input] if args.key?(:namespaced_debug_input) + end + end + + # Represents an amount of money with its currency type. + class Money + include Google::Apis::Core::Hashable + + # The three-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` # @return [String] - attr_accessor :request_id + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. The value must be between -999,999, + # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be + # positive or zero. If `units` is zero, `nanos` can be positive, zero, or + # negative. If `units` is negative, `nanos` must be negative or zero. For + # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. For example if `currencyCode` is `"USD"`, then + # 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units def initialize(**args) update!(**args) @@ -1970,823 +1791,122 @@ def initialize(**args) # Update properties of this object def update!(**args) - @request_id = args[:request_id] if args.key?(:request_id) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) end end - # The Request body of the `SearchJobs` call. - class GoogleCloudTalentV4SearchJobsRequest + # Next ID: 15 + class NamespacedDebugInput include Google::Apis::Core::Hashable - # Custom ranking information for SearchJobsRequest. - # Corresponds to the JSON property `customRankingInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo] - attr_accessor :custom_ranking_info + # Set of experiment names to be absolutely forced. These experiments will be + # forced without evaluating the conditions. + # Corresponds to the JSON property `absolutelyForcedExpNames` + # @return [Array] + attr_accessor :absolutely_forced_exp_names - # Controls whether to disable exact keyword match on Job.title, Job.description, - # Job.company_display_name, Job.addresses, Job.qualifications. When disable - # keyword match is turned off, a keyword match returns jobs that do not match - # given category filters when there are matching keywords. For example, for the - # query "program manager," a result is returned even if the job posting has the - # title "software developer," which doesn't fall into "program manager" ontology, - # but does have "program manager" appearing in its description. For queries - # like "cloud" that don't contain title or location specific ontology, jobs with - # "cloud" keyword matches are returned regardless of this flag's value. Use - # Company.keyword_searchable_job_custom_attributes if company-specific globally - # matched custom field/attribute string values are needed. Enabling keyword - # match improves recall of subsequent search requests. Defaults to false. - # Corresponds to the JSON property `disableKeywordMatch` - # @return [Boolean] - attr_accessor :disable_keyword_match - alias_method :disable_keyword_match?, :disable_keyword_match + # Set of experiment tags to be absolutely forced. The experiments with these + # tags will be forced without evaluating the conditions. + # Corresponds to the JSON property `absolutelyForcedExpTags` + # @return [Array] + attr_accessor :absolutely_forced_exp_tags - # Controls whether highly similar jobs are returned next to each other in the - # search results. Jobs are identified as highly similar based on their titles, - # job categories, and locations. Highly similar results are clustered so that - # only one representative job of the cluster is displayed to the job seeker - # higher up in the results, with the other jobs being displayed lower down in - # the results. Defaults to DiversificationLevel.SIMPLE if no value is specified. - # Corresponds to the JSON property `diversificationLevel` - # @return [String] - attr_accessor :diversification_level + # Set of experiment ids to be absolutely forced. These ids will be forced + # without evaluating the conditions. + # Corresponds to the JSON property `absolutelyForcedExps` + # @return [Array] + attr_accessor :absolutely_forced_exps - # Controls whether to broaden the search when it produces sparse results. - # Broadened queries append results to the end of the matching results list. - # Defaults to false. - # Corresponds to the JSON property `enableBroadening` - # @return [Boolean] - attr_accessor :enable_broadening - alias_method :enable_broadening?, :enable_broadening + # Set of experiment names to be conditionally forced. These experiments will be + # forced only if their conditions and their parent domain's conditions are true. + # Corresponds to the JSON property `conditionallyForcedExpNames` + # @return [Array] + attr_accessor :conditionally_forced_exp_names - # An expression specifies a histogram request against matching jobs. Expression - # syntax is an aggregation function call with histogram facets and other options. - # Available aggregation function calls are: * `count(string_histogram_facet)`: - # Count the number of matching entities, for each distinct attribute value. * ` - # count(numeric_histogram_facet, list of buckets)`: Count the number of matching - # entities within each bucket. Data types: * Histogram facet: facet names with - # format a-zA-Z+. * String: string like "any string with backslash escape for - # quote(\")." * Number: whole number and floating point number like 10, -1 and - - # 0.01. * List: list of elements with comma(,) separator surrounded by square - # brackets, for example, [1, 2, 3] and ["one", "two", "three"]. Built-in - # constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX ( - # maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket( - # start, end[, label]): bucket built-in function creates a bucket with range of - # start, end). Note that the end is exclusive, for example, bucket(1, MAX, " - # positive number") or bucket(1, 10). Job histogram facets: * - # company_display_name: histogram by [Job.company_display_name. * - # employment_type: histogram by Job.employment_types, for example, "FULL_TIME", " - # PART_TIME". * company_size: histogram by CompanySize, for example, "SMALL", " - # MEDIUM", "BIG". * publish_time_in_month: histogram by the Job. - # posting_publish_time in months. Must specify list of numeric buckets in spec. * - # publish_time_in_year: histogram by the Job.posting_publish_time in years. - # Must specify list of numeric buckets in spec. * degree_types: histogram by the - # Job.degree_types, for example, "Bachelors", "Masters". * job_level: histogram - # by the Job.job_level, for example, "Entry Level". * country: histogram by the - # country code of jobs, for example, "US", "FR". * admin1: histogram by the - # admin1 code of jobs, which is a global placeholder referring to the state, - # province, or the particular term a country uses to define the geographic - # structure below the country level, for example, "CA", "IL". * city: histogram - # by a combination of the "city name, admin1 code". For example, "Mountain View, - # CA", "New York, NY". * admin1_country: histogram by a combination of the " - # admin1 code, country", for example, "CA, US", "IL, US". * city_coordinate: - # histogram by the city center's GPS coordinates (latitude and longitude), for - # example, 37.4038522,-122.0987765. Since the coordinates of a city center can - # change, customers may need to refresh them periodically. * locale: histogram - # by the Job.language_code, for example, "en-US", "fr-FR". * language: histogram - # by the language subtag of the Job.language_code, for example, "en", "fr". * - # category: histogram by the JobCategory, for example, "COMPUTER_AND_IT", " - # HEALTHCARE". * base_compensation_unit: histogram by the CompensationInfo. - # CompensationUnit of base salary, for example, "WEEKLY", "MONTHLY". * - # base_compensation: histogram by the base salary. Must specify list of numeric - # buckets to group results by. * annualized_base_compensation: histogram by the - # base annualized salary. Must specify list of numeric buckets to group results - # by. * annualized_total_compensation: histogram by the total annualized salary. - # Must specify list of numeric buckets to group results by. * - # string_custom_attribute: histogram by string Job.custom_attributes. Values can - # be accessed via square bracket notations like string_custom_attribute["key1"]. - # * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values - # can be accessed via square bracket notations like numeric_custom_attribute[" - # key1"]. Must specify list of numeric buckets to group results by. Example - # expressions: * `count(admin1)` * `count(base_compensation, [bucket(1000, 10000) - # , bucket(10000, 100000), bucket(100000, MAX)])` * `count( - # string_custom_attribute["some-string-custom-attribute"])` * `count( - # numeric_custom_attribute["some-numeric-custom-attribute"], [bucket(MIN, 0, " - # negative"), bucket(0, MAX, "non-negative"])` - # Corresponds to the JSON property `histogramQueries` - # @return [Array] - attr_accessor :histogram_queries - - # The query required to perform a search query. - # Corresponds to the JSON property `jobQuery` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4JobQuery] - attr_accessor :job_query - - # The desired job attributes returned for jobs in the search response. Defaults - # to JobView.JOB_VIEW_SMALL if no value is specified. - # Corresponds to the JSON property `jobView` - # @return [String] - attr_accessor :job_view - - # A limit on the number of jobs returned in the search results. Increasing this - # value above the default value of 10 can increase search response time. The - # value can be between 1 and 100. - # Corresponds to the JSON property `maxPageSize` - # @return [Fixnum] - attr_accessor :max_page_size - - # An integer that specifies the current offset (that is, starting result - # location, amongst the jobs deemed by the API as relevant) in search results. - # This field is only considered if page_token is unset. The maximum allowed - # value is 5000. Otherwise an error is thrown. For example, 0 means to return - # results starting from the first matching job, and 10 means to return from the - # 11th job. This can be used for pagination, (for example, pageSize = 10 and - # offset = 10 means to return from the second page). - # Corresponds to the JSON property `offset` - # @return [Fixnum] - attr_accessor :offset - - # The criteria determining how search results are sorted. Default is `"relevance - # desc"`. Supported options are: * `"relevance desc"`: By relevance descending, - # as determined by the API algorithms. Relevance thresholding of query results - # is only available with this ordering. * `"posting_publish_time desc"`: By Job. - # posting_publish_time descending. * `"posting_update_time desc"`: By Job. - # posting_update_time descending. * `"title"`: By Job.title ascending. * `"title - # desc"`: By Job.title descending. * `"annualized_base_compensation"`: By job's - # CompensationInfo.annualized_base_compensation_range ascending. Jobs whose - # annualized base compensation is unspecified are put at the end of search - # results. * `"annualized_base_compensation desc"`: By job's CompensationInfo. - # annualized_base_compensation_range descending. Jobs whose annualized base - # compensation is unspecified are put at the end of search results. * `" - # annualized_total_compensation"`: By job's CompensationInfo. - # annualized_total_compensation_range ascending. Jobs whose annualized base - # compensation is unspecified are put at the end of search results. * `" - # annualized_total_compensation desc"`: By job's CompensationInfo. - # annualized_total_compensation_range descending. Jobs whose annualized base - # compensation is unspecified are put at the end of search results. * `" - # custom_ranking desc"`: By the relevance score adjusted to the - # SearchJobsRequest.CustomRankingInfo.ranking_expression with weight factor - # assigned by SearchJobsRequest.CustomRankingInfo.importance_level in descending - # order. * Location sorting: Use the special syntax to order jobs by distance: `" - # distance_from('Hawaii')"`: Order by distance from Hawaii. `"distance_from(19. - # 89, 155.5)"`: Order by distance from a coordinate. `"distance_from('Hawaii'), - # distance_from('Puerto Rico')"`: Order by multiple locations. See details below. - # `"distance_from('Hawaii'), distance_from(19.89, 155.5)"`: Order by multiple - # locations. See details below. The string can have a maximum of 256 characters. - # When multiple distance centers are provided, a job that is close to any of the - # distance centers would have a high rank. When a job has multiple locations, - # the job location closest to one of the distance centers will be used. Jobs - # that don't have locations will be ranked at the bottom. Distance is calculated - # with a precision of 11.3 meters (37.4 feet). Diversification strategy is still - # applied unless explicitly disabled in diversification_level. - # Corresponds to the JSON property `orderBy` - # @return [String] - attr_accessor :order_by - - # The token specifying the current offset within search results. See - # SearchJobsResponse.next_page_token for an explanation of how to obtain the - # next set of query results. - # Corresponds to the JSON property `pageToken` - # @return [String] - attr_accessor :page_token - - # Meta information related to the job searcher or entity conducting the job - # search. This information is used to improve the performance of the service. - # Corresponds to the JSON property `requestMetadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4RequestMetadata] - attr_accessor :request_metadata - - # Mode of a search. Defaults to SearchMode.JOB_SEARCH. - # Corresponds to the JSON property `searchMode` - # @return [String] - attr_accessor :search_mode - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @custom_ranking_info = args[:custom_ranking_info] if args.key?(:custom_ranking_info) - @disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match) - @diversification_level = args[:diversification_level] if args.key?(:diversification_level) - @enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening) - @histogram_queries = args[:histogram_queries] if args.key?(:histogram_queries) - @job_query = args[:job_query] if args.key?(:job_query) - @job_view = args[:job_view] if args.key?(:job_view) - @max_page_size = args[:max_page_size] if args.key?(:max_page_size) - @offset = args[:offset] if args.key?(:offset) - @order_by = args[:order_by] if args.key?(:order_by) - @page_token = args[:page_token] if args.key?(:page_token) - @request_metadata = args[:request_metadata] if args.key?(:request_metadata) - @search_mode = args[:search_mode] if args.key?(:search_mode) - end - end - - # Custom ranking information for SearchJobsRequest. - class GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo - include Google::Apis::Core::Hashable - - # Required. Controls over how important the score of CustomRankingInfo. - # ranking_expression gets applied to job's final ranking position. An error is - # thrown if not specified. - # Corresponds to the JSON property `importanceLevel` - # @return [String] - attr_accessor :importance_level - - # Required. Controls over how job documents get ranked on top of existing - # relevance score (determined by API algorithm). A combination of the ranking - # expression and relevance score is used to determine job's final ranking - # position. The syntax for this expression is a subset of Google SQL syntax. - # Supported operators are: +, -, *, /, where the left and right side of the - # operator is either a numeric Job.custom_attributes key, integer/double value - # or an expression that can be evaluated to a number. Parenthesis are supported - # to adjust calculation precedence. The expression must be < 100 characters in - # length. The expression is considered invalid for a job if the expression - # references custom attributes that are not populated on the job or if the - # expression results in a divide by zero. If an expression is invalid for a job, - # that job is demoted to the end of the results. Sample ranking expression (year - # + 25) * 0.25 - (freshness / 0.5) - # Corresponds to the JSON property `rankingExpression` - # @return [String] - attr_accessor :ranking_expression - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @importance_level = args[:importance_level] if args.key?(:importance_level) - @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression) - end - end - - # Response for SearchJob method. - class GoogleCloudTalentV4SearchJobsResponse - include Google::Apis::Core::Hashable - - # If query broadening is enabled, we may append additional results from the - # broadened query. This number indicates how many of the jobs returned in the - # jobs field are from the broadened query. These results are always at the end - # of the jobs list. In particular, a value of 0, or if the field isn't set, all - # the jobs in the jobs list are from the original (without broadening) query. If - # this field is non-zero, subsequent requests with offset after this result set - # should contain all broadened results. - # Corresponds to the JSON property `broadenedQueryJobsCount` - # @return [Fixnum] - attr_accessor :broadened_query_jobs_count - - # The histogram results that match with specified SearchJobsRequest. - # histogram_queries. - # Corresponds to the JSON property `histogramQueryResults` - # @return [Array] - attr_accessor :histogram_query_results - - # The location filters that the service applied to the specified query. If any - # filters are lat-lng based, the Location.location_type is Location.LocationType. - # LOCATION_TYPE_UNSPECIFIED. - # Corresponds to the JSON property `locationFilters` - # @return [Array] - attr_accessor :location_filters - - # The Job entities that match the specified SearchJobsRequest. - # Corresponds to the JSON property `matchingJobs` - # @return [Array] - attr_accessor :matching_jobs - - # Additional information returned to client, such as debugging information. - # Corresponds to the JSON property `metadata` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata] - attr_accessor :metadata - - # The token that specifies the starting position of the next page of results. - # This field is empty if there are no more results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # Spell check result. - # Corresponds to the JSON property `spellCorrection` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4SpellingCorrection] - attr_accessor :spell_correction - - # Number of jobs that match the specified query. Note: This size is precise only - # if the total is less than 100,000. - # Corresponds to the JSON property `totalSize` - # @return [Fixnum] - attr_accessor :total_size - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @broadened_query_jobs_count = args[:broadened_query_jobs_count] if args.key?(:broadened_query_jobs_count) - @histogram_query_results = args[:histogram_query_results] if args.key?(:histogram_query_results) - @location_filters = args[:location_filters] if args.key?(:location_filters) - @matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs) - @metadata = args[:metadata] if args.key?(:metadata) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @spell_correction = args[:spell_correction] if args.key?(:spell_correction) - @total_size = args[:total_size] if args.key?(:total_size) - end - end - - # Commute details related to this job. - class GoogleCloudTalentV4SearchJobsResponseCommuteInfo - include Google::Apis::Core::Hashable - - # A resource that represents a location with full geographic information. - # Corresponds to the JSON property `jobLocation` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Location] - attr_accessor :job_location - - # The number of seconds required to travel to the job location from the query - # location. A duration of 0 seconds indicates that the job isn't reachable - # within the requested duration, but was returned as part of an expanded query. - # Corresponds to the JSON property `travelDuration` - # @return [String] - attr_accessor :travel_duration - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @job_location = args[:job_location] if args.key?(:job_location) - @travel_duration = args[:travel_duration] if args.key?(:travel_duration) - end - end - - # Job entry with metadata inside SearchJobsResponse. - class GoogleCloudTalentV4SearchJobsResponseMatchingJob - include Google::Apis::Core::Hashable - - # Commute details related to this job. - # Corresponds to the JSON property `commuteInfo` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponseCommuteInfo] - attr_accessor :commute_info - - # A Job resource represents a job posting (also referred to as a "job listing" - # or "job requisition"). A job belongs to a Company, which is the hiring entity - # responsible for the job. - # Corresponds to the JSON property `job` - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Job] - attr_accessor :job - - # A summary of the job with core information that's displayed on the search - # results listing page. - # Corresponds to the JSON property `jobSummary` - # @return [String] - attr_accessor :job_summary - - # Contains snippets of text from the Job.title field most closely matching a - # search query's keywords, if available. The matching query keywords are - # enclosed in HTML bold tags. - # Corresponds to the JSON property `jobTitleSnippet` - # @return [String] - attr_accessor :job_title_snippet - - # Contains snippets of text from the Job.description and similar fields that - # most closely match a search query's keywords, if available. All HTML tags in - # the original fields are stripped when returned in this field, and matching - # query keywords are enclosed in HTML bold tags. - # Corresponds to the JSON property `searchTextSnippet` - # @return [String] - attr_accessor :search_text_snippet - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @commute_info = args[:commute_info] if args.key?(:commute_info) - @job = args[:job] if args.key?(:job) - @job_summary = args[:job_summary] if args.key?(:job_summary) - @job_title_snippet = args[:job_title_snippet] if args.key?(:job_title_snippet) - @search_text_snippet = args[:search_text_snippet] if args.key?(:search_text_snippet) - end - end - - # Spell check result. - class GoogleCloudTalentV4SpellingCorrection - include Google::Apis::Core::Hashable - - # Indicates if the query was corrected by the spell checker. - # Corresponds to the JSON property `corrected` - # @return [Boolean] - attr_accessor :corrected - alias_method :corrected?, :corrected - - # Corrected output with html tags to highlight the corrected words. Corrected - # words are called out with the "*...*" html tags. For example, the user input - # query is "software enginear", where the second word, "enginear," is incorrect. - # It should be "engineer". When spelling correction is enabled, this value is " - # software *engineer*". - # Corresponds to the JSON property `correctedHtml` - # @return [String] - attr_accessor :corrected_html - - # Correction output consisting of the corrected keyword string. - # Corresponds to the JSON property `correctedText` - # @return [String] - attr_accessor :corrected_text - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @corrected = args[:corrected] if args.key?(:corrected) - @corrected_html = args[:corrected_html] if args.key?(:corrected_html) - @corrected_text = args[:corrected_text] if args.key?(:corrected_text) - end - end - - # A Tenant resource represents a tenant in the service. A tenant is a group or - # entity that shares common access with specific privileges for resources like - # jobs. Customer may create multiple tenants to provide data isolation for - # different groups. - class GoogleCloudTalentV4Tenant - include Google::Apis::Core::Hashable - - # Required. Client side tenant identifier, used to uniquely identify the tenant. - # The maximum number of allowed characters is 255. - # Corresponds to the JSON property `externalId` - # @return [String] - attr_accessor :external_id - - # Required during tenant update. The resource name for a tenant. This is - # generated by the service when a tenant is created. The format is "projects/` - # project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/bar". - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @external_id = args[:external_id] if args.key?(:external_id) - @name = args[:name] if args.key?(:name) - end - end - - # Message representing a period of time between two timestamps. - class GoogleCloudTalentV4TimestampRange - include Google::Apis::Core::Hashable - - # End of the period (exclusive). - # Corresponds to the JSON property `endTime` - # @return [String] - attr_accessor :end_time - - # Begin of the period (inclusive). - # Corresponds to the JSON property `startTime` - # @return [String] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @end_time = args[:end_time] if args.key?(:end_time) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # A Job resource represents a job posting (also referred to as a "job listing" - # or "job requisition"). A job belongs to a Company, which is the hiring entity - # responsible for the job. - class Job - include Google::Apis::Core::Hashable - - # Strongly recommended for the best service experience. Location(s) where the - # employer is looking to hire for this job posting. Specifying the full street - # address(es) of the hiring location enables better API results, especially job - # searches by commute time. At most 50 locations are allowed for best search - # performance. If a job has more locations, it is suggested to split it into - # multiple jobs with unique requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA- - # 2', and so on.) as multiple jobs with the same company, language_code and - # requisition_id are not allowed. If the original requisition_id must be - # preserved, a custom field should be used for storage. It is also suggested to - # group the locations that close to each other in the same job for better search - # experience. The maximum number of allowed characters is 500. - # Corresponds to the JSON property `addresses` - # @return [Array] - attr_accessor :addresses - - # Application related details of a job posting. - # Corresponds to the JSON property `applicationInfo` - # @return [Google::Apis::JobsV4::ApplicationInfo] - attr_accessor :application_info - - # Required. The resource name of the company listing the job. The format is " - # projects/`project_id`/tenants/`tenant_id`/companies/`company_id`". For example, - # "projects/foo/tenants/bar/companies/baz". If tenant id is unspecified, the - # default tenant is used. For example, "projects/foo/companies/bar". - # Corresponds to the JSON property `company` - # @return [String] - attr_accessor :company - - # Output only. Display name of the company listing the job. - # Corresponds to the JSON property `companyDisplayName` - # @return [String] - attr_accessor :company_display_name - - # Job compensation details. - # Corresponds to the JSON property `compensationInfo` - # @return [Google::Apis::JobsV4::CompensationInfo] - attr_accessor :compensation_info - - # A map of fields to hold both filterable and non-filterable custom job - # attributes that are not covered by the provided structured fields. The keys of - # the map are strings up to 64 bytes and must match the pattern: a-zA-Z*. For - # example, key0LikeThis or KEY_1_LIKE_THIS. At most 100 filterable and at most - # 100 unfilterable keys are supported. For filterable `string_values`, across - # all keys at most 200 values are allowed, with each string no more than 255 - # characters. For unfilterable `string_values`, the maximum total size of ` - # string_values` across all keys is 50KB. - # Corresponds to the JSON property `customAttributes` - # @return [Hash] - attr_accessor :custom_attributes - - # The desired education degrees for the job, such as Bachelors, Masters. - # Corresponds to the JSON property `degreeTypes` + # Set of experiment tags to be conditionally forced. The experiments with these + # tags will be forced only if their conditions and their parent domain's + # conditions are true. + # Corresponds to the JSON property `conditionallyForcedExpTags` # @return [Array] - attr_accessor :degree_types - - # The department or functional area within the company with the open position. - # The maximum number of allowed characters is 255. - # Corresponds to the JSON property `department` - # @return [String] - attr_accessor :department - - # Derived details about the job posting. - # Corresponds to the JSON property `derivedInfo` - # @return [Google::Apis::JobsV4::JobDerivedInfo] - attr_accessor :derived_info - - # Required. The description of the job, which typically includes a multi- - # paragraph description of the company and related information. Separate fields - # are provided on the job object for responsibilities, qualifications, and other - # job characteristics. Use of these separate job fields is recommended. This - # field accepts and sanitizes HTML input, and also accepts bold, italic, ordered - # list, and unordered list markup tags. The maximum number of allowed characters - # is 100,000. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description + attr_accessor :conditionally_forced_exp_tags - # The employment type(s) of a job, for example, full time or part time. - # Corresponds to the JSON property `employmentTypes` - # @return [Array] - attr_accessor :employment_types + # Set of experiment ids to be conditionally forced. These ids will be forced + # only if their conditions and their parent domain's conditions are true. + # Corresponds to the JSON property `conditionallyForcedExps` + # @return [Array] + attr_accessor :conditionally_forced_exps - # A description of bonus, commission, and other compensation incentives - # associated with the job not including salary or pay. The maximum number of - # allowed characters is 10,000. - # Corresponds to the JSON property `incentives` - # @return [String] - attr_accessor :incentives + # If true, disable automatic enrollment selection (at all diversion points). + # Automatic enrollment selection means experiment selection process based on the + # experiment's automatic enrollment condition. This does not disable selection + # of forced experiments. + # Corresponds to the JSON property `disableAutomaticEnrollmentSelection` + # @return [Boolean] + attr_accessor :disable_automatic_enrollment_selection + alias_method :disable_automatic_enrollment_selection?, :disable_automatic_enrollment_selection - # The benefits included with the job. - # Corresponds to the JSON property `jobBenefits` + # Set of experiment names to be disabled. If an experiment is disabled, it is + # never selected nor forced. If an aggregate experiment is disabled, its + # partitions are disabled together. If an experiment with an enrollment is + # disabled, the enrollment is disabled together. If a name corresponds to a + # domain, the domain itself and all descendant experiments and domains are + # disabled together. + # Corresponds to the JSON property `disableExpNames` # @return [Array] - attr_accessor :job_benefits - - # The end timestamp of the job. Typically this field is used for contracting - # engagements. Invalid timestamps are ignored. - # Corresponds to the JSON property `jobEndTime` - # @return [String] - attr_accessor :job_end_time - - # The experience level associated with the job, such as "Entry Level". - # Corresponds to the JSON property `jobLevel` - # @return [String] - attr_accessor :job_level - - # The start timestamp of the job in UTC time zone. Typically this field is used - # for contracting engagements. Invalid timestamps are ignored. - # Corresponds to the JSON property `jobStartTime` - # @return [String] - attr_accessor :job_start_time - - # The language of the posting. This field is distinct from any requirements for - # fluency that are associated with the job. Language codes must be in BCP-47 - # format, such as "en-US" or "sr-Latn". For more information, see [Tags for - # Identifying Languages](https://tools.ietf.org/html/bcp47)`: class="external" - # target="_blank" `. If this field is unspecified and Job.description is present, - # detected language code based on Job.description is assigned, otherwise - # defaults to 'en_US'. - # Corresponds to the JSON property `languageCode` - # @return [String] - attr_accessor :language_code - - # 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`/ - # tenants/`tenant_id`/jobs/`job_id`". For example, "projects/foo/tenants/bar/ - # jobs/baz". If tenant id is unspecified, the default tenant is used. For - # example, "projects/foo/jobs/bar". Use of this field in job queries and API - # calls is preferred over the use of requisition_id since this value is unique. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Output only. The timestamp when this job posting was created. - # Corresponds to the JSON property `postingCreateTime` - # @return [String] - attr_accessor :posting_create_time - - # Strongly recommended for the best service experience. The expiration timestamp - # of the job. After this timestamp, the job is marked as expired, and it no - # longer appears in search results. The expired job can't be listed by the - # ListJobs API, but it can be retrieved with the GetJob API or updated with the - # UpdateJob API or deleted with the DeleteJob API. An expired job can be updated - # and opened again by using a future expiration timestamp. Updating an expired - # job fails if there is another existing open job with same company, - # language_code and requisition_id. The expired jobs are retained in our system - # for 90 days. However, the overall expired job count cannot exceed 3 times the - # maximum number of open jobs over previous 7 days. If this threshold is - # exceeded, expired jobs are cleaned out in order of earliest expire time. - # Expired jobs are no longer accessible after they are cleaned out. Invalid - # timestamps are ignored, and treated as expire time not provided. If the - # timestamp is before the instant request is made, the job is treated as expired - # immediately on creation. This kind of job can not be updated. And when - # creating a job with past timestamp, the posting_publish_time must be set - # before posting_expire_time. The purpose of this feature is to allow other - # objects, such as Application, to refer a job that didn't exist in the system - # prior to becoming expired. If you want to modify a job that was expired on - # creation, delete it and create a new one. If this value isn't provided at the - # time of job creation or is invalid, the job posting expires after 30 days from - # the job's creation time. For example, if the job was created on 2017/01/01 13: - # 00AM UTC with an unspecified expiration date, the job expires after 2017/01/31 - # 13:00AM UTC. If this value isn't provided on job update, it depends on the - # field masks set by UpdateJobRequest.update_mask. If the field masks include - # job_end_time, or the masks are empty meaning that every field is updated, the - # job posting expires after 30 days from the job's last update time. Otherwise - # the expiration date isn't updated. - # Corresponds to the JSON property `postingExpireTime` - # @return [String] - attr_accessor :posting_expire_time - - # The timestamp this job posting was most recently published. The default value - # is the time the request arrives at the server. Invalid timestamps are ignored. - # Corresponds to the JSON property `postingPublishTime` - # @return [String] - attr_accessor :posting_publish_time - - # 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 to the same location level as - # this field is strongly recommended. - # Corresponds to the JSON property `postingRegion` - # @return [String] - attr_accessor :posting_region - - # Output only. The timestamp when this job posting was last updated. - # Corresponds to the JSON property `postingUpdateTime` - # @return [String] - attr_accessor :posting_update_time - - # Options for job processing. - # Corresponds to the JSON property `processingOptions` - # @return [Google::Apis::JobsV4::ProcessingOptions] - attr_accessor :processing_options - - # A promotion value of the job, as determined by the client. The value - # determines the sort order of the jobs returned when searching for jobs using - # the featured jobs search call, with higher promotional values being returned - # first and ties being resolved by relevance sort. Only the jobs with a - # promotionValue >0 are returned in a FEATURED_JOB_SEARCH. Default value is 0, - # and negative values are treated as 0. - # Corresponds to the JSON property `promotionValue` - # @return [Fixnum] - attr_accessor :promotion_value - - # A description of the qualifications required to perform the job. The use of - # this field is recommended as an alternative to using the more general - # description field. This field accepts and sanitizes HTML input, and also - # accepts bold, italic, ordered list, and unordered list markup tags. The - # maximum number of allowed characters is 10,000. - # Corresponds to the JSON property `qualifications` - # @return [String] - attr_accessor :qualifications - - # Required. The requisition ID, also referred to as the posting ID, is assigned - # by the client to identify a job. This field is intended to be used by clients - # for client identification and tracking of postings. A job isn't allowed to be - # created if there is another job with the same company, language_code and - # requisition_id. The maximum number of allowed characters is 255. - # Corresponds to the JSON property `requisitionId` - # @return [String] - attr_accessor :requisition_id - - # A description of job responsibilities. The use of this field is recommended as - # an alternative to using the more general description field. This field accepts - # and sanitizes HTML input, and also accepts bold, italic, ordered list, and - # unordered list markup tags. The maximum number of allowed characters is 10,000. - # Corresponds to the JSON property `responsibilities` - # @return [String] - attr_accessor :responsibilities - - # Required. The title of the job, such as "Software Engineer" The maximum number - # of allowed characters is 500. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - # Deprecated. The job is only visible to the owner. The visibility of the job. - # Defaults to Visibility.ACCOUNT_ONLY if not specified. - # Corresponds to the JSON property `visibility` - # @return [String] - attr_accessor :visibility - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @addresses = args[:addresses] if args.key?(:addresses) - @application_info = args[:application_info] if args.key?(:application_info) - @company = args[:company] if args.key?(:company) - @company_display_name = args[:company_display_name] if args.key?(:company_display_name) - @compensation_info = args[:compensation_info] if args.key?(:compensation_info) - @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) - @degree_types = args[:degree_types] if args.key?(:degree_types) - @department = args[:department] if args.key?(:department) - @derived_info = args[:derived_info] if args.key?(:derived_info) - @description = args[:description] if args.key?(:description) - @employment_types = args[:employment_types] if args.key?(:employment_types) - @incentives = args[:incentives] if args.key?(:incentives) - @job_benefits = args[:job_benefits] if args.key?(:job_benefits) - @job_end_time = args[:job_end_time] if args.key?(:job_end_time) - @job_level = args[:job_level] if args.key?(:job_level) - @job_start_time = args[:job_start_time] if args.key?(:job_start_time) - @language_code = args[:language_code] if args.key?(:language_code) - @name = args[:name] if args.key?(:name) - @posting_create_time = args[:posting_create_time] if args.key?(:posting_create_time) - @posting_expire_time = args[:posting_expire_time] if args.key?(:posting_expire_time) - @posting_publish_time = args[:posting_publish_time] if args.key?(:posting_publish_time) - @posting_region = args[:posting_region] if args.key?(:posting_region) - @posting_update_time = args[:posting_update_time] if args.key?(:posting_update_time) - @processing_options = args[:processing_options] if args.key?(:processing_options) - @promotion_value = args[:promotion_value] if args.key?(:promotion_value) - @qualifications = args[:qualifications] if args.key?(:qualifications) - @requisition_id = args[:requisition_id] if args.key?(:requisition_id) - @responsibilities = args[:responsibilities] if args.key?(:responsibilities) - @title = args[:title] if args.key?(:title) - @visibility = args[:visibility] if args.key?(:visibility) - end - end - - # Derived details about the job posting. - class JobDerivedInfo - include Google::Apis::Core::Hashable + attr_accessor :disable_exp_names - # Job categories derived from Job.title and Job.description. - # Corresponds to the JSON property `jobCategories` + # Set of experiment tags to be disabled. All experiments that are tagged with + # one or more of these tags are disabled. If an experiment is disabled, it is + # never selected nor forced. If an aggregate experiment is disabled, its + # partitions are disabled together. If an experiment with an enrollment is + # disabled, the enrollment is disabled together. + # Corresponds to the JSON property `disableExpTags` # @return [Array] - attr_accessor :job_categories + attr_accessor :disable_exp_tags - # Structured locations of the job, resolved from Job.addresses. locations are - # exactly matched to Job.addresses in the same order. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations + # Set of experiment ids to be disabled. If an experiment is disabled, it is + # never selected nor forced. If an aggregate experiment is disabled, its + # partitions are disabled together. If an experiment with an enrollment is + # disabled, the enrollment is disabled together. If an ID corresponds to a + # domain, the domain itself and all descendant experiments and domains are + # disabled together. + # Corresponds to the JSON property `disableExps` + # @return [Array] + attr_accessor :disable_exps - def initialize(**args) - update!(**args) - end + # If true, disable manual enrollment selection (at all diversion points). Manual + # enrollment selection means experiment selection process based on the request's + # manual enrollment states (a.k.a. opt-in experiments). This does not disable + # selection of forced experiments. + # Corresponds to the JSON property `disableManualEnrollmentSelection` + # @return [Boolean] + attr_accessor :disable_manual_enrollment_selection + alias_method :disable_manual_enrollment_selection?, :disable_manual_enrollment_selection - # Update properties of this object - def update!(**args) - @job_categories = args[:job_categories] if args.key?(:job_categories) - @locations = args[:locations] if args.key?(:locations) - end - end + # If true, disable organic experiment selection (at all diversion points). + # Organic selection means experiment selection process based on traffic + # allocation and diversion condition evaluation. This does not disable selection + # of forced experiments. This is useful in cases when it is not known whether + # experiment selection behavior is responsible for a error or breakage. + # Disabling organic selection may help to isolate the cause of a given problem. + # Corresponds to the JSON property `disableOrganicSelection` + # @return [Boolean] + attr_accessor :disable_organic_selection + alias_method :disable_organic_selection?, :disable_organic_selection - # The result of JobService.BatchCreateJobs or JobService.BatchUpdateJobs APIs. - # It's used to replace google.longrunning.Operation.response in case of success. - class JobOperationResult - include Google::Apis::Core::Hashable + # Flags to force in a particular experiment state. Map from flag name to flag + # value. + # Corresponds to the JSON property `forcedFlags` + # @return [Hash] + attr_accessor :forced_flags - # List of job mutation results from a batch mutate operation. It can change - # until operation status is FINISHED, FAILED or CANCELLED. - # Corresponds to the JSON property `jobResults` - # @return [Array] - attr_accessor :job_results + # Rollouts to force in a particular experiment state. Map from rollout name to + # rollout value. + # Corresponds to the JSON property `forcedRollouts` + # @return [Hash] + attr_accessor :forced_rollouts def initialize(**args) update!(**args) @@ -2794,20 +1914,34 @@ def initialize(**args) # Update properties of this object def update!(**args) - @job_results = args[:job_results] if args.key?(:job_results) + @absolutely_forced_exp_names = args[:absolutely_forced_exp_names] if args.key?(:absolutely_forced_exp_names) + @absolutely_forced_exp_tags = args[:absolutely_forced_exp_tags] if args.key?(:absolutely_forced_exp_tags) + @absolutely_forced_exps = args[:absolutely_forced_exps] if args.key?(:absolutely_forced_exps) + @conditionally_forced_exp_names = args[:conditionally_forced_exp_names] if args.key?(:conditionally_forced_exp_names) + @conditionally_forced_exp_tags = args[:conditionally_forced_exp_tags] if args.key?(:conditionally_forced_exp_tags) + @conditionally_forced_exps = args[:conditionally_forced_exps] if args.key?(:conditionally_forced_exps) + @disable_automatic_enrollment_selection = args[:disable_automatic_enrollment_selection] if args.key?(:disable_automatic_enrollment_selection) + @disable_exp_names = args[:disable_exp_names] if args.key?(:disable_exp_names) + @disable_exp_tags = args[:disable_exp_tags] if args.key?(:disable_exp_tags) + @disable_exps = args[:disable_exps] if args.key?(:disable_exps) + @disable_manual_enrollment_selection = args[:disable_manual_enrollment_selection] if args.key?(:disable_manual_enrollment_selection) + @disable_organic_selection = args[:disable_organic_selection] if args.key?(:disable_organic_selection) + @forced_flags = args[:forced_flags] if args.key?(:forced_flags) + @forced_rollouts = args[:forced_rollouts] if args.key?(:forced_rollouts) end end - # Mutation result of a job. - class JobResult + # This resource represents a long-running operation that is the result of a + # network API call. + class Operation include Google::Apis::Core::Hashable - # A Job resource represents a job posting (also referred to as a "job listing" - # or "job requisition"). A job belongs to a Company, which is the hiring entity - # responsible for the job. - # Corresponds to the JSON property `job` - # @return [Google::Apis::JobsV4::Job] - attr_accessor :job + # If the value is `false`, it means the operation is still in progress. If `true` + # , the operation is completed, and either `error` or `response` is available. + # Corresponds to the JSON property `done` + # @return [Boolean] + attr_accessor :done + alias_method :done?, :done # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ @@ -2815,37 +1949,35 @@ class JobResult # data: error code, error message, and error details. You can find out more # about this error model and how to work with it in the [API Design Guide](https: # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `status` + # Corresponds to the JSON property `error` # @return [Google::Apis::JobsV4::Status] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @job = args[:job] if args.key?(:job) - @status = args[:status] if args.key?(:status) - end - end + attr_accessor :error - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the WGS84 standard. Values must be - # within normalized ranges. - class LatLng - include Google::Apis::Core::Hashable + # Service-specific metadata associated with the operation. It typically contains + # progress information and common metadata such as create time. Some services + # might not provide such metadata. Any method that returns a long-running + # operation should document the metadata type, if any. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata - # The latitude in degrees. It must be in the range [-90.0, +90.0]. - # Corresponds to the JSON property `latitude` - # @return [Float] - attr_accessor :latitude + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the `name` should + # be a resource name ending with `operations/`unique_id``. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name - # The longitude in degrees. It must be in the range [-180.0, +180.0]. - # Corresponds to the JSON property `longitude` - # @return [Float] - attr_accessor :longitude + # The normal response of the operation in case of success. If the original + # method returns no data on success, such as `Delete`, the response is `google. + # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, + # the response should be the resource. For other methods, the response should + # have the type `XxxResponse`, where `Xxx` is the original method name. For + # example, if the original method name is `TakeSnapshot()`, the inferred + # response type is `TakeSnapshotResponse`. + # Corresponds to the JSON property `response` + # @return [Hash] + attr_accessor :response def initialize(**args) update!(**args) @@ -2853,81 +1985,126 @@ def initialize(**args) # Update properties of this object def update!(**args) - @latitude = args[:latitude] if args.key?(:latitude) - @longitude = args[:longitude] if args.key?(:longitude) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @response = args[:response] if args.key?(:response) end end - # A resource that represents a location with full geographic information. - class Location + # Represents a postal address, e.g. for postal delivery or payments addresses. + # Given a postal address, a postal service can deliver items to a premise, P.O. + # Box or similar. It is not intended to model geographical locations (roads, + # towns, mountains). In typical usage an address would be created via user input + # or from importing existing data, depending on the type of process. Advice on + # address input / editing: - Use an i18n-ready address widget such as https:// + # github.com/google/libaddressinput) - Users should not be presented with UI + # elements for input or editing of fields outside countries where that field is + # used. For more guidance on how to use this schema, please see: https://support. + # google.com/business/answer/6397478 + class PostalAddress include Google::Apis::Core::Hashable - # An object representing a latitude/longitude pair. This is expressed as a pair - # of doubles representing degrees latitude and degrees longitude. Unless - # specified otherwise, this must conform to the WGS84 standard. Values must be - # within normalized ranges. - # Corresponds to the JSON property `latLng` - # @return [Google::Apis::JobsV4::LatLng] - attr_accessor :lat_lng + # Unstructured address lines describing the lower levels of an address. Because + # values in address_lines do not have type information and may sometimes contain + # multiple values in a single field (e.g. "Austin, TX"), it is important that + # the line order is clear. The order of address lines should be "envelope order" + # for the country/region of the address. In places where this can vary (e.g. + # Japan), address_language is used to make it explicit (e.g. "ja" for large-to- + # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most + # specific line of an address can be selected based on the language. The minimum + # permitted structural representation of an address consists of a region_code + # with all remaining information placed in the address_lines. It would be + # possible to format such an address very approximately without geocoding, but + # no semantic reasoning could be made about any of the address components until + # it was at least partially resolved. Creating an address only containing a + # region_code and address_lines, and then geocoding is the recommended way to + # handle completely unstructured addresses (as opposed to guessing which parts + # of the address should be localities or administrative areas). + # Corresponds to the JSON property `addressLines` + # @return [Array] + attr_accessor :address_lines - # The type of a location, which corresponds to the address lines field of google. - # type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of - # LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of - # LocationType.LOCALITY. - # Corresponds to the JSON property `locationType` + # Optional. Highest administrative subdivision which is used for postal + # addresses of a country or region. For example, this can be a state, a province, + # an oblast, or a prefecture. Specifically, for Spain this is the province and + # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many + # countries don't use an administrative area in postal addresses. E.g. in + # Switzerland this should be left unpopulated. + # Corresponds to the JSON property `administrativeArea` # @return [String] - attr_accessor :location_type + attr_accessor :administrative_area - # Represents a postal address, e.g. for postal delivery or payments addresses. - # Given a postal address, a postal service can deliver items to a premise, P.O. - # Box or similar. It is not intended to model geographical locations (roads, - # towns, mountains). In typical usage an address would be created via user input - # or from importing existing data, depending on the type of process. Advice on - # address input / editing: - Use an i18n-ready address widget such as https:// - # github.com/google/libaddressinput) - Users should not be presented with UI - # elements for input or editing of fields outside countries where that field is - # used. For more guidance on how to use this schema, please see: https://support. - # google.com/business/answer/6397478 - # Corresponds to the JSON property `postalAddress` - # @return [Google::Apis::JobsV4::PostalAddress] - attr_accessor :postal_address + # Optional. BCP-47 language code of the contents of this address (if known). + # This is often the UI language of the input form or is expected to match one of + # the languages used in the address' country/region, or their transliterated + # equivalents. This can affect formatting in certain countries, but is not + # critical to the correctness of the data and will never affect any validation + # or other non-formatting related operations. If this value is not known, it + # should be omitted (rather than specifying a possibly incorrect default). + # Examples: "zh-Hant", "ja", "ja-Latn", "en". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code - # Radius in miles of the job location. This value is derived from the location - # bounding box in which a circle with the specified radius centered from google. - # type.LatLng covers the area associated with the job location. For example, - # currently, "Mountain View, CA, USA" has a radius of 6.17 miles. - # Corresponds to the JSON property `radiusMiles` - # @return [Float] - attr_accessor :radius_miles + # Optional. Generally refers to the city/town portion of the address. Examples: + # US city, IT comune, UK post town. In regions of the world where localities are + # not well defined or do not fit into this structure well, leave locality empty + # and use address_lines. + # Corresponds to the JSON property `locality` + # @return [String] + attr_accessor :locality + + # Optional. The name of the organization at the address. + # Corresponds to the JSON property `organization` + # @return [String] + attr_accessor :organization + + # Optional. Postal code of the address. Not all countries use or require postal + # codes to be present, but where they are used, they may trigger additional + # validation with other parts of the address (e.g. state/zip validation in the U. + # S.A.). + # Corresponds to the JSON property `postalCode` + # @return [String] + attr_accessor :postal_code - def initialize(**args) - update!(**args) - end + # Optional. The recipient at the address. This field may, under certain + # circumstances, contain multiline information. For example, it might contain " + # care of" information. + # Corresponds to the JSON property `recipients` + # @return [Array] + attr_accessor :recipients - # Update properties of this object - def update!(**args) - @lat_lng = args[:lat_lng] if args.key?(:lat_lng) - @location_type = args[:location_type] if args.key?(:location_type) - @postal_address = args[:postal_address] if args.key?(:postal_address) - @radius_miles = args[:radius_miles] if args.key?(:radius_miles) - end - end + # Required. CLDR region code of the country/region of the address. This is never + # inferred and it is up to the user to ensure the value is correct. See http:// + # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/ + # territory_information.html for details. Example: "CH" for Switzerland. + # Corresponds to the JSON property `regionCode` + # @return [String] + attr_accessor :region_code - # Message representing input to a Mendel server for debug forcing. See go/mendel- - # debug-forcing for more details. Next ID: 2 - class MendelDebugInput - include Google::Apis::Core::Hashable + # The schema revision of the `PostalAddress`. This must be set to 0, which is + # the latest revision. All new revisions **must** be backward compatible with + # old revisions. + # Corresponds to the JSON property `revision` + # @return [Fixnum] + attr_accessor :revision - # When a request spans multiple servers, a MendelDebugInput may travel with the - # request and take effect in all the servers. This field is a map of namespaces - # to NamespacedMendelDebugInput protos. In a single server, up to two - # NamespacedMendelDebugInput protos are applied: 1. NamespacedMendelDebugInput - # with the global namespace (key == ""). 2. NamespacedMendelDebugInput with the - # server's namespace. When both NamespacedMendelDebugInput protos are present, - # they are merged. See go/mendel-debug-forcing for more details. - # Corresponds to the JSON property `namespacedDebugInput` - # @return [Hash] - attr_accessor :namespaced_debug_input + # Optional. Additional, country-specific, sorting code. This is not used in most + # regions. Where it is used, the value is either a string like "CEDEX", + # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, + # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) + # or "post office indicator" (e.g. Côte d'Ivoire). + # Corresponds to the JSON property `sortingCode` + # @return [String] + attr_accessor :sorting_code + + # Optional. Sublocality of the address. For example, this can be neighborhoods, + # boroughs, districts. + # Corresponds to the JSON property `sublocality` + # @return [String] + attr_accessor :sublocality def initialize(**args) update!(**args) @@ -2935,33 +2112,38 @@ def initialize(**args) # Update properties of this object def update!(**args) - @namespaced_debug_input = args[:namespaced_debug_input] if args.key?(:namespaced_debug_input) + @address_lines = args[:address_lines] if args.key?(:address_lines) + @administrative_area = args[:administrative_area] if args.key?(:administrative_area) + @language_code = args[:language_code] if args.key?(:language_code) + @locality = args[:locality] if args.key?(:locality) + @organization = args[:organization] if args.key?(:organization) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipients = args[:recipients] if args.key?(:recipients) + @region_code = args[:region_code] if args.key?(:region_code) + @revision = args[:revision] if args.key?(:revision) + @sorting_code = args[:sorting_code] if args.key?(:sorting_code) + @sublocality = args[:sublocality] if args.key?(:sublocality) end end - # Represents an amount of money with its currency type. - class Money + # Options for job processing. + class ProcessingOptions include Google::Apis::Core::Hashable - # The 3-letter currency code defined in ISO 4217. - # Corresponds to the JSON property `currencyCode` - # @return [String] - attr_accessor :currency_code - - # Number of nano (10^-9) units of the amount. The value must be between -999,999, - # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be - # positive or zero. If `units` is zero, `nanos` can be positive, zero, or - # negative. If `units` is negative, `nanos` must be negative or zero. For - # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - # Corresponds to the JSON property `nanos` - # @return [Fixnum] - attr_accessor :nanos + # If set to `true`, the service does not attempt to resolve a more precise + # address for the job. + # Corresponds to the JSON property `disableStreetAddressResolution` + # @return [Boolean] + attr_accessor :disable_street_address_resolution + alias_method :disable_street_address_resolution?, :disable_street_address_resolution - # The whole units of the amount. For example if `currencyCode` is `"USD"`, then - # 1 unit is one US dollar. - # Corresponds to the JSON property `units` - # @return [Fixnum] - attr_accessor :units + # Option for job HTML content sanitization. Applied fields are: * description * + # applicationInfo.instruction * incentives * qualifications * responsibilities + # HTML tags in these fields may be stripped if sanitiazation isn't disabled. + # Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. + # Corresponds to the JSON property `htmlSanitization` + # @return [String] + attr_accessor :html_sanitization def initialize(**args) update!(**args) @@ -2969,122 +2151,64 @@ def initialize(**args) # Update properties of this object def update!(**args) - @currency_code = args[:currency_code] if args.key?(:currency_code) - @nanos = args[:nanos] if args.key?(:nanos) - @units = args[:units] if args.key?(:units) + @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) + @html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization) end end - # Next ID: 15 - class NamespacedDebugInput + # Meta information related to the job searcher or entity conducting the job + # search. This information is used to improve the performance of the service. + class RequestMetadata include Google::Apis::Core::Hashable - # Set of experiment names to be absolutely forced. These experiments will be - # forced without evaluating the conditions. - # Corresponds to the JSON property `absolutelyForcedExpNames` - # @return [Array] - attr_accessor :absolutely_forced_exp_names - - # Set of experiment tags to be absolutely forced. The experiments with these - # tags will be forced without evaluating the conditions. - # Corresponds to the JSON property `absolutelyForcedExpTags` - # @return [Array] - attr_accessor :absolutely_forced_exp_tags - - # Set of experiment ids to be absolutely forced. These ids will be forced - # without evaluating the conditions. - # Corresponds to the JSON property `absolutelyForcedExps` - # @return [Array] - attr_accessor :absolutely_forced_exps - - # Set of experiment names to be conditionally forced. These experiments will be - # forced only if their conditions and their parent domain's conditions are true. - # Corresponds to the JSON property `conditionallyForcedExpNames` - # @return [Array] - attr_accessor :conditionally_forced_exp_names - - # Set of experiment tags to be conditionally forced. The experiments with these - # tags will be forced only if their conditions and their parent domain's - # conditions are true. - # Corresponds to the JSON property `conditionallyForcedExpTags` - # @return [Array] - attr_accessor :conditionally_forced_exp_tags - - # Set of experiment ids to be conditionally forced. These ids will be forced - # only if their conditions and their parent domain's conditions are true. - # Corresponds to the JSON property `conditionallyForcedExps` - # @return [Array] - attr_accessor :conditionally_forced_exps - - # If true, disable automatic enrollment selection (at all diversion points). - # Automatic enrollment selection means experiment selection process based on the - # experiment's automatic enrollment condition. This does not disable selection - # of forced experiments. - # Corresponds to the JSON property `disableAutomaticEnrollmentSelection` + # Only set when any of domain, session_id and user_id isn't available for some + # reason. It is highly recommended not to set this field and provide accurate + # domain, session_id and user_id for the best service experience. + # Corresponds to the JSON property `allowMissingIds` # @return [Boolean] - attr_accessor :disable_automatic_enrollment_selection - alias_method :disable_automatic_enrollment_selection?, :disable_automatic_enrollment_selection - - # Set of experiment names to be disabled. If an experiment is disabled, it is - # never selected nor forced. If an aggregate experiment is disabled, its - # partitions are disabled together. If an experiment with an enrollment is - # disabled, the enrollment is disabled together. If a name corresponds to a - # domain, the domain itself and all descendant experiments and domains are - # disabled together. - # Corresponds to the JSON property `disableExpNames` - # @return [Array] - attr_accessor :disable_exp_names - - # Set of experiment tags to be disabled. All experiments that are tagged with - # one or more of these tags are disabled. If an experiment is disabled, it is - # never selected nor forced. If an aggregate experiment is disabled, its - # partitions are disabled together. If an experiment with an enrollment is - # disabled, the enrollment is disabled together. - # Corresponds to the JSON property `disableExpTags` - # @return [Array] - attr_accessor :disable_exp_tags - - # Set of experiment ids to be disabled. If an experiment is disabled, it is - # never selected nor forced. If an aggregate experiment is disabled, its - # partitions are disabled together. If an experiment with an enrollment is - # disabled, the enrollment is disabled together. If an ID corresponds to a - # domain, the domain itself and all descendant experiments and domains are - # disabled together. - # Corresponds to the JSON property `disableExps` - # @return [Array] - attr_accessor :disable_exps + attr_accessor :allow_missing_ids + alias_method :allow_missing_ids?, :allow_missing_ids - # If true, disable manual enrollment selection (at all diversion points). Manual - # enrollment selection means experiment selection process based on the request's - # manual enrollment states (a.k.a. opt-in experiments). This does not disable - # selection of forced experiments. - # Corresponds to the JSON property `disableManualEnrollmentSelection` - # @return [Boolean] - attr_accessor :disable_manual_enrollment_selection - alias_method :disable_manual_enrollment_selection?, :disable_manual_enrollment_selection + # Device information collected from the job seeker, candidate, or other entity + # conducting the job search. Providing this information improves the quality of + # the search results across devices. + # Corresponds to the JSON property `deviceInfo` + # @return [Google::Apis::JobsV4::DeviceInfo] + attr_accessor :device_info - # If true, disable organic experiment selection (at all diversion points). - # Organic selection means experiment selection process based on traffic - # allocation and diversion condition evaluation. This does not disable selection - # of forced experiments. This is useful in cases when it is not known whether - # experiment selection behavior is responsible for a error or breakage. - # Disabling organic selection may help to isolate the cause of a given problem. - # Corresponds to the JSON property `disableOrganicSelection` - # @return [Boolean] - attr_accessor :disable_organic_selection - alias_method :disable_organic_selection?, :disable_organic_selection + # Required if allow_missing_ids is unset or `false`. The client-defined scope or + # source of the service call, which typically is the domain on which the service + # has been implemented and is currently being run. For example, if the service + # is being run by client *Foo, Inc.*, on job board www.foo.com and career site + # www.bar.com, then this field is set to "foo.com" for use on the job board, and + # "bar.com" for use on the career site. Note that any improvements to the model + # for a particular tenant site rely on this field being set correctly to a + # unique domain. The maximum number of allowed characters is 255. + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain - # Flags to force in a particular experiment state. Map from flag name to flag - # value. - # Corresponds to the JSON property `forcedFlags` - # @return [Hash] - attr_accessor :forced_flags + # Required if allow_missing_ids is unset or `false`. A unique session + # identification string. A session is defined as the duration of an end user's + # interaction with the service over a certain period. Obfuscate this field for + # privacy concerns before providing it to the service. Note that any + # improvements to the model for a particular tenant site rely on this field + # being set correctly to a unique session ID. The maximum number of allowed + # characters is 255. + # Corresponds to the JSON property `sessionId` + # @return [String] + attr_accessor :session_id - # Rollouts to force in a particular experiment state. Map from rollout name to - # rollout value. - # Corresponds to the JSON property `forcedRollouts` - # @return [Hash] - attr_accessor :forced_rollouts + # Required if allow_missing_ids is unset or `false`. A unique user + # identification string, as determined by the client. To have the strongest + # positive impact on search quality make sure the client-level is unique. + # Obfuscate this field for privacy concerns before providing it to the service. + # Note that any improvements to the model for a particular tenant site rely on + # this field being set correctly to a unique user ID. The maximum number of + # allowed characters is 255. + # Corresponds to the JSON property `userId` + # @return [String] + attr_accessor :user_id def initialize(**args) update!(**args) @@ -3092,70 +2216,22 @@ def initialize(**args) # Update properties of this object def update!(**args) - @absolutely_forced_exp_names = args[:absolutely_forced_exp_names] if args.key?(:absolutely_forced_exp_names) - @absolutely_forced_exp_tags = args[:absolutely_forced_exp_tags] if args.key?(:absolutely_forced_exp_tags) - @absolutely_forced_exps = args[:absolutely_forced_exps] if args.key?(:absolutely_forced_exps) - @conditionally_forced_exp_names = args[:conditionally_forced_exp_names] if args.key?(:conditionally_forced_exp_names) - @conditionally_forced_exp_tags = args[:conditionally_forced_exp_tags] if args.key?(:conditionally_forced_exp_tags) - @conditionally_forced_exps = args[:conditionally_forced_exps] if args.key?(:conditionally_forced_exps) - @disable_automatic_enrollment_selection = args[:disable_automatic_enrollment_selection] if args.key?(:disable_automatic_enrollment_selection) - @disable_exp_names = args[:disable_exp_names] if args.key?(:disable_exp_names) - @disable_exp_tags = args[:disable_exp_tags] if args.key?(:disable_exp_tags) - @disable_exps = args[:disable_exps] if args.key?(:disable_exps) - @disable_manual_enrollment_selection = args[:disable_manual_enrollment_selection] if args.key?(:disable_manual_enrollment_selection) - @disable_organic_selection = args[:disable_organic_selection] if args.key?(:disable_organic_selection) - @forced_flags = args[:forced_flags] if args.key?(:forced_flags) - @forced_rollouts = args[:forced_rollouts] if args.key?(:forced_rollouts) + @allow_missing_ids = args[:allow_missing_ids] if args.key?(:allow_missing_ids) + @device_info = args[:device_info] if args.key?(:device_info) + @domain = args[:domain] if args.key?(:domain) + @session_id = args[:session_id] if args.key?(:session_id) + @user_id = args[:user_id] if args.key?(:user_id) end end - # This resource represents a long-running operation that is the result of a - # network API call. - class Operation + # Additional information returned to client, such as debugging information. + class ResponseMetadata include Google::Apis::Core::Hashable - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::JobsV4::Status] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` + # A unique id associated with this call. This id is logged for tracking purposes. + # Corresponds to the JSON property `requestId` # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response + attr_accessor :request_id def initialize(**args) update!(**args) @@ -3163,126 +2239,272 @@ def initialize(**args) # Update properties of this object def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) + @request_id = args[:request_id] if args.key?(:request_id) end end - # Represents a postal address, e.g. for postal delivery or payments addresses. - # Given a postal address, a postal service can deliver items to a premise, P.O. - # Box or similar. It is not intended to model geographical locations (roads, - # towns, mountains). In typical usage an address would be created via user input - # or from importing existing data, depending on the type of process. Advice on - # address input / editing: - Use an i18n-ready address widget such as https:// - # github.com/google/libaddressinput) - Users should not be presented with UI - # elements for input or editing of fields outside countries where that field is - # used. For more guidance on how to use this schema, please see: https://support. - # google.com/business/answer/6397478 - class PostalAddress + # The Request body of the `SearchJobs` call. + class SearchJobsRequest include Google::Apis::Core::Hashable - # Unstructured address lines describing the lower levels of an address. Because - # values in address_lines do not have type information and may sometimes contain - # multiple values in a single field (e.g. "Austin, TX"), it is important that - # the line order is clear. The order of address lines should be "envelope order" - # for the country/region of the address. In places where this can vary (e.g. - # Japan), address_language is used to make it explicit (e.g. "ja" for large-to- - # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most - # specific line of an address can be selected based on the language. The minimum - # permitted structural representation of an address consists of a region_code - # with all remaining information placed in the address_lines. It would be - # possible to format such an address very approximately without geocoding, but - # no semantic reasoning could be made about any of the address components until - # it was at least partially resolved. Creating an address only containing a - # region_code and address_lines, and then geocoding is the recommended way to - # handle completely unstructured addresses (as opposed to guessing which parts - # of the address should be localities or administrative areas). - # Corresponds to the JSON property `addressLines` - # @return [Array] - attr_accessor :address_lines + # Custom ranking information for SearchJobsRequest. + # Corresponds to the JSON property `customRankingInfo` + # @return [Google::Apis::JobsV4::CustomRankingInfo] + attr_accessor :custom_ranking_info - # Optional. Highest administrative subdivision which is used for postal - # addresses of a country or region. For example, this can be a state, a province, - # an oblast, or a prefecture. Specifically, for Spain this is the province and - # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many - # countries don't use an administrative area in postal addresses. E.g. in - # Switzerland this should be left unpopulated. - # Corresponds to the JSON property `administrativeArea` + # Controls whether to disable exact keyword match on Job.title, Job.description, + # Job.company_display_name, Job.addresses, Job.qualifications. When disable + # keyword match is turned off, a keyword match returns jobs that do not match + # given category filters when there are matching keywords. For example, for the + # query "program manager," a result is returned even if the job posting has the + # title "software developer," which doesn't fall into "program manager" ontology, + # but does have "program manager" appearing in its description. For queries + # like "cloud" that don't contain title or location specific ontology, jobs with + # "cloud" keyword matches are returned regardless of this flag's value. Use + # Company.keyword_searchable_job_custom_attributes if company-specific globally + # matched custom field/attribute string values are needed. Enabling keyword + # match improves recall of subsequent search requests. Defaults to false. + # Corresponds to the JSON property `disableKeywordMatch` + # @return [Boolean] + attr_accessor :disable_keyword_match + alias_method :disable_keyword_match?, :disable_keyword_match + + # Controls whether highly similar jobs are returned next to each other in the + # search results. Jobs are identified as highly similar based on their titles, + # job categories, and locations. Highly similar results are clustered so that + # only one representative job of the cluster is displayed to the job seeker + # higher up in the results, with the other jobs being displayed lower down in + # the results. Defaults to DiversificationLevel.SIMPLE if no value is specified. + # Corresponds to the JSON property `diversificationLevel` + # @return [String] + attr_accessor :diversification_level + + # Controls whether to broaden the search when it produces sparse results. + # Broadened queries append results to the end of the matching results list. + # Defaults to false. + # Corresponds to the JSON property `enableBroadening` + # @return [Boolean] + attr_accessor :enable_broadening + alias_method :enable_broadening?, :enable_broadening + + # An expression specifies a histogram request against matching jobs. Expression + # syntax is an aggregation function call with histogram facets and other options. + # Available aggregation function calls are: * `count(string_histogram_facet)`: + # Count the number of matching entities, for each distinct attribute value. * ` + # count(numeric_histogram_facet, list of buckets)`: Count the number of matching + # entities within each bucket. Data types: * Histogram facet: facet names with + # format a-zA-Z+. * String: string like "any string with backslash escape for + # quote(\")." * Number: whole number and floating point number like 10, -1 and - + # 0.01. * List: list of elements with comma(,) separator surrounded by square + # brackets, for example, [1, 2, 3] and ["one", "two", "three"]. Built-in + # constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX ( + # maximum number similar to java Double.MAX_VALUE) Built-in functions: * bucket( + # start, end[, label]): bucket built-in function creates a bucket with range of + # start, end). Note that the end is exclusive, for example, bucket(1, MAX, " + # positive number") or bucket(1, 10). Job histogram facets: * + # company_display_name: histogram by [Job.company_display_name. * + # employment_type: histogram by Job.employment_types, for example, "FULL_TIME", " + # PART_TIME". * company_size: histogram by CompanySize, for example, "SMALL", " + # MEDIUM", "BIG". * publish_time_in_month: histogram by the Job. + # posting_publish_time in months. Must specify list of numeric buckets in spec. * + # publish_time_in_year: histogram by the Job.posting_publish_time in years. + # Must specify list of numeric buckets in spec. * degree_types: histogram by the + # Job.degree_types, for example, "Bachelors", "Masters". * job_level: histogram + # by the Job.job_level, for example, "Entry Level". * country: histogram by the + # country code of jobs, for example, "US", "FR". * admin1: histogram by the + # admin1 code of jobs, which is a global placeholder referring to the state, + # province, or the particular term a country uses to define the geographic + # structure below the country level, for example, "CA", "IL". * city: histogram + # by a combination of the "city name, admin1 code". For example, "Mountain View, + # CA", "New York, NY". * admin1_country: histogram by a combination of the " + # admin1 code, country", for example, "CA, US", "IL, US". * city_coordinate: + # histogram by the city center's GPS coordinates (latitude and longitude), for + # example, 37.4038522,-122.0987765. Since the coordinates of a city center can + # change, customers may need to refresh them periodically. * locale: histogram + # by the Job.language_code, for example, "en-US", "fr-FR". * language: histogram + # by the language subtag of the Job.language_code, for example, "en", "fr". * + # category: histogram by the JobCategory, for example, "COMPUTER_AND_IT", " + # HEALTHCARE". * base_compensation_unit: histogram by the CompensationInfo. + # CompensationUnit of base salary, for example, "WEEKLY", "MONTHLY". * + # base_compensation: histogram by the base salary. Must specify list of numeric + # buckets to group results by. * annualized_base_compensation: histogram by the + # base annualized salary. Must specify list of numeric buckets to group results + # by. * annualized_total_compensation: histogram by the total annualized salary. + # Must specify list of numeric buckets to group results by. * + # string_custom_attribute: histogram by string Job.custom_attributes. Values can + # be accessed via square bracket notations like string_custom_attribute["key1"]. + # * numeric_custom_attribute: histogram by numeric Job.custom_attributes. Values + # can be accessed via square bracket notations like numeric_custom_attribute[" + # key1"]. Must specify list of numeric buckets to group results by. Example + # expressions: * `count(admin1)` * `count(base_compensation, [bucket(1000, 10000) + # , bucket(10000, 100000), bucket(100000, MAX)])` * `count( + # string_custom_attribute["some-string-custom-attribute"])` * `count( + # numeric_custom_attribute["some-numeric-custom-attribute"], [bucket(MIN, 0, " + # negative"), bucket(0, MAX, "non-negative"])` + # Corresponds to the JSON property `histogramQueries` + # @return [Array] + attr_accessor :histogram_queries + + # The query required to perform a search query. + # Corresponds to the JSON property `jobQuery` + # @return [Google::Apis::JobsV4::JobQuery] + attr_accessor :job_query + + # The desired job attributes returned for jobs in the search response. Defaults + # to JobView.JOB_VIEW_SMALL if no value is specified. + # Corresponds to the JSON property `jobView` + # @return [String] + attr_accessor :job_view + + # A limit on the number of jobs returned in the search results. Increasing this + # value above the default value of 10 can increase search response time. The + # value can be between 1 and 100. + # Corresponds to the JSON property `maxPageSize` + # @return [Fixnum] + attr_accessor :max_page_size + + # An integer that specifies the current offset (that is, starting result + # location, amongst the jobs deemed by the API as relevant) in search results. + # This field is only considered if page_token is unset. The maximum allowed + # value is 5000. Otherwise an error is thrown. For example, 0 means to return + # results starting from the first matching job, and 10 means to return from the + # 11th job. This can be used for pagination, (for example, pageSize = 10 and + # offset = 10 means to return from the second page). + # Corresponds to the JSON property `offset` + # @return [Fixnum] + attr_accessor :offset + + # The criteria determining how search results are sorted. Default is `"relevance + # desc"`. Supported options are: * `"relevance desc"`: By relevance descending, + # as determined by the API algorithms. Relevance thresholding of query results + # is only available with this ordering. * `"posting_publish_time desc"`: By Job. + # posting_publish_time descending. * `"posting_update_time desc"`: By Job. + # posting_update_time descending. * `"title"`: By Job.title ascending. * `"title + # desc"`: By Job.title descending. * `"annualized_base_compensation"`: By job's + # CompensationInfo.annualized_base_compensation_range ascending. Jobs whose + # annualized base compensation is unspecified are put at the end of search + # results. * `"annualized_base_compensation desc"`: By job's CompensationInfo. + # annualized_base_compensation_range descending. Jobs whose annualized base + # compensation is unspecified are put at the end of search results. * `" + # annualized_total_compensation"`: By job's CompensationInfo. + # annualized_total_compensation_range ascending. Jobs whose annualized base + # compensation is unspecified are put at the end of search results. * `" + # annualized_total_compensation desc"`: By job's CompensationInfo. + # annualized_total_compensation_range descending. Jobs whose annualized base + # compensation is unspecified are put at the end of search results. * `" + # custom_ranking desc"`: By the relevance score adjusted to the + # SearchJobsRequest.CustomRankingInfo.ranking_expression with weight factor + # assigned by SearchJobsRequest.CustomRankingInfo.importance_level in descending + # order. * Location sorting: Use the special syntax to order jobs by distance: `" + # distance_from('Hawaii')"`: Order by distance from Hawaii. `"distance_from(19. + # 89, 155.5)"`: Order by distance from a coordinate. `"distance_from('Hawaii'), + # distance_from('Puerto Rico')"`: Order by multiple locations. See details below. + # `"distance_from('Hawaii'), distance_from(19.89, 155.5)"`: Order by multiple + # locations. See details below. The string can have a maximum of 256 characters. + # When multiple distance centers are provided, a job that is close to any of the + # distance centers would have a high rank. When a job has multiple locations, + # the job location closest to one of the distance centers will be used. Jobs + # that don't have locations will be ranked at the bottom. Distance is calculated + # with a precision of 11.3 meters (37.4 feet). Diversification strategy is still + # applied unless explicitly disabled in diversification_level. + # Corresponds to the JSON property `orderBy` # @return [String] - attr_accessor :administrative_area + attr_accessor :order_by - # Optional. BCP-47 language code of the contents of this address (if known). - # This is often the UI language of the input form or is expected to match one of - # the languages used in the address' country/region, or their transliterated - # equivalents. This can affect formatting in certain countries, but is not - # critical to the correctness of the data and will never affect any validation - # or other non-formatting related operations. If this value is not known, it - # should be omitted (rather than specifying a possibly incorrect default). - # Examples: "zh-Hant", "ja", "ja-Latn", "en". - # Corresponds to the JSON property `languageCode` + # The token specifying the current offset within search results. See + # SearchJobsResponse.next_page_token for an explanation of how to obtain the + # next set of query results. + # Corresponds to the JSON property `pageToken` # @return [String] - attr_accessor :language_code + attr_accessor :page_token - # Optional. Generally refers to the city/town portion of the address. Examples: - # US city, IT comune, UK post town. In regions of the world where localities are - # not well defined or do not fit into this structure well, leave locality empty - # and use address_lines. - # Corresponds to the JSON property `locality` - # @return [String] - attr_accessor :locality + # Meta information related to the job searcher or entity conducting the job + # search. This information is used to improve the performance of the service. + # Corresponds to the JSON property `requestMetadata` + # @return [Google::Apis::JobsV4::RequestMetadata] + attr_accessor :request_metadata - # Optional. The name of the organization at the address. - # Corresponds to the JSON property `organization` + # Mode of a search. Defaults to SearchMode.JOB_SEARCH. + # Corresponds to the JSON property `searchMode` # @return [String] - attr_accessor :organization + attr_accessor :search_mode - # Optional. Postal code of the address. Not all countries use or require postal - # codes to be present, but where they are used, they may trigger additional - # validation with other parts of the address (e.g. state/zip validation in the U. - # S.A.). - # Corresponds to the JSON property `postalCode` - # @return [String] - attr_accessor :postal_code + def initialize(**args) + update!(**args) + end - # Optional. The recipient at the address. This field may, under certain - # circumstances, contain multiline information. For example, it might contain " - # care of" information. - # Corresponds to the JSON property `recipients` - # @return [Array] - attr_accessor :recipients + # Update properties of this object + def update!(**args) + @custom_ranking_info = args[:custom_ranking_info] if args.key?(:custom_ranking_info) + @disable_keyword_match = args[:disable_keyword_match] if args.key?(:disable_keyword_match) + @diversification_level = args[:diversification_level] if args.key?(:diversification_level) + @enable_broadening = args[:enable_broadening] if args.key?(:enable_broadening) + @histogram_queries = args[:histogram_queries] if args.key?(:histogram_queries) + @job_query = args[:job_query] if args.key?(:job_query) + @job_view = args[:job_view] if args.key?(:job_view) + @max_page_size = args[:max_page_size] if args.key?(:max_page_size) + @offset = args[:offset] if args.key?(:offset) + @order_by = args[:order_by] if args.key?(:order_by) + @page_token = args[:page_token] if args.key?(:page_token) + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @search_mode = args[:search_mode] if args.key?(:search_mode) + end + end - # Required. CLDR region code of the country/region of the address. This is never - # inferred and it is up to the user to ensure the value is correct. See http:// - # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/ - # territory_information.html for details. Example: "CH" for Switzerland. - # Corresponds to the JSON property `regionCode` - # @return [String] - attr_accessor :region_code + # Response for SearchJob method. + class SearchJobsResponse + include Google::Apis::Core::Hashable - # The schema revision of the `PostalAddress`. This must be set to 0, which is - # the latest revision. All new revisions **must** be backward compatible with - # old revisions. - # Corresponds to the JSON property `revision` + # If query broadening is enabled, we may append additional results from the + # broadened query. This number indicates how many of the jobs returned in the + # jobs field are from the broadened query. These results are always at the end + # of the jobs list. In particular, a value of 0, or if the field isn't set, all + # the jobs in the jobs list are from the original (without broadening) query. If + # this field is non-zero, subsequent requests with offset after this result set + # should contain all broadened results. + # Corresponds to the JSON property `broadenedQueryJobsCount` # @return [Fixnum] - attr_accessor :revision + attr_accessor :broadened_query_jobs_count - # Optional. Additional, country-specific, sorting code. This is not used in most - # regions. Where it is used, the value is either a string like "CEDEX", - # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, - # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) - # or "post office indicator" (e.g. Côte d'Ivoire). - # Corresponds to the JSON property `sortingCode` - # @return [String] - attr_accessor :sorting_code + # The histogram results that match with specified SearchJobsRequest. + # histogram_queries. + # Corresponds to the JSON property `histogramQueryResults` + # @return [Array] + attr_accessor :histogram_query_results - # Optional. Sublocality of the address. For example, this can be neighborhoods, - # boroughs, districts. - # Corresponds to the JSON property `sublocality` + # The location filters that the service applied to the specified query. If any + # filters are lat-lng based, the Location.location_type is Location.LocationType. + # LOCATION_TYPE_UNSPECIFIED. + # Corresponds to the JSON property `locationFilters` + # @return [Array] + attr_accessor :location_filters + + # The Job entities that match the specified SearchJobsRequest. + # Corresponds to the JSON property `matchingJobs` + # @return [Array] + attr_accessor :matching_jobs + + # Additional information returned to client, such as debugging information. + # Corresponds to the JSON property `metadata` + # @return [Google::Apis::JobsV4::ResponseMetadata] + attr_accessor :metadata + + # The token that specifies the starting position of the next page of results. + # This field is empty if there are no more results. + # Corresponds to the JSON property `nextPageToken` # @return [String] - attr_accessor :sublocality + attr_accessor :next_page_token + + # Spell check result. + # Corresponds to the JSON property `spellCorrection` + # @return [Google::Apis::JobsV4::SpellingCorrection] + attr_accessor :spell_correction + + # Number of jobs that match the specified query. Note: This size is precise only + # if the total is less than 100,000. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size def initialize(**args) update!(**args) @@ -3290,38 +2512,40 @@ def initialize(**args) # Update properties of this object def update!(**args) - @address_lines = args[:address_lines] if args.key?(:address_lines) - @administrative_area = args[:administrative_area] if args.key?(:administrative_area) - @language_code = args[:language_code] if args.key?(:language_code) - @locality = args[:locality] if args.key?(:locality) - @organization = args[:organization] if args.key?(:organization) - @postal_code = args[:postal_code] if args.key?(:postal_code) - @recipients = args[:recipients] if args.key?(:recipients) - @region_code = args[:region_code] if args.key?(:region_code) - @revision = args[:revision] if args.key?(:revision) - @sorting_code = args[:sorting_code] if args.key?(:sorting_code) - @sublocality = args[:sublocality] if args.key?(:sublocality) + @broadened_query_jobs_count = args[:broadened_query_jobs_count] if args.key?(:broadened_query_jobs_count) + @histogram_query_results = args[:histogram_query_results] if args.key?(:histogram_query_results) + @location_filters = args[:location_filters] if args.key?(:location_filters) + @matching_jobs = args[:matching_jobs] if args.key?(:matching_jobs) + @metadata = args[:metadata] if args.key?(:metadata) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @spell_correction = args[:spell_correction] if args.key?(:spell_correction) + @total_size = args[:total_size] if args.key?(:total_size) end end - # Options for job processing. - class ProcessingOptions + # Spell check result. + class SpellingCorrection include Google::Apis::Core::Hashable - # If set to `true`, the service does not attempt to resolve a more precise - # address for the job. - # Corresponds to the JSON property `disableStreetAddressResolution` + # Indicates if the query was corrected by the spell checker. + # Corresponds to the JSON property `corrected` # @return [Boolean] - attr_accessor :disable_street_address_resolution - alias_method :disable_street_address_resolution?, :disable_street_address_resolution + attr_accessor :corrected + alias_method :corrected?, :corrected - # Option for job HTML content sanitization. Applied fields are: * description * - # applicationInfo.instruction * incentives * qualifications * responsibilities - # HTML tags in these fields may be stripped if sanitiazation isn't disabled. - # Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY. - # Corresponds to the JSON property `htmlSanitization` + # Corrected output with html tags to highlight the corrected words. Corrected + # words are called out with the "*...*" html tags. For example, the user input + # query is "software enginear", where the second word, "enginear," is incorrect. + # It should be "engineer". When spelling correction is enabled, this value is " + # software *engineer*". + # Corresponds to the JSON property `correctedHtml` # @return [String] - attr_accessor :html_sanitization + attr_accessor :corrected_html + + # Correction output consisting of the corrected keyword string. + # Corresponds to the JSON property `correctedText` + # @return [String] + attr_accessor :corrected_text def initialize(**args) update!(**args) @@ -3329,8 +2553,9 @@ def initialize(**args) # Update properties of this object def update!(**args) - @disable_street_address_resolution = args[:disable_street_address_resolution] if args.key?(:disable_street_address_resolution) - @html_sanitization = args[:html_sanitization] if args.key?(:html_sanitization) + @corrected = args[:corrected] if args.key?(:corrected) + @corrected_html = args[:corrected_html] if args.key?(:corrected_html) + @corrected_text = args[:corrected_text] if args.key?(:corrected_text) end end @@ -3373,6 +2598,37 @@ def update!(**args) end end + # A Tenant resource represents a tenant in the service. A tenant is a group or + # entity that shares common access with specific privileges for resources like + # jobs. Customer may create multiple tenants to provide data isolation for + # different groups. + class Tenant + include Google::Apis::Core::Hashable + + # Required. Client side tenant identifier, used to uniquely identify the tenant. + # The maximum number of allowed characters is 255. + # Corresponds to the JSON property `externalId` + # @return [String] + attr_accessor :external_id + + # Required during tenant update. The resource name for a tenant. This is + # generated by the service when a tenant is created. The format is "projects/` + # project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/bar". + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @external_id = args[:external_id] if args.key?(:external_id) + @name = args[:name] if args.key?(:name) + end + end + # Represents a time of day. The date and time zone are either not significant or # are specified elsewhere. An API may choose to allow leap seconds. Related # types are google.type.Date and `google.protobuf.Timestamp`. @@ -3413,6 +2669,31 @@ def update!(**args) @seconds = args[:seconds] if args.key?(:seconds) end end + + # Message representing a period of time between two timestamps. + class TimestampRange + include Google::Apis::Core::Hashable + + # End of the period (exclusive). + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Begin of the period (inclusive). + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end end end end diff --git a/generated/google/apis/jobs_v4/representations.rb b/generated/google/apis/jobs_v4/representations.rb index 192c39a086a..eaad8b445bf 100644 --- a/generated/google/apis/jobs_v4/representations.rb +++ b/generated/google/apis/jobs_v4/representations.rb @@ -28,379 +28,307 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class BatchOperationMetadata - 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 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 CustomAttribute - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Empty + class BatchCreateJobsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4BatchCreateJobsRequest + class BatchCreateJobsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4BatchCreateJobsResponse + class BatchDeleteJobsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4BatchDeleteJobsRequest + class BatchDeleteJobsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4BatchDeleteJobsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4BatchOperationMetadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4BatchUpdateJobsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4BatchUpdateJobsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4ClientEvent - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4CommuteFilter - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4Company - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class GoogleCloudTalentV4CompanyDerivedInfo + class BatchOperationMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompensationFilter + class BatchUpdateJobsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompensationInfo + class BatchUpdateJobsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompensationInfoCompensationEntry + class ClientEvent class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompensationInfoCompensationRange + class CommuteFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompleteQueryResponse + class CommuteInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CompleteQueryResponseCompletionResult + class Company class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4CustomAttribute + class CompanyDerivedInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4DeviceInfo + class CompensationEntry class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4HistogramQuery + class CompensationFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4HistogramQueryResult + class CompensationInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4Job + class CompensationRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobApplicationInfo + class CompleteQueryResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobDerivedInfo + class CompletionResult class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobEvent + class CustomAttribute class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobProcessingOptions + class CustomRankingInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobQuery + class DeviceInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4JobResult + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4ListCompaniesResponse + class HistogramQuery class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4ListJobsResponse + class HistogramQueryResult class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4ListTenantsResponse + class Job class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4Location + class JobDerivedInfo class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4LocationFilter + class JobEvent class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4RequestMetadata + class JobQuery class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4ResponseMetadata + class JobResult class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SearchJobsRequest + class LatLng class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo + class ListCompaniesResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SearchJobsResponse + class ListJobsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SearchJobsResponseCommuteInfo + class ListTenantsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SearchJobsResponseMatchingJob + class Location class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4SpellingCorrection + class LocationFilter class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4Tenant + class MatchingJob class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudTalentV4TimestampRange + class MendelDebugInput class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Job + class Money class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class JobDerivedInfo + class NamespacedDebugInput class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class JobOperationResult + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class JobResult + class PostalAddress class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class LatLng + class ProcessingOptions class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Location + class RequestMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class MendelDebugInput + class ResponseMetadata class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Money + class SearchJobsRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class NamespacedDebugInput + class SearchJobsResponse class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Operation + class SpellingCorrection class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class PostalAddress + class Status class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ProcessingOptions + class Tenant class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Status + class TimeOfDay class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class TimeOfDay + class TimestampRange class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -415,104 +343,38 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class BatchOperationMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :create_time, as: 'createTime' - property :end_time, as: 'endTime' - property :failure_count, as: 'failureCount' - property :state, as: 'state' - property :state_description, as: 'stateDescription' - property :success_count, as: 'successCount' - property :total_count, as: 'totalCount' - property :update_time, as: 'updateTime' - end - end - - class CompensationEntry + class BatchCreateJobsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - property :amount, as: 'amount', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation + collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation - property :description, as: 'description' - property :expected_units_per_year, as: 'expectedUnitsPerYear' - property :range, as: 'range', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation - - property :type, as: 'type' - property :unit, as: 'unit' end end - class CompensationInfo + class BatchCreateJobsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :annualized_base_compensation_range, as: 'annualizedBaseCompensationRange', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation - - property :annualized_total_compensation_range, as: 'annualizedTotalCompensationRange', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation - - collection :entries, as: 'entries', class: Google::Apis::JobsV4::CompensationEntry, decorator: Google::Apis::JobsV4::CompensationEntry::Representation - - end - end - - class CompensationRange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :max_compensation, as: 'maxCompensation', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation - - property :min_compensation, as: 'minCompensation', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation - - end - end - - class CustomAttribute - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :filterable, as: 'filterable' - property :keyword_searchable, as: 'keywordSearchable' - collection :long_values, as: 'longValues' - collection :string_values, as: 'stringValues' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class GoogleCloudTalentV4BatchCreateJobsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::GoogleCloudTalentV4Job, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - - end - end - - class GoogleCloudTalentV4BatchCreateJobsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult::Representation + collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::JobResult, decorator: Google::Apis::JobsV4::JobResult::Representation end end - class GoogleCloudTalentV4BatchDeleteJobsRequest + class BatchDeleteJobsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation collection :names, as: 'names' end end - class GoogleCloudTalentV4BatchDeleteJobsResponse + class BatchDeleteJobsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult::Representation + collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::JobResult, decorator: Google::Apis::JobsV4::JobResult::Representation end end - class GoogleCloudTalentV4BatchOperationMetadata + class BatchOperationMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation property :create_time, as: 'createTime' @@ -526,36 +388,36 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4BatchUpdateJobsRequest + class BatchUpdateJobsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::GoogleCloudTalentV4Job, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation + collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation property :update_mask, as: 'updateMask' end end - class GoogleCloudTalentV4BatchUpdateJobsResponse + class BatchUpdateJobsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobResult::Representation + collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::JobResult, decorator: Google::Apis::JobsV4::JobResult::Representation end end - class GoogleCloudTalentV4ClientEvent + class ClientEvent # @private class Representation < Google::Apis::Core::JsonRepresentation property :create_time, as: 'createTime' property :event_id, as: 'eventId' property :event_notes, as: 'eventNotes' - property :job_event, as: 'jobEvent', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobEvent, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobEvent::Representation + property :job_event, as: 'jobEvent', class: Google::Apis::JobsV4::JobEvent, decorator: Google::Apis::JobsV4::JobEvent::Representation property :request_id, as: 'requestId' end end - class GoogleCloudTalentV4CommuteFilter + class CommuteFilter # @private class Representation < Google::Apis::Core::JsonRepresentation property :allow_imprecise_addresses, as: 'allowImpreciseAddresses' @@ -569,11 +431,20 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4Company + class CommuteInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :job_location, as: 'jobLocation', class: Google::Apis::JobsV4::Location, decorator: Google::Apis::JobsV4::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::JobsV4::GoogleCloudTalentV4CompanyDerivedInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompanyDerivedInfo::Representation + property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV4::CompanyDerivedInfo, decorator: Google::Apis::JobsV4::CompanyDerivedInfo::Representation property :display_name, as: 'displayName' property :eeo_text, as: 'eeoText' @@ -589,52 +460,52 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4CompanyDerivedInfo + class CompanyDerivedInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :headquarters_location, as: 'headquartersLocation', class: Google::Apis::JobsV4::GoogleCloudTalentV4Location, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Location::Representation + property :headquarters_location, as: 'headquartersLocation', class: Google::Apis::JobsV4::Location, decorator: Google::Apis::JobsV4::Location::Representation end end - class GoogleCloudTalentV4CompensationFilter + class CompensationEntry # @private class Representation < Google::Apis::Core::JsonRepresentation - property :include_jobs_with_unspecified_compensation_range, as: 'includeJobsWithUnspecifiedCompensationRange' - property :range, as: 'range', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange::Representation + property :amount, as: 'amount', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation + + property :description, as: 'description' + property :expected_units_per_year, as: 'expectedUnitsPerYear' + property :range, as: 'range', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation property :type, as: 'type' - collection :units, as: 'units' + property :unit, as: 'unit' end end - class GoogleCloudTalentV4CompensationInfo + class CompensationFilter # @private class Representation < Google::Apis::Core::JsonRepresentation - property :annualized_base_compensation_range, as: 'annualizedBaseCompensationRange', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange::Representation - - property :annualized_total_compensation_range, as: 'annualizedTotalCompensationRange', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange::Representation - - collection :entries, as: 'entries', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationEntry, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationEntry::Representation + property :include_jobs_with_unspecified_compensation_range, as: 'includeJobsWithUnspecifiedCompensationRange' + property :range, as: 'range', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation + property :type, as: 'type' + collection :units, as: 'units' end end - class GoogleCloudTalentV4CompensationInfoCompensationEntry + class CompensationInfo # @private class Representation < Google::Apis::Core::JsonRepresentation - property :amount, as: 'amount', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation + property :annualized_base_compensation_range, as: 'annualizedBaseCompensationRange', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation - property :description, as: 'description' - property :expected_units_per_year, as: 'expectedUnitsPerYear' - property :range, as: 'range', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfoCompensationRange::Representation + property :annualized_total_compensation_range, as: 'annualizedTotalCompensationRange', class: Google::Apis::JobsV4::CompensationRange, decorator: Google::Apis::JobsV4::CompensationRange::Representation + + collection :entries, as: 'entries', class: Google::Apis::JobsV4::CompensationEntry, decorator: Google::Apis::JobsV4::CompensationEntry::Representation - property :type, as: 'type' - property :unit, as: 'unit' end end - class GoogleCloudTalentV4CompensationInfoCompensationRange + class CompensationRange # @private class Representation < Google::Apis::Core::JsonRepresentation property :max_compensation, as: 'maxCompensation', class: Google::Apis::JobsV4::Money, decorator: Google::Apis::JobsV4::Money::Representation @@ -644,17 +515,17 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4CompleteQueryResponse + class CompleteQueryResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :completion_results, as: 'completionResults', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponseCompletionResult, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponseCompletionResult::Representation + collection :completion_results, as: 'completionResults', class: Google::Apis::JobsV4::CompletionResult, decorator: Google::Apis::JobsV4::CompletionResult::Representation - property :metadata, as: 'metadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata::Representation + property :metadata, as: 'metadata', class: Google::Apis::JobsV4::ResponseMetadata, decorator: Google::Apis::JobsV4::ResponseMetadata::Representation end end - class GoogleCloudTalentV4CompleteQueryResponseCompletionResult + class CompletionResult # @private class Representation < Google::Apis::Core::JsonRepresentation property :image_uri, as: 'imageUri' @@ -663,7 +534,7 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4CustomAttribute + class CustomAttribute # @private class Representation < Google::Apis::Core::JsonRepresentation property :filterable, as: 'filterable' @@ -673,7 +544,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4DeviceInfo + 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' @@ -681,14 +560,20 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4HistogramQuery + class Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class HistogramQuery # @private class Representation < Google::Apis::Core::JsonRepresentation property :histogram_query, as: 'histogramQuery' end end - class GoogleCloudTalentV4HistogramQueryResult + class HistogramQueryResult # @private class Representation < Google::Apis::Core::JsonRepresentation hash :histogram, as: 'histogram' @@ -696,21 +581,21 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4Job + class Job # @private class Representation < Google::Apis::Core::JsonRepresentation collection :addresses, as: 'addresses' - property :application_info, as: 'applicationInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobApplicationInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobApplicationInfo::Representation + property :application_info, as: 'applicationInfo', class: Google::Apis::JobsV4::ApplicationInfo, decorator: Google::Apis::JobsV4::ApplicationInfo::Representation property :company, as: 'company' property :company_display_name, as: 'companyDisplayName' - property :compensation_info, as: 'compensationInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationInfo::Representation + property :compensation_info, as: 'compensationInfo', class: Google::Apis::JobsV4::CompensationInfo, decorator: Google::Apis::JobsV4::CompensationInfo::Representation - hash :custom_attributes, as: 'customAttributes', class: Google::Apis::JobsV4::GoogleCloudTalentV4CustomAttribute, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CustomAttribute::Representation + hash :custom_attributes, as: 'customAttributes', class: Google::Apis::JobsV4::CustomAttribute, decorator: Google::Apis::JobsV4::CustomAttribute::Representation collection :degree_types, as: 'degreeTypes' property :department, as: 'department' - property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobDerivedInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobDerivedInfo::Representation + property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV4::JobDerivedInfo, decorator: Google::Apis::JobsV4::JobDerivedInfo::Representation property :description, as: 'description' collection :employment_types, as: 'employmentTypes' @@ -726,7 +611,7 @@ class Representation < Google::Apis::Core::JsonRepresentation 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::JobsV4::GoogleCloudTalentV4JobProcessingOptions, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobProcessingOptions::Representation + property :processing_options, as: 'processingOptions', class: Google::Apis::JobsV4::ProcessingOptions, decorator: Google::Apis::JobsV4::ProcessingOptions::Representation property :promotion_value, as: 'promotionValue' property :qualifications, as: 'qualifications' @@ -737,25 +622,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4JobApplicationInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :emails, as: 'emails' - property :instruction, as: 'instruction' - collection :uris, as: 'uris' - end - end - - class GoogleCloudTalentV4JobDerivedInfo + class JobDerivedInfo # @private class Representation < Google::Apis::Core::JsonRepresentation collection :job_categories, as: 'jobCategories' - collection :locations, as: 'locations', class: Google::Apis::JobsV4::GoogleCloudTalentV4Location, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Location::Representation + collection :locations, as: 'locations', class: Google::Apis::JobsV4::Location, decorator: Google::Apis::JobsV4::Location::Representation end end - class GoogleCloudTalentV4JobEvent + class JobEvent # @private class Representation < Google::Apis::Core::JsonRepresentation collection :jobs, as: 'jobs' @@ -763,22 +639,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4JobProcessingOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :disable_street_address_resolution, as: 'disableStreetAddressResolution' - property :html_sanitization, as: 'htmlSanitization' - end - end - - class GoogleCloudTalentV4JobQuery + class JobQuery # @private class Representation < Google::Apis::Core::JsonRepresentation - property :commute_filter, as: 'commuteFilter', class: Google::Apis::JobsV4::GoogleCloudTalentV4CommuteFilter, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CommuteFilter::Representation + property :commute_filter, as: 'commuteFilter', class: Google::Apis::JobsV4::CommuteFilter, decorator: Google::Apis::JobsV4::CommuteFilter::Representation collection :companies, as: 'companies' collection :company_display_names, as: 'companyDisplayNames' - property :compensation_filter, as: 'compensationFilter', class: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationFilter, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4CompensationFilter::Representation + property :compensation_filter, as: 'compensationFilter', class: Google::Apis::JobsV4::CompensationFilter, decorator: Google::Apis::JobsV4::CompensationFilter::Representation property :custom_attribute_filter, as: 'customAttributeFilter' property :disable_spell_check, as: 'disableSpellCheck' @@ -786,59 +654,67 @@ class Representation < Google::Apis::Core::JsonRepresentation collection :excluded_jobs, as: 'excludedJobs' collection :job_categories, as: 'jobCategories' collection :language_codes, as: 'languageCodes' - collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV4::GoogleCloudTalentV4LocationFilter, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4LocationFilter::Representation + collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV4::LocationFilter, decorator: Google::Apis::JobsV4::LocationFilter::Representation - property :publish_time_range, as: 'publishTimeRange', class: Google::Apis::JobsV4::GoogleCloudTalentV4TimestampRange, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4TimestampRange::Representation + property :publish_time_range, as: 'publishTimeRange', class: Google::Apis::JobsV4::TimestampRange, decorator: Google::Apis::JobsV4::TimestampRange::Representation property :query, as: 'query' property :query_language_code, as: 'queryLanguageCode' end end - class GoogleCloudTalentV4JobResult + class JobResult # @private class Representation < Google::Apis::Core::JsonRepresentation - property :job, as: 'job', class: Google::Apis::JobsV4::GoogleCloudTalentV4Job, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation + property :job, as: 'job', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation property :status, as: 'status', class: Google::Apis::JobsV4::Status, decorator: Google::Apis::JobsV4::Status::Representation end end - class GoogleCloudTalentV4ListCompaniesResponse + class LatLng # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :companies, as: 'companies', class: Google::Apis::JobsV4::GoogleCloudTalentV4Company, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation + property :latitude, as: 'latitude' + property :longitude, as: 'longitude' + end + end - property :metadata, as: 'metadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata::Representation + class ListCompaniesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :companies, as: 'companies', class: Google::Apis::JobsV4::Company, decorator: Google::Apis::JobsV4::Company::Representation + + property :metadata, as: 'metadata', class: Google::Apis::JobsV4::ResponseMetadata, decorator: Google::Apis::JobsV4::ResponseMetadata::Representation property :next_page_token, as: 'nextPageToken' end end - class GoogleCloudTalentV4ListJobsResponse + class ListJobsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::GoogleCloudTalentV4Job, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation + collection :jobs, as: 'jobs', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation - property :metadata, as: 'metadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata::Representation + property :metadata, as: 'metadata', class: Google::Apis::JobsV4::ResponseMetadata, decorator: Google::Apis::JobsV4::ResponseMetadata::Representation property :next_page_token, as: 'nextPageToken' end end - class GoogleCloudTalentV4ListTenantsResponse + class ListTenantsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation - property :metadata, as: 'metadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata::Representation + property :metadata, as: 'metadata', class: Google::Apis::JobsV4::ResponseMetadata, decorator: Google::Apis::JobsV4::ResponseMetadata::Representation property :next_page_token, as: 'nextPageToken' - collection :tenants, as: 'tenants', class: Google::Apis::JobsV4::GoogleCloudTalentV4Tenant, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation + collection :tenants, as: 'tenants', class: Google::Apis::JobsV4::Tenant, decorator: Google::Apis::JobsV4::Tenant::Representation end end - class GoogleCloudTalentV4Location + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation property :lat_lng, as: 'latLng', class: Google::Apis::JobsV4::LatLng, decorator: Google::Apis::JobsV4::LatLng::Representation @@ -850,7 +726,7 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4LocationFilter + class LocationFilter # @private class Representation < Google::Apis::Core::JsonRepresentation property :address, as: 'address' @@ -862,90 +738,12 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4RequestMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :allow_missing_ids, as: 'allowMissingIds' - property :device_info, as: 'deviceInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4DeviceInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4DeviceInfo::Representation - - property :domain, as: 'domain' - property :session_id, as: 'sessionId' - property :user_id, as: 'userId' - end - end - - class GoogleCloudTalentV4ResponseMetadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :request_id, as: 'requestId' - end - end - - class GoogleCloudTalentV4SearchJobsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :custom_ranking_info, as: 'customRankingInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo::Representation - - property :disable_keyword_match, as: 'disableKeywordMatch' - property :diversification_level, as: 'diversificationLevel' - property :enable_broadening, as: 'enableBroadening' - collection :histogram_queries, as: 'histogramQueries', class: Google::Apis::JobsV4::GoogleCloudTalentV4HistogramQuery, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4HistogramQuery::Representation - - property :job_query, as: 'jobQuery', class: Google::Apis::JobsV4::GoogleCloudTalentV4JobQuery, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4JobQuery::Representation - - property :job_view, as: 'jobView' - property :max_page_size, as: 'maxPageSize' - property :offset, as: 'offset' - property :order_by, as: 'orderBy' - property :page_token, as: 'pageToken' - property :request_metadata, as: 'requestMetadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4RequestMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4RequestMetadata::Representation - - property :search_mode, as: 'searchMode' - end - end - - class GoogleCloudTalentV4SearchJobsRequestCustomRankingInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :importance_level, as: 'importanceLevel' - property :ranking_expression, as: 'rankingExpression' - end - end - - class GoogleCloudTalentV4SearchJobsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :broadened_query_jobs_count, as: 'broadenedQueryJobsCount' - collection :histogram_query_results, as: 'histogramQueryResults', class: Google::Apis::JobsV4::GoogleCloudTalentV4HistogramQueryResult, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4HistogramQueryResult::Representation - - collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV4::GoogleCloudTalentV4Location, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Location::Representation - - collection :matching_jobs, as: 'matchingJobs', class: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponseMatchingJob, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponseMatchingJob::Representation - - property :metadata, as: 'metadata', class: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4ResponseMetadata::Representation - - property :next_page_token, as: 'nextPageToken' - property :spell_correction, as: 'spellCorrection', class: Google::Apis::JobsV4::GoogleCloudTalentV4SpellingCorrection, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4SpellingCorrection::Representation - - property :total_size, as: 'totalSize' - end - end - - class GoogleCloudTalentV4SearchJobsResponseCommuteInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :job_location, as: 'jobLocation', class: Google::Apis::JobsV4::GoogleCloudTalentV4Location, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Location::Representation - - property :travel_duration, as: 'travelDuration' - end - end - - class GoogleCloudTalentV4SearchJobsResponseMatchingJob + class MatchingJob # @private class Representation < Google::Apis::Core::JsonRepresentation - property :commute_info, as: 'commuteInfo', class: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponseCommuteInfo, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponseCommuteInfo::Representation + property :commute_info, as: 'commuteInfo', class: Google::Apis::JobsV4::CommuteInfo, decorator: Google::Apis::JobsV4::CommuteInfo::Representation - property :job, as: 'job', class: Google::Apis::JobsV4::GoogleCloudTalentV4Job, decorator: Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation + property :job, as: 'job', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation property :job_summary, as: 'jobSummary' property :job_title_snippet, as: 'jobTitleSnippet' @@ -953,119 +751,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class GoogleCloudTalentV4SpellingCorrection - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :corrected, as: 'corrected' - property :corrected_html, as: 'correctedHtml' - property :corrected_text, as: 'correctedText' - end - end - - class GoogleCloudTalentV4Tenant - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :external_id, as: 'externalId' - property :name, as: 'name' - end - end - - class GoogleCloudTalentV4TimestampRange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :end_time, as: 'endTime' - property :start_time, as: 'startTime' - end - end - - class Job - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :addresses, as: 'addresses' - property :application_info, as: 'applicationInfo', class: Google::Apis::JobsV4::ApplicationInfo, decorator: Google::Apis::JobsV4::ApplicationInfo::Representation - - property :company, as: 'company' - property :company_display_name, as: 'companyDisplayName' - property :compensation_info, as: 'compensationInfo', class: Google::Apis::JobsV4::CompensationInfo, decorator: Google::Apis::JobsV4::CompensationInfo::Representation - - hash :custom_attributes, as: 'customAttributes', class: Google::Apis::JobsV4::CustomAttribute, decorator: Google::Apis::JobsV4::CustomAttribute::Representation - - collection :degree_types, as: 'degreeTypes' - property :department, as: 'department' - property :derived_info, as: 'derivedInfo', class: Google::Apis::JobsV4::JobDerivedInfo, decorator: Google::Apis::JobsV4::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::JobsV4::ProcessingOptions, decorator: Google::Apis::JobsV4::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::JobsV4::Location, decorator: Google::Apis::JobsV4::Location::Representation - - end - end - - class JobOperationResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :job_results, as: 'jobResults', class: Google::Apis::JobsV4::JobResult, decorator: Google::Apis::JobsV4::JobResult::Representation - - end - end - - class JobResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :job, as: 'job', class: Google::Apis::JobsV4::Job, decorator: Google::Apis::JobsV4::Job::Representation - - property :status, as: 'status', class: Google::Apis::JobsV4::Status, decorator: Google::Apis::JobsV4::Status::Representation - - end - end - - class LatLng - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :latitude, as: 'latitude' - property :longitude, as: 'longitude' - end - end - - class Location - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :lat_lng, as: 'latLng', class: Google::Apis::JobsV4::LatLng, decorator: Google::Apis::JobsV4::LatLng::Representation - - property :location_type, as: 'locationType' - property :postal_address, as: 'postalAddress', class: Google::Apis::JobsV4::PostalAddress, decorator: Google::Apis::JobsV4::PostalAddress::Representation - - property :radius_miles, as: 'radiusMiles' - end - end - class MendelDebugInput # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1140,6 +825,76 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class RequestMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :allow_missing_ids, as: 'allowMissingIds' + property :device_info, as: 'deviceInfo', class: Google::Apis::JobsV4::DeviceInfo, decorator: Google::Apis::JobsV4::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::JobsV4::CustomRankingInfo, decorator: Google::Apis::JobsV4::CustomRankingInfo::Representation + + property :disable_keyword_match, as: 'disableKeywordMatch' + property :diversification_level, as: 'diversificationLevel' + property :enable_broadening, as: 'enableBroadening' + collection :histogram_queries, as: 'histogramQueries', class: Google::Apis::JobsV4::HistogramQuery, decorator: Google::Apis::JobsV4::HistogramQuery::Representation + + property :job_query, as: 'jobQuery', class: Google::Apis::JobsV4::JobQuery, decorator: Google::Apis::JobsV4::JobQuery::Representation + + property :job_view, as: 'jobView' + property :max_page_size, as: 'maxPageSize' + property :offset, as: 'offset' + property :order_by, as: 'orderBy' + property :page_token, as: 'pageToken' + property :request_metadata, as: 'requestMetadata', class: Google::Apis::JobsV4::RequestMetadata, decorator: Google::Apis::JobsV4::RequestMetadata::Representation + + property :search_mode, as: 'searchMode' + end + end + + class SearchJobsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :broadened_query_jobs_count, as: 'broadenedQueryJobsCount' + collection :histogram_query_results, as: 'histogramQueryResults', class: Google::Apis::JobsV4::HistogramQueryResult, decorator: Google::Apis::JobsV4::HistogramQueryResult::Representation + + collection :location_filters, as: 'locationFilters', class: Google::Apis::JobsV4::Location, decorator: Google::Apis::JobsV4::Location::Representation + + collection :matching_jobs, as: 'matchingJobs', class: Google::Apis::JobsV4::MatchingJob, decorator: Google::Apis::JobsV4::MatchingJob::Representation + + property :metadata, as: 'metadata', class: Google::Apis::JobsV4::ResponseMetadata, decorator: Google::Apis::JobsV4::ResponseMetadata::Representation + + property :next_page_token, as: 'nextPageToken' + property :spell_correction, as: 'spellCorrection', class: Google::Apis::JobsV4::SpellingCorrection, decorator: Google::Apis::JobsV4::SpellingCorrection::Representation + + property :total_size, as: 'totalSize' + end + end + + class SpellingCorrection + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :corrected, as: 'corrected' + property :corrected_html, as: 'correctedHtml' + property :corrected_text, as: 'correctedText' + end + end + class Status # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1149,6 +904,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Tenant + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :external_id, as: 'externalId' + property :name, as: 'name' + end + end + class TimeOfDay # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1158,6 +921,14 @@ class Representation < Google::Apis::Core::JsonRepresentation 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 end end end diff --git a/generated/google/apis/jobs_v4/service.rb b/generated/google/apis/jobs_v4/service.rb index e1a15825495..3dc3f35866a 100644 --- a/generated/google/apis/jobs_v4/service.rb +++ b/generated/google/apis/jobs_v4/service.rb @@ -81,18 +81,18 @@ def initialize # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::CompleteQueryResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponse] + # @return [Google::Apis::JobsV4::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_tenant_query(tenant, company: nil, language_codes: nil, page_size: nil, query: nil, scope: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/{+tenant}:completeQuery', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4CompleteQueryResponse + command.response_representation = Google::Apis::JobsV4::CompleteQueryResponse::Representation + command.response_class = Google::Apis::JobsV4::CompleteQueryResponse command.params['tenant'] = tenant unless tenant.nil? command.query['company'] = company unless company.nil? command.query['languageCodes'] = language_codes unless language_codes.nil? @@ -109,7 +109,7 @@ def complete_project_tenant_query(tenant, company: nil, language_codes: nil, pag # @param [String] parent # Required. Resource name of the project under which the tenant is created. The # format is "projects/`project_id`", for example, "projects/foo". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] google_cloud_talent_v4_tenant_object + # @param [Google::Apis::JobsV4::Tenant] tenant_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -119,20 +119,20 @@ def complete_project_tenant_query(tenant, company: nil, language_codes: nil, pag # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] + # @return [Google::Apis::JobsV4::Tenant] # # @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_project_tenant(parent, google_cloud_talent_v4_tenant_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_tenant(parent, tenant_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/tenants', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation - command.request_object = google_cloud_talent_v4_tenant_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant + command.request_representation = Google::Apis::JobsV4::Tenant::Representation + command.request_object = tenant_object + command.response_representation = Google::Apis::JobsV4::Tenant::Representation + command.response_class = Google::Apis::JobsV4::Tenant command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -185,18 +185,18 @@ def delete_project_tenant(name, fields: nil, quota_user: nil, options: nil, &blo # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] + # @return [Google::Apis::JobsV4::Tenant] # # @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_tenant(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/{+name}', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant + command.response_representation = Google::Apis::JobsV4::Tenant::Representation + command.response_class = Google::Apis::JobsV4::Tenant command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -221,18 +221,18 @@ def get_project_tenant(name, fields: nil, quota_user: nil, options: nil, &block) # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4ListTenantsResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::ListTenantsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ListTenantsResponse] + # @return [Google::Apis::JobsV4::ListTenantsResponse] # # @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_tenants(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/{+parent}/tenants', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4ListTenantsResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4ListTenantsResponse + command.response_representation = Google::Apis::JobsV4::ListTenantsResponse::Representation + command.response_class = Google::Apis::JobsV4::ListTenantsResponse 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? @@ -246,7 +246,7 @@ def list_project_tenants(parent, page_size: nil, page_token: nil, fields: nil, q # Required during tenant update. The resource name for a tenant. This is # generated by the service when a tenant is created. The format is "projects/` # project_id`/tenants/`tenant_id`", for example, "projects/foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] google_cloud_talent_v4_tenant_object + # @param [Google::Apis::JobsV4::Tenant] tenant_object # @param [String] update_mask # Strongly recommended for the best service experience. If update_mask is # provided, only the specified fields in tenant are updated. Otherwise all the @@ -261,20 +261,20 @@ def list_project_tenants(parent, page_size: nil, page_token: nil, fields: nil, q # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Tenant] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Tenant] + # @return [Google::Apis::JobsV4::Tenant] # # @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_tenant(name, google_cloud_talent_v4_tenant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_tenant(name, tenant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v4/{+name}', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation - command.request_object = google_cloud_talent_v4_tenant_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Tenant + command.request_representation = Google::Apis::JobsV4::Tenant::Representation + command.request_object = tenant_object + command.response_representation = Google::Apis::JobsV4::Tenant::Representation + command.response_class = Google::Apis::JobsV4::Tenant command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? @@ -291,7 +291,7 @@ def patch_project_tenant(name, google_cloud_talent_v4_tenant_object = nil, updat # Required. Resource name of the tenant under which the event is created. The # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/ # foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent] google_cloud_talent_v4_client_event_object + # @param [Google::Apis::JobsV4::ClientEvent] client_event_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -301,20 +301,20 @@ def patch_project_tenant(name, google_cloud_talent_v4_tenant_object = nil, updat # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent] parsed result object + # @yieldparam result [Google::Apis::JobsV4::ClientEvent] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent] + # @return [Google::Apis::JobsV4::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_project_tenant_client_event(parent, google_cloud_talent_v4_client_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_tenant_client_event(parent, client_event_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/clientEvents', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent::Representation - command.request_object = google_cloud_talent_v4_client_event_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4ClientEvent + command.request_representation = Google::Apis::JobsV4::ClientEvent::Representation + command.request_object = client_event_object + command.response_representation = Google::Apis::JobsV4::ClientEvent::Representation + command.response_class = Google::Apis::JobsV4::ClientEvent command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -326,7 +326,7 @@ def create_project_tenant_client_event(parent, google_cloud_talent_v4_client_eve # Required. Resource name of the tenant under which the company is created. The # format is "projects/`project_id`/tenants/`tenant_id`", for example, "projects/ # foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4Company] google_cloud_talent_v4_company_object + # @param [Google::Apis::JobsV4::Company] company_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -336,20 +336,20 @@ def create_project_tenant_client_event(parent, google_cloud_talent_v4_client_eve # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Company] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Company] + # @return [Google::Apis::JobsV4::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_project_tenant_company(parent, google_cloud_talent_v4_company_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_tenant_company(parent, company_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/companies', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation - command.request_object = google_cloud_talent_v4_company_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Company + command.request_representation = Google::Apis::JobsV4::Company::Representation + command.request_object = company_object + command.response_representation = Google::Apis::JobsV4::Company::Representation + command.response_class = Google::Apis::JobsV4::Company command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -403,18 +403,18 @@ def delete_project_tenant_company(name, fields: nil, quota_user: nil, options: n # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Company] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Company] + # @return [Google::Apis::JobsV4::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_tenant_company(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/{+name}', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Company + command.response_representation = Google::Apis::JobsV4::Company::Representation + command.response_class = Google::Apis::JobsV4::Company command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -444,18 +444,18 @@ def get_project_tenant_company(name, fields: nil, quota_user: nil, options: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4ListCompaniesResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::ListCompaniesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ListCompaniesResponse] + # @return [Google::Apis::JobsV4::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_tenant_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, 'v4/{+parent}/companies', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4ListCompaniesResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4ListCompaniesResponse + command.response_representation = Google::Apis::JobsV4::ListCompaniesResponse::Representation + command.response_class = Google::Apis::JobsV4::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? @@ -471,7 +471,7 @@ def list_project_tenant_companies(parent, page_size: nil, page_token: nil, requi # generated by the service when a company is created. The format is "projects/` # project_id`/tenants/`tenant_id`/companies/`company_id`", for example, " # projects/foo/tenants/bar/companies/baz". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4Company] google_cloud_talent_v4_company_object + # @param [Google::Apis::JobsV4::Company] company_object # @param [String] update_mask # Strongly recommended for the best service experience. If update_mask is # provided, only the specified fields in company are updated. Otherwise all the @@ -486,20 +486,20 @@ def list_project_tenant_companies(parent, page_size: nil, page_token: nil, requi # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Company] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Company] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Company] + # @return [Google::Apis::JobsV4::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_tenant_company(name, google_cloud_talent_v4_company_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_tenant_company(name, company_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v4/{+name}', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation - command.request_object = google_cloud_talent_v4_company_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Company::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Company + command.request_representation = Google::Apis::JobsV4::Company::Representation + command.request_object = company_object + command.response_representation = Google::Apis::JobsV4::Company::Representation + command.response_class = Google::Apis::JobsV4::Company command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? @@ -512,7 +512,7 @@ def patch_project_tenant_company(name, google_cloud_talent_v4_company_object = n # Required. The resource name of the tenant under which the job is created. The # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/ # foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4BatchCreateJobsRequest] google_cloud_talent_v4_batch_create_jobs_request_object + # @param [Google::Apis::JobsV4::BatchCreateJobsRequest] batch_create_jobs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -530,10 +530,10 @@ def patch_project_tenant_company(name, google_cloud_talent_v4_company_object = n # @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_project_tenant_job_create(parent, google_cloud_talent_v4_batch_create_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_project_tenant_job_create(parent, batch_create_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs:batchCreate', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4BatchCreateJobsRequest::Representation - command.request_object = google_cloud_talent_v4_batch_create_jobs_request_object + command.request_representation = Google::Apis::JobsV4::BatchCreateJobsRequest::Representation + command.request_object = batch_create_jobs_request_object command.response_representation = Google::Apis::JobsV4::Operation::Representation command.response_class = Google::Apis::JobsV4::Operation command.params['parent'] = parent unless parent.nil? @@ -548,7 +548,7 @@ def batch_project_tenant_job_create(parent, google_cloud_talent_v4_batch_create_ # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/ # foo/tenants/bar". The parent of all of the jobs specified in `names` must # match this field. - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4BatchDeleteJobsRequest] google_cloud_talent_v4_batch_delete_jobs_request_object + # @param [Google::Apis::JobsV4::BatchDeleteJobsRequest] batch_delete_jobs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -566,10 +566,10 @@ def batch_project_tenant_job_create(parent, google_cloud_talent_v4_batch_create_ # @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_project_tenant_job_delete(parent, google_cloud_talent_v4_batch_delete_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_project_tenant_job_delete(parent, batch_delete_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs:batchDelete', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4BatchDeleteJobsRequest::Representation - command.request_object = google_cloud_talent_v4_batch_delete_jobs_request_object + command.request_representation = Google::Apis::JobsV4::BatchDeleteJobsRequest::Representation + command.request_object = batch_delete_jobs_request_object command.response_representation = Google::Apis::JobsV4::Operation::Representation command.response_class = Google::Apis::JobsV4::Operation command.params['parent'] = parent unless parent.nil? @@ -583,7 +583,7 @@ def batch_project_tenant_job_delete(parent, google_cloud_talent_v4_batch_delete_ # Required. The resource name of the tenant under which the job is created. The # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/ # foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4BatchUpdateJobsRequest] google_cloud_talent_v4_batch_update_jobs_request_object + # @param [Google::Apis::JobsV4::BatchUpdateJobsRequest] batch_update_jobs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -601,10 +601,10 @@ def batch_project_tenant_job_delete(parent, google_cloud_talent_v4_batch_delete_ # @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_project_tenant_job_update(parent, google_cloud_talent_v4_batch_update_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def batch_project_tenant_job_update(parent, batch_update_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs:batchUpdate', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4BatchUpdateJobsRequest::Representation - command.request_object = google_cloud_talent_v4_batch_update_jobs_request_object + command.request_representation = Google::Apis::JobsV4::BatchUpdateJobsRequest::Representation + command.request_object = batch_update_jobs_request_object command.response_representation = Google::Apis::JobsV4::Operation::Representation command.response_class = Google::Apis::JobsV4::Operation command.params['parent'] = parent unless parent.nil? @@ -619,7 +619,7 @@ def batch_project_tenant_job_update(parent, google_cloud_talent_v4_batch_update_ # Required. The resource name of the tenant under which the job is created. The # format is "projects/`project_id`/tenants/`tenant_id`". For example, "projects/ # foo/tenants/bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4Job] google_cloud_talent_v4_job_object + # @param [Google::Apis::JobsV4::Job] job_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -629,20 +629,20 @@ def batch_project_tenant_job_update(parent, google_cloud_talent_v4_batch_update_ # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Job] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Job] + # @return [Google::Apis::JobsV4::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_project_tenant_job(parent, google_cloud_talent_v4_job_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_tenant_job(parent, job_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - command.request_object = google_cloud_talent_v4_job_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Job + command.request_representation = Google::Apis::JobsV4::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::JobsV4::Job::Representation + command.response_class = Google::Apis::JobsV4::Job command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -697,18 +697,18 @@ def delete_project_tenant_job(name, fields: nil, quota_user: nil, options: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Job] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Job] + # @return [Google::Apis::JobsV4::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_tenant_job(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v4/{+name}', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Job + command.response_representation = Google::Apis::JobsV4::Job::Representation + command.response_class = Google::Apis::JobsV4::Job command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -747,18 +747,18 @@ def get_project_tenant_job(name, fields: nil, quota_user: nil, options: nil, &bl # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4ListJobsResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::ListJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4ListJobsResponse] + # @return [Google::Apis::JobsV4::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_tenant_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, 'v4/{+parent}/jobs', options) - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4ListJobsResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4ListJobsResponse + command.response_representation = Google::Apis::JobsV4::ListJobsResponse::Representation + command.response_class = Google::Apis::JobsV4::ListJobsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['jobView'] = job_view unless job_view.nil? @@ -777,7 +777,7 @@ def list_project_tenant_jobs(parent, filter: nil, job_view: nil, page_size: nil, # tenants/`tenant_id`/jobs/`job_id`". For example, "projects/foo/tenants/bar/ # jobs/baz". 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::JobsV4::GoogleCloudTalentV4Job] google_cloud_talent_v4_job_object + # @param [Google::Apis::JobsV4::Job] job_object # @param [String] update_mask # Strongly recommended for the best service experience. If update_mask is # provided, only the specified fields in job are updated. Otherwise all the @@ -792,20 +792,20 @@ def list_project_tenant_jobs(parent, filter: nil, job_view: nil, page_size: nil, # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4Job] parsed result object + # @yieldparam result [Google::Apis::JobsV4::Job] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4Job] + # @return [Google::Apis::JobsV4::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_tenant_job(name, google_cloud_talent_v4_job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) + def patch_project_tenant_job(name, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v4/{+name}', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - command.request_object = google_cloud_talent_v4_job_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4Job::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4Job + command.request_representation = Google::Apis::JobsV4::Job::Representation + command.request_object = job_object + command.response_representation = Google::Apis::JobsV4::Job::Representation + command.response_class = Google::Apis::JobsV4::Job command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? @@ -820,7 +820,7 @@ def patch_project_tenant_job(name, google_cloud_talent_v4_job_object = nil, upda # Required. The resource name of the tenant to search within. The format is " # projects/`project_id`/tenants/`tenant_id`". For example, "projects/foo/tenants/ # bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequest] google_cloud_talent_v4_search_jobs_request_object + # @param [Google::Apis::JobsV4::SearchJobsRequest] search_jobs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -830,20 +830,20 @@ def patch_project_tenant_job(name, google_cloud_talent_v4_job_object = nil, upda # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::SearchJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse] + # @return [Google::Apis::JobsV4::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_tenant_jobs(parent, google_cloud_talent_v4_search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def search_project_tenant_jobs(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs:search', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequest::Representation - command.request_object = google_cloud_talent_v4_search_jobs_request_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse + command.request_representation = Google::Apis::JobsV4::SearchJobsRequest::Representation + command.request_object = search_jobs_request_object + command.response_representation = Google::Apis::JobsV4::SearchJobsResponse::Representation + command.response_class = Google::Apis::JobsV4::SearchJobsResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? @@ -861,7 +861,7 @@ def search_project_tenant_jobs(parent, google_cloud_talent_v4_search_jobs_reques # Required. The resource name of the tenant to search within. The format is " # projects/`project_id`/tenants/`tenant_id`". For example, "projects/foo/tenants/ # bar". - # @param [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequest] google_cloud_talent_v4_search_jobs_request_object + # @param [Google::Apis::JobsV4::SearchJobsRequest] search_jobs_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -871,20 +871,20 @@ def search_project_tenant_jobs(parent, google_cloud_talent_v4_search_jobs_reques # Request-specific options # # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse] parsed result object + # @yieldparam result [Google::Apis::JobsV4::SearchJobsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # - # @return [Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse] + # @return [Google::Apis::JobsV4::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_tenant_job_for_alert(parent, google_cloud_talent_v4_search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def search_project_tenant_job_for_alert(parent, search_jobs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v4/{+parent}/jobs:searchForAlert', options) - command.request_representation = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsRequest::Representation - command.request_object = google_cloud_talent_v4_search_jobs_request_object - command.response_representation = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse::Representation - command.response_class = Google::Apis::JobsV4::GoogleCloudTalentV4SearchJobsResponse + command.request_representation = Google::Apis::JobsV4::SearchJobsRequest::Representation + command.request_object = search_jobs_request_object + command.response_representation = Google::Apis::JobsV4::SearchJobsResponse::Representation + command.response_class = Google::Apis::JobsV4::SearchJobsResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? diff --git a/generated/google/apis/jobs_v4/synth.metadata b/generated/google/apis/jobs_v4/synth.metadata index 1c742688e33..c8a7914144b 100644 --- a/generated/google/apis/jobs_v4/synth.metadata +++ b/generated/google/apis/jobs_v4/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "b135b1a0d68afa96531d8a765e6ef3c5c114c072" + "sha": "259053bff16218c7aecd922559ad5dd923bd2e01" } } ]