vellum-ai 0.9.15__py3-none-any.whl → 0.9.16__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/core/client_wrapper.py +1 -1
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16.dist-info}/METADATA +12 -3
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16.dist-info}/RECORD +5 -16
- vellum/terraform/__init__.py +0 -28
- vellum/terraform/_jsii/__init__.py +0 -27
- vellum/terraform/_jsii/vellum-ai_vellum@0.0.0.jsii.tgz +0 -0
- vellum/terraform/constraints.json +0 -4
- vellum/terraform/data_vellum_document_index/__init__.py +0 -409
- vellum/terraform/data_vellum_ml_model/__init__.py +0 -409
- vellum/terraform/document_index/__init__.py +0 -490
- vellum/terraform/ml_model/__init__.py +0 -806
- vellum/terraform/provider/__init__.py +0 -282
- vellum/terraform/py.typed +0 -1
- vellum/terraform/versions.json +0 -3
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16.dist-info}/LICENSE +0 -0
- {vellum_ai-0.9.15.dist-info → vellum_ai-0.9.16.dist-info}/WHEEL +0 -0
@@ -1,282 +0,0 @@
|
|
1
|
-
'''
|
2
|
-
# `provider`
|
3
|
-
|
4
|
-
Refer to the Terraform Registry for docs: [`vellum`](https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs).
|
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 VellumProvider(
|
28
|
-
_cdktf_9a9027ec.TerraformProvider,
|
29
|
-
metaclass=jsii.JSIIMeta,
|
30
|
-
jsii_type="vellum-ai_vellum.provider.VellumProvider",
|
31
|
-
):
|
32
|
-
'''Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum}.'''
|
33
|
-
|
34
|
-
def __init__(
|
35
|
-
self,
|
36
|
-
scope: _constructs_77d1e7e8.Construct,
|
37
|
-
id: builtins.str,
|
38
|
-
*,
|
39
|
-
alias: typing.Optional[builtins.str] = None,
|
40
|
-
api_key: typing.Optional[builtins.str] = None,
|
41
|
-
base_url: typing.Optional[builtins.str] = None,
|
42
|
-
) -> None:
|
43
|
-
'''Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum} Resource.
|
44
|
-
|
45
|
-
:param scope: The scope in which to define this construct.
|
46
|
-
:param id: The scoped construct ID. Must be unique amongst siblings in the same scope
|
47
|
-
:param alias: Alias name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#alias VellumProvider#alias}
|
48
|
-
:param api_key: API Key to authenticate with the Vellum API. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#api_key VellumProvider#api_key}
|
49
|
-
:param base_url: Base URL to use with the Vellum API. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#base_url VellumProvider#base_url}
|
50
|
-
'''
|
51
|
-
if __debug__:
|
52
|
-
type_hints = typing.get_type_hints(_typecheckingstub__8f332a1b6664893e57a3554abbbfd334296d68a0c02222521351772fec263177)
|
53
|
-
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
54
|
-
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
55
|
-
config = VellumProviderConfig(alias=alias, api_key=api_key, base_url=base_url)
|
56
|
-
|
57
|
-
jsii.create(self.__class__, self, [scope, id, config])
|
58
|
-
|
59
|
-
@jsii.member(jsii_name="generateConfigForImport")
|
60
|
-
@builtins.classmethod
|
61
|
-
def generate_config_for_import(
|
62
|
-
cls,
|
63
|
-
scope: _constructs_77d1e7e8.Construct,
|
64
|
-
import_to_id: builtins.str,
|
65
|
-
import_from_id: builtins.str,
|
66
|
-
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
67
|
-
) -> _cdktf_9a9027ec.ImportableResource:
|
68
|
-
'''Generates CDKTF code for importing a VellumProvider resource upon running "cdktf plan ".
|
69
|
-
|
70
|
-
:param scope: The scope in which to define this construct.
|
71
|
-
:param import_to_id: The construct id used in the generated config for the VellumProvider to import.
|
72
|
-
:param import_from_id: The id of the existing VellumProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#import import section} in the documentation of this resource for the id to use
|
73
|
-
:param provider: ? Optional instance of the provider where the VellumProvider to import is found.
|
74
|
-
'''
|
75
|
-
if __debug__:
|
76
|
-
type_hints = typing.get_type_hints(_typecheckingstub__43f598a9f664a05d63c3b7644f2981a0397df03284b98ca077e6d7265f6aebcb)
|
77
|
-
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
78
|
-
check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
|
79
|
-
check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
|
80
|
-
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
81
|
-
return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
|
82
|
-
|
83
|
-
@jsii.member(jsii_name="resetAlias")
|
84
|
-
def reset_alias(self) -> None:
|
85
|
-
return typing.cast(None, jsii.invoke(self, "resetAlias", []))
|
86
|
-
|
87
|
-
@jsii.member(jsii_name="resetApiKey")
|
88
|
-
def reset_api_key(self) -> None:
|
89
|
-
return typing.cast(None, jsii.invoke(self, "resetApiKey", []))
|
90
|
-
|
91
|
-
@jsii.member(jsii_name="resetBaseUrl")
|
92
|
-
def reset_base_url(self) -> None:
|
93
|
-
return typing.cast(None, jsii.invoke(self, "resetBaseUrl", []))
|
94
|
-
|
95
|
-
@jsii.member(jsii_name="synthesizeAttributes")
|
96
|
-
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
97
|
-
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
98
|
-
|
99
|
-
@jsii.member(jsii_name="synthesizeHclAttributes")
|
100
|
-
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
101
|
-
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
102
|
-
|
103
|
-
@jsii.python.classproperty
|
104
|
-
@jsii.member(jsii_name="tfResourceType")
|
105
|
-
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
106
|
-
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
107
|
-
|
108
|
-
@builtins.property
|
109
|
-
@jsii.member(jsii_name="aliasInput")
|
110
|
-
def alias_input(self) -> typing.Optional[builtins.str]:
|
111
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "aliasInput"))
|
112
|
-
|
113
|
-
@builtins.property
|
114
|
-
@jsii.member(jsii_name="apiKeyInput")
|
115
|
-
def api_key_input(self) -> typing.Optional[builtins.str]:
|
116
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "apiKeyInput"))
|
117
|
-
|
118
|
-
@builtins.property
|
119
|
-
@jsii.member(jsii_name="baseUrlInput")
|
120
|
-
def base_url_input(self) -> typing.Optional[builtins.str]:
|
121
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "baseUrlInput"))
|
122
|
-
|
123
|
-
@builtins.property
|
124
|
-
@jsii.member(jsii_name="alias")
|
125
|
-
def alias(self) -> typing.Optional[builtins.str]:
|
126
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "alias"))
|
127
|
-
|
128
|
-
@alias.setter
|
129
|
-
def alias(self, value: typing.Optional[builtins.str]) -> None:
|
130
|
-
if __debug__:
|
131
|
-
type_hints = typing.get_type_hints(_typecheckingstub__15a78e7b117167a258d082de10d77ec8038e1f5fcc5ff5ef0caadbce4dec2c02)
|
132
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
133
|
-
jsii.set(self, "alias", value)
|
134
|
-
|
135
|
-
@builtins.property
|
136
|
-
@jsii.member(jsii_name="apiKey")
|
137
|
-
def api_key(self) -> typing.Optional[builtins.str]:
|
138
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "apiKey"))
|
139
|
-
|
140
|
-
@api_key.setter
|
141
|
-
def api_key(self, value: typing.Optional[builtins.str]) -> None:
|
142
|
-
if __debug__:
|
143
|
-
type_hints = typing.get_type_hints(_typecheckingstub__402b9018cf60ba05eb9ab72153d7f52235bd10a5f5615a074a53880068a8779b)
|
144
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
145
|
-
jsii.set(self, "apiKey", value)
|
146
|
-
|
147
|
-
@builtins.property
|
148
|
-
@jsii.member(jsii_name="baseUrl")
|
149
|
-
def base_url(self) -> typing.Optional[builtins.str]:
|
150
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "baseUrl"))
|
151
|
-
|
152
|
-
@base_url.setter
|
153
|
-
def base_url(self, value: typing.Optional[builtins.str]) -> None:
|
154
|
-
if __debug__:
|
155
|
-
type_hints = typing.get_type_hints(_typecheckingstub__21ca70614f7725c87c92b1df4a963a8db586657ad82746778be178615bd2eb02)
|
156
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
157
|
-
jsii.set(self, "baseUrl", value)
|
158
|
-
|
159
|
-
|
160
|
-
@jsii.data_type(
|
161
|
-
jsii_type="vellum-ai_vellum.provider.VellumProviderConfig",
|
162
|
-
jsii_struct_bases=[],
|
163
|
-
name_mapping={"alias": "alias", "api_key": "apiKey", "base_url": "baseUrl"},
|
164
|
-
)
|
165
|
-
class VellumProviderConfig:
|
166
|
-
def __init__(
|
167
|
-
self,
|
168
|
-
*,
|
169
|
-
alias: typing.Optional[builtins.str] = None,
|
170
|
-
api_key: typing.Optional[builtins.str] = None,
|
171
|
-
base_url: typing.Optional[builtins.str] = None,
|
172
|
-
) -> None:
|
173
|
-
'''
|
174
|
-
:param alias: Alias name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#alias VellumProvider#alias}
|
175
|
-
:param api_key: API Key to authenticate with the Vellum API. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#api_key VellumProvider#api_key}
|
176
|
-
:param base_url: Base URL to use with the Vellum API. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#base_url VellumProvider#base_url}
|
177
|
-
'''
|
178
|
-
if __debug__:
|
179
|
-
type_hints = typing.get_type_hints(_typecheckingstub__bb8c32f1d43f1344224f7a690abc6e2489c4dff67cb93921483ed2cc4b5410e1)
|
180
|
-
check_type(argname="argument alias", value=alias, expected_type=type_hints["alias"])
|
181
|
-
check_type(argname="argument api_key", value=api_key, expected_type=type_hints["api_key"])
|
182
|
-
check_type(argname="argument base_url", value=base_url, expected_type=type_hints["base_url"])
|
183
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
184
|
-
if alias is not None:
|
185
|
-
self._values["alias"] = alias
|
186
|
-
if api_key is not None:
|
187
|
-
self._values["api_key"] = api_key
|
188
|
-
if base_url is not None:
|
189
|
-
self._values["base_url"] = base_url
|
190
|
-
|
191
|
-
@builtins.property
|
192
|
-
def alias(self) -> typing.Optional[builtins.str]:
|
193
|
-
'''Alias name.
|
194
|
-
|
195
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#alias VellumProvider#alias}
|
196
|
-
'''
|
197
|
-
result = self._values.get("alias")
|
198
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
199
|
-
|
200
|
-
@builtins.property
|
201
|
-
def api_key(self) -> typing.Optional[builtins.str]:
|
202
|
-
'''API Key to authenticate with the Vellum API.
|
203
|
-
|
204
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#api_key VellumProvider#api_key}
|
205
|
-
'''
|
206
|
-
result = self._values.get("api_key")
|
207
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
208
|
-
|
209
|
-
@builtins.property
|
210
|
-
def base_url(self) -> typing.Optional[builtins.str]:
|
211
|
-
'''Base URL to use with the Vellum API.
|
212
|
-
|
213
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#base_url VellumProvider#base_url}
|
214
|
-
'''
|
215
|
-
result = self._values.get("base_url")
|
216
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
217
|
-
|
218
|
-
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
219
|
-
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
220
|
-
|
221
|
-
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
222
|
-
return not (rhs == self)
|
223
|
-
|
224
|
-
def __repr__(self) -> str:
|
225
|
-
return "VellumProviderConfig(%s)" % ", ".join(
|
226
|
-
k + "=" + repr(v) for k, v in self._values.items()
|
227
|
-
)
|
228
|
-
|
229
|
-
|
230
|
-
__all__ = [
|
231
|
-
"VellumProvider",
|
232
|
-
"VellumProviderConfig",
|
233
|
-
]
|
234
|
-
|
235
|
-
publication.publish()
|
236
|
-
|
237
|
-
def _typecheckingstub__8f332a1b6664893e57a3554abbbfd334296d68a0c02222521351772fec263177(
|
238
|
-
scope: _constructs_77d1e7e8.Construct,
|
239
|
-
id: builtins.str,
|
240
|
-
*,
|
241
|
-
alias: typing.Optional[builtins.str] = None,
|
242
|
-
api_key: typing.Optional[builtins.str] = None,
|
243
|
-
base_url: typing.Optional[builtins.str] = None,
|
244
|
-
) -> None:
|
245
|
-
"""Type checking stubs"""
|
246
|
-
pass
|
247
|
-
|
248
|
-
def _typecheckingstub__43f598a9f664a05d63c3b7644f2981a0397df03284b98ca077e6d7265f6aebcb(
|
249
|
-
scope: _constructs_77d1e7e8.Construct,
|
250
|
-
import_to_id: builtins.str,
|
251
|
-
import_from_id: builtins.str,
|
252
|
-
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
253
|
-
) -> None:
|
254
|
-
"""Type checking stubs"""
|
255
|
-
pass
|
256
|
-
|
257
|
-
def _typecheckingstub__15a78e7b117167a258d082de10d77ec8038e1f5fcc5ff5ef0caadbce4dec2c02(
|
258
|
-
value: typing.Optional[builtins.str],
|
259
|
-
) -> None:
|
260
|
-
"""Type checking stubs"""
|
261
|
-
pass
|
262
|
-
|
263
|
-
def _typecheckingstub__402b9018cf60ba05eb9ab72153d7f52235bd10a5f5615a074a53880068a8779b(
|
264
|
-
value: typing.Optional[builtins.str],
|
265
|
-
) -> None:
|
266
|
-
"""Type checking stubs"""
|
267
|
-
pass
|
268
|
-
|
269
|
-
def _typecheckingstub__21ca70614f7725c87c92b1df4a963a8db586657ad82746778be178615bd2eb02(
|
270
|
-
value: typing.Optional[builtins.str],
|
271
|
-
) -> None:
|
272
|
-
"""Type checking stubs"""
|
273
|
-
pass
|
274
|
-
|
275
|
-
def _typecheckingstub__bb8c32f1d43f1344224f7a690abc6e2489c4dff67cb93921483ed2cc4b5410e1(
|
276
|
-
*,
|
277
|
-
alias: typing.Optional[builtins.str] = None,
|
278
|
-
api_key: typing.Optional[builtins.str] = None,
|
279
|
-
base_url: typing.Optional[builtins.str] = None,
|
280
|
-
) -> None:
|
281
|
-
"""Type checking stubs"""
|
282
|
-
pass
|
vellum/terraform/py.typed
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
vellum/terraform/versions.json
DELETED
File without changes
|
File without changes
|