File tree
Expand file treeCollapse file tree5 files changed
+23
-22
lines changed Expand file treeCollapse file tree5 files changed
+23
-22
lines changed Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 |
|
17 |
| - |
| 17 | +from google.cloud.aiplatform.helpers import _decorators |
18 | 18 | from google.cloud.aiplatform.v1beta1.schema import predict
|
19 | 19 | from google.cloud.aiplatform.v1beta1.schema import trainingjob
|
20 |
| - |
| 20 | +from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1 import ( |
| 21 | +types as instance, |
| 22 | +) |
| 23 | +from google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1 import ( |
| 24 | +types as params, |
| 25 | +) |
| 26 | +from google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1 import ( |
| 27 | +types as prediction, |
| 28 | +) |
| 29 | +from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1 import ( |
| 30 | +types as definition, |
| 31 | +) |
21 | 32 |
|
22 | 33 | __all__ = (
|
23 | 34 | "predict",
|
24 | 35 | "trainingjob",
|
25 | 36 | )
|
| 37 | + |
| 38 | +enhanced_types_packages = [ |
| 39 | +instance, |
| 40 | +params, |
| 41 | +prediction, |
| 42 | +definition, |
| 43 | +] |
| 44 | + |
| 45 | +for pkg in enhanced_types_packages: |
| 46 | +_decorators._add_methods_to_classes_in_package(pkg) |
Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 | #
|
17 |
| -from google.cloud.aiplatform.helpers import _decorators |
18 |
| -from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1 import types as pkg |
19 |
| - |
20 | 17 | from google.cloud.aiplatform.v1beta1.schema.predict.instance_v1beta1.types.image_classification import (
|
21 | 18 | ImageClassificationPredictionInstance,
|
22 | 19 | )
|
|
56 | 53 | "VideoClassificationPredictionInstance",
|
57 | 54 | "VideoObjectTrackingPredictionInstance",
|
58 | 55 | )
|
59 |
| -_decorators._add_methods_to_classes_in_package(pkg) |
Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 | #
|
17 |
| -from google.cloud.aiplatform.helpers import _decorators |
18 |
| -from google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1 import types as pkg |
19 |
| - |
20 | 17 | from google.cloud.aiplatform.v1beta1.schema.predict.params_v1beta1.types.image_classification import (
|
21 | 18 | ImageClassificationPredictionParams,
|
22 | 19 | )
|
|
44 | 41 | "VideoClassificationPredictionParams",
|
45 | 42 | "VideoObjectTrackingPredictionParams",
|
46 | 43 | )
|
47 |
| -_decorators._add_methods_to_classes_in_package(pkg) |
Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 | #
|
17 |
| -from google.cloud.aiplatform.helpers import _decorators |
18 |
| -from google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1 import ( |
19 |
| -types as pkg, |
20 |
| -) |
21 |
| - |
22 | 17 | from google.cloud.aiplatform.v1beta1.schema.predict.prediction_v1beta1.types.classification import (
|
23 | 18 | ClassificationPredictionResult,
|
24 | 19 | )
|
|
66 | 61 | "VideoClassificationPredictionResult",
|
67 | 62 | "VideoObjectTrackingPredictionResult",
|
68 | 63 | )
|
69 |
| -_decorators._add_methods_to_classes_in_package(pkg) |
Original file line number | Diff line number | Diff line change |
---|
|
14 | 14 | # See the License for the specific language governing permissions and
|
15 | 15 | # limitations under the License.
|
16 | 16 | #
|
17 |
| -from google.cloud.aiplatform.helpers import _decorators |
18 |
| -from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1 import ( |
19 |
| -types as pkg, |
20 |
| -) |
21 |
| - |
22 | 17 | from google.cloud.aiplatform.v1beta1.schema.trainingjob.definition_v1beta1.types.automl_forecasting import (
|
23 | 18 | AutoMlForecasting,
|
24 | 19 | )
|
|
134 | 129 | "AutoMlVideoObjectTrackingInputs",
|
135 | 130 | "ExportEvaluatedDataItemsConfig",
|
136 | 131 | )
|
137 |
| -_decorators._add_methods_to_classes_in_package(pkg) |
You can’t perform that action at this time.
0 commit comments