pulumi-digitalocean 4.50.0a1753508712__py3-none-any.whl → 4.50.0a1755187429__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-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.50.0a1755187429.dist-info}/METADATA +1 -1
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.50.0a1755187429.dist-info}/RECORD +28 -12
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.50.0a1755187429.dist-info}/WHEEL +0 -0
- {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.50.0a1755187429.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
'GetDatabaseMetricsCredentialsResult',
|
|
19
|
+
'AwaitableGetDatabaseMetricsCredentialsResult',
|
|
20
|
+
'get_database_metrics_credentials',
|
|
21
|
+
'get_database_metrics_credentials_output',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@pulumi.output_type
|
|
25
|
+
class GetDatabaseMetricsCredentialsResult:
|
|
26
|
+
"""
|
|
27
|
+
A collection of values returned by getDatabaseMetricsCredentials.
|
|
28
|
+
"""
|
|
29
|
+
def __init__(__self__, id=None, password=None, username=None):
|
|
30
|
+
if id and not isinstance(id, str):
|
|
31
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
32
|
+
pulumi.set(__self__, "id", id)
|
|
33
|
+
if password and not isinstance(password, str):
|
|
34
|
+
raise TypeError("Expected argument 'password' to be a str")
|
|
35
|
+
pulumi.set(__self__, "password", password)
|
|
36
|
+
if username and not isinstance(username, str):
|
|
37
|
+
raise TypeError("Expected argument 'username' to be a str")
|
|
38
|
+
pulumi.set(__self__, "username", username)
|
|
39
|
+
|
|
40
|
+
@_builtins.property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def id(self) -> _builtins.str:
|
|
43
|
+
"""
|
|
44
|
+
The provider-assigned unique ID for this managed resource.
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "id")
|
|
47
|
+
|
|
48
|
+
@_builtins.property
|
|
49
|
+
@pulumi.getter
|
|
50
|
+
def password(self) -> _builtins.str:
|
|
51
|
+
"""
|
|
52
|
+
The password for accessing database metrics. This is marked as sensitive.
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "password")
|
|
55
|
+
|
|
56
|
+
@_builtins.property
|
|
57
|
+
@pulumi.getter
|
|
58
|
+
def username(self) -> _builtins.str:
|
|
59
|
+
"""
|
|
60
|
+
The username for accessing database metrics.
|
|
61
|
+
"""
|
|
62
|
+
return pulumi.get(self, "username")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class AwaitableGetDatabaseMetricsCredentialsResult(GetDatabaseMetricsCredentialsResult):
|
|
66
|
+
# pylint: disable=using-constant-test
|
|
67
|
+
def __await__(self):
|
|
68
|
+
if False:
|
|
69
|
+
yield self
|
|
70
|
+
return GetDatabaseMetricsCredentialsResult(
|
|
71
|
+
id=self.id,
|
|
72
|
+
password=self.password,
|
|
73
|
+
username=self.username)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def get_database_metrics_credentials(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseMetricsCredentialsResult:
|
|
77
|
+
"""
|
|
78
|
+
Provides access to the metrics credentials for DigitalOcean database clusters. These credentials are account-wide and can be used to access metrics for any database cluster in the account.
|
|
79
|
+
|
|
80
|
+
## Example Usage
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
import pulumi
|
|
84
|
+
import pulumi_digitalocean as digitalocean
|
|
85
|
+
|
|
86
|
+
example = digitalocean.get_database_metrics_credentials()
|
|
87
|
+
pulumi.export("metricsUsername", example.username)
|
|
88
|
+
pulumi.export("metricsPassword", example.password)
|
|
89
|
+
```
|
|
90
|
+
"""
|
|
91
|
+
__args__ = dict()
|
|
92
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
93
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getDatabaseMetricsCredentials:getDatabaseMetricsCredentials', __args__, opts=opts, typ=GetDatabaseMetricsCredentialsResult).value
|
|
94
|
+
|
|
95
|
+
return AwaitableGetDatabaseMetricsCredentialsResult(
|
|
96
|
+
id=pulumi.get(__ret__, 'id'),
|
|
97
|
+
password=pulumi.get(__ret__, 'password'),
|
|
98
|
+
username=pulumi.get(__ret__, 'username'))
|
|
99
|
+
def get_database_metrics_credentials_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatabaseMetricsCredentialsResult]:
|
|
100
|
+
"""
|
|
101
|
+
Provides access to the metrics credentials for DigitalOcean database clusters. These credentials are account-wide and can be used to access metrics for any database cluster in the account.
|
|
102
|
+
|
|
103
|
+
## Example Usage
|
|
104
|
+
|
|
105
|
+
```python
|
|
106
|
+
import pulumi
|
|
107
|
+
import pulumi_digitalocean as digitalocean
|
|
108
|
+
|
|
109
|
+
example = digitalocean.get_database_metrics_credentials()
|
|
110
|
+
pulumi.export("metricsUsername", example.username)
|
|
111
|
+
pulumi.export("metricsPassword", example.password)
|
|
112
|
+
```
|
|
113
|
+
"""
|
|
114
|
+
__args__ = dict()
|
|
115
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
116
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getDatabaseMetricsCredentials:getDatabaseMetricsCredentials', __args__, opts=opts, typ=GetDatabaseMetricsCredentialsResult)
|
|
117
|
+
return __ret__.apply(lambda __response__: GetDatabaseMetricsCredentialsResult(
|
|
118
|
+
id=pulumi.get(__response__, 'id'),
|
|
119
|
+
password=pulumi.get(__response__, 'password'),
|
|
120
|
+
username=pulumi.get(__response__, 'username')))
|
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
'GetGenaiAgentVersionsResult',
|
|
21
|
+
'AwaitableGetGenaiAgentVersionsResult',
|
|
22
|
+
'get_genai_agent_versions',
|
|
23
|
+
'get_genai_agent_versions_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetGenaiAgentVersionsResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getGenaiAgentVersions.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, agent_id=None, agent_versions=None, filters=None, id=None, sorts=None):
|
|
32
|
+
if agent_id and not isinstance(agent_id, str):
|
|
33
|
+
raise TypeError("Expected argument 'agent_id' to be a str")
|
|
34
|
+
pulumi.set(__self__, "agent_id", agent_id)
|
|
35
|
+
if agent_versions and not isinstance(agent_versions, list):
|
|
36
|
+
raise TypeError("Expected argument 'agent_versions' to be a list")
|
|
37
|
+
pulumi.set(__self__, "agent_versions", agent_versions)
|
|
38
|
+
if filters and not isinstance(filters, list):
|
|
39
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
|
40
|
+
pulumi.set(__self__, "filters", filters)
|
|
41
|
+
if id and not isinstance(id, str):
|
|
42
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
43
|
+
pulumi.set(__self__, "id", id)
|
|
44
|
+
if sorts and not isinstance(sorts, list):
|
|
45
|
+
raise TypeError("Expected argument 'sorts' to be a list")
|
|
46
|
+
pulumi.set(__self__, "sorts", sorts)
|
|
47
|
+
|
|
48
|
+
@_builtins.property
|
|
49
|
+
@pulumi.getter(name="agentId")
|
|
50
|
+
def agent_id(self) -> _builtins.str:
|
|
51
|
+
return pulumi.get(self, "agent_id")
|
|
52
|
+
|
|
53
|
+
@_builtins.property
|
|
54
|
+
@pulumi.getter(name="agentVersions")
|
|
55
|
+
def agent_versions(self) -> Sequence['outputs.GetGenaiAgentVersionsAgentVersionResult']:
|
|
56
|
+
return pulumi.get(self, "agent_versions")
|
|
57
|
+
|
|
58
|
+
@_builtins.property
|
|
59
|
+
@pulumi.getter
|
|
60
|
+
def filters(self) -> Optional[Sequence['outputs.GetGenaiAgentVersionsFilterResult']]:
|
|
61
|
+
return pulumi.get(self, "filters")
|
|
62
|
+
|
|
63
|
+
@_builtins.property
|
|
64
|
+
@pulumi.getter
|
|
65
|
+
def id(self) -> _builtins.str:
|
|
66
|
+
"""
|
|
67
|
+
The provider-assigned unique ID for this managed resource.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "id")
|
|
70
|
+
|
|
71
|
+
@_builtins.property
|
|
72
|
+
@pulumi.getter
|
|
73
|
+
def sorts(self) -> Optional[Sequence['outputs.GetGenaiAgentVersionsSortResult']]:
|
|
74
|
+
return pulumi.get(self, "sorts")
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class AwaitableGetGenaiAgentVersionsResult(GetGenaiAgentVersionsResult):
|
|
78
|
+
# pylint: disable=using-constant-test
|
|
79
|
+
def __await__(self):
|
|
80
|
+
if False:
|
|
81
|
+
yield self
|
|
82
|
+
return GetGenaiAgentVersionsResult(
|
|
83
|
+
agent_id=self.agent_id,
|
|
84
|
+
agent_versions=self.agent_versions,
|
|
85
|
+
filters=self.filters,
|
|
86
|
+
id=self.id,
|
|
87
|
+
sorts=self.sorts)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def get_genai_agent_versions(agent_id: Optional[_builtins.str] = None,
|
|
91
|
+
filters: Optional[Sequence[Union['GetGenaiAgentVersionsFilterArgs', 'GetGenaiAgentVersionsFilterArgsDict']]] = None,
|
|
92
|
+
sorts: Optional[Sequence[Union['GetGenaiAgentVersionsSortArgs', 'GetGenaiAgentVersionsSortArgsDict']]] = None,
|
|
93
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiAgentVersionsResult:
|
|
94
|
+
"""
|
|
95
|
+
Use this data source to access information about an existing resource.
|
|
96
|
+
"""
|
|
97
|
+
__args__ = dict()
|
|
98
|
+
__args__['agentId'] = agent_id
|
|
99
|
+
__args__['filters'] = filters
|
|
100
|
+
__args__['sorts'] = sorts
|
|
101
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
102
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiAgentVersions:getGenaiAgentVersions', __args__, opts=opts, typ=GetGenaiAgentVersionsResult).value
|
|
103
|
+
|
|
104
|
+
return AwaitableGetGenaiAgentVersionsResult(
|
|
105
|
+
agent_id=pulumi.get(__ret__, 'agent_id'),
|
|
106
|
+
agent_versions=pulumi.get(__ret__, 'agent_versions'),
|
|
107
|
+
filters=pulumi.get(__ret__, 'filters'),
|
|
108
|
+
id=pulumi.get(__ret__, 'id'),
|
|
109
|
+
sorts=pulumi.get(__ret__, 'sorts'))
|
|
110
|
+
def get_genai_agent_versions_output(agent_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
111
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiAgentVersionsFilterArgs', 'GetGenaiAgentVersionsFilterArgsDict']]]]] = None,
|
|
112
|
+
sorts: Optional[pulumi.Input[Optional[Sequence[Union['GetGenaiAgentVersionsSortArgs', 'GetGenaiAgentVersionsSortArgsDict']]]]] = None,
|
|
113
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiAgentVersionsResult]:
|
|
114
|
+
"""
|
|
115
|
+
Use this data source to access information about an existing resource.
|
|
116
|
+
"""
|
|
117
|
+
__args__ = dict()
|
|
118
|
+
__args__['agentId'] = agent_id
|
|
119
|
+
__args__['filters'] = filters
|
|
120
|
+
__args__['sorts'] = sorts
|
|
121
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
122
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiAgentVersions:getGenaiAgentVersions', __args__, opts=opts, typ=GetGenaiAgentVersionsResult)
|
|
123
|
+
return __ret__.apply(lambda __response__: GetGenaiAgentVersionsResult(
|
|
124
|
+
agent_id=pulumi.get(__response__, 'agent_id'),
|
|
125
|
+
agent_versions=pulumi.get(__response__, 'agent_versions'),
|
|
126
|
+
filters=pulumi.get(__response__, 'filters'),
|
|
127
|
+
id=pulumi.get(__response__, 'id'),
|
|
128
|
+
sorts=pulumi.get(__response__, 'sorts')))
|
|
@@ -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
|
+
'GetGenaiAgentsByOpenaiApiKeyResult',
|
|
20
|
+
'AwaitableGetGenaiAgentsByOpenaiApiKeyResult',
|
|
21
|
+
'get_genai_agents_by_openai_api_key',
|
|
22
|
+
'get_genai_agents_by_openai_api_key_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetGenaiAgentsByOpenaiApiKeyResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getGenaiAgentsByOpenaiApiKey.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, agents=None, id=None, uuid=None):
|
|
31
|
+
if agents and not isinstance(agents, list):
|
|
32
|
+
raise TypeError("Expected argument 'agents' to be a list")
|
|
33
|
+
pulumi.set(__self__, "agents", agents)
|
|
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 uuid and not isinstance(uuid, str):
|
|
38
|
+
raise TypeError("Expected argument 'uuid' to be a str")
|
|
39
|
+
pulumi.set(__self__, "uuid", uuid)
|
|
40
|
+
|
|
41
|
+
@_builtins.property
|
|
42
|
+
@pulumi.getter
|
|
43
|
+
def agents(self) -> Sequence['outputs.GetGenaiAgentsByOpenaiApiKeyAgentResult']:
|
|
44
|
+
return pulumi.get(self, "agents")
|
|
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
|
|
56
|
+
def uuid(self) -> _builtins.str:
|
|
57
|
+
return pulumi.get(self, "uuid")
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class AwaitableGetGenaiAgentsByOpenaiApiKeyResult(GetGenaiAgentsByOpenaiApiKeyResult):
|
|
61
|
+
# pylint: disable=using-constant-test
|
|
62
|
+
def __await__(self):
|
|
63
|
+
if False:
|
|
64
|
+
yield self
|
|
65
|
+
return GetGenaiAgentsByOpenaiApiKeyResult(
|
|
66
|
+
agents=self.agents,
|
|
67
|
+
id=self.id,
|
|
68
|
+
uuid=self.uuid)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def get_genai_agents_by_openai_api_key(uuid: Optional[_builtins.str] = None,
|
|
72
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGenaiAgentsByOpenaiApiKeyResult:
|
|
73
|
+
"""
|
|
74
|
+
Use this data source to access information about an existing resource.
|
|
75
|
+
"""
|
|
76
|
+
__args__ = dict()
|
|
77
|
+
__args__['uuid'] = uuid
|
|
78
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
79
|
+
__ret__ = pulumi.runtime.invoke('digitalocean:index/getGenaiAgentsByOpenaiApiKey:getGenaiAgentsByOpenaiApiKey', __args__, opts=opts, typ=GetGenaiAgentsByOpenaiApiKeyResult).value
|
|
80
|
+
|
|
81
|
+
return AwaitableGetGenaiAgentsByOpenaiApiKeyResult(
|
|
82
|
+
agents=pulumi.get(__ret__, 'agents'),
|
|
83
|
+
id=pulumi.get(__ret__, 'id'),
|
|
84
|
+
uuid=pulumi.get(__ret__, 'uuid'))
|
|
85
|
+
def get_genai_agents_by_openai_api_key_output(uuid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
86
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGenaiAgentsByOpenaiApiKeyResult]:
|
|
87
|
+
"""
|
|
88
|
+
Use this data source to access information about an existing resource.
|
|
89
|
+
"""
|
|
90
|
+
__args__ = dict()
|
|
91
|
+
__args__['uuid'] = uuid
|
|
92
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
93
|
+
__ret__ = pulumi.runtime.invoke_output('digitalocean:index/getGenaiAgentsByOpenaiApiKey:getGenaiAgentsByOpenaiApiKey', __args__, opts=opts, typ=GetGenaiAgentsByOpenaiApiKeyResult)
|
|
94
|
+
return __ret__.apply(lambda __response__: GetGenaiAgentsByOpenaiApiKeyResult(
|
|
95
|
+
agents=pulumi.get(__response__, 'agents'),
|
|
96
|
+
id=pulumi.get(__response__, 'id'),
|
|
97
|
+
uuid=pulumi.get(__response__, 'uuid')))
|
|
@@ -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')))
|