8000 fix(samples): v1 and v1beta1 region tags collide by bcoe · Pull Request #4885 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content

fix(samples): v1 and v1beta1 region tags collide #4885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions healthcare/api-client/v1beta1/fhir/fhir_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
_BASE_URL = "https://healthcare.googleapis.com/v1beta1"


# [START healthcare_get_session]
def get_session(service_account_json):
"""
Returns an authorized Requests Session class using the service account
Expand All @@ -46,10 +45,6 @@ def get_session(service_account_json):
return session


# [END healthcare_get_session]


# [START healthcare_create_resource]
def create_patient(
service_account_json, base_url, project_id, cloud_region, dataset_id, fhir_store_id
):
Expand Down Expand Up @@ -82,10 +77,6 @@ def create_patient(
return response


# [END healthcare_create_resource]


# [START healthcare_create_encounter]
def create_encounter(
service_account_json,
base_url,
Expand Down Expand Up @@ -134,10 +125,6 @@ def create_encounter(
return response


# [END healthcare_create_encounter]


# [START healthcare_create_observation]
def create_observation(
service_account_json,
base_url,
Expand Down Expand Up @@ -183,10 +170,6 @@ def create_observation(
return response


# [END healthcare_create_observation]


# [START healthcare_delete_resource]
def delete_resource(
service_account_json,
base_url,
Expand Down Expand Up @@ -218,9 +201,6 @@ def delete_resource(
return response


# [END healthcare_delete_resource]


# [START healthcare_conditional_update_resource]
def conditional_update_resource(
service_account_json,
Expand Down
20 changes: 0 additions & 20 deletions healthcare/api-client/v1beta1/fhir/fhir_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from googleapiclient.errors import HttpError


# [START healthcare_get_client]
def get_client(service_account_json):
"""Returns an authorized API client by discovering the Healthcare API and
creating a service object using the service account credentials JSON."""
Expand All @@ -44,10 +43,6 @@ def get_client(service_account_json):
)


# [END healthcare_get_client]


# [START healthcare_create_dataset]
def create_dataset(service_account_json, project_id, cloud_region, dataset_id):
"""Creates a dataset."""
client = get_client(service_account_json)
Expand All @@ -71,10 +66,6 @@ def create_dataset(service_account_json, project_id, cloud_region, dataset_id):
return ""


# [END healthcare_create_dataset]


# [START healthcare_delete_dataset]
def delete_dataset(service_account_json, project_id, cloud_region, dataset_id):
"""Deletes a dataset."""
client = get_client(service_account_json)
Expand All @@ -93,10 +84,6 @@ def delete_dataset(service_account_json, project_id, cloud_region, dataset_id):
return ""


# [END healthcare_delete_dataset]


# [START healthcare_create_fhir_store]
def create_fhir_store(
service_account_json, project_id, cloud_region, dataset_id, fhir_store_id
):
Expand All @@ -121,10 +108,6 @@ def create_fhir_store(
return response


# [END healthcare_create_fhir_store]


# [START healthcare_delete_fhir_store]
def delete_fhir_store(
service_account_json, project_id, cloud_region, dataset_id, fhir_store_id
):
Expand All @@ -148,9 +131,6 @@ def delete_fhir_store(
return response


# [END healthcare_delete_fhir_store]


def parse_command_line_args():
"""Parses command line arguments."""

Expand Down
0