Skip to content
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

feat: split GAPIC samples by service #599

Merged
merged 8 commits into from Aug 13, 2021
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
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
@@ -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
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
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
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
Expand Up @@ -14,7 +14,6 @@

import os


import get_hyperparameter_tuning_job_sample

PROJECT_ID = os.getenv("BUILD_SPECIFIC_GCLOUD_PROJECT")
Expand Down
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