google-api-client 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +114 -0
- data/CODE_OF_CONDUCT.md +43 -0
- data/MIGRATING.md +1 -5
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/service.rb +3 -3
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -3
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +9 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +34 -1
- data/generated/google/apis/appengine_v1/representations.rb +16 -0
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +67 -3
- data/generated/google/apis/appengine_v1beta/representations.rb +32 -0
- data/generated/google/apis/appengine_v1beta4.rb +1 -1
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +6 -4
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -6
- data/generated/google/apis/chat_v1.rb +2 -2
- data/generated/google/apis/chat_v1/classes.rb +76 -0
- data/generated/google/apis/chat_v1/representations.rb +25 -0
- data/generated/google/apis/chat_v1/service.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +12 -12
- data/generated/google/apis/cloudbuild_v1.rb +2 -2
- data/generated/google/apis/cloudbuild_v1/classes.rb +21 -33
- data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +31 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +31 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +3 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +0 -331
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -1
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +66 -22
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +40 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +38 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +9 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +51 -19
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +2 -3
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +9 -12
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +49 -18
- data/generated/google/apis/compute_alpha/representations.rb +6 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1114 -103
- data/generated/google/apis/compute_beta/representations.rb +431 -0
- data/generated/google/apis/compute_beta/service.rb +605 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +95 -1
- data/generated/google/apis/compute_v1/representations.rb +33 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1 -1
- data/generated/google/apis/container_v1/service.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +348 -2
- data/generated/google/apis/container_v1beta1/representations.rb +121 -0
- data/generated/google/apis/container_v1beta1/service.rb +114 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +147 -0
- data/generated/google/apis/content_v2/representations.rb +65 -0
- data/generated/google/apis/content_v2/service.rb +81 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +7 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +262 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +130 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +164 -1
- data/generated/google/apis/dataproc_v1/representations.rb +70 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
- data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +40 -21
- data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +43 -28
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +74 -110
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +70 -26
- data/generated/google/apis/dlp_v2/representations.rb +3 -0
- data/generated/google/apis/dlp_v2/service.rb +78 -17
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +33 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +137 -125
- data/generated/google/apis/firestore_v1beta1/representations.rb +39 -35
- data/generated/google/apis/firestore_v1beta1/service.rb +16 -16
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +0 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +17 -3
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/{sqladmin_v1beta3.rb → iamcredentials_v1.rb} +9 -13
- data/generated/google/apis/iamcredentials_v1/classes.rb +272 -0
- data/generated/google/apis/iamcredentials_v1/representations.rb +139 -0
- data/generated/google/apis/iamcredentials_v1/service.rb +207 -0
- data/generated/google/apis/indexing_v3.rb +32 -0
- data/generated/google/apis/indexing_v3/classes.rb +115 -0
- data/generated/google/apis/indexing_v3/representations.rb +72 -0
- data/generated/google/apis/indexing_v3/service.rb +122 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +73 -72
- data/generated/google/apis/jobs_v2/representations.rb +0 -1
- data/generated/google/apis/jobs_v2/service.rb +8 -7
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +42 -0
- data/generated/google/apis/logging_v2/representations.rb +17 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +42 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +17 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +17 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +4 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +91 -7
- data/generated/google/apis/monitoring_v3/representations.rb +17 -0
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +12 -2
- data/generated/google/apis/poly_v1/representations.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +57 -4
- data/generated/google/apis/pubsub_v1/representations.rb +19 -0
- data/generated/google/apis/pubsub_v1/service.rb +40 -2
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/script_v1.rb +4 -1
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -4
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +42 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +284 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +78 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +42 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/{replicapool_v1beta2.rb → serviceusage_v1.rb} +13 -15
- data/generated/google/apis/serviceusage_v1/classes.rb +4020 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +1239 -0
- data/generated/google/apis/serviceusage_v1/service.rb +423 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +102 -1
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +55 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +42 -0
- data/generated/google/apis/serviceuser_v1/representations.rb +17 -0
- data/generated/google/apis/serviceuser_v1/service.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +9 -3
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1.rb +2 -2
- data/generated/google/apis/speech_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/service.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +8 -0
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +28 -28
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +28 -28
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +4 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -3
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +4 -2
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -10
- data/generated/google/apis/replicapool_v1beta2/classes.rb +0 -633
- data/generated/google/apis/replicapool_v1beta2/representations.rb +0 -264
- data/generated/google/apis/replicapool_v1beta2/service.rb +0 -583
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
- data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module IndexingV3
|
|
24
|
+
|
|
25
|
+
class PublishUrlNotificationResponse
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class UrlNotification
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class UrlNotificationMetadata
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class PublishUrlNotificationResponse
|
|
44
|
+
# @private
|
|
45
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
46
|
+
property :url_notification_metadata, as: 'urlNotificationMetadata', class: Google::Apis::IndexingV3::UrlNotificationMetadata, decorator: Google::Apis::IndexingV3::UrlNotificationMetadata::Representation
|
|
47
|
+
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class UrlNotification
|
|
52
|
+
# @private
|
|
53
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
54
|
+
property :notify_time, as: 'notifyTime'
|
|
55
|
+
property :type, as: 'type'
|
|
56
|
+
property :url, as: 'url'
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
class UrlNotificationMetadata
|
|
61
|
+
# @private
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
63
|
+
property :latest_remove, as: 'latestRemove', class: Google::Apis::IndexingV3::UrlNotification, decorator: Google::Apis::IndexingV3::UrlNotification::Representation
|
|
64
|
+
|
|
65
|
+
property :latest_update, as: 'latestUpdate', class: Google::Apis::IndexingV3::UrlNotification, decorator: Google::Apis::IndexingV3::UrlNotification::Representation
|
|
66
|
+
|
|
67
|
+
property :url, as: 'url'
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module IndexingV3
|
|
23
|
+
# Indexing API
|
|
24
|
+
#
|
|
25
|
+
# The Indexing API allows developers to share the life cycle of a Web Document
|
|
26
|
+
# with Google.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/indexing_v3'
|
|
30
|
+
#
|
|
31
|
+
# Indexing = Google::Apis::IndexingV3 # Alias the module
|
|
32
|
+
# service = Indexing::IndexingService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://developers.google.com/search/apis/indexing-api/
|
|
35
|
+
class IndexingService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://indexing.googleapis.com/', '')
|
|
48
|
+
@batch_path = 'batch'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Gets metadata about a Web Document. This method can _only_ be used to query
|
|
52
|
+
# URLs that were previously seen in successful Indexing API notifications.
|
|
53
|
+
# Includes the latest `UrlNotification` received via this API.
|
|
54
|
+
# @param [String] url
|
|
55
|
+
# URL that is being queried.
|
|
56
|
+
# @param [String] fields
|
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
|
58
|
+
# @param [String] quota_user
|
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
|
62
|
+
# Request-specific options
|
|
63
|
+
#
|
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
|
65
|
+
# @yieldparam result [Google::Apis::IndexingV3::UrlNotificationMetadata] parsed result object
|
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
67
|
+
#
|
|
68
|
+
# @return [Google::Apis::IndexingV3::UrlNotificationMetadata]
|
|
69
|
+
#
|
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
+
def get_url_notification_metadata(url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
74
|
+
command = make_simple_command(:get, 'v3/urlNotifications/metadata', options)
|
|
75
|
+
command.response_representation = Google::Apis::IndexingV3::UrlNotificationMetadata::Representation
|
|
76
|
+
command.response_class = Google::Apis::IndexingV3::UrlNotificationMetadata
|
|
77
|
+
command.query['url'] = url unless url.nil?
|
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Notifies that a URL has been updated or deleted.
|
|
84
|
+
# @param [Google::Apis::IndexingV3::UrlNotification] url_notification_object
|
|
85
|
+
# @param [String] fields
|
|
86
|
+
# Selector specifying which fields to include in a partial response.
|
|
87
|
+
# @param [String] quota_user
|
|
88
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
89
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
90
|
+
# @param [Google::Apis::RequestOptions] options
|
|
91
|
+
# Request-specific options
|
|
92
|
+
#
|
|
93
|
+
# @yield [result, err] Result & error if block supplied
|
|
94
|
+
# @yieldparam result [Google::Apis::IndexingV3::PublishUrlNotificationResponse] parsed result object
|
|
95
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
96
|
+
#
|
|
97
|
+
# @return [Google::Apis::IndexingV3::PublishUrlNotificationResponse]
|
|
98
|
+
#
|
|
99
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
102
|
+
def publish_url_notification(url_notification_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
103
|
+
command = make_simple_command(:post, 'v3/urlNotifications:publish', options)
|
|
104
|
+
command.request_representation = Google::Apis::IndexingV3::UrlNotification::Representation
|
|
105
|
+
command.request_object = url_notification_object
|
|
106
|
+
command.response_representation = Google::Apis::IndexingV3::PublishUrlNotificationResponse::Representation
|
|
107
|
+
command.response_class = Google::Apis::IndexingV3::PublishUrlNotificationResponse
|
|
108
|
+
command.query['fields'] = fields unless fields.nil?
|
|
109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
110
|
+
execute_or_queue_command(command, &block)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
protected
|
|
114
|
+
|
|
115
|
+
def apply_command_defaults(command)
|
|
116
|
+
command.query['key'] = key unless key.nil?
|
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/job-discovery/docs
|
|
27
27
|
module JobsV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180627'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -251,6 +251,7 @@ module Google
|
|
|
251
251
|
# and "Google", which the client wishes to use as the company displayed on
|
|
252
252
|
# the job. Best practice is to create a distinct company identifier for each
|
|
253
253
|
# distinct brand displayed.
|
|
254
|
+
# The maximum number of allowed characters is 255.
|
|
254
255
|
# Corresponds to the JSON property `distributorCompanyId`
|
|
255
256
|
# @return [String]
|
|
256
257
|
attr_accessor :distributor_company_id
|
|
@@ -295,7 +296,9 @@ module Google
|
|
|
295
296
|
# A list of keys of filterable Job.custom_attributes, whose
|
|
296
297
|
# corresponding `string_values` are used in keyword search. Jobs with
|
|
297
298
|
# `string_values` under these specified field keys are returned if any
|
|
298
|
-
# of the values matches the search keyword.
|
|
299
|
+
# of the values matches the search keyword. Custom field values with
|
|
300
|
+
# parenthesis, brackets and special symbols might not be properly searchable,
|
|
301
|
+
# and those keyword queries need to be surrounded by quotes.
|
|
299
302
|
# Corresponds to the JSON property `keywordSearchableCustomAttributes`
|
|
300
303
|
# @return [Array<String>]
|
|
301
304
|
attr_accessor :keyword_searchable_custom_attributes
|
|
@@ -304,7 +307,9 @@ module Google
|
|
|
304
307
|
# Optional.
|
|
305
308
|
# A list of filterable custom fields that should be used in keyword
|
|
306
309
|
# search. The jobs of this company are returned if any of these custom
|
|
307
|
-
# fields matches the search keyword.
|
|
310
|
+
# fields matches the search keyword. Custom field values with parenthesis,
|
|
311
|
+
# brackets and special symbols might not be properly searchable, and those
|
|
312
|
+
# keyword queries need to be surrounded by quotes.
|
|
308
313
|
# Corresponds to the JSON property `keywordSearchableCustomFields`
|
|
309
314
|
# @return [Array<Fixnum>]
|
|
310
315
|
attr_accessor :keyword_searchable_custom_fields
|
|
@@ -512,7 +517,7 @@ module Google
|
|
|
512
517
|
attr_accessor :type
|
|
513
518
|
|
|
514
519
|
# Required.
|
|
515
|
-
# Specify desired
|
|
520
|
+
# Specify desired `base compensation entry's`
|
|
516
521
|
# CompensationInfo.CompensationUnit.
|
|
517
522
|
# Corresponds to the JSON property `units`
|
|
518
523
|
# @return [Array<String>]
|
|
@@ -811,10 +816,10 @@ module Google
|
|
|
811
816
|
include Google::Apis::Core::Hashable
|
|
812
817
|
|
|
813
818
|
# Required.
|
|
814
|
-
# Specifies the custom field key to perform a histogram on. If
|
|
815
|
-
#
|
|
816
|
-
#
|
|
817
|
-
#
|
|
819
|
+
# Specifies the custom field key to perform a histogram on. If specified
|
|
820
|
+
# without `long_value_histogram_bucketing_option`, histogram on string values
|
|
821
|
+
# of the given `key` is triggered, otherwise histogram is performed on long
|
|
822
|
+
# values.
|
|
818
823
|
# Corresponds to the JSON property `key`
|
|
819
824
|
# @return [String]
|
|
820
825
|
attr_accessor :key
|
|
@@ -1003,7 +1008,7 @@ module Google
|
|
|
1003
1008
|
end
|
|
1004
1009
|
|
|
1005
1010
|
# Input only.
|
|
1006
|
-
# Device information collected from the job
|
|
1011
|
+
# Device information collected from the job seeker, candidate, or
|
|
1007
1012
|
# other entity conducting the job search. Providing this information improves
|
|
1008
1013
|
# the quality of the search results across devices.
|
|
1009
1014
|
class DeviceInfo
|
|
@@ -1016,7 +1021,7 @@ module Google
|
|
|
1016
1021
|
attr_accessor :device_type
|
|
1017
1022
|
|
|
1018
1023
|
# Optional.
|
|
1019
|
-
# A device-specific ID.
|
|
1024
|
+
# A device-specific ID. The ID must be a unique identifier that distinguishes
|
|
1020
1025
|
# the device from other devices.
|
|
1021
1026
|
# Corresponds to the JSON property `id`
|
|
1022
1027
|
# @return [String]
|
|
@@ -1065,7 +1070,7 @@ module Google
|
|
|
1065
1070
|
attr_accessor :compensation_range
|
|
1066
1071
|
|
|
1067
1072
|
# Required.
|
|
1068
|
-
# Specify desired
|
|
1073
|
+
# Specify desired `base compensation entry's`
|
|
1069
1074
|
# ExtendedCompensationInfo.CompensationUnit.
|
|
1070
1075
|
# Corresponds to the JSON property `compensationUnits`
|
|
1071
1076
|
# @return [Array<String>]
|
|
@@ -1429,19 +1434,19 @@ module Google
|
|
|
1429
1434
|
|
|
1430
1435
|
# Optional.
|
|
1431
1436
|
# Specifies compensation field-based histogram requests.
|
|
1432
|
-
# Duplicate CompensationHistogramRequest.
|
|
1437
|
+
# Duplicate values of CompensationHistogramRequest.type are not allowed.
|
|
1433
1438
|
# Corresponds to the JSON property `compensationHistogramFacets`
|
|
1434
1439
|
# @return [Array<Google::Apis::JobsV2::CompensationHistogramRequest>]
|
|
1435
1440
|
attr_accessor :compensation_histogram_facets
|
|
1436
1441
|
|
|
1437
1442
|
# Optional.
|
|
1438
1443
|
# Specifies the custom attributes histogram requests.
|
|
1439
|
-
# Duplicate CustomAttributeHistogramRequest.
|
|
1444
|
+
# Duplicate values of CustomAttributeHistogramRequest.key are not allowed.
|
|
1440
1445
|
# Corresponds to the JSON property `customAttributeHistogramFacets`
|
|
1441
1446
|
# @return [Array<Google::Apis::JobsV2::CustomAttributeHistogramRequest>]
|
|
1442
1447
|
attr_accessor :custom_attribute_histogram_facets
|
|
1443
1448
|
|
|
1444
|
-
# Optional. Specifies the simple type of histogram facets,
|
|
1449
|
+
# Optional. Specifies the simple type of histogram facets, for example,
|
|
1445
1450
|
# `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. This field is equivalent to
|
|
1446
1451
|
# GetHistogramRequest.
|
|
1447
1452
|
# Corresponds to the JSON property `simpleHistogramFacets`
|
|
@@ -1645,7 +1650,7 @@ module Google
|
|
|
1645
1650
|
|
|
1646
1651
|
# Optional but one of company_name or distributor_company_id must be
|
|
1647
1652
|
# provided.
|
|
1648
|
-
# A unique company identifier
|
|
1653
|
+
# A unique company identifier used by job distributors to identify an
|
|
1649
1654
|
# employer's company entity. company_name takes precedence over
|
|
1650
1655
|
# this field, and is the recommended field to use to identify companies.
|
|
1651
1656
|
# The maximum number of allowed characters is 255.
|
|
@@ -1679,15 +1684,15 @@ module Google
|
|
|
1679
1684
|
# @return [Google::Apis::JobsV2::Date]
|
|
1680
1685
|
attr_accessor :end_date
|
|
1681
1686
|
|
|
1682
|
-
# Optional but strongly recommended
|
|
1687
|
+
# Optional but strongly recommended for the best service
|
|
1683
1688
|
# experience.
|
|
1684
1689
|
# The expiration timestamp of the job. After this timestamp, the
|
|
1685
1690
|
# job is marked as expired, and it no longer appears in search results. The
|
|
1686
1691
|
# expired job can't be deleted or listed by the DeleteJob and
|
|
1687
1692
|
# ListJobs APIs, but it can be retrieved with the GetJob API or
|
|
1688
1693
|
# updated with the UpdateJob API. An expired job can be updated and
|
|
1689
|
-
# opened again by using a future expiration timestamp.
|
|
1690
|
-
#
|
|
1694
|
+
# opened again by using a future expiration timestamp. Updating an expired job
|
|
1695
|
+
# fails if there is another
|
|
1691
1696
|
# existing open job with same requisition_id, company_name and
|
|
1692
1697
|
# language_code.
|
|
1693
1698
|
# The expired jobs are retained in our system for 90 days. However, the
|
|
@@ -1702,7 +1707,8 @@ module Google
|
|
|
1702
1707
|
# A valid date range is between 1970-01-01T00:00:00.0Z and
|
|
1703
1708
|
# 2100-12-31T23:59:59.999Z. Invalid dates are ignored and treated as expire
|
|
1704
1709
|
# time not provided.
|
|
1705
|
-
# If this value is not provided
|
|
1710
|
+
# If this value is not provided at the time of job creation or is invalid, the
|
|
1711
|
+
# job posting
|
|
1706
1712
|
# expires after 30 days from the job's creation time. For example, if the
|
|
1707
1713
|
# job was created on 2017/01/01 13:00AM UTC with an unspecified expiration
|
|
1708
1714
|
# date, the job expires after 2017/01/31 13:00AM UTC.
|
|
@@ -1778,7 +1784,8 @@ module Google
|
|
|
1778
1784
|
# any requirements for fluency that are associated with the job.
|
|
1779
1785
|
# Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
|
|
1780
1786
|
# For more information, see
|
|
1781
|
-
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)
|
|
1787
|
+
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47)`: class="
|
|
1788
|
+
# external" target="_blank" `.
|
|
1782
1789
|
# The default value is `en-US`.
|
|
1783
1790
|
# Corresponds to the JSON property `languageCode`
|
|
1784
1791
|
# @return [String]
|
|
@@ -1790,12 +1797,10 @@ module Google
|
|
|
1790
1797
|
# @return [String]
|
|
1791
1798
|
attr_accessor :level
|
|
1792
1799
|
|
|
1793
|
-
# Optional but strongly recommended
|
|
1794
|
-
#
|
|
1795
|
-
#
|
|
1796
|
-
#
|
|
1797
|
-
# location is recommended to enable better API results, including
|
|
1798
|
-
# job searches by commute time.
|
|
1800
|
+
# Optional but strongly recommended for the best service experience.
|
|
1801
|
+
# Location(s) where the emploeyer is looking to hire for this job posting.
|
|
1802
|
+
# Specifying the full street address(es) of the hiring location enables
|
|
1803
|
+
# better API results, especially job searches by commute time.
|
|
1799
1804
|
# At most 50 locations are allowed for best search performance. If a job has
|
|
1800
1805
|
# more locations, it is suggested to split it into multiple jobs with unique
|
|
1801
1806
|
# requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as
|
|
@@ -1873,7 +1878,7 @@ module Google
|
|
|
1873
1878
|
# for client identification and tracking of listings. A job is not allowed
|
|
1874
1879
|
# to be created if there is another job with the same requisition_id,
|
|
1875
1880
|
# company_name and language_code.
|
|
1876
|
-
# The maximum number of allowed characters is
|
|
1881
|
+
# The maximum number of allowed characters is 255.
|
|
1877
1882
|
# Corresponds to the JSON property `requisitionId`
|
|
1878
1883
|
# @return [String]
|
|
1879
1884
|
attr_accessor :requisition_id
|
|
@@ -2086,9 +2091,9 @@ module Google
|
|
|
2086
2091
|
# Optional.
|
|
2087
2092
|
# This filter specifies the locale of jobs to search against,
|
|
2088
2093
|
# for example, "en-US".
|
|
2089
|
-
# If a value is not specified, the search results
|
|
2094
|
+
# If a value is not specified, the search results may contain jobs in any
|
|
2090
2095
|
# locale.
|
|
2091
|
-
# Language codes should be in BCP-47 format,
|
|
2096
|
+
# Language codes should be in BCP-47 format, for example, "en-US" or "sr-Latn".
|
|
2092
2097
|
# For more information, see
|
|
2093
2098
|
# [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
|
|
2094
2099
|
# At most 10 language code filters are allowed.
|
|
@@ -2114,7 +2119,7 @@ module Google
|
|
|
2114
2119
|
# Jobs published within a range specified by this filter are searched
|
|
2115
2120
|
# against, for example, DateRange.PAST_MONTH. If a value is not
|
|
2116
2121
|
# specified, all open jobs are searched against regardless of the
|
|
2117
|
-
# date
|
|
2122
|
+
# date they were published.
|
|
2118
2123
|
# Corresponds to the JSON property `publishDateRange`
|
|
2119
2124
|
# @return [String]
|
|
2120
2125
|
attr_accessor :publish_date_range
|
|
@@ -2122,15 +2127,15 @@ module Google
|
|
|
2122
2127
|
# Optional.
|
|
2123
2128
|
# The query filter contains the keywords that match against the job
|
|
2124
2129
|
# title, description, and location fields.
|
|
2125
|
-
# The maximum query size is 255 bytes.
|
|
2130
|
+
# The maximum query size is 255 bytes/characters.
|
|
2126
2131
|
# Corresponds to the JSON property `query`
|
|
2127
2132
|
# @return [String]
|
|
2128
2133
|
attr_accessor :query
|
|
2129
2134
|
|
|
2130
|
-
#
|
|
2135
|
+
# Deprecated. Do not use this field.
|
|
2131
2136
|
# This flag controls whether the job search should be restricted to jobs
|
|
2132
2137
|
# owned by the current user.
|
|
2133
|
-
# Defaults to false
|
|
2138
|
+
# Defaults to false where all jobs accessible to the
|
|
2134
2139
|
# user are searched against.
|
|
2135
2140
|
# Corresponds to the JSON property `tenantJobOnly`
|
|
2136
2141
|
# @return [Boolean]
|
|
@@ -2247,8 +2252,8 @@ module Google
|
|
|
2247
2252
|
|
|
2248
2253
|
# Optional.
|
|
2249
2254
|
# This filter specifies the exact company display
|
|
2250
|
-
# name of jobs to search against.
|
|
2251
|
-
# If a value
|
|
2255
|
+
# name of the jobs to search against.
|
|
2256
|
+
# If a value isn't specified, jobs within the search results are
|
|
2252
2257
|
# associated with any company.
|
|
2253
2258
|
# If multiple values are specified, jobs within the search results may be
|
|
2254
2259
|
# associated with any of the specified companies.
|
|
@@ -2258,12 +2263,11 @@ module Google
|
|
|
2258
2263
|
attr_accessor :company_display_names
|
|
2259
2264
|
|
|
2260
2265
|
# Optional.
|
|
2261
|
-
#
|
|
2262
|
-
# against
|
|
2263
|
-
# If a value is not specified, jobs are searched for against all
|
|
2266
|
+
# This filter specifies the company entities to search against.
|
|
2267
|
+
# If a value isn't specified, jobs are searched for against all
|
|
2264
2268
|
# companies.
|
|
2265
2269
|
# If multiple values are specified, jobs are searched against the
|
|
2266
|
-
# specified
|
|
2270
|
+
# companies specified.
|
|
2267
2271
|
# At most 20 company filters are allowed.
|
|
2268
2272
|
# Corresponds to the JSON property `companyNames`
|
|
2269
2273
|
# @return [Array<String>]
|
|
@@ -2277,7 +2281,7 @@ module Google
|
|
|
2277
2281
|
|
|
2278
2282
|
# Optional.
|
|
2279
2283
|
# This filter specifies a structured syntax to match against the
|
|
2280
|
-
# Job.custom_attributes
|
|
2284
|
+
# Job.custom_attributes marked as `filterable`.
|
|
2281
2285
|
# The syntax for this expression is a subset of Google SQL syntax.
|
|
2282
2286
|
# Supported operators are: =, !=, <, <=, >, >= where the left of the operator
|
|
2283
2287
|
# is a custom field key and the right of the operator is a number or string
|
|
@@ -2286,8 +2290,8 @@ module Google
|
|
|
2286
2290
|
# perform case insensitive match and EMPTY(<field_name>) to filter on the
|
|
2287
2291
|
# existence of a key.
|
|
2288
2292
|
# Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
|
|
2289
|
-
# nesting (for example, "((A AND B AND C) OR NOT D) AND E"),
|
|
2290
|
-
#
|
|
2293
|
+
# nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 50
|
|
2294
|
+
# comparisons/functions are allowed in the expression. The expression
|
|
2291
2295
|
# must be < 2000 characters in length.
|
|
2292
2296
|
# Sample Query:
|
|
2293
2297
|
# (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 > 100
|
|
@@ -2308,7 +2312,7 @@ module Google
|
|
|
2308
2312
|
# Optional.
|
|
2309
2313
|
# The employment type filter specifies the employment type of jobs to
|
|
2310
2314
|
# search against, such as EmploymentType.FULL_TIME.
|
|
2311
|
-
# If a value is not specified, jobs in the search results
|
|
2315
|
+
# If a value is not specified, jobs in the search results include any
|
|
2312
2316
|
# employment type.
|
|
2313
2317
|
# If multiple values are specified, jobs in the search results include
|
|
2314
2318
|
# any of the specified employment types.
|
|
@@ -2319,7 +2323,7 @@ module Google
|
|
|
2319
2323
|
# Optional.
|
|
2320
2324
|
# This filter specifies the locale of jobs to search against,
|
|
2321
2325
|
# for example, "en-US".
|
|
2322
|
-
# If a value
|
|
2326
|
+
# If a value isn't specified, the search results can contain jobs in any
|
|
2323
2327
|
# locale.
|
|
2324
2328
|
# Language codes should be in BCP-47 format, such as "en-US" or "sr-Latn".
|
|
2325
2329
|
# For more information, see
|
|
@@ -2332,7 +2336,7 @@ module Google
|
|
|
2332
2336
|
# Optional.
|
|
2333
2337
|
# The location filter specifies geo-regions containing the jobs to
|
|
2334
2338
|
# search against. See LocationFilter for more information.
|
|
2335
|
-
# If a location value
|
|
2339
|
+
# If a location value isn't specified, jobs fitting the other search
|
|
2336
2340
|
# criteria are retrieved regardless of where they're located.
|
|
2337
2341
|
# If multiple values are specified, jobs are retrieved from any of the
|
|
2338
2342
|
# specified locations, and, if different values are specified
|
|
@@ -2345,9 +2349,9 @@ module Google
|
|
|
2345
2349
|
|
|
2346
2350
|
# Optional.
|
|
2347
2351
|
# Jobs published within a range specified by this filter are searched
|
|
2348
|
-
# against, for example, DateRange.PAST_MONTH. If a value
|
|
2349
|
-
# specified, all open jobs are searched against regardless of
|
|
2350
|
-
# date
|
|
2352
|
+
# against, for example, DateRange.PAST_MONTH. If a value isn't
|
|
2353
|
+
# specified, all open jobs are searched against regardless of their
|
|
2354
|
+
# published date.
|
|
2351
2355
|
# Corresponds to the JSON property `publishDateRange`
|
|
2352
2356
|
# @return [String]
|
|
2353
2357
|
attr_accessor :publish_date_range
|
|
@@ -2360,16 +2364,6 @@ module Google
|
|
|
2360
2364
|
# @return [String]
|
|
2361
2365
|
attr_accessor :query
|
|
2362
2366
|
|
|
2363
|
-
# Optional.
|
|
2364
|
-
# This flag controls whether the job search should be restricted to jobs
|
|
2365
|
-
# owned by the current user.
|
|
2366
|
-
# Defaults to false: all jobs accessible to the
|
|
2367
|
-
# user are searched against.
|
|
2368
|
-
# Corresponds to the JSON property `tenantJobOnly`
|
|
2369
|
-
# @return [Boolean]
|
|
2370
|
-
attr_accessor :tenant_job_only
|
|
2371
|
-
alias_method :tenant_job_only?, :tenant_job_only
|
|
2372
|
-
|
|
2373
2367
|
def initialize(**args)
|
|
2374
2368
|
update!(**args)
|
|
2375
2369
|
end
|
|
@@ -2388,7 +2382,6 @@ module Google
|
|
|
2388
2382
|
@location_filters = args[:location_filters] if args.key?(:location_filters)
|
|
2389
2383
|
@publish_date_range = args[:publish_date_range] if args.key?(:publish_date_range)
|
|
2390
2384
|
@query = args[:query] if args.key?(:query)
|
|
2391
|
-
@tenant_job_only = args[:tenant_job_only] if args.key?(:tenant_job_only)
|
|
2392
2385
|
end
|
|
2393
2386
|
end
|
|
2394
2387
|
|
|
@@ -2542,8 +2535,9 @@ module Google
|
|
|
2542
2535
|
include Google::Apis::Core::Hashable
|
|
2543
2536
|
|
|
2544
2537
|
# Optional.
|
|
2545
|
-
# The
|
|
2546
|
-
#
|
|
2538
|
+
# The distance_in_miles is applied when the location being searched for is
|
|
2539
|
+
# identified as a city or smaller. When the location being searched for is a
|
|
2540
|
+
# state or larger, this field is ignored.
|
|
2547
2541
|
# Corresponds to the JSON property `distanceInMiles`
|
|
2548
2542
|
# @return [Float]
|
|
2549
2543
|
attr_accessor :distance_in_miles
|
|
@@ -2633,8 +2627,8 @@ module Google
|
|
|
2633
2627
|
# @return [String]
|
|
2634
2628
|
attr_accessor :job_summary
|
|
2635
2629
|
|
|
2636
|
-
# Contains snippets of text from the Job.job_title field
|
|
2637
|
-
# closely
|
|
2630
|
+
# Contains snippets of text from the Job.job_title field most
|
|
2631
|
+
# closely matching a search query's keywords, if available. The matching query
|
|
2638
2632
|
# keywords are enclosed in HTML bold tags.
|
|
2639
2633
|
# Corresponds to the JSON property `jobTitleSnippet`
|
|
2640
2634
|
# @return [String]
|
|
@@ -2919,7 +2913,7 @@ module Google
|
|
|
2919
2913
|
include Google::Apis::Core::Hashable
|
|
2920
2914
|
|
|
2921
2915
|
# Input only.
|
|
2922
|
-
# Device information collected from the job
|
|
2916
|
+
# Device information collected from the job seeker, candidate, or
|
|
2923
2917
|
# other entity conducting the job search. Providing this information improves
|
|
2924
2918
|
# the quality of the search results across devices.
|
|
2925
2919
|
# Corresponds to the JSON property `deviceInfo`
|
|
@@ -2934,7 +2928,9 @@ module Google
|
|
|
2934
2928
|
# job board www.foo.com and career site www.bar.com, then this field is
|
|
2935
2929
|
# set to "foo.com" for use on the job board, and "bar.com" for use on the
|
|
2936
2930
|
# career site.
|
|
2937
|
-
# If this field is not available for some reason,
|
|
2931
|
+
# If this field is not available for some reason, send "UNKNOWN". Note that
|
|
2932
|
+
# any improvements to the service model for a particular tenant site rely on
|
|
2933
|
+
# this field being set correctly to some domain.
|
|
2938
2934
|
# Corresponds to the JSON property `domain`
|
|
2939
2935
|
# @return [String]
|
|
2940
2936
|
attr_accessor :domain
|
|
@@ -2944,7 +2940,9 @@ module Google
|
|
|
2944
2940
|
# duration of an end user's interaction with the service over a period.
|
|
2945
2941
|
# Obfuscate this field for privacy concerns before
|
|
2946
2942
|
# providing it to the API.
|
|
2947
|
-
# If this field is not available for some reason, please send "UNKNOWN".
|
|
2943
|
+
# If this field is not available for some reason, please send "UNKNOWN". Note
|
|
2944
|
+
# that any improvements to the service model for a particular tenant site,
|
|
2945
|
+
# rely on this field being set correctly to some unique session_id.
|
|
2948
2946
|
# Corresponds to the JSON property `sessionId`
|
|
2949
2947
|
# @return [String]
|
|
2950
2948
|
attr_accessor :session_id
|
|
@@ -2955,7 +2953,9 @@ module Google
|
|
|
2955
2953
|
# in order to have the strongest positive impact on search quality.
|
|
2956
2954
|
# Obfuscate this field for privacy concerns before
|
|
2957
2955
|
# providing it to the service.
|
|
2958
|
-
# If this field is not available for some reason, please send "UNKNOWN".
|
|
2956
|
+
# If this field is not available for some reason, please send "UNKNOWN". Note
|
|
2957
|
+
# that any improvements to the service model for a particular tenant site,
|
|
2958
|
+
# rely on this field being set correctly to some unique user_id.
|
|
2959
2959
|
# Corresponds to the JSON property `userId`
|
|
2960
2960
|
# @return [String]
|
|
2961
2961
|
attr_accessor :user_id
|
|
@@ -3015,7 +3015,7 @@ module Google
|
|
|
3015
3015
|
class SearchJobsRequest
|
|
3016
3016
|
include Google::Apis::Core::Hashable
|
|
3017
3017
|
|
|
3018
|
-
# Deprecated. Any value provided in this field
|
|
3018
|
+
# Deprecated. Any value provided in this field is ignored.
|
|
3019
3019
|
# Optional.
|
|
3020
3020
|
# Controls whether to disable relevance thresholding. Relevance
|
|
3021
3021
|
# thresholding removes jobs that have low relevance in search results,
|
|
@@ -3066,7 +3066,7 @@ module Google
|
|
|
3066
3066
|
attr_accessor :histogram_facets
|
|
3067
3067
|
|
|
3068
3068
|
# Optional.
|
|
3069
|
-
# The number of job attributes
|
|
3069
|
+
# The number of job attributes returned for jobs in the
|
|
3070
3070
|
# search response. Defaults to JobView.SMALL if no value is specified.
|
|
3071
3071
|
# Corresponds to the JSON property `jobView`
|
|
3072
3072
|
# @return [String]
|
|
@@ -3079,7 +3079,8 @@ module Google
|
|
|
3079
3079
|
attr_accessor :mode
|
|
3080
3080
|
|
|
3081
3081
|
# Optional.
|
|
3082
|
-
# An integer that specifies the current offset (
|
|
3082
|
+
# An integer that specifies the current offset (that is, starting result
|
|
3083
|
+
# location, amongst the jobs deemed by the API as relevant) in
|
|
3083
3084
|
# search results. This field is only considered if page_token is unset.
|
|
3084
3085
|
# For example, 0 means to return results starting from the first matching
|
|
3085
3086
|
# job, and 10 means to return from the 11th job. This can be used for
|
|
@@ -3091,7 +3092,7 @@ module Google
|
|
|
3091
3092
|
|
|
3092
3093
|
# Deprecated. Use sort_by instead.
|
|
3093
3094
|
# Optional.
|
|
3094
|
-
# The criteria
|
|
3095
|
+
# The criteria determining how search results are sorted.
|
|
3095
3096
|
# Defaults to SortBy.RELEVANCE_DESC if no value is specified.
|
|
3096
3097
|
# Corresponds to the JSON property `orderBy`
|
|
3097
3098
|
# @return [String]
|
|
@@ -3106,7 +3107,7 @@ module Google
|
|
|
3106
3107
|
attr_accessor :page_size
|
|
3107
3108
|
|
|
3108
3109
|
# Optional.
|
|
3109
|
-
# The token
|
|
3110
|
+
# The token specifying the current offset within
|
|
3110
3111
|
# search results. See SearchJobsResponse.next_page_token for
|
|
3111
3112
|
# an explanation of how to obtain the next set of query results.
|
|
3112
3113
|
# Corresponds to the JSON property `pageToken`
|
|
@@ -3128,7 +3129,7 @@ module Google
|
|
|
3128
3129
|
attr_accessor :request_metadata
|
|
3129
3130
|
|
|
3130
3131
|
# Optional.
|
|
3131
|
-
# The criteria
|
|
3132
|
+
# The criteria determining how search results are sorted.
|
|
3132
3133
|
# Defaults to SortBy.RELEVANCE_DESC if no value is specified.
|
|
3133
3134
|
# Corresponds to the JSON property `sortBy`
|
|
3134
3135
|
# @return [String]
|