Skip to content

Commit 8063afb

Browse files
chore(job): fix regions in jobs/v3/api_client/ histogram_sample.py & quickstart.py (#13038)
* chore(job): fix regions in histogram_sample.py - Delete region tag 'instantiate' - Rename region tag 'histogram_search' - Remove unnecesary space to make it consistent with other files in the directory * chore(job): migrate region tag step 3 - remove 'quickstart' from quickstart.py
1 parent 73c015b commit 8063afb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

jobs/v3/api_client/histogram_sample.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# [START instantiate]
1817
import os
1918
import time
2019

2120
from googleapiclient.discovery import build
2221

2322
client_service = build("jobs", "v3")
2423
parent = "projects/" + os.environ["GOOGLE_CLOUD_PROJECT"]
25-
# [END instantiate]
2624

2725

28-
# [START histogram_search]
26+
# [START job_histogram_search]
2927
def histogram_search(client_service, company_name):
3028
request_metadata = {
3129
"user_id": "HashedUserId",
@@ -51,9 +49,7 @@ def histogram_search(client_service, company_name):
5149
client_service.projects().jobs().search(parent=parent, body=request).execute()
5250
)
5351
print(response)
54-
55-
56-
# [END histogram_search]
52+
# [END job_histogram_search]
5753

5854

5955
def set_up():

jobs/v3/api_client/quickstart.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616

1717
# [START job_search_quick_start]
18-
# [START quickstart]
1918
import os
2019

2120
from googleapiclient.discovery import build
@@ -44,5 +43,4 @@ def run_sample():
4443

4544
if __name__ == "__main__":
4645
run_sample()
47-
# [END quickstart]
4846
# [END job_search_quick_start]

0 commit comments

Comments
 (0)