14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- # [START instantiate]
18
17
import os
19
18
import time
20
19
21
20
from googleapiclient .discovery import build
22
21
23
22
client_service = build ("jobs" , "v3" )
24
23
parent = "projects/" + os .environ ["GOOGLE_CLOUD_PROJECT" ]
25
- # [END instantiate]
26
24
27
25
28
- # [START basic_location_search ]
26
+ # [START job_basic_location_search ]
29
27
def basic_location_search (client_service , company_name , location , distance ):
30
28
request_metadata = {
31
29
"user_id" : "HashedUserId" ,
@@ -47,10 +45,10 @@ def basic_location_search(client_service, company_name, location, distance):
47
45
print (response )
48
46
49
47
50
- # [END basic_location_search ]
48
+ # [END job_basic_location_search ]
51
49
52
50
53
- # [START keyword_location_search ]
51
+ # [START job_keyword_location_search ]
54
52
def keyword_location_search (client_service , company_name , location , distance , keyword ):
55
53
request_metadata = {
56
54
"user_id" : "HashedUserId" ,
@@ -72,10 +70,10 @@ def keyword_location_search(client_service, company_name, location, distance, ke
72
70
print (response )
73
71
74
72
75
- # [END keyword_location_search ]
73
+ # [END job_keyword_location_search ]
76
74
77
75
78
- # [START city_location_search ]
76
+ # [START job_city_location_search ]
79
77
def city_location_search (client_service , company_name , location ):
80
78
request_metadata = {
81
79
"user_id" : "HashedUserId" ,
@@ -97,10 +95,10 @@ def city_location_search(client_service, company_name, location):
97
95
print (response )
98
96
99
97
100
- # [END city_location_search ]
98
+ # [END job_city_location_search ]
101
99
102
100
103
- # [START multi_locations_search ]
101
+ # [START job_multi_locations_search ]
104
102
def multi_locations_search (
105
103
client_service , company_name , location1 , distance1 , location2
106
104
):
@@ -125,10 +123,10 @@ def multi_locations_search(
125
123
print (response )
126
124
127
125
128
- # [END multi_locations_search ]
126
+ # [END job_multi_locations_search ]
129
127
130
128
131
- # [START broadening_location_search ]
129
+ # [START job_broadening_location_search ]
132
130
def broadening_location_search (client_service , company_name , location ):
133
131
request_metadata = {
134
132
"user_id" : "HashedUserId" ,
@@ -151,7 +149,7 @@ def broadening_location_search(client_service, company_name, location):
151
149
print (response )
152
150
153
151
154
- # [END broadening_location_search ]
152
+ # [END job_broadening_location_search ]
155
153
156
154
157
155
location = "Mountain View, CA"
0 commit comments