vellum-ai 0.9.14__py3-none-any.whl → 0.9.16__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.
@@ -1,409 +0,0 @@
1
- '''
2
- # `data_vellum_ml_model`
3
-
4
- Refer to the Terraform Registry for docs: [`data_vellum_ml_model`](https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model).
5
- '''
6
- from pkgutil import extend_path
7
- __path__ = extend_path(__path__, __name__)
8
-
9
- import abc
10
- import builtins
11
- import datetime
12
- import enum
13
- import typing
14
-
15
- import jsii
16
- import publication
17
- import typing_extensions
18
-
19
- from typeguard import check_type
20
-
21
- from .._jsii import *
22
-
23
- import cdktf as _cdktf_9a9027ec
24
- import constructs as _constructs_77d1e7e8
25
-
26
-
27
- class DataVellumMlModel(
28
- _cdktf_9a9027ec.TerraformDataSource,
29
- metaclass=jsii.JSIIMeta,
30
- jsii_type="vellum-ai_vellum.dataVellumMlModel.DataVellumMlModel",
31
- ):
32
- '''Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model vellum_ml_model}.'''
33
-
34
- def __init__(
35
- self,
36
- scope: _constructs_77d1e7e8.Construct,
37
- id_: builtins.str,
38
- *,
39
- id: typing.Optional[builtins.str] = None,
40
- name: typing.Optional[builtins.str] = None,
41
- connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
42
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
43
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
44
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
45
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
46
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
47
- provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
48
- ) -> None:
49
- '''Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model vellum_ml_model} Data Source.
50
-
51
- :param scope: The scope in which to define this construct.
52
- :param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
53
- :param id: The ML Model's ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#id DataVellumMlModel#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
54
- :param name: A name that uniquely identifies this ML Model. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#name DataVellumMlModel#name}
55
- :param connection:
56
- :param count:
57
- :param depends_on:
58
- :param for_each:
59
- :param lifecycle:
60
- :param provider:
61
- :param provisioners:
62
- '''
63
- if __debug__:
64
- type_hints = typing.get_type_hints(_typecheckingstub__363383bbcd5a9f86ae34c12d4236a71aa48baa8ef76a1caa21f812596b36bb8d)
65
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
66
- check_type(argname="argument id_", value=id_, expected_type=type_hints["id_"])
67
- config = DataVellumMlModelConfig(
68
- id=id,
69
- name=name,
70
- connection=connection,
71
- count=count,
72
- depends_on=depends_on,
73
- for_each=for_each,
74
- lifecycle=lifecycle,
75
- provider=provider,
76
- provisioners=provisioners,
77
- )
78
-
79
- jsii.create(self.__class__, self, [scope, id_, config])
80
-
81
- @jsii.member(jsii_name="generateConfigForImport")
82
- @builtins.classmethod
83
- def generate_config_for_import(
84
- cls,
85
- scope: _constructs_77d1e7e8.Construct,
86
- import_to_id: builtins.str,
87
- import_from_id: builtins.str,
88
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
89
- ) -> _cdktf_9a9027ec.ImportableResource:
90
- '''Generates CDKTF code for importing a DataVellumMlModel resource upon running "cdktf plan ".
91
-
92
- :param scope: The scope in which to define this construct.
93
- :param import_to_id: The construct id used in the generated config for the DataVellumMlModel to import.
94
- :param import_from_id: The id of the existing DataVellumMlModel that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#import import section} in the documentation of this resource for the id to use
95
- :param provider: ? Optional instance of the provider where the DataVellumMlModel to import is found.
96
- '''
97
- if __debug__:
98
- type_hints = typing.get_type_hints(_typecheckingstub__020ed079befa51973b70c248a4d38c97c7f08ca60882a8c75ff66eb028eb370e)
99
- check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
100
- check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
101
- check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
102
- check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
103
- return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
104
-
105
- @jsii.member(jsii_name="resetId")
106
- def reset_id(self) -> None:
107
- return typing.cast(None, jsii.invoke(self, "resetId", []))
108
-
109
- @jsii.member(jsii_name="resetName")
110
- def reset_name(self) -> None:
111
- return typing.cast(None, jsii.invoke(self, "resetName", []))
112
-
113
- @jsii.member(jsii_name="synthesizeAttributes")
114
- def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
115
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
116
-
117
- @jsii.member(jsii_name="synthesizeHclAttributes")
118
- def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
119
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
120
-
121
- @jsii.python.classproperty
122
- @jsii.member(jsii_name="tfResourceType")
123
- def TF_RESOURCE_TYPE(cls) -> builtins.str:
124
- return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
125
-
126
- @builtins.property
127
- @jsii.member(jsii_name="developedBy")
128
- def developed_by(self) -> builtins.str:
129
- return typing.cast(builtins.str, jsii.get(self, "developedBy"))
130
-
131
- @builtins.property
132
- @jsii.member(jsii_name="family")
133
- def family(self) -> builtins.str:
134
- return typing.cast(builtins.str, jsii.get(self, "family"))
135
-
136
- @builtins.property
137
- @jsii.member(jsii_name="hostedBy")
138
- def hosted_by(self) -> builtins.str:
139
- return typing.cast(builtins.str, jsii.get(self, "hostedBy"))
140
-
141
- @builtins.property
142
- @jsii.member(jsii_name="visibility")
143
- def visibility(self) -> builtins.str:
144
- return typing.cast(builtins.str, jsii.get(self, "visibility"))
145
-
146
- @builtins.property
147
- @jsii.member(jsii_name="idInput")
148
- def id_input(self) -> typing.Optional[builtins.str]:
149
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "idInput"))
150
-
151
- @builtins.property
152
- @jsii.member(jsii_name="nameInput")
153
- def name_input(self) -> typing.Optional[builtins.str]:
154
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
155
-
156
- @builtins.property
157
- @jsii.member(jsii_name="id")
158
- def id(self) -> builtins.str:
159
- return typing.cast(builtins.str, jsii.get(self, "id"))
160
-
161
- @id.setter
162
- def id(self, value: builtins.str) -> None:
163
- if __debug__:
164
- type_hints = typing.get_type_hints(_typecheckingstub__90133f5d316e0f9572eb5ea479477890278b52cc7b2c3c64e25557f8cf372f3b)
165
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
166
- jsii.set(self, "id", value)
167
-
168
- @builtins.property
169
- @jsii.member(jsii_name="name")
170
- def name(self) -> builtins.str:
171
- return typing.cast(builtins.str, jsii.get(self, "name"))
172
-
173
- @name.setter
174
- def name(self, value: builtins.str) -> None:
175
- if __debug__:
176
- type_hints = typing.get_type_hints(_typecheckingstub__822cde8e519d28143ed2d3d4b2c50f936147d42b9e95881905d94767f2dd2fdc)
177
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
178
- jsii.set(self, "name", value)
179
-
180
-
181
- @jsii.data_type(
182
- jsii_type="vellum-ai_vellum.dataVellumMlModel.DataVellumMlModelConfig",
183
- jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
184
- name_mapping={
185
- "connection": "connection",
186
- "count": "count",
187
- "depends_on": "dependsOn",
188
- "for_each": "forEach",
189
- "lifecycle": "lifecycle",
190
- "provider": "provider",
191
- "provisioners": "provisioners",
192
- "id": "id",
193
- "name": "name",
194
- },
195
- )
196
- class DataVellumMlModelConfig(_cdktf_9a9027ec.TerraformMetaArguments):
197
- def __init__(
198
- self,
199
- *,
200
- connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
201
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
202
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
203
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
204
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
205
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
206
- provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
207
- id: typing.Optional[builtins.str] = None,
208
- name: typing.Optional[builtins.str] = None,
209
- ) -> None:
210
- '''
211
- :param connection:
212
- :param count:
213
- :param depends_on:
214
- :param for_each:
215
- :param lifecycle:
216
- :param provider:
217
- :param provisioners:
218
- :param id: The ML Model's ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#id DataVellumMlModel#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
219
- :param name: A name that uniquely identifies this ML Model. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#name DataVellumMlModel#name}
220
- '''
221
- if isinstance(lifecycle, dict):
222
- lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
223
- if __debug__:
224
- type_hints = typing.get_type_hints(_typecheckingstub__6501792e1aa1e388f1c843337ca429e75793a7718358c7eec9d4ab9cad899a67)
225
- check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
226
- check_type(argname="argument count", value=count, expected_type=type_hints["count"])
227
- check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
228
- check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
229
- check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
230
- check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
231
- check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
232
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
233
- check_type(argname="argument name", value=name, expected_type=type_hints["name"])
234
- self._values: typing.Dict[builtins.str, typing.Any] = {}
235
- if connection is not None:
236
- self._values["connection"] = connection
237
- if count is not None:
238
- self._values["count"] = count
239
- if depends_on is not None:
240
- self._values["depends_on"] = depends_on
241
- if for_each is not None:
242
- self._values["for_each"] = for_each
243
- if lifecycle is not None:
244
- self._values["lifecycle"] = lifecycle
245
- if provider is not None:
246
- self._values["provider"] = provider
247
- if provisioners is not None:
248
- self._values["provisioners"] = provisioners
249
- if id is not None:
250
- self._values["id"] = id
251
- if name is not None:
252
- self._values["name"] = name
253
-
254
- @builtins.property
255
- def connection(
256
- self,
257
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
258
- '''
259
- :stability: experimental
260
- '''
261
- result = self._values.get("connection")
262
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
263
-
264
- @builtins.property
265
- def count(
266
- self,
267
- ) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
268
- '''
269
- :stability: experimental
270
- '''
271
- result = self._values.get("count")
272
- return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
273
-
274
- @builtins.property
275
- def depends_on(
276
- self,
277
- ) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
278
- '''
279
- :stability: experimental
280
- '''
281
- result = self._values.get("depends_on")
282
- return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
283
-
284
- @builtins.property
285
- def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
286
- '''
287
- :stability: experimental
288
- '''
289
- result = self._values.get("for_each")
290
- return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
291
-
292
- @builtins.property
293
- def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
294
- '''
295
- :stability: experimental
296
- '''
297
- result = self._values.get("lifecycle")
298
- return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
299
-
300
- @builtins.property
301
- def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
302
- '''
303
- :stability: experimental
304
- '''
305
- result = self._values.get("provider")
306
- return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
307
-
308
- @builtins.property
309
- def provisioners(
310
- self,
311
- ) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
312
- '''
313
- :stability: experimental
314
- '''
315
- result = self._values.get("provisioners")
316
- return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
317
-
318
- @builtins.property
319
- def id(self) -> typing.Optional[builtins.str]:
320
- '''The ML Model's ID.
321
-
322
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#id DataVellumMlModel#id}
323
-
324
- Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
325
- If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
326
- '''
327
- result = self._values.get("id")
328
- return typing.cast(typing.Optional[builtins.str], result)
329
-
330
- @builtins.property
331
- def name(self) -> typing.Optional[builtins.str]:
332
- '''A name that uniquely identifies this ML Model.
333
-
334
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/data-sources/ml_model#name DataVellumMlModel#name}
335
- '''
336
- result = self._values.get("name")
337
- return typing.cast(typing.Optional[builtins.str], result)
338
-
339
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
340
- return isinstance(rhs, self.__class__) and rhs._values == self._values
341
-
342
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
343
- return not (rhs == self)
344
-
345
- def __repr__(self) -> str:
346
- return "DataVellumMlModelConfig(%s)" % ", ".join(
347
- k + "=" + repr(v) for k, v in self._values.items()
348
- )
349
-
350
-
351
- __all__ = [
352
- "DataVellumMlModel",
353
- "DataVellumMlModelConfig",
354
- ]
355
-
356
- publication.publish()
357
-
358
- def _typecheckingstub__363383bbcd5a9f86ae34c12d4236a71aa48baa8ef76a1caa21f812596b36bb8d(
359
- scope: _constructs_77d1e7e8.Construct,
360
- id_: builtins.str,
361
- *,
362
- id: typing.Optional[builtins.str] = None,
363
- name: typing.Optional[builtins.str] = None,
364
- connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
365
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
366
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
367
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
368
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
369
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
370
- provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
371
- ) -> None:
372
- """Type checking stubs"""
373
- pass
374
-
375
- def _typecheckingstub__020ed079befa51973b70c248a4d38c97c7f08ca60882a8c75ff66eb028eb370e(
376
- scope: _constructs_77d1e7e8.Construct,
377
- import_to_id: builtins.str,
378
- import_from_id: builtins.str,
379
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
380
- ) -> None:
381
- """Type checking stubs"""
382
- pass
383
-
384
- def _typecheckingstub__90133f5d316e0f9572eb5ea479477890278b52cc7b2c3c64e25557f8cf372f3b(
385
- value: builtins.str,
386
- ) -> None:
387
- """Type checking stubs"""
388
- pass
389
-
390
- def _typecheckingstub__822cde8e519d28143ed2d3d4b2c50f936147d42b9e95881905d94767f2dd2fdc(
391
- value: builtins.str,
392
- ) -> None:
393
- """Type checking stubs"""
394
- pass
395
-
396
- def _typecheckingstub__6501792e1aa1e388f1c843337ca429e75793a7718358c7eec9d4ab9cad899a67(
397
- *,
398
- connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
399
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
400
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
401
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
402
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
403
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
404
- provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
405
- id: typing.Optional[builtins.str] = None,
406
- name: typing.Optional[builtins.str] = None,
407
- ) -> None:
408
- """Type checking stubs"""
409
- pass