pulumi-digitalocean 4.49.0a1751946418__py3-none-any.whl → 4.50.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.
Potentially problematic release.
This version of pulumi-digitalocean might be problematic. Click here for more details.
- pulumi_digitalocean/__init__.py +81 -1
- pulumi_digitalocean/_enums.py +9 -9
- pulumi_digitalocean/_inputs.py +11204 -8486
- pulumi_digitalocean/app.py +137 -88
- pulumi_digitalocean/cdn.py +104 -105
- pulumi_digitalocean/certificate.py +137 -138
- pulumi_digitalocean/config/__init__.py +1 -1
- pulumi_digitalocean/config/__init__.pyi +1 -2
- pulumi_digitalocean/config/vars.py +10 -11
- pulumi_digitalocean/container_registry.py +88 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +70 -71
- pulumi_digitalocean/custom_image.py +175 -176
- pulumi_digitalocean/database_cluster.py +374 -347
- pulumi_digitalocean/database_connection_pool.py +157 -158
- pulumi_digitalocean/database_db.py +35 -36
- pulumi_digitalocean/database_firewall.py +21 -22
- pulumi_digitalocean/database_kafka_config.py +307 -308
- pulumi_digitalocean/database_kafka_topic.py +81 -82
- pulumi_digitalocean/database_mongodb_config.py +103 -104
- pulumi_digitalocean/database_mysql_config.py +477 -478
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_opensearch_config.py +664 -665
- pulumi_digitalocean/database_postgresql_config.py +857 -858
- pulumi_digitalocean/database_redis_config.py +209 -206
- pulumi_digitalocean/database_replica.py +197 -198
- pulumi_digitalocean/database_user.py +91 -92
- pulumi_digitalocean/database_valkey_config.py +804 -0
- pulumi_digitalocean/dns_record.py +180 -181
- pulumi_digitalocean/domain.py +53 -54
- pulumi_digitalocean/droplet.py +388 -389
- pulumi_digitalocean/droplet_autoscale.py +53 -54
- pulumi_digitalocean/droplet_snapshot.py +71 -72
- pulumi_digitalocean/firewall.py +78 -79
- pulumi_digitalocean/floating_ip.py +61 -62
- pulumi_digitalocean/floating_ip_assignment.py +35 -36
- pulumi_digitalocean/genai_agent.py +452 -453
- 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_account.py +17 -18
- pulumi_digitalocean/get_app.py +27 -28
- pulumi_digitalocean/get_certificate.py +21 -22
- pulumi_digitalocean/get_container_registry.py +21 -22
- pulumi_digitalocean/get_database_ca.py +11 -12
- pulumi_digitalocean/get_database_cluster.py +75 -62
- pulumi_digitalocean/get_database_connection_pool.py +35 -36
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_database_replica.py +45 -46
- pulumi_digitalocean/get_database_user.py +26 -27
- pulumi_digitalocean/get_domain.py +15 -16
- pulumi_digitalocean/get_domains.py +6 -7
- pulumi_digitalocean/get_droplet.py +71 -72
- pulumi_digitalocean/get_droplet_autoscale.py +22 -23
- pulumi_digitalocean/get_droplet_snapshot.py +37 -38
- pulumi_digitalocean/get_droplets.py +12 -13
- pulumi_digitalocean/get_firewall.py +30 -31
- pulumi_digitalocean/get_floating_ip.py +15 -16
- pulumi_digitalocean/get_genai_agent.py +89 -90
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents.py +10 -11
- 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/get_image.py +49 -50
- pulumi_digitalocean/get_images.py +6 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +53 -54
- pulumi_digitalocean/get_kubernetes_versions.py +13 -14
- pulumi_digitalocean/get_load_balancer.py +59 -60
- pulumi_digitalocean/get_partner_attachment.py +30 -31
- pulumi_digitalocean/get_partner_attachment_service_key.py +13 -14
- pulumi_digitalocean/get_project.py +31 -32
- pulumi_digitalocean/get_projects.py +6 -7
- pulumi_digitalocean/get_record.py +31 -32
- pulumi_digitalocean/get_records.py +12 -13
- pulumi_digitalocean/get_region.py +17 -18
- pulumi_digitalocean/get_regions.py +6 -7
- pulumi_digitalocean/get_reserved_ip.py +15 -16
- pulumi_digitalocean/get_reserved_ipv6.py +15 -16
- pulumi_digitalocean/get_sizes.py +6 -7
- pulumi_digitalocean/get_spaces_bucket.py +21 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +57 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +45 -46
- pulumi_digitalocean/get_spaces_buckets.py +6 -7
- pulumi_digitalocean/get_spaces_key.py +14 -15
- pulumi_digitalocean/get_ssh_key.py +13 -14
- pulumi_digitalocean/get_ssh_keys.py +6 -7
- pulumi_digitalocean/get_tag.py +21 -22
- pulumi_digitalocean/get_tags.py +6 -7
- pulumi_digitalocean/get_volume.py +33 -34
- pulumi_digitalocean/get_volume_snapshot.py +39 -40
- pulumi_digitalocean/get_vpc.py +29 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +33 -34
- pulumi_digitalocean/get_vpc_peering.py +23 -24
- pulumi_digitalocean/kubernetes_cluster.py +293 -294
- pulumi_digitalocean/kubernetes_node_pool.py +168 -169
- pulumi_digitalocean/load_balancer.py +374 -375
- pulumi_digitalocean/monitor_alert.py +149 -150
- pulumi_digitalocean/outputs.py +20079 -12647
- pulumi_digitalocean/partner_attachment.py +150 -151
- pulumi_digitalocean/project.py +139 -140
- pulumi_digitalocean/project_resources.py +35 -36
- pulumi_digitalocean/provider.py +84 -85
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +61 -62
- pulumi_digitalocean/reserved_ip_assignment.py +35 -36
- pulumi_digitalocean/reserved_ipv6.py +53 -54
- pulumi_digitalocean/reserved_ipv6_assignment.py +35 -36
- pulumi_digitalocean/spaces_bucket.py +105 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +38 -39
- pulumi_digitalocean/spaces_bucket_logging.py +69 -70
- pulumi_digitalocean/spaces_bucket_object.py +282 -283
- pulumi_digitalocean/spaces_bucket_policy.py +52 -53
- pulumi_digitalocean/spaces_key.py +48 -49
- pulumi_digitalocean/ssh_key.py +44 -45
- pulumi_digitalocean/tag.py +72 -73
- pulumi_digitalocean/uptime_alert.py +106 -107
- pulumi_digitalocean/uptime_check.py +86 -87
- pulumi_digitalocean/volume.py +181 -182
- pulumi_digitalocean/volume_attachment.py +35 -36
- pulumi_digitalocean/volume_snapshot.py +88 -89
- pulumi_digitalocean/vpc.py +96 -97
- pulumi_digitalocean/vpc_nat_gateway.py +152 -153
- pulumi_digitalocean/vpc_peering.py +53 -54
- {pulumi_digitalocean-4.49.0a1751946418.dist-info → pulumi_digitalocean-4.50.0.dist-info}/METADATA +1 -1
- pulumi_digitalocean-4.50.0.dist-info/RECORD +135 -0
- pulumi_digitalocean-4.49.0a1751946418.dist-info/RECORD +0 -119
- {pulumi_digitalocean-4.49.0a1751946418.dist-info → pulumi_digitalocean-4.50.0.dist-info}/WHEEL +0 -0
- {pulumi_digitalocean-4.49.0a1751946418.dist-info → pulumi_digitalocean-4.50.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,259 @@
|
|
|
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
|
+
'GetGenaiKnowledgeBaseResult',
|
|
21
|
+
'AwaitableGetGenaiKnowledgeBaseResult',
|
|
22
|
+
'get_genai_knowledge_base',
|
|
23
|
+
'get_genai_knowledge_base_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetGenaiKnowledgeBaseResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getGenaiKnowledgeBase.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, added_to_agent_at=None, created_at=None, database_id=None, embedding_model_uuid=None, id=None, is_public=None, last_indexing_jobs=None, name=None, project_id=None, region=None, tags=None, updated_at=None, user_id=None, uuid=None):
|
|
32
|
+
if added_to_agent_at and not isinstance(added_to_agent_at, str):
|
|
33
|
+
raise TypeError("Expected argument 'added_to_agent_at' to be a str")
|
|
34
|
+
pulumi.set(__self__, "added_to_agent_at", added_to_agent_at)
|
|
35
|
+
if created_at and not isinstance(created_at, str):
|
|
36
|
+
raise TypeError("Expected argument 'created_at' to be a str")
|
|
37
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
38
|
+
if database_id and not isinstance(database_id, str):
|
|
39
|
+
raise TypeError("Expected argument 'database_id' to be a str")
|
|
40
|
+
pulumi.set(__self__, "database_id", database_id)
|
|
41
|
+
if embedding_model_uuid and not isinstance(embedding_model_uuid, str):
|
|
42
|
+
raise TypeError("Expected argument 'embedding_model_uuid' to be a str")
|
|
43
|
+
pulumi.set(__self__, "embedding_model_uuid", embedding_model_uuid)
|
|
44
|
+
if id and not isinstance(id, str):
|
|
45
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
46
|
+
pulumi.set(__self__, "id", id)
|
|
47
|
+
if is_public and not isinstance(is_public, bool):
|
|
48
|
+
raise TypeError("Expected argument 'is_public' to be a bool")
|
|
49
|
+
pulumi.set(__self__, "is_public", is_public)
|
|
50
|
+
if last_indexing_jobs and not isinstance(last_indexing_jobs, list):
|
|
51
|
+
raise TypeError("Expected argument 'last_indexing_jobs' to be a list")
|
|
52
|
+
pulumi.set(__self__, "last_indexing_jobs", last_indexing_jobs)
|
|
53
|
+
if name and not isinstance(name, str):
|
|
54
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
55
|
+
pulumi.set(__self__, "name", name)
|
|
56
|
+
if project_id and not isinstance(project_id, str):
|
|
57
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
58
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
59
|
+
if region and not isinstance(region, str):
|
|
60
|
+
raise TypeError("Expected argument 'region' to be a str")
|
|
61
|
+
pulumi.set(__self__, "region", region)
|
|
62
|
+
if tags and not isinstance(tags, list):
|
|
63
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
64
|
+
pulumi.set(__self__, "tags", tags)
|
|
65
|
+
if updated_at and not isinstance(updated_at, str):
|
|
66
|
+
raise TypeError("Expected argument 'updated_at' to be a str")
|
|
67
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
68
|
+
if user_id and not isinstance(user_id, str):
|
|
69
|
+
raise TypeError("Expected argument 'user_id' to be a str")
|
|
70
|
+
pulumi.set(__self__, "user_id", user_id)
|
|
71
|
+
if uuid and not isinstance(uuid, str):
|
|
72
|
+
raise TypeError("Expected argument 'uuid' to be a str")
|
|
73
|
+
pulumi.set(__self__, "uuid", uuid)
|
|
74
|
+
|
|
75
|
+
@_builtins.property
|
|
76
|
+
@pulumi.getter(name="addedToAgentAt")
|
|
77
|
+
def added_to_agent_at(self) -> Optional[_builtins.str]:
|
|
78
|
+
return pulumi.get(self, "added_to_agent_at")
|
|
79
|
+
|
|
80
|
+
@_builtins.property
|
|
81
|
+
@pulumi.getter(name="createdAt")
|
|
82
|
+
def created_at(self) -> _builtins.str:
|
|
83
|
+
return pulumi.get(self, "created_at")
|
|
84
|
+
|
|
85
|
+
@_builtins.property
|
|
86
|
+
@pulumi.getter(name="databaseId")
|
|
87
|
+
def database_id(self) -> Optional[_builtins.str]:
|
|
88
|
+
return pulumi.get(self, "database_id")
|
|
89
|
+
|
|
90
|
+
@_builtins.property
|
|
91
|
+
@pulumi.getter(name="embeddingModelUuid")
|
|
92
|
+
def embedding_model_uuid(self) -> Optional[_builtins.str]:
|
|
93
|
+
return pulumi.get(self, "embedding_model_uuid")
|
|
94
|
+
|
|
95
|
+
@_builtins.property
|
|
96
|
+
@pulumi.getter
|
|
97
|
+
def id(self) -> _builtins.str:
|
|
98
|
+
"""
|
|
99
|
+
The provider-assigned unique ID for this managed resource.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "id")
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter(name="isPublic")
|
|
105
|
+
def is_public(self) -> Optional[_builtins.bool]:
|
|
106
|
+
return pulumi.get(self, "is_public")
|
|
107
|
+
|
|
108
|
+
@_builtins.property
|
|
109
|
+
@pulumi.getter(name="lastIndexingJobs")
|
|
110
|
+
def last_indexing_jobs(self) -> Optional[Sequence['outputs.GetGenaiKnowledgeBaseLastIndexingJobResult']]:
|
|
111
|
+
return pulumi.get(self, "last_indexing_jobs")
|
|
112
|
+
|
|
113
|
+
@_builtins.property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def name(self) -> Optional[_builtins.str]:
|
|
116
|
+
return pulumi.get(self, "name")
|
|
117
|
+
|
|
118
|
+
@_builtins.property
|
|
119
|
+
@pulumi.getter(name="projectId")
|
|
120
|
+
def project_id(self) -> Optional[_builtins.str]:
|
|
121
|
+
return pulumi.get(self, "project_id")
|
|
122
|
+
|
|
123
|
+
@_builtins.property
|
|
124
|
+
@pulumi.getter
|
|
125
|
+
def region(self) -> Optional[_builtins.str]:
|
|
126
|
+
return pulumi.get(self, "region")
|
|
127
|
+
|
|
128
|
+
@_builtins.property
|
|
129
|
+
@pulumi.getter
|
|
130
|
+
def tags(self) -> Optional[Sequence[_builtins.str]]:
|
|
131
|
+
return pulumi.get(self, "tags")
|
|
132
|
+
|
|
133
|
+
@_builtins.property
|
|
134
|
+
@pulumi.getter(name="updatedAt")
|
|
135
|
+
def updated_at(self) -> _builtins.str:
|
|
136
|
+
return pulumi.get(self, "updated_at")
|
|
137
|
+
|
|
138
|
+
@_builtins.property
|
|
139
|
+
@pulumi.getter(name="userId")
|
|
140
|
+
def user_id(self) -> Optional[_builtins.str]:
|
|
141
|
+
return pulumi.get(self, "user_id")
|
|
142
|
+
|
|
143
|
+
@_builtins.property
|
|
144
|
+
@pulumi.getter
|
|
145
|
+
def uuid(self) -> Optional[_builtins.str]:
|
|
146
|
+
return pulumi.get(self, "uuid")
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class AwaitableGetGenaiKnowledgeBaseResult(GetGenaiKnowledgeBaseResult):
|
|
150
|
+
# pylint: disable=using-constant-test
|
|
151
|
+
def __await__(self):
|
|
152
|
+
if False:
|
|
153
|
+
yield self
|
|
154
|
+
return GetGenaiKnowledgeBaseResult(
|
|
155
|
+
added_to_agent_at=self.added_to_agent_at,
|
|
156
|
+
created_at=self.created_at,
|
|
157
|
+
database_id=self.database_id,
|
|
158
|
+
embedding_model_uuid=self.embedding_model_uuid,
|
|
159
|
+
id=self.id,
|
|
160
|
+
is_public=self.is_public,
|
|
161
|
+
last_indexing_jobs=self.last_indexing_jobs,
|
|
162
|
+
name=self.name,
|
|
163
|
+
project_id=self.project_id,
|
|
164
|
+
region=self.region,
|
|
165
|
+
tags=self.tags,
|
|
166
|
+
updated_at=self.updated_at,
|
|
167
|
+
user_id=self.user_id,
|
|
168
|
+
uuid=self.uuid)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def get_genai_knowledge_base(added_to_agent_at: Optional[_builtins.str] = None,
|
|
172
|
+
database_id: Optional[_builtins.str] = None,
|
|
173
|
+
embedding_model_uuid: Optional[_builtins.str] = None,
|
|
174
|
+
is_public: Optional[_builtins.bool] = None,
|
|
175
|
+
last_indexing_jobs: Optional[Sequence[Union['GetGenaiKnowledgeBaseLastIndexingJobArgs', 'GetGenaiKnowledgeBaseLastIndexingJobArgsDict']]] = None,
|
|
176
|
+
name: Optional[_builtins.str] = None,
|
|
177
|
+
project_id: Optional[_builtins.str] = None,
|
|
178
|
+
region: Optional[_builtins.str] = None,
|
|
179
|
+
tags: Optional[Sequence[_builtins.str]] = None,
|
|
180
|
+
user_id: Optional[_builtins.str] = None,
|
|
181
|
+
uuid: Optional[_builtins.str] = None,
|
|
182
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiKnowledgeBaseResult:
|
|
183
|
+
"""
|
|
184
|
+
Use this data source to access information about an existing resource.
|
|
185
|
+
"""
|
|
186
|
+
__args__ = dict()
|
|
187
|
+
__args__['addedToAgentAt'] = added_to_agent_at
|
|
188
|
+
__args__['databaseId'] = database_id
|
|
189
|
+
__args__['embeddingModelUuid'] = embedding_model_uuid
|
|
190
|
+
__args__['isPublic'] = is_public
|
|
191
|
+
__args__['lastIndexingJobs'] = last_indexing_jobs
|
|
192
|
+
__args__['name'] = name
|
|
193
|
+
__args__['projectId'] = project_id
|
|
194
|
+
__args__['region'] = region
|
|
195
|
+
__args__['tags'] = tags
|
|
196
|
+
__args__['userId'] = user_id
|
|
197
|
+
__args__['uuid'] = uuid
|
|
198
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
199
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiKnowledgeBase:getGenaiKnowledgeBase', __args__, opts=opts, typ=GetGenaiKnowledgeBaseResult).value
|
|
200
|
+
|
|
201
|
+
return AwaitableGetGenaiKnowledgeBaseResult(
|
|
202
|
+
added_to_agent_at=pulumi.get(__ret__, 'added_to_agent_at'),
|
|
203
|
+
created_at=pulumi.get(__ret__, 'created_at'),
|
|
204
|
+
database_id=pulumi.get(__ret__, 'database_id'),
|
|
205
|
+
embedding_model_uuid=pulumi.get(__ret__, 'embedding_model_uuid'),
|
|
206
|
+
id=pulumi.get(__ret__, 'id'),
|
|
207
|
+
is_public=pulumi.get(__ret__, 'is_public'),
|
|
208
|
+
last_indexing_jobs=pulumi.get(__ret__, 'last_indexing_jobs'),
|
|
209
|
+
name=pulumi.get(__ret__, 'name'),
|
|
210
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
211
|
+
region=pulumi.get(__ret__, 'region'),
|
|
212
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
213
|
+
updated_at=pulumi.get(__ret__, 'updated_at'),
|
|
214
|
+
user_id=pulumi.get(__ret__, 'user_id'),
|
|
215
|
+
uuid=pulumi.get(__ret__, 'uuid'))
|
|
216
|
+
def get_genai_knowledge_base_output(added_to_agent_at: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
217
|
+
database_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
218
|
+
embedding_model_uuid: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
219
|
+
is_public: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
220
|
+
last_indexing_jobs: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiKnowledgeBaseLastIndexingJobArgs', 'GetGenaiKnowledgeBaseLastIndexingJobArgsDict']]]]] = None,
|
|
221
|
+
name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
222
|
+
project_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
223
|
+
region: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
224
|
+
tags: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
225
|
+
user_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
226
|
+
uuid: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
227
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiKnowledgeBaseResult]:
|
|
228
|
+
"""
|
|
229
|
+
Use this data source to access information about an existing resource.
|
|
230
|
+
"""
|
|
231
|
+
__args__ = dict()
|
|
232
|
+
__args__['addedToAgentAt'] = added_to_agent_at
|
|
233
|
+
__args__['databaseId'] = database_id
|
|
234
|
+
__args__['embeddingModelUuid'] = embedding_model_uuid
|
|
235
|
+
__args__['isPublic'] = is_public
|
|
236
|
+
__args__['lastIndexingJobs'] = last_indexing_jobs
|
|
237
|
+
__args__['name'] = name
|
|
238
|
+
__args__['projectId'] = project_id
|
|
239
|
+
__args__['region'] = region
|
|
240
|
+
__args__['tags'] = tags
|
|
241
|
+
__args__['userId'] = user_id
|
|
242
|
+
__args__['uuid'] = uuid
|
|
243
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
244
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiKnowledgeBase:getGenaiKnowledgeBase', __args__, opts=opts, typ=GetGenaiKnowledgeBaseResult)
|
|
245
|
+
return __ret__.apply(lambda __response__: GetGenaiKnowledgeBaseResult(
|
|
246
|
+
added_to_agent_at=pulumi.get(__response__, 'added_to_agent_at'),
|
|
247
|
+
created_at=pulumi.get(__response__, 'created_at'),
|
|
248
|
+
database_id=pulumi.get(__response__, 'database_id'),
|
|
249
|
+
embedding_model_uuid=pulumi.get(__response__, 'embedding_model_uuid'),
|
|
250
|
+
id=pulumi.get(__response__, 'id'),
|
|
251
|
+
is_public=pulumi.get(__response__, 'is_public'),
|
|
252
|
+
last_indexing_jobs=pulumi.get(__response__, 'last_indexing_jobs'),
|
|
253
|
+
name=pulumi.get(__response__, 'name'),
|
|
254
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
255
|
+
region=pulumi.get(__response__, 'region'),
|
|
256
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
257
|
+
updated_at=pulumi.get(__response__, 'updated_at'),
|
|
258
|
+
user_id=pulumi.get(__response__, 'user_id'),
|
|
259
|
+
uuid=pulumi.get(__response__, 'uuid')))
|
|
@@ -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')))
|