pulumi-digitalocean 4.50.0a1753508712__py3-none-any.whl → 4.51.0__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_digitalocean/__init__.py +80 -0
- pulumi_digitalocean/_inputs.py +7318 -4599
- pulumi_digitalocean/app.py +50 -0
- pulumi_digitalocean/database_cluster.py +28 -0
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_redis_config.py +4 -0
- pulumi_digitalocean/database_valkey_config.py +804 -0
- pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
- pulumi_digitalocean/genai_agent_route.py +354 -0
- pulumi_digitalocean/genai_function.py +464 -0
- pulumi_digitalocean/genai_knowledge_base.py +627 -0
- pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
- pulumi_digitalocean/genai_openai_api_key.py +386 -0
- pulumi_digitalocean/get_database_cluster.py +15 -1
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
- pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
- pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
- pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
- pulumi_digitalocean/outputs.py +15279 -7846
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/vpc_peering.py +0 -4
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/RECORD +29 -13
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/WHEEL +0 -0
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetGenaiKnowledgeBaseDataSourcesResult',
|
|
20
|
+
'AwaitableGetGenaiKnowledgeBaseDataSourcesResult',
|
|
21
|
+
'get_genai_knowledge_base_data_sources',
|
|
22
|
+
'get_genai_knowledge_base_data_sources_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetGenaiKnowledgeBaseDataSourcesResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getGenaiKnowledgeBaseDataSources.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, datasources=None, id=None, knowledge_base_uuid=None):
|
|
31
|
+
if datasources and not isinstance(datasources, list):
|
|
32
|
+
raise TypeError("Expected argument 'datasources' to be a list")
|
|
33
|
+
pulumi.set(__self__, "datasources", datasources)
|
|
34
|
+
if id and not isinstance(id, str):
|
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "id", id)
|
|
37
|
+
if knowledge_base_uuid and not isinstance(knowledge_base_uuid, str):
|
|
38
|
+
raise TypeError("Expected argument 'knowledge_base_uuid' to be a str")
|
|
39
|
+
pulumi.set(__self__, "knowledge_base_uuid", knowledge_base_uuid)
|
|
40
|
+
|
|
41
|
+
@_builtins.property
|
|
42
|
+
@pulumi.getter
|
|
43
|
+
def datasources(self) -> Sequence['outputs.GetGenaiKnowledgeBaseDataSourcesDatasourceResult']:
|
|
44
|
+
return pulumi.get(self, "datasources")
|
|
45
|
+
|
|
46
|
+
@_builtins.property
|
|
47
|
+
@pulumi.getter
|
|
48
|
+
def id(self) -> _builtins.str:
|
|
49
|
+
"""
|
|
50
|
+
The provider-assigned unique ID for this managed resource.
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "id")
|
|
53
|
+
|
|
54
|
+
@_builtins.property
|
|
55
|
+
@pulumi.getter(name="knowledgeBaseUuid")
|
|
56
|
+
def knowledge_base_uuid(self) -> _builtins.str:
|
|
57
|
+
return pulumi.get(self, "knowledge_base_uuid")
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class AwaitableGetGenaiKnowledgeBaseDataSourcesResult(GetGenaiKnowledgeBaseDataSourcesResult):
|
|
61
|
+
# pylint: disable=using-constant-test
|
|
62
|
+
def __await__(self):
|
|
63
|
+
if False:
|
|
64
|
+
yield self
|
|
65
|
+
return GetGenaiKnowledgeBaseDataSourcesResult(
|
|
66
|
+
datasources=self.datasources,
|
|
67
|
+
id=self.id,
|
|
68
|
+
knowledge_base_uuid=self.knowledge_base_uuid)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def get_genai_knowledge_base_data_sources(knowledge_base_uuid: Optional[_builtins.str] = None,
|
|
72
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiKnowledgeBaseDataSourcesResult:
|
|
73
|
+
"""
|
|
74
|
+
Use this data source to access information about an existing resource.
|
|
75
|
+
"""
|
|
76
|
+
__args__ = dict()
|
|
77
|
+
__args__['knowledgeBaseUuid'] = knowledge_base_uuid
|
|
78
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
79
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiKnowledgeBaseDataSources:getGenaiKnowledgeBaseDataSources', __args__, opts=opts, typ=GetGenaiKnowledgeBaseDataSourcesResult).value
|
|
80
|
+
|
|
81
|
+
return AwaitableGetGenaiKnowledgeBaseDataSourcesResult(
|
|
82
|
+
datasources=pulumi.get(__ret__, 'datasources'),
|
|
83
|
+
id=pulumi.get(__ret__, 'id'),
|
|
84
|
+
knowledge_base_uuid=pulumi.get(__ret__, 'knowledge_base_uuid'))
|
|
85
|
+
def get_genai_knowledge_base_data_sources_output(knowledge_base_uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
86
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiKnowledgeBaseDataSourcesResult]:
|
|
87
|
+
"""
|
|
88
|
+
Use this data source to access information about an existing resource.
|
|
89
|
+
"""
|
|
90
|
+
__args__ = dict()
|
|
91
|
+
__args__['knowledgeBaseUuid'] = knowledge_base_uuid
|
|
92
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
93
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiKnowledgeBaseDataSources:getGenaiKnowledgeBaseDataSources', __args__, opts=opts, typ=GetGenaiKnowledgeBaseDataSourcesResult)
|
|
94
|
+
return __ret__.apply(lambda __response__: GetGenaiKnowledgeBaseDataSourcesResult(
|
|
95
|
+
datasources=pulumi.get(__response__, 'datasources'),
|
|
96
|
+
id=pulumi.get(__response__, 'id'),
|
|
97
|
+
knowledge_base_uuid=pulumi.get(__response__, 'knowledge_base_uuid')))
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetGenaiKnowledgeBasesResult',
|
|
21
|
+
'AwaitableGetGenaiKnowledgeBasesResult',
|
|
22
|
+
'get_genai_knowledge_bases',
|
|
23
|
+
'get_genai_knowledge_bases_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetGenaiKnowledgeBasesResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getGenaiKnowledgeBases.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, filters=None, id=None, knowledge_bases=None, sorts=None):
|
|
32
|
+
if filters and not isinstance(filters, list):
|
|
33
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
|
34
|
+
pulumi.set(__self__, "filters", filters)
|
|
35
|
+
if id and not isinstance(id, str):
|
|
36
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
37
|
+
pulumi.set(__self__, "id", id)
|
|
38
|
+
if knowledge_bases and not isinstance(knowledge_bases, list):
|
|
39
|
+
raise TypeError("Expected argument 'knowledge_bases' to be a list")
|
|
40
|
+
pulumi.set(__self__, "knowledge_bases", knowledge_bases)
|
|
41
|
+
if sorts and not isinstance(sorts, list):
|
|
42
|
+
raise TypeError("Expected argument 'sorts' to be a list")
|
|
43
|
+
pulumi.set(__self__, "sorts", sorts)
|
|
44
|
+
|
|
45
|
+
@_builtins.property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def filters(self) -> Optional[Sequence['outputs.GetGenaiKnowledgeBasesFilterResult']]:
|
|
48
|
+
return pulumi.get(self, "filters")
|
|
49
|
+
|
|
50
|
+
@_builtins.property
|
|
51
|
+
@pulumi.getter
|
|
52
|
+
def id(self) -> _builtins.str:
|
|
53
|
+
"""
|
|
54
|
+
The provider-assigned unique ID for this managed resource.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "id")
|
|
57
|
+
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="knowledgeBases")
|
|
60
|
+
def knowledge_bases(self) -> Sequence['outputs.GetGenaiKnowledgeBasesKnowledgeBaseResult']:
|
|
61
|
+
return pulumi.get(self, "knowledge_bases")
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def sorts(self) -> Optional[Sequence['outputs.GetGenaiKnowledgeBasesSortResult']]:
|
|
66
|
+
return pulumi.get(self, "sorts")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class AwaitableGetGenaiKnowledgeBasesResult(GetGenaiKnowledgeBasesResult):
|
|
70
|
+
# pylint: disable=using-constant-test
|
|
71
|
+
def __await__(self):
|
|
72
|
+
if False:
|
|
73
|
+
yield self
|
|
74
|
+
return GetGenaiKnowledgeBasesResult(
|
|
75
|
+
filters=self.filters,
|
|
76
|
+
id=self.id,
|
|
77
|
+
knowledge_bases=self.knowledge_bases,
|
|
78
|
+
sorts=self.sorts)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def get_genai_knowledge_bases(filters: Optional[Sequence[Union['GetGenaiKnowledgeBasesFilterArgs', 'GetGenaiKnowledgeBasesFilterArgsDict']]] = None,
|
|
82
|
+
sorts: Optional[Sequence[Union['GetGenaiKnowledgeBasesSortArgs', 'GetGenaiKnowledgeBasesSortArgsDict']]] = None,
|
|
83
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiKnowledgeBasesResult:
|
|
84
|
+
"""
|
|
85
|
+
Use this data source to access information about an existing resource.
|
|
86
|
+
"""
|
|
87
|
+
__args__ = dict()
|
|
88
|
+
__args__['filters'] = filters
|
|
89
|
+
__args__['sorts'] = sorts
|
|
90
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
91
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiKnowledgeBases:getGenaiKnowledgeBases', __args__, opts=opts, typ=GetGenaiKnowledgeBasesResult).value
|
|
92
|
+
|
|
93
|
+
return AwaitableGetGenaiKnowledgeBasesResult(
|
|
94
|
+
filters=pulumi.get(__ret__, 'filters'),
|
|
95
|
+
id=pulumi.get(__ret__, 'id'),
|
|
96
|
+
knowledge_bases=pulumi.get(__ret__, 'knowledge_bases'),
|
|
97
|
+
sorts=pulumi.get(__ret__, 'sorts'))
|
|
98
|
+
def get_genai_knowledge_bases_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiKnowledgeBasesFilterArgs', 'GetGenaiKnowledgeBasesFilterArgsDict']]]]] = None,
|
|
99
|
+
sorts: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiKnowledgeBasesSortArgs', 'GetGenaiKnowledgeBasesSortArgsDict']]]]] = None,
|
|
100
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiKnowledgeBasesResult]:
|
|
101
|
+
"""
|
|
102
|
+
Use this data source to access information about an existing resource.
|
|
103
|
+
"""
|
|
104
|
+
__args__ = dict()
|
|
105
|
+
__args__['filters'] = filters
|
|
106
|
+
__args__['sorts'] = sorts
|
|
107
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
108
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiKnowledgeBases:getGenaiKnowledgeBases', __args__, opts=opts, typ=GetGenaiKnowledgeBasesResult)
|
|
109
|
+
return __ret__.apply(lambda __response__: GetGenaiKnowledgeBasesResult(
|
|
110
|
+
filters=pulumi.get(__response__, 'filters'),
|
|
111
|
+
id=pulumi.get(__response__, 'id'),
|
|
112
|
+
knowledge_bases=pulumi.get(__response__, 'knowledge_bases'),
|
|
113
|
+
sorts=pulumi.get(__response__, 'sorts')))
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetGenaiOpenaiApiKeyResult',
|
|
20
|
+
'AwaitableGetGenaiOpenaiApiKeyResult',
|
|
21
|
+
'get_genai_openai_api_key',
|
|
22
|
+
'get_genai_openai_api_key_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetGenaiOpenaiApiKeyResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getGenaiOpenaiApiKey.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, created_at=None, created_by=None, deleted_at=None, id=None, models=None, name=None, updated_at=None, uuid=None):
|
|
31
|
+
if created_at and not isinstance(created_at, str):
|
|
32
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
33
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
34
|
+
if created_by and not isinstance(created_by, str):
|
|
35
|
+
raise TypeError("Expected argument 'created_by' to be a str")
|
|
36
|
+
pulumi.set(__self__, "created_by", created_by)
|
|
37
|
+
if deleted_at and not isinstance(deleted_at, str):
|
|
38
|
+
raise TypeError("Expected argument 'deleted_at' to be a str")
|
|
39
|
+
pulumi.set(__self__, "deleted_at", deleted_at)
|
|
40
|
+
if id and not isinstance(id, str):
|
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "id", id)
|
|
43
|
+
if models and not isinstance(models, list):
|
|
44
|
+
raise TypeError("Expected argument 'models' to be a list")
|
|
45
|
+
pulumi.set(__self__, "models", models)
|
|
46
|
+
if name and not isinstance(name, str):
|
|
47
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
48
|
+
pulumi.set(__self__, "name", name)
|
|
49
|
+
if updated_at and not isinstance(updated_at, str):
|
|
50
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
51
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
52
|
+
if uuid and not isinstance(uuid, str):
|
|
53
|
+
raise TypeError("Expected argument 'uuid' to be a str")
|
|
54
|
+
pulumi.set(__self__, "uuid", uuid)
|
|
55
|
+
|
|
56
|
+
@_builtins.property
|
|
57
|
+
@pulumi.getter(name="createdAt")
|
|
58
|
+
def created_at(self) -> _builtins.str:
|
|
59
|
+
return pulumi.get(self, "created_at")
|
|
60
|
+
|
|
61
|
+
@_builtins.property
|
|
62
|
+
@pulumi.getter(name="createdBy")
|
|
63
|
+
def created_by(self) -> _builtins.str:
|
|
64
|
+
return pulumi.get(self, "created_by")
|
|
65
|
+
|
|
66
|
+
@_builtins.property
|
|
67
|
+
@pulumi.getter(name="deletedAt")
|
|
68
|
+
def deleted_at(self) -> _builtins.str:
|
|
69
|
+
return pulumi.get(self, "deleted_at")
|
|
70
|
+
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def id(self) -> _builtins.str:
|
|
74
|
+
"""
|
|
75
|
+
The provider-assigned unique ID for this managed resource.
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "id")
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter
|
|
81
|
+
def models(self) -> Sequence['outputs.GetGenaiOpenaiApiKeyModelResult']:
|
|
82
|
+
return pulumi.get(self, "models")
|
|
83
|
+
|
|
84
|
+
@_builtins.property
|
|
85
|
+
@pulumi.getter
|
|
86
|
+
def name(self) -> _builtins.str:
|
|
87
|
+
return pulumi.get(self, "name")
|
|
88
|
+
|
|
89
|
+
@_builtins.property
|
|
90
|
+
@pulumi.getter(name="updatedAt")
|
|
91
|
+
def updated_at(self) -> _builtins.str:
|
|
92
|
+
return pulumi.get(self, "updated_at")
|
|
93
|
+
|
|
94
|
+
@_builtins.property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def uuid(self) -> _builtins.str:
|
|
97
|
+
return pulumi.get(self, "uuid")
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class AwaitableGetGenaiOpenaiApiKeyResult(GetGenaiOpenaiApiKeyResult):
|
|
101
|
+
# pylint: disable=using-constant-test
|
|
102
|
+
def __await__(self):
|
|
103
|
+
if False:
|
|
104
|
+
yield self
|
|
105
|
+
return GetGenaiOpenaiApiKeyResult(
|
|
106
|
+
created_at=self.created_at,
|
|
107
|
+
created_by=self.created_by,
|
|
108
|
+
deleted_at=self.deleted_at,
|
|
109
|
+
id=self.id,
|
|
110
|
+
models=self.models,
|
|
111
|
+
name=self.name,
|
|
112
|
+
updated_at=self.updated_at,
|
|
113
|
+
uuid=self.uuid)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def get_genai_openai_api_key(uuid: Optional[_builtins.str] = None,
|
|
117
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiOpenaiApiKeyResult:
|
|
118
|
+
"""
|
|
119
|
+
Use this data source to access information about an existing resource.
|
|
120
|
+
"""
|
|
121
|
+
__args__ = dict()
|
|
122
|
+
__args__['uuid'] = uuid
|
|
123
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
124
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiOpenaiApiKey:getGenaiOpenaiApiKey', __args__, opts=opts, typ=GetGenaiOpenaiApiKeyResult).value
|
|
125
|
+
|
|
126
|
+
return AwaitableGetGenaiOpenaiApiKeyResult(
|
|
127
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
128
|
+
created_by=pulumi.get(__ret__, 'created_by'),
|
|
129
|
+
deleted_at=pulumi.get(__ret__, 'deleted_at'),
|
|
130
|
+
id=pulumi.get(__ret__, 'id'),
|
|
131
|
+
models=pulumi.get(__ret__, 'models'),
|
|
132
|
+
name=pulumi.get(__ret__, 'name'),
|
|
133
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
134
|
+
uuid=pulumi.get(__ret__, 'uuid'))
|
|
135
|
+
def get_genai_openai_api_key_output(uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
136
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiOpenaiApiKeyResult]:
|
|
137
|
+
"""
|
|
138
|
+
Use this data source to access information about an existing resource.
|
|
139
|
+
"""
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['uuid'] = uuid
|
|
142
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
143
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiOpenaiApiKey:getGenaiOpenaiApiKey', __args__, opts=opts, typ=GetGenaiOpenaiApiKeyResult)
|
|
144
|
+
return __ret__.apply(lambda __response__: GetGenaiOpenaiApiKeyResult(
|
|
145
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
146
|
+
created_by=pulumi.get(__response__, 'created_by'),
|
|
147
|
+
deleted_at=pulumi.get(__response__, 'deleted_at'),
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
models=pulumi.get(__response__, 'models'),
|
|
150
|
+
name=pulumi.get(__response__, 'name'),
|
|
151
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
152
|
+
uuid=pulumi.get(__response__, 'uuid')))
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetGenaiOpenaiApiKeysResult',
|
|
21
|
+
'AwaitableGetGenaiOpenaiApiKeysResult',
|
|
22
|
+
'get_genai_openai_api_keys',
|
|
23
|
+
'get_genai_openai_api_keys_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetGenaiOpenaiApiKeysResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getGenaiOpenaiApiKeys.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, filters=None, id=None, openai_api_keys=None, sorts=None):
|
|
32
|
+
if filters and not isinstance(filters, list):
|
|
33
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
|
34
|
+
pulumi.set(__self__, "filters", filters)
|
|
35
|
+
if id and not isinstance(id, str):
|
|
36
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
37
|
+
pulumi.set(__self__, "id", id)
|
|
38
|
+
if openai_api_keys and not isinstance(openai_api_keys, list):
|
|
39
|
+
raise TypeError("Expected argument 'openai_api_keys' to be a list")
|
|
40
|
+
pulumi.set(__self__, "openai_api_keys", openai_api_keys)
|
|
41
|
+
if sorts and not isinstance(sorts, list):
|
|
42
|
+
raise TypeError("Expected argument 'sorts' to be a list")
|
|
43
|
+
pulumi.set(__self__, "sorts", sorts)
|
|
44
|
+
|
|
45
|
+
@_builtins.property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def filters(self) -> Optional[Sequence['outputs.GetGenaiOpenaiApiKeysFilterResult']]:
|
|
48
|
+
return pulumi.get(self, "filters")
|
|
49
|
+
|
|
50
|
+
@_builtins.property
|
|
51
|
+
@pulumi.getter
|
|
52
|
+
def id(self) -> _builtins.str:
|
|
53
|
+
"""
|
|
54
|
+
The provider-assigned unique ID for this managed resource.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "id")
|
|
57
|
+
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter(name="openaiApiKeys")
|
|
60
|
+
def openai_api_keys(self) -> Sequence['outputs.GetGenaiOpenaiApiKeysOpenaiApiKeyResult']:
|
|
61
|
+
return pulumi.get(self, "openai_api_keys")
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def sorts(self) -> Optional[Sequence['outputs.GetGenaiOpenaiApiKeysSortResult']]:
|
|
66
|
+
return pulumi.get(self, "sorts")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class AwaitableGetGenaiOpenaiApiKeysResult(GetGenaiOpenaiApiKeysResult):
|
|
70
|
+
# pylint: disable=using-constant-test
|
|
71
|
+
def __await__(self):
|
|
72
|
+
if False:
|
|
73
|
+
yield self
|
|
74
|
+
return GetGenaiOpenaiApiKeysResult(
|
|
75
|
+
filters=self.filters,
|
|
76
|
+
id=self.id,
|
|
77
|
+
openai_api_keys=self.openai_api_keys,
|
|
78
|
+
sorts=self.sorts)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def get_genai_openai_api_keys(filters: Optional[Sequence[Union['GetGenaiOpenaiApiKeysFilterArgs', 'GetGenaiOpenaiApiKeysFilterArgsDict']]] = None,
|
|
82
|
+
sorts: Optional[Sequence[Union['GetGenaiOpenaiApiKeysSortArgs', 'GetGenaiOpenaiApiKeysSortArgsDict']]] = None,
|
|
83
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiOpenaiApiKeysResult:
|
|
84
|
+
"""
|
|
85
|
+
Use this data source to access information about an existing resource.
|
|
86
|
+
"""
|
|
87
|
+
__args__ = dict()
|
|
88
|
+
__args__['filters'] = filters
|
|
89
|
+
__args__['sorts'] = sorts
|
|
90
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
91
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiOpenaiApiKeys:getGenaiOpenaiApiKeys', __args__, opts=opts, typ=GetGenaiOpenaiApiKeysResult).value
|
|
92
|
+
|
|
93
|
+
return AwaitableGetGenaiOpenaiApiKeysResult(
|
|
94
|
+
filters=pulumi.get(__ret__, 'filters'),
|
|
95
|
+
id=pulumi.get(__ret__, 'id'),
|
|
96
|
+
openai_api_keys=pulumi.get(__ret__, 'openai_api_keys'),
|
|
97
|
+
sorts=pulumi.get(__ret__, 'sorts'))
|
|
98
|
+
def get_genai_openai_api_keys_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiOpenaiApiKeysFilterArgs', 'GetGenaiOpenaiApiKeysFilterArgsDict']]]]] = None,
|
|
99
|
+
sorts: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiOpenaiApiKeysSortArgs', 'GetGenaiOpenaiApiKeysSortArgsDict']]]]] = None,
|
|
100
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiOpenaiApiKeysResult]:
|
|
101
|
+
"""
|
|
102
|
+
Use this data source to access information about an existing resource.
|
|
103
|
+
"""
|
|
104
|
+
__args__ = dict()
|
|
105
|
+
__args__['filters'] = filters
|
|
106
|
+
__args__['sorts'] = sorts
|
|
107
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
108
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiOpenaiApiKeys:getGenaiOpenaiApiKeys', __args__, opts=opts, typ=GetGenaiOpenaiApiKeysResult)
|
|
109
|
+
return __ret__.apply(lambda __response__: GetGenaiOpenaiApiKeysResult(
|
|
110
|
+
filters=pulumi.get(__response__, 'filters'),
|
|
111
|
+
id=pulumi.get(__response__, 'id'),
|
|
112
|
+
openai_api_keys=pulumi.get(__response__, 'openai_api_keys'),
|
|
113
|
+
sorts=pulumi.get(__response__, 'sorts')))
|