|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8; -*- |
3 | 3 |
|
4 | | -# Copyright (c) 2021, 2022 Oracle and/or its affiliates. |
| 4 | +# Copyright (c) 2021, 2023 Oracle and/or its affiliates. |
5 | 5 | # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ |
6 | 6 |
|
7 | 7 | import logging |
8 | 8 |
|
9 | 9 | from oci.ai_language import AIServiceLanguageClient |
| 10 | +from oci.data_catalog import DataCatalogClient |
10 | 11 | from oci.data_flow import DataFlowClient |
11 | 12 | from oci.data_labeling_service import DataLabelingManagementClient |
12 | 13 | from oci.data_labeling_service_dataplane import DataLabelingClient |
13 | 14 | from oci.data_science import DataScienceClient |
14 | 15 | from oci.identity import IdentityClient |
15 | 16 | from oci.object_storage import ObjectStorageClient |
| 17 | +from oci.resource_search import ResourceSearchClient |
16 | 18 | from oci.secrets import SecretsClient |
17 | 19 | from oci.vault import VaultsClient |
18 | | - |
19 | 20 | logger = logging.getLogger(__name__) |
20 | 21 |
|
21 | 22 |
|
@@ -62,7 +63,15 @@ def _client_impl(self, client): |
62 | 63 | "ai_language": AIServiceLanguageClient, |
63 | 64 | "data_labeling_dp": DataLabelingClient, |
64 | 65 | "data_labeling_cp": DataLabelingManagementClient, |
| 66 | + "resource_search": ResourceSearchClient, |
| 67 | + "data_catalog": DataCatalogClient |
65 | 68 | } |
| 69 | + try: |
| 70 | + from oci.feature_store import FeatureStoreClient |
| 71 | + client_map["feature_store"] = FeatureStoreClient |
| 72 | + except ImportError: |
| 73 | + logger.warning("OCI SDK with feature store support is not installed") |
| 74 | + pass |
66 | 75 |
|
67 | 76 | assert ( |
68 | 77 | client in client_map |
@@ -124,6 +133,18 @@ def ai_language(self): |
124 | 133 | def data_labeling_cp(self): |
125 | 134 | return self.create_client("data_labeling_cp") |
126 | 135 |
|
| 136 | + @property |
| 137 | + def feature_store(self): |
| 138 | + return self.create_client("feature_store") |
| 139 | + |
127 | 140 | @property |
128 | 141 | def data_labeling_dp(self): |
129 | 142 | return self.create_client("data_labeling_dp") |
| 143 | + |
| 144 | + @property |
| 145 | + def resource_search(self): |
| 146 | + return self.create_client("resource_search") |
| 147 | + |
| 148 | + @property |
| 149 | + def data_catalog(self): |
| 150 | + return self.create_client("data_catalog") |
0 commit comments