Skip to content

Commit

Permalink
feat: split GAPIC samples by service (#599)
Browse files Browse the repository at this point in the history
* feat: split GAPIC samples by service
  • Loading branch information
dizcology committed Aug 13, 2021
1 parent 355ea24 commit 5f15b4f
Show file tree
Hide file tree
Showing 171 changed files with 85 additions and 61 deletions.
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_dataset_image_sample
import pytest

import create_dataset_image_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
File renamed without changes.
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_dataset_sample
import pytest

import create_dataset_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_dataset_tabular_bigquery_sample
import pytest

import create_dataset_tabular_bigquery_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_dataset_tabular_gcs_sample
import pytest

import create_dataset_tabular_gcs_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_dataset_video_sample
import pytest

import create_dataset_video_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,9 +1,22 @@
import os
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest

import import_data_text_entity_extraction_sample
import os

import import_data_text_entity_extraction_sample
import pytest

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
@@ -1,9 +1,22 @@
import os
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import pytest

import import_data_text_sentiment_analysis_sample
import os

import import_data_text_sentiment_analysis_sample
import pytest

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Expand Up @@ -15,9 +15,8 @@

import os

import pytest

import import_data_video_action_recognition_sample
import pytest

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Expand Up @@ -15,9 +15,8 @@

import os

import pytest

import import_data_video_classification_sample
import pytest

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
Expand Up @@ -15,9 +15,8 @@

import os

import pytest

import import_data_video_object_tracking_sample
import pytest

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
LOCATION = "us-central1"
Expand Down
File renamed without changes.
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_endpoint_sample
import pytest

import create_endpoint_sample
import helpers

DISPLAY_NAME = f"temp_create_endpoint_test_{uuid4()}"
Expand Down
File renamed without changes.
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import deploy_model_custom_trained_model_sample
import pytest

import deploy_model_custom_trained_model_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
File renamed without changes.
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import deploy_model_sample
import pytest

import deploy_model_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_bigquery_sample
import pytest

import create_batch_prediction_job_bigquery_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_sample
import pytest

import create_batch_prediction_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_tabular_forecasting_sample
import pytest

import create_batch_prediction_job_tabular_forecasting_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_text_classification_sample
import pytest

import create_batch_prediction_job_text_classification_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_text_entity_extraction_sample
import pytest

import create_batch_prediction_job_text_entity_extraction_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_text_sentiment_analysis_sample
import pytest

import create_batch_prediction_job_text_sentiment_analysis_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_batch_prediction_job_video_action_recognition_sample
import pytest

import create_batch_prediction_job_video_action_recognition_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_video_classification_sample
import pytest

import create_batch_prediction_job_video_classification_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_batch_prediction_job_video_object_tracking_sample
import pytest

import create_batch_prediction_job_video_object_tracking_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -16,9 +16,9 @@
import os
import uuid

import create_custom_job_sample
import pytest

import create_custom_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_data_labeling_job_active_learning_sample
import pytest

import create_data_labeling_job_active_learning_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_data_labeling_job_image_segmentation_sample
import pytest

import create_data_labeling_job_image_segmentation_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_data_labeling_job_images_sample
import pytest

import create_data_labeling_job_images_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_data_labeling_job_sample
import pytest

import create_data_labeling_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_data_labeling_job_specialist_pool_sample
import pytest

import create_data_labeling_job_specialist_pool_sample
import helpers

API_ENDPOINT = os.getenv("DATA_LABELING_API_ENDPOINT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
from uuid import uuid4

import create_data_labeling_job_video_sample
import pytest

import create_data_labeling_job_video_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_hyperparameter_tuning_job_python_package_sample
import pytest

import create_hyperparameter_tuning_job_python_package_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
Expand Up @@ -15,9 +15,9 @@
import os
import uuid

import create_hyperparameter_tuning_job_sample
import pytest

import create_hyperparameter_tuning_job_sample
import helpers

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
File renamed without changes.
Expand Up @@ -14,7 +14,6 @@

import os


import get_hyperparameter_tuning_job_sample

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -14,9 +14,9 @@

import os

import export_model_sample
import pytest

import export_model_sample

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
MODEL_ID = (
Expand Down

0 comments on commit 5f15b4f

Please sign in to comment.