Skip to content

Commit

Permalink
chore(job): fix regions in jobs/v3/api_client/ histogram_sample.py & …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
eapl-gemugami authored Jan 7, 2025
1 parent 73c015b commit 8063afb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions jobs/v3/api_client/histogram_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# [START instantiate]
import os
import time

from googleapiclient.discovery import build

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


# [START histogram_search]
# [START job_histogram_search]
def histogram_search(client_service, company_name):
request_metadata = {
"user_id": "HashedUserId",
Expand All @@ -51,9 +49,7 @@ def histogram_search(client_service, company_name):
client_service.projects().jobs().search(parent=parent, body=request).execute()
)
print(response)


# [END histogram_search]
# [END job_histogram_search]


def set_up():
Expand Down
2 changes: 0 additions & 2 deletions jobs/v3/api_client/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.

# [START job_search_quick_start]
# [START quickstart]
import os

from googleapiclient.discovery import build
Expand Down Expand Up @@ -44,5 +43,4 @@ def run_sample():

if __name__ == "__main__":
run_sample()
# [END quickstart]
# [END job_search_quick_start]

0 comments on commit 8063afb

Please sign in to comment.