Skip to content

Commit 5ddbf16

Browse files
authored
feat: initial generation of enhanced types (#102)
* feat: initial generation of enhanced types
1 parent 5362a4d commit 5ddbf16

82 files changed

Lines changed: 4339 additions & 339 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@
345345

346346
# Example configuration for intersphinx: refer to the Python standard library.
347347
intersphinx_mapping = {
348-
"python": ("http://python.readthedocs.org/en/latest/", None),
349-
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
348+
"python": ("https://python.readthedocs.org/en/latest/", None),
349+
"google-auth": ("https://googleapis.dev/python/google-auth/latest/", None),
350350
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
351-
"grpc": ("https://grpc.io/grpc/python/", None),
351+
"grpc": ("https://grpc.github.io/grpc/python/", None),
352352
"proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None),
353353
}
354354

docs/definition_v1beta1/types.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Trainingjob Definition v1beta1 API
2+
===================================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1.types
5+
:members:
6+
:show-inheritance:

docs/instance_v1beta1/types.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Instance v1beta1 API
2+
=============================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types
5+
:members:
6+
:show-inheritance:

docs/params_v1beta1/types.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Params v1beta1 API
2+
===========================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1.types
5+
:members:
6+
:show-inheritance:

docs/prediction_v1beta1/types.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Aiplatform V1beta1 Schema Predict Prediction v1beta1 API
2+
===============================================================================
3+
4+
.. automodule:: google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1.types
5+
:members:
6+
:show-inheritance:
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.image_classification import (
19+
ImageClassificationPredictionInstance,
20+
)
21+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.image_object_detection import (
22+
ImageObjectDetectionPredictionInstance,
23+
)
24+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.image_segmentation import (
25+
ImageSegmentationPredictionInstance,
26+
)
27+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.text_classification import (
28+
TextClassificationPredictionInstance,
29+
)
30+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.text_extraction import (
31+
TextExtractionPredictionInstance,
32+
)
33+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.text_sentiment import (
34+
TextSentimentPredictionInstance,
35+
)
36+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.video_action_recognition import (
37+
VideoActionRecognitionPredictionInstance,
38+
)
39+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.video_classification import (
40+
VideoClassificationPredictionInstance,
41+
)
42+
from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.video_object_tracking import (
43+
VideoObjectTrackingPredictionInstance,
44+
)
45+
46+
__all__ = (
47+
"ImageClassificationPredictionInstance",
48+
"ImageObjectDetectionPredictionInstance",
49+
"ImageSegmentationPredictionInstance",
50+
"TextClassificationPredictionInstance",
51+
"TextExtractionPredictionInstance",
52+
"TextSentimentPredictionInstance",
53+
"VideoActionRecognitionPredictionInstance",
54+
"VideoClassificationPredictionInstance",
55+
"VideoObjectTrackingPredictionInstance",
56+
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-aiplatform-v1beta1-schema-predict-instance package uses inline types.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
from .types.image_classification import ImageClassificationPredictionInstance
19+
from .types.image_object_detection import ImageObjectDetectionPredictionInstance
20+
from .types.image_segmentation import ImageSegmentationPredictionInstance
21+
from .types.text_classification import TextClassificationPredictionInstance
22+
from .types.text_extraction import TextExtractionPredictionInstance
23+
from .types.text_sentiment import TextSentimentPredictionInstance
24+
from .types.video_action_recognition import VideoActionRecognitionPredictionInstance
25+
from .types.video_classification import VideoClassificationPredictionInstance
26+
from .types.video_object_tracking import VideoObjectTrackingPredictionInstance
27+
28+
29+
__all__ = (
30+
"ImageObjectDetectionPredictionInstance",
31+
"ImageSegmentationPredictionInstance",
32+
"TextClassificationPredictionInstance",
33+
"TextExtractionPredictionInstance",
34+
"TextSentimentPredictionInstance",
35+
"VideoActionRecognitionPredictionInstance",
36+
"VideoClassificationPredictionInstance",
37+
"VideoObjectTrackingPredictionInstance",
38+
"ImageClassificationPredictionInstance",
39+
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-aiplatform-v1beta1-schema-predict-instance package uses inline types.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
from .image_classification import ImageClassificationPredictionInstance
19+
from .image_object_detection import ImageObjectDetectionPredictionInstance
20+
from .image_segmentation import ImageSegmentationPredictionInstance
21+
from .text_classification import TextClassificationPredictionInstance
22+
from .text_extraction import TextExtractionPredictionInstance
23+
from .text_sentiment import TextSentimentPredictionInstance
24+
from .video_action_recognition import VideoActionRecognitionPredictionInstance
25+
from .video_classification import VideoClassificationPredictionInstance
26+
from .video_object_tracking import VideoObjectTrackingPredictionInstance
27+
28+
29+
__all__ = (
30+
"ImageClassificationPredictionInstance",
31+
"ImageObjectDetectionPredictionInstance",
32+
"ImageSegmentationPredictionInstance",
33+
"TextClassificationPredictionInstance",
34+
"TextExtractionPredictionInstance",
35+
"TextSentimentPredictionInstance",
36+
"VideoActionRecognitionPredictionInstance",
37+
"VideoClassificationPredictionInstance",
38+
"VideoObjectTrackingPredictionInstance",
39+
)

0 commit comments

Comments
 (0)