pulumi-oci 1.20.0a1705991859__py3-none-any.whl → 1.21.0a1706309702__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_oci/__init__.py +35 -0
- pulumi_oci/core/get_boot_volume_attachments.py +36 -2
- pulumi_oci/database/autonomous_database_wallet.py +18 -0
- pulumi_oci/database/vm_cluster_network.py +20 -7
- pulumi_oci/generativeai/__init__.py +18 -0
- pulumi_oci/generativeai/_inputs.py +534 -0
- pulumi_oci/generativeai/dedicated_ai_cluster.py +808 -0
- pulumi_oci/generativeai/endpoint.py +717 -0
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +288 -0
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +183 -0
- pulumi_oci/generativeai/get_endpoint.py +275 -0
- pulumi_oci/generativeai/get_endpoints.py +183 -0
- pulumi_oci/generativeai/get_model.py +353 -0
- pulumi_oci/generativeai/get_models.py +220 -0
- pulumi_oci/generativeai/model.py +858 -0
- pulumi_oci/generativeai/outputs.py +1721 -0
- pulumi_oci/loadbalancer/_inputs.py +12 -0
- pulumi_oci/loadbalancer/outputs.py +12 -0
- pulumi_oci/marketplace/get_publication.py +14 -1
- pulumi_oci/marketplace/outputs.py +11 -0
- pulumi_oci/marketplace/publication.py +28 -0
- pulumi_oci/stackmonitoring/__init__.py +3 -0
- pulumi_oci/stackmonitoring/_inputs.py +143 -0
- pulumi_oci/stackmonitoring/get_process_set.py +236 -0
- pulumi_oci/stackmonitoring/get_process_sets.py +156 -0
- pulumi_oci/stackmonitoring/outputs.py +422 -0
- pulumi_oci/stackmonitoring/process_set.py +548 -0
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/METADATA +1 -1
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/RECORD +31 -16
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/WHEEL +0 -0
- {pulumi_oci-1.20.0a1705991859.dist-info → pulumi_oci-1.21.0a1706309702.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,353 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
'GetModelResult',
|
15
|
+
'AwaitableGetModelResult',
|
16
|
+
'get_model',
|
17
|
+
'get_model_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetModelResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getModel.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, base_model_id=None, capabilities=None, compartment_id=None, defined_tags=None, description=None, display_name=None, fine_tune_details=None, freeform_tags=None, id=None, is_long_term_supported=None, lifecycle_details=None, model_id=None, model_metrics=None, state=None, system_tags=None, time_created=None, time_deprecated=None, time_updated=None, type=None, vendor=None, version=None):
|
26
|
+
if base_model_id and not isinstance(base_model_id, str):
|
27
|
+
raise TypeError("Expected argument 'base_model_id' to be a str")
|
28
|
+
pulumi.set(__self__, "base_model_id", base_model_id)
|
29
|
+
if capabilities and not isinstance(capabilities, list):
|
30
|
+
raise TypeError("Expected argument 'capabilities' to be a list")
|
31
|
+
pulumi.set(__self__, "capabilities", capabilities)
|
32
|
+
if compartment_id and not isinstance(compartment_id, str):
|
33
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
34
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
35
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
36
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
37
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
38
|
+
if description and not isinstance(description, str):
|
39
|
+
raise TypeError("Expected argument 'description' to be a str")
|
40
|
+
pulumi.set(__self__, "description", description)
|
41
|
+
if display_name and not isinstance(display_name, str):
|
42
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
43
|
+
pulumi.set(__self__, "display_name", display_name)
|
44
|
+
if fine_tune_details and not isinstance(fine_tune_details, list):
|
45
|
+
raise TypeError("Expected argument 'fine_tune_details' to be a list")
|
46
|
+
pulumi.set(__self__, "fine_tune_details", fine_tune_details)
|
47
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
48
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
49
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
50
|
+
if id and not isinstance(id, str):
|
51
|
+
raise TypeError("Expected argument 'id' to be a str")
|
52
|
+
pulumi.set(__self__, "id", id)
|
53
|
+
if is_long_term_supported and not isinstance(is_long_term_supported, bool):
|
54
|
+
raise TypeError("Expected argument 'is_long_term_supported' to be a bool")
|
55
|
+
pulumi.set(__self__, "is_long_term_supported", is_long_term_supported)
|
56
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
57
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
58
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
59
|
+
if model_id and not isinstance(model_id, str):
|
60
|
+
raise TypeError("Expected argument 'model_id' to be a str")
|
61
|
+
pulumi.set(__self__, "model_id", model_id)
|
62
|
+
if model_metrics and not isinstance(model_metrics, list):
|
63
|
+
raise TypeError("Expected argument 'model_metrics' to be a list")
|
64
|
+
pulumi.set(__self__, "model_metrics", model_metrics)
|
65
|
+
if state and not isinstance(state, str):
|
66
|
+
raise TypeError("Expected argument 'state' to be a str")
|
67
|
+
pulumi.set(__self__, "state", state)
|
68
|
+
if system_tags and not isinstance(system_tags, dict):
|
69
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
70
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
71
|
+
if time_created and not isinstance(time_created, str):
|
72
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
73
|
+
pulumi.set(__self__, "time_created", time_created)
|
74
|
+
if time_deprecated and not isinstance(time_deprecated, str):
|
75
|
+
raise TypeError("Expected argument 'time_deprecated' to be a str")
|
76
|
+
pulumi.set(__self__, "time_deprecated", time_deprecated)
|
77
|
+
if time_updated and not isinstance(time_updated, str):
|
78
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
79
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
80
|
+
if type and not isinstance(type, str):
|
81
|
+
raise TypeError("Expected argument 'type' to be a str")
|
82
|
+
pulumi.set(__self__, "type", type)
|
83
|
+
if vendor and not isinstance(vendor, str):
|
84
|
+
raise TypeError("Expected argument 'vendor' to be a str")
|
85
|
+
pulumi.set(__self__, "vendor", vendor)
|
86
|
+
if version and not isinstance(version, str):
|
87
|
+
raise TypeError("Expected argument 'version' to be a str")
|
88
|
+
pulumi.set(__self__, "version", version)
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter(name="baseModelId")
|
92
|
+
def base_model_id(self) -> str:
|
93
|
+
"""
|
94
|
+
The OCID of the base model that's used for fine-tuning. For pretrained models, the value is null.
|
95
|
+
"""
|
96
|
+
return pulumi.get(self, "base_model_id")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter
|
100
|
+
def capabilities(self) -> Sequence[str]:
|
101
|
+
"""
|
102
|
+
Describes what this model can be used for.
|
103
|
+
"""
|
104
|
+
return pulumi.get(self, "capabilities")
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter(name="compartmentId")
|
108
|
+
def compartment_id(self) -> str:
|
109
|
+
"""
|
110
|
+
The compartment OCID for fine-tuned models. For pretrained models, this value is null.
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "compartment_id")
|
113
|
+
|
114
|
+
@property
|
115
|
+
@pulumi.getter(name="definedTags")
|
116
|
+
def defined_tags(self) -> Mapping[str, Any]:
|
117
|
+
"""
|
118
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "defined_tags")
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter
|
124
|
+
def description(self) -> str:
|
125
|
+
"""
|
126
|
+
An optional description of the model.
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "description")
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter(name="displayName")
|
132
|
+
def display_name(self) -> str:
|
133
|
+
"""
|
134
|
+
A user-friendly name.
|
135
|
+
"""
|
136
|
+
return pulumi.get(self, "display_name")
|
137
|
+
|
138
|
+
@property
|
139
|
+
@pulumi.getter(name="fineTuneDetails")
|
140
|
+
def fine_tune_details(self) -> Sequence['outputs.GetModelFineTuneDetailResult']:
|
141
|
+
"""
|
142
|
+
Details about fine-tuning a custom model.
|
143
|
+
"""
|
144
|
+
return pulumi.get(self, "fine_tune_details")
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="freeformTags")
|
148
|
+
def freeform_tags(self) -> Mapping[str, Any]:
|
149
|
+
"""
|
150
|
+
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "freeform_tags")
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter
|
156
|
+
def id(self) -> str:
|
157
|
+
"""
|
158
|
+
An ID that uniquely identifies a pretrained or fine-tuned model.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "id")
|
161
|
+
|
162
|
+
@property
|
163
|
+
@pulumi.getter(name="isLongTermSupported")
|
164
|
+
def is_long_term_supported(self) -> bool:
|
165
|
+
"""
|
166
|
+
Whether a model is supported long-term. Only applicable to base models.
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "is_long_term_supported")
|
169
|
+
|
170
|
+
@property
|
171
|
+
@pulumi.getter(name="lifecycleDetails")
|
172
|
+
def lifecycle_details(self) -> str:
|
173
|
+
"""
|
174
|
+
A message describing the current state of the model in more detail that can provide actionable information.
|
175
|
+
"""
|
176
|
+
return pulumi.get(self, "lifecycle_details")
|
177
|
+
|
178
|
+
@property
|
179
|
+
@pulumi.getter(name="modelId")
|
180
|
+
def model_id(self) -> str:
|
181
|
+
return pulumi.get(self, "model_id")
|
182
|
+
|
183
|
+
@property
|
184
|
+
@pulumi.getter(name="modelMetrics")
|
185
|
+
def model_metrics(self) -> Sequence['outputs.GetModelModelMetricResult']:
|
186
|
+
"""
|
187
|
+
Model metrics during the creation of a new model.
|
188
|
+
"""
|
189
|
+
return pulumi.get(self, "model_metrics")
|
190
|
+
|
191
|
+
@property
|
192
|
+
@pulumi.getter
|
193
|
+
def state(self) -> str:
|
194
|
+
"""
|
195
|
+
The lifecycle state of the model.
|
196
|
+
"""
|
197
|
+
return pulumi.get(self, "state")
|
198
|
+
|
199
|
+
@property
|
200
|
+
@pulumi.getter(name="systemTags")
|
201
|
+
def system_tags(self) -> Mapping[str, Any]:
|
202
|
+
"""
|
203
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
204
|
+
"""
|
205
|
+
return pulumi.get(self, "system_tags")
|
206
|
+
|
207
|
+
@property
|
208
|
+
@pulumi.getter(name="timeCreated")
|
209
|
+
def time_created(self) -> str:
|
210
|
+
"""
|
211
|
+
The date and time that the model was created in the format of an RFC3339 datetime string.
|
212
|
+
"""
|
213
|
+
return pulumi.get(self, "time_created")
|
214
|
+
|
215
|
+
@property
|
216
|
+
@pulumi.getter(name="timeDeprecated")
|
217
|
+
def time_deprecated(self) -> str:
|
218
|
+
"""
|
219
|
+
Corresponds to the time when the custom model and its associated foundation model will be deprecated.
|
220
|
+
"""
|
221
|
+
return pulumi.get(self, "time_deprecated")
|
222
|
+
|
223
|
+
@property
|
224
|
+
@pulumi.getter(name="timeUpdated")
|
225
|
+
def time_updated(self) -> str:
|
226
|
+
"""
|
227
|
+
The date and time that the model was updated in the format of an RFC3339 datetime string.
|
228
|
+
"""
|
229
|
+
return pulumi.get(self, "time_updated")
|
230
|
+
|
231
|
+
@property
|
232
|
+
@pulumi.getter
|
233
|
+
def type(self) -> str:
|
234
|
+
"""
|
235
|
+
The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.
|
236
|
+
"""
|
237
|
+
return pulumi.get(self, "type")
|
238
|
+
|
239
|
+
@property
|
240
|
+
@pulumi.getter
|
241
|
+
def vendor(self) -> str:
|
242
|
+
"""
|
243
|
+
The provider of the base model.
|
244
|
+
"""
|
245
|
+
return pulumi.get(self, "vendor")
|
246
|
+
|
247
|
+
@property
|
248
|
+
@pulumi.getter
|
249
|
+
def version(self) -> str:
|
250
|
+
"""
|
251
|
+
The version of the model.
|
252
|
+
"""
|
253
|
+
return pulumi.get(self, "version")
|
254
|
+
|
255
|
+
|
256
|
+
class AwaitableGetModelResult(GetModelResult):
|
257
|
+
# pylint: disable=using-constant-test
|
258
|
+
def __await__(self):
|
259
|
+
if False:
|
260
|
+
yield self
|
261
|
+
return GetModelResult(
|
262
|
+
base_model_id=self.base_model_id,
|
263
|
+
capabilities=self.capabilities,
|
264
|
+
compartment_id=self.compartment_id,
|
265
|
+
defined_tags=self.defined_tags,
|
266
|
+
description=self.description,
|
267
|
+
display_name=self.display_name,
|
268
|
+
fine_tune_details=self.fine_tune_details,
|
269
|
+
freeform_tags=self.freeform_tags,
|
270
|
+
id=self.id,
|
271
|
+
is_long_term_supported=self.is_long_term_supported,
|
272
|
+
lifecycle_details=self.lifecycle_details,
|
273
|
+
model_id=self.model_id,
|
274
|
+
model_metrics=self.model_metrics,
|
275
|
+
state=self.state,
|
276
|
+
system_tags=self.system_tags,
|
277
|
+
time_created=self.time_created,
|
278
|
+
time_deprecated=self.time_deprecated,
|
279
|
+
time_updated=self.time_updated,
|
280
|
+
type=self.type,
|
281
|
+
vendor=self.vendor,
|
282
|
+
version=self.version)
|
283
|
+
|
284
|
+
|
285
|
+
def get_model(model_id: Optional[str] = None,
|
286
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetModelResult:
|
287
|
+
"""
|
288
|
+
This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Generative Ai service.
|
289
|
+
|
290
|
+
Gets information about a custom model.
|
291
|
+
|
292
|
+
## Example Usage
|
293
|
+
|
294
|
+
```python
|
295
|
+
import pulumi
|
296
|
+
import pulumi_oci as oci
|
297
|
+
|
298
|
+
test_model = oci.GenerativeAi.get_model(model_id=oci_generative_ai_model["test_model"]["id"])
|
299
|
+
```
|
300
|
+
|
301
|
+
|
302
|
+
:param str model_id: The model OCID
|
303
|
+
"""
|
304
|
+
__args__ = dict()
|
305
|
+
__args__['modelId'] = model_id
|
306
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
307
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getModel:getModel', __args__, opts=opts, typ=GetModelResult).value
|
308
|
+
|
309
|
+
return AwaitableGetModelResult(
|
310
|
+
base_model_id=pulumi.get(__ret__, 'base_model_id'),
|
311
|
+
capabilities=pulumi.get(__ret__, 'capabilities'),
|
312
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
313
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
314
|
+
description=pulumi.get(__ret__, 'description'),
|
315
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
316
|
+
fine_tune_details=pulumi.get(__ret__, 'fine_tune_details'),
|
317
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
318
|
+
id=pulumi.get(__ret__, 'id'),
|
319
|
+
is_long_term_supported=pulumi.get(__ret__, 'is_long_term_supported'),
|
320
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
321
|
+
model_id=pulumi.get(__ret__, 'model_id'),
|
322
|
+
model_metrics=pulumi.get(__ret__, 'model_metrics'),
|
323
|
+
state=pulumi.get(__ret__, 'state'),
|
324
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
325
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
326
|
+
time_deprecated=pulumi.get(__ret__, 'time_deprecated'),
|
327
|
+
time_updated=pulumi.get(__ret__, 'time_updated'),
|
328
|
+
type=pulumi.get(__ret__, 'type'),
|
329
|
+
vendor=pulumi.get(__ret__, 'vendor'),
|
330
|
+
version=pulumi.get(__ret__, 'version'))
|
331
|
+
|
332
|
+
|
333
|
+
@_utilities.lift_output_func(get_model)
|
334
|
+
def get_model_output(model_id: Optional[pulumi.Input[str]] = None,
|
335
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetModelResult]:
|
336
|
+
"""
|
337
|
+
This data source provides details about a specific Model resource in Oracle Cloud Infrastructure Generative Ai service.
|
338
|
+
|
339
|
+
Gets information about a custom model.
|
340
|
+
|
341
|
+
## Example Usage
|
342
|
+
|
343
|
+
```python
|
344
|
+
import pulumi
|
345
|
+
import pulumi_oci as oci
|
346
|
+
|
347
|
+
test_model = oci.GenerativeAi.get_model(model_id=oci_generative_ai_model["test_model"]["id"])
|
348
|
+
```
|
349
|
+
|
350
|
+
|
351
|
+
:param str model_id: The model OCID
|
352
|
+
"""
|
353
|
+
...
|
@@ -0,0 +1,220 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = [
|
15
|
+
'GetModelsResult',
|
16
|
+
'AwaitableGetModelsResult',
|
17
|
+
'get_models',
|
18
|
+
'get_models_output',
|
19
|
+
]
|
20
|
+
|
21
|
+
@pulumi.output_type
|
22
|
+
class GetModelsResult:
|
23
|
+
"""
|
24
|
+
A collection of values returned by getModels.
|
25
|
+
"""
|
26
|
+
def __init__(__self__, capabilities=None, compartment_id=None, display_name=None, filters=None, id=None, model_collections=None, state=None, vendor=None):
|
27
|
+
if capabilities and not isinstance(capabilities, list):
|
28
|
+
raise TypeError("Expected argument 'capabilities' to be a list")
|
29
|
+
pulumi.set(__self__, "capabilities", capabilities)
|
30
|
+
if compartment_id and not isinstance(compartment_id, str):
|
31
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
32
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
33
|
+
if display_name and not isinstance(display_name, str):
|
34
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
35
|
+
pulumi.set(__self__, "display_name", display_name)
|
36
|
+
if filters and not isinstance(filters, list):
|
37
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
38
|
+
pulumi.set(__self__, "filters", filters)
|
39
|
+
if id and not isinstance(id, str):
|
40
|
+
raise TypeError("Expected argument 'id' to be a str")
|
41
|
+
pulumi.set(__self__, "id", id)
|
42
|
+
if model_collections and not isinstance(model_collections, list):
|
43
|
+
raise TypeError("Expected argument 'model_collections' to be a list")
|
44
|
+
pulumi.set(__self__, "model_collections", model_collections)
|
45
|
+
if state and not isinstance(state, str):
|
46
|
+
raise TypeError("Expected argument 'state' to be a str")
|
47
|
+
pulumi.set(__self__, "state", state)
|
48
|
+
if vendor and not isinstance(vendor, str):
|
49
|
+
raise TypeError("Expected argument 'vendor' to be a str")
|
50
|
+
pulumi.set(__self__, "vendor", vendor)
|
51
|
+
|
52
|
+
@property
|
53
|
+
@pulumi.getter
|
54
|
+
def capabilities(self) -> Optional[Sequence[str]]:
|
55
|
+
return pulumi.get(self, "capabilities")
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter(name="compartmentId")
|
59
|
+
def compartment_id(self) -> str:
|
60
|
+
"""
|
61
|
+
The compartment OCID for fine-tuned models. For pretrained models, this value is null.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "compartment_id")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="displayName")
|
67
|
+
def display_name(self) -> Optional[str]:
|
68
|
+
"""
|
69
|
+
A user-friendly name.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "display_name")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter
|
75
|
+
def filters(self) -> Optional[Sequence['outputs.GetModelsFilterResult']]:
|
76
|
+
return pulumi.get(self, "filters")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter
|
80
|
+
def id(self) -> Optional[str]:
|
81
|
+
"""
|
82
|
+
An ID that uniquely identifies a pretrained or fine-tuned model.
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "id")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="modelCollections")
|
88
|
+
def model_collections(self) -> Sequence['outputs.GetModelsModelCollectionResult']:
|
89
|
+
"""
|
90
|
+
The list of model_collection.
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "model_collections")
|
93
|
+
|
94
|
+
@property
|
95
|
+
@pulumi.getter
|
96
|
+
def state(self) -> Optional[str]:
|
97
|
+
"""
|
98
|
+
The lifecycle state of the model.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "state")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter
|
104
|
+
def vendor(self) -> Optional[str]:
|
105
|
+
"""
|
106
|
+
The provider of the base model.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "vendor")
|
109
|
+
|
110
|
+
|
111
|
+
class AwaitableGetModelsResult(GetModelsResult):
|
112
|
+
# pylint: disable=using-constant-test
|
113
|
+
def __await__(self):
|
114
|
+
if False:
|
115
|
+
yield self
|
116
|
+
return GetModelsResult(
|
117
|
+
capabilities=self.capabilities,
|
118
|
+
compartment_id=self.compartment_id,
|
119
|
+
display_name=self.display_name,
|
120
|
+
filters=self.filters,
|
121
|
+
id=self.id,
|
122
|
+
model_collections=self.model_collections,
|
123
|
+
state=self.state,
|
124
|
+
vendor=self.vendor)
|
125
|
+
|
126
|
+
|
127
|
+
def get_models(capabilities: Optional[Sequence[str]] = None,
|
128
|
+
compartment_id: Optional[str] = None,
|
129
|
+
display_name: Optional[str] = None,
|
130
|
+
filters: Optional[Sequence[pulumi.InputType['GetModelsFilterArgs']]] = None,
|
131
|
+
id: Optional[str] = None,
|
132
|
+
state: Optional[str] = None,
|
133
|
+
vendor: Optional[str] = None,
|
134
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetModelsResult:
|
135
|
+
"""
|
136
|
+
This data source provides the list of Models in Oracle Cloud Infrastructure Generative Ai service.
|
137
|
+
|
138
|
+
Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models.
|
139
|
+
|
140
|
+
## Example Usage
|
141
|
+
|
142
|
+
```python
|
143
|
+
import pulumi
|
144
|
+
import pulumi_oci as oci
|
145
|
+
|
146
|
+
test_models = oci.GenerativeAi.get_models(compartment_id=var["compartment_id"],
|
147
|
+
capabilities=var["model_capability"],
|
148
|
+
display_name=var["model_display_name"],
|
149
|
+
id=var["model_id"],
|
150
|
+
state=var["model_state"],
|
151
|
+
vendor=var["model_vendor"])
|
152
|
+
```
|
153
|
+
|
154
|
+
|
155
|
+
:param Sequence[str] capabilities: A filter to return only resources their capability matches the given capability.
|
156
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
157
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
158
|
+
:param str id: The ID of the model.
|
159
|
+
:param str state: A filter to return only resources their lifecycleState matches the given lifecycleState.
|
160
|
+
:param str vendor: A filter to return only resources that match the entire vendor given.
|
161
|
+
"""
|
162
|
+
__args__ = dict()
|
163
|
+
__args__['capabilities'] = capabilities
|
164
|
+
__args__['compartmentId'] = compartment_id
|
165
|
+
__args__['displayName'] = display_name
|
166
|
+
__args__['filters'] = filters
|
167
|
+
__args__['id'] = id
|
168
|
+
__args__['state'] = state
|
169
|
+
__args__['vendor'] = vendor
|
170
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
171
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getModels:getModels', __args__, opts=opts, typ=GetModelsResult).value
|
172
|
+
|
173
|
+
return AwaitableGetModelsResult(
|
174
|
+
capabilities=pulumi.get(__ret__, 'capabilities'),
|
175
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
176
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
177
|
+
filters=pulumi.get(__ret__, 'filters'),
|
178
|
+
id=pulumi.get(__ret__, 'id'),
|
179
|
+
model_collections=pulumi.get(__ret__, 'model_collections'),
|
180
|
+
state=pulumi.get(__ret__, 'state'),
|
181
|
+
vendor=pulumi.get(__ret__, 'vendor'))
|
182
|
+
|
183
|
+
|
184
|
+
@_utilities.lift_output_func(get_models)
|
185
|
+
def get_models_output(capabilities: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
186
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
187
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
188
|
+
filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetModelsFilterArgs']]]]] = None,
|
189
|
+
id: Optional[pulumi.Input[Optional[str]]] = None,
|
190
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
191
|
+
vendor: Optional[pulumi.Input[Optional[str]]] = None,
|
192
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetModelsResult]:
|
193
|
+
"""
|
194
|
+
This data source provides the list of Models in Oracle Cloud Infrastructure Generative Ai service.
|
195
|
+
|
196
|
+
Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models.
|
197
|
+
|
198
|
+
## Example Usage
|
199
|
+
|
200
|
+
```python
|
201
|
+
import pulumi
|
202
|
+
import pulumi_oci as oci
|
203
|
+
|
204
|
+
test_models = oci.GenerativeAi.get_models(compartment_id=var["compartment_id"],
|
205
|
+
capabilities=var["model_capability"],
|
206
|
+
display_name=var["model_display_name"],
|
207
|
+
id=var["model_id"],
|
208
|
+
state=var["model_state"],
|
209
|
+
vendor=var["model_vendor"])
|
210
|
+
```
|
211
|
+
|
212
|
+
|
213
|
+
:param Sequence[str] capabilities: A filter to return only resources their capability matches the given capability.
|
214
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
215
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
216
|
+
:param str id: The ID of the model.
|
217
|
+
:param str state: A filter to return only resources their lifecycleState matches the given lifecycleState.
|
218
|
+
:param str vendor: A filter to return only resources that match the entire vendor given.
|
219
|
+
"""
|
220
|
+
...
|