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.
Files changed (29) hide show
  1. pulumi_digitalocean/__init__.py +80 -0
  2. pulumi_digitalocean/_inputs.py +7318 -4599
  3. pulumi_digitalocean/app.py +50 -0
  4. pulumi_digitalocean/database_cluster.py +28 -0
  5. pulumi_digitalocean/database_online_migration.py +460 -0
  6. pulumi_digitalocean/database_redis_config.py +4 -0
  7. pulumi_digitalocean/database_valkey_config.py +804 -0
  8. pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
  9. pulumi_digitalocean/genai_agent_route.py +354 -0
  10. pulumi_digitalocean/genai_function.py +464 -0
  11. pulumi_digitalocean/genai_knowledge_base.py +627 -0
  12. pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
  13. pulumi_digitalocean/genai_openai_api_key.py +386 -0
  14. pulumi_digitalocean/get_database_cluster.py +15 -1
  15. pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
  16. pulumi_digitalocean/get_genai_agent_versions.py +128 -0
  17. pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
  18. pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
  19. pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
  20. pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
  21. pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
  22. pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
  23. pulumi_digitalocean/outputs.py +15279 -7846
  24. pulumi_digitalocean/pulumi-plugin.json +1 -1
  25. pulumi_digitalocean/vpc_peering.py +0 -4
  26. {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/METADATA +1 -1
  27. {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/RECORD +29 -13
  28. {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/WHEEL +0 -0
  29. {pulumi_digitalocean-4.50.0a1753508712.dist-info → pulumi_digitalocean-4.51.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,198 @@
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__ = ['GenaiAgentKnowledgeBaseAttachmentArgs', 'GenaiAgentKnowledgeBaseAttachment']
18
+
19
+ @pulumi.input_type
20
+ class GenaiAgentKnowledgeBaseAttachmentArgs:
21
+ def __init__(__self__, *,
22
+ agent_uuid: pulumi.Input[_builtins.str],
23
+ knowledge_base_uuid: pulumi.Input[_builtins.str]):
24
+ """
25
+ The set of arguments for constructing a GenaiAgentKnowledgeBaseAttachment resource.
26
+ :param pulumi.Input[_builtins.str] agent_uuid: A unique identifier for an agent.
27
+ :param pulumi.Input[_builtins.str] knowledge_base_uuid: A unique identifier for a knowledge base.
28
+ """
29
+ pulumi.set(__self__, "agent_uuid", agent_uuid)
30
+ pulumi.set(__self__, "knowledge_base_uuid", knowledge_base_uuid)
31
+
32
+ @_builtins.property
33
+ @pulumi.getter(name="agentUuid")
34
+ def agent_uuid(self) -> pulumi.Input[_builtins.str]:
35
+ """
36
+ A unique identifier for an agent.
37
+ """
38
+ return pulumi.get(self, "agent_uuid")
39
+
40
+ @agent_uuid.setter
41
+ def agent_uuid(self, value: pulumi.Input[_builtins.str]):
42
+ pulumi.set(self, "agent_uuid", value)
43
+
44
+ @_builtins.property
45
+ @pulumi.getter(name="knowledgeBaseUuid")
46
+ def knowledge_base_uuid(self) -> pulumi.Input[_builtins.str]:
47
+ """
48
+ A unique identifier for a knowledge base.
49
+ """
50
+ return pulumi.get(self, "knowledge_base_uuid")
51
+
52
+ @knowledge_base_uuid.setter
53
+ def knowledge_base_uuid(self, value: pulumi.Input[_builtins.str]):
54
+ pulumi.set(self, "knowledge_base_uuid", value)
55
+
56
+
57
+ @pulumi.input_type
58
+ class _GenaiAgentKnowledgeBaseAttachmentState:
59
+ def __init__(__self__, *,
60
+ agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
61
+ knowledge_base_uuid: Optional[pulumi.Input[_builtins.str]] = None):
62
+ """
63
+ Input properties used for looking up and filtering GenaiAgentKnowledgeBaseAttachment resources.
64
+ :param pulumi.Input[_builtins.str] agent_uuid: A unique identifier for an agent.
65
+ :param pulumi.Input[_builtins.str] knowledge_base_uuid: A unique identifier for a knowledge base.
66
+ """
67
+ if agent_uuid is not None:
68
+ pulumi.set(__self__, "agent_uuid", agent_uuid)
69
+ if knowledge_base_uuid is not None:
70
+ pulumi.set(__self__, "knowledge_base_uuid", knowledge_base_uuid)
71
+
72
+ @_builtins.property
73
+ @pulumi.getter(name="agentUuid")
74
+ def agent_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
75
+ """
76
+ A unique identifier for an agent.
77
+ """
78
+ return pulumi.get(self, "agent_uuid")
79
+
80
+ @agent_uuid.setter
81
+ def agent_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
82
+ pulumi.set(self, "agent_uuid", value)
83
+
84
+ @_builtins.property
85
+ @pulumi.getter(name="knowledgeBaseUuid")
86
+ def knowledge_base_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
87
+ """
88
+ A unique identifier for a knowledge base.
89
+ """
90
+ return pulumi.get(self, "knowledge_base_uuid")
91
+
92
+ @knowledge_base_uuid.setter
93
+ def knowledge_base_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
94
+ pulumi.set(self, "knowledge_base_uuid", value)
95
+
96
+
97
+ @pulumi.type_token("digitalocean:index/genaiAgentKnowledgeBaseAttachment:GenaiAgentKnowledgeBaseAttachment")
98
+ class GenaiAgentKnowledgeBaseAttachment(pulumi.CustomResource):
99
+ @overload
100
+ def __init__(__self__,
101
+ resource_name: str,
102
+ opts: Optional[pulumi.ResourceOptions] = None,
103
+ agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
104
+ knowledge_base_uuid: Optional[pulumi.Input[_builtins.str]] = None,
105
+ __props__=None):
106
+ """
107
+ Create a GenaiAgentKnowledgeBaseAttachment resource with the given unique name, props, and options.
108
+ :param str resource_name: The name of the resource.
109
+ :param pulumi.ResourceOptions opts: Options for the resource.
110
+ :param pulumi.Input[_builtins.str] agent_uuid: A unique identifier for an agent.
111
+ :param pulumi.Input[_builtins.str] knowledge_base_uuid: A unique identifier for a knowledge base.
112
+ """
113
+ ...
114
+ @overload
115
+ def __init__(__self__,
116
+ resource_name: str,
117
+ args: GenaiAgentKnowledgeBaseAttachmentArgs,
118
+ opts: Optional[pulumi.ResourceOptions] = None):
119
+ """
120
+ Create a GenaiAgentKnowledgeBaseAttachment resource with the given unique name, props, and options.
121
+ :param str resource_name: The name of the resource.
122
+ :param GenaiAgentKnowledgeBaseAttachmentArgs args: The arguments to use to populate this resource's properties.
123
+ :param pulumi.ResourceOptions opts: Options for the resource.
124
+ """
125
+ ...
126
+ def __init__(__self__, resource_name: str, *args, **kwargs):
127
+ resource_args, opts = _utilities.get_resource_args_opts(GenaiAgentKnowledgeBaseAttachmentArgs, pulumi.ResourceOptions, *args, **kwargs)
128
+ if resource_args is not None:
129
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
130
+ else:
131
+ __self__._internal_init(resource_name, *args, **kwargs)
132
+
133
+ def _internal_init(__self__,
134
+ resource_name: str,
135
+ opts: Optional[pulumi.ResourceOptions] = None,
136
+ agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
137
+ knowledge_base_uuid: Optional[pulumi.Input[_builtins.str]] = None,
138
+ __props__=None):
139
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
140
+ if not isinstance(opts, pulumi.ResourceOptions):
141
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
142
+ if opts.id is None:
143
+ if __props__ is not None:
144
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
145
+ __props__ = GenaiAgentKnowledgeBaseAttachmentArgs.__new__(GenaiAgentKnowledgeBaseAttachmentArgs)
146
+
147
+ if agent_uuid is None and not opts.urn:
148
+ raise TypeError("Missing required property 'agent_uuid'")
149
+ __props__.__dict__["agent_uuid"] = agent_uuid
150
+ if knowledge_base_uuid is None and not opts.urn:
151
+ raise TypeError("Missing required property 'knowledge_base_uuid'")
152
+ __props__.__dict__["knowledge_base_uuid"] = knowledge_base_uuid
153
+ super(GenaiAgentKnowledgeBaseAttachment, __self__).__init__(
154
+ 'digitalocean:index/genaiAgentKnowledgeBaseAttachment:GenaiAgentKnowledgeBaseAttachment',
155
+ resource_name,
156
+ __props__,
157
+ opts)
158
+
159
+ @staticmethod
160
+ def get(resource_name: str,
161
+ id: pulumi.Input[str],
162
+ opts: Optional[pulumi.ResourceOptions] = None,
163
+ agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
164
+ knowledge_base_uuid: Optional[pulumi.Input[_builtins.str]] = None) -> 'GenaiAgentKnowledgeBaseAttachment':
165
+ """
166
+ Get an existing GenaiAgentKnowledgeBaseAttachment resource's state with the given name, id, and optional extra
167
+ properties used to qualify the lookup.
168
+
169
+ :param str resource_name: The unique name of the resulting resource.
170
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
171
+ :param pulumi.ResourceOptions opts: Options for the resource.
172
+ :param pulumi.Input[_builtins.str] agent_uuid: A unique identifier for an agent.
173
+ :param pulumi.Input[_builtins.str] knowledge_base_uuid: A unique identifier for a knowledge base.
174
+ """
175
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
176
+
177
+ __props__ = _GenaiAgentKnowledgeBaseAttachmentState.__new__(_GenaiAgentKnowledgeBaseAttachmentState)
178
+
179
+ __props__.__dict__["agent_uuid"] = agent_uuid
180
+ __props__.__dict__["knowledge_base_uuid"] = knowledge_base_uuid
181
+ return GenaiAgentKnowledgeBaseAttachment(resource_name, opts=opts, __props__=__props__)
182
+
183
+ @_builtins.property
184
+ @pulumi.getter(name="agentUuid")
185
+ def agent_uuid(self) -> pulumi.Output[_builtins.str]:
186
+ """
187
+ A unique identifier for an agent.
188
+ """
189
+ return pulumi.get(self, "agent_uuid")
190
+
191
+ @_builtins.property
192
+ @pulumi.getter(name="knowledgeBaseUuid")
193
+ def knowledge_base_uuid(self) -> pulumi.Output[_builtins.str]:
194
+ """
195
+ A unique identifier for a knowledge base.
196
+ """
197
+ return pulumi.get(self, "knowledge_base_uuid")
198
+
@@ -0,0 +1,354 @@
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__ = ['GenaiAgentRouteArgs', 'GenaiAgentRoute']
18
+
19
+ @pulumi.input_type
20
+ class GenaiAgentRouteArgs:
21
+ def __init__(__self__, *,
22
+ child_agent_uuid: pulumi.Input[_builtins.str],
23
+ parent_agent_uuid: pulumi.Input[_builtins.str],
24
+ if_case: Optional[pulumi.Input[_builtins.str]] = None,
25
+ rollback: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ route_name: Optional[pulumi.Input[_builtins.str]] = None):
27
+ """
28
+ The set of arguments for constructing a GenaiAgentRoute resource.
29
+ :param pulumi.Input[_builtins.str] child_agent_uuid: The UUID of the child agent.
30
+ :param pulumi.Input[_builtins.str] parent_agent_uuid: The UUID of the parent agent.
31
+ :param pulumi.Input[_builtins.str] if_case: if-case condition for the route.
32
+ :param pulumi.Input[_builtins.str] route_name: A name for the route.
33
+ """
34
+ pulumi.set(__self__, "child_agent_uuid", child_agent_uuid)
35
+ pulumi.set(__self__, "parent_agent_uuid", parent_agent_uuid)
36
+ if if_case is not None:
37
+ pulumi.set(__self__, "if_case", if_case)
38
+ if rollback is not None:
39
+ pulumi.set(__self__, "rollback", rollback)
40
+ if route_name is not None:
41
+ pulumi.set(__self__, "route_name", route_name)
42
+
43
+ @_builtins.property
44
+ @pulumi.getter(name="childAgentUuid")
45
+ def child_agent_uuid(self) -> pulumi.Input[_builtins.str]:
46
+ """
47
+ The UUID of the child agent.
48
+ """
49
+ return pulumi.get(self, "child_agent_uuid")
50
+
51
+ @child_agent_uuid.setter
52
+ def child_agent_uuid(self, value: pulumi.Input[_builtins.str]):
53
+ pulumi.set(self, "child_agent_uuid", value)
54
+
55
+ @_builtins.property
56
+ @pulumi.getter(name="parentAgentUuid")
57
+ def parent_agent_uuid(self) -> pulumi.Input[_builtins.str]:
58
+ """
59
+ The UUID of the parent agent.
60
+ """
61
+ return pulumi.get(self, "parent_agent_uuid")
62
+
63
+ @parent_agent_uuid.setter
64
+ def parent_agent_uuid(self, value: pulumi.Input[_builtins.str]):
65
+ pulumi.set(self, "parent_agent_uuid", value)
66
+
67
+ @_builtins.property
68
+ @pulumi.getter(name="ifCase")
69
+ def if_case(self) -> Optional[pulumi.Input[_builtins.str]]:
70
+ """
71
+ if-case condition for the route.
72
+ """
73
+ return pulumi.get(self, "if_case")
74
+
75
+ @if_case.setter
76
+ def if_case(self, value: Optional[pulumi.Input[_builtins.str]]):
77
+ pulumi.set(self, "if_case", value)
78
+
79
+ @_builtins.property
80
+ @pulumi.getter
81
+ def rollback(self) -> Optional[pulumi.Input[_builtins.bool]]:
82
+ return pulumi.get(self, "rollback")
83
+
84
+ @rollback.setter
85
+ def rollback(self, value: Optional[pulumi.Input[_builtins.bool]]):
86
+ pulumi.set(self, "rollback", value)
87
+
88
+ @_builtins.property
89
+ @pulumi.getter(name="routeName")
90
+ def route_name(self) -> Optional[pulumi.Input[_builtins.str]]:
91
+ """
92
+ A name for the route.
93
+ """
94
+ return pulumi.get(self, "route_name")
95
+
96
+ @route_name.setter
97
+ def route_name(self, value: Optional[pulumi.Input[_builtins.str]]):
98
+ pulumi.set(self, "route_name", value)
99
+
100
+
101
+ @pulumi.input_type
102
+ class _GenaiAgentRouteState:
103
+ def __init__(__self__, *,
104
+ child_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
105
+ if_case: Optional[pulumi.Input[_builtins.str]] = None,
106
+ parent_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
107
+ rollback: Optional[pulumi.Input[_builtins.bool]] = None,
108
+ route_name: Optional[pulumi.Input[_builtins.str]] = None,
109
+ uuid: Optional[pulumi.Input[_builtins.str]] = None):
110
+ """
111
+ Input properties used for looking up and filtering GenaiAgentRoute resources.
112
+ :param pulumi.Input[_builtins.str] child_agent_uuid: The UUID of the child agent.
113
+ :param pulumi.Input[_builtins.str] if_case: if-case condition for the route.
114
+ :param pulumi.Input[_builtins.str] parent_agent_uuid: The UUID of the parent agent.
115
+ :param pulumi.Input[_builtins.str] route_name: A name for the route.
116
+ :param pulumi.Input[_builtins.str] uuid: The UUID of the linkage
117
+ """
118
+ if child_agent_uuid is not None:
119
+ pulumi.set(__self__, "child_agent_uuid", child_agent_uuid)
120
+ if if_case is not None:
121
+ pulumi.set(__self__, "if_case", if_case)
122
+ if parent_agent_uuid is not None:
123
+ pulumi.set(__self__, "parent_agent_uuid", parent_agent_uuid)
124
+ if rollback is not None:
125
+ pulumi.set(__self__, "rollback", rollback)
126
+ if route_name is not None:
127
+ pulumi.set(__self__, "route_name", route_name)
128
+ if uuid is not None:
129
+ pulumi.set(__self__, "uuid", uuid)
130
+
131
+ @_builtins.property
132
+ @pulumi.getter(name="childAgentUuid")
133
+ def child_agent_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
134
+ """
135
+ The UUID of the child agent.
136
+ """
137
+ return pulumi.get(self, "child_agent_uuid")
138
+
139
+ @child_agent_uuid.setter
140
+ def child_agent_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
141
+ pulumi.set(self, "child_agent_uuid", value)
142
+
143
+ @_builtins.property
144
+ @pulumi.getter(name="ifCase")
145
+ def if_case(self) -> Optional[pulumi.Input[_builtins.str]]:
146
+ """
147
+ if-case condition for the route.
148
+ """
149
+ return pulumi.get(self, "if_case")
150
+
151
+ @if_case.setter
152
+ def if_case(self, value: Optional[pulumi.Input[_builtins.str]]):
153
+ pulumi.set(self, "if_case", value)
154
+
155
+ @_builtins.property
156
+ @pulumi.getter(name="parentAgentUuid")
157
+ def parent_agent_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
158
+ """
159
+ The UUID of the parent agent.
160
+ """
161
+ return pulumi.get(self, "parent_agent_uuid")
162
+
163
+ @parent_agent_uuid.setter
164
+ def parent_agent_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
165
+ pulumi.set(self, "parent_agent_uuid", value)
166
+
167
+ @_builtins.property
168
+ @pulumi.getter
169
+ def rollback(self) -> Optional[pulumi.Input[_builtins.bool]]:
170
+ return pulumi.get(self, "rollback")
171
+
172
+ @rollback.setter
173
+ def rollback(self, value: Optional[pulumi.Input[_builtins.bool]]):
174
+ pulumi.set(self, "rollback", value)
175
+
176
+ @_builtins.property
177
+ @pulumi.getter(name="routeName")
178
+ def route_name(self) -> Optional[pulumi.Input[_builtins.str]]:
179
+ """
180
+ A name for the route.
181
+ """
182
+ return pulumi.get(self, "route_name")
183
+
184
+ @route_name.setter
185
+ def route_name(self, value: Optional[pulumi.Input[_builtins.str]]):
186
+ pulumi.set(self, "route_name", value)
187
+
188
+ @_builtins.property
189
+ @pulumi.getter
190
+ def uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
191
+ """
192
+ The UUID of the linkage
193
+ """
194
+ return pulumi.get(self, "uuid")
195
+
196
+ @uuid.setter
197
+ def uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
198
+ pulumi.set(self, "uuid", value)
199
+
200
+
201
+ @pulumi.type_token("digitalocean:index/genaiAgentRoute:GenaiAgentRoute")
202
+ class GenaiAgentRoute(pulumi.CustomResource):
203
+ @overload
204
+ def __init__(__self__,
205
+ resource_name: str,
206
+ opts: Optional[pulumi.ResourceOptions] = None,
207
+ child_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
208
+ if_case: Optional[pulumi.Input[_builtins.str]] = None,
209
+ parent_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
210
+ rollback: Optional[pulumi.Input[_builtins.bool]] = None,
211
+ route_name: Optional[pulumi.Input[_builtins.str]] = None,
212
+ __props__=None):
213
+ """
214
+ Create a GenaiAgentRoute resource with the given unique name, props, and options.
215
+ :param str resource_name: The name of the resource.
216
+ :param pulumi.ResourceOptions opts: Options for the resource.
217
+ :param pulumi.Input[_builtins.str] child_agent_uuid: The UUID of the child agent.
218
+ :param pulumi.Input[_builtins.str] if_case: if-case condition for the route.
219
+ :param pulumi.Input[_builtins.str] parent_agent_uuid: The UUID of the parent agent.
220
+ :param pulumi.Input[_builtins.str] route_name: A name for the route.
221
+ """
222
+ ...
223
+ @overload
224
+ def __init__(__self__,
225
+ resource_name: str,
226
+ args: GenaiAgentRouteArgs,
227
+ opts: Optional[pulumi.ResourceOptions] = None):
228
+ """
229
+ Create a GenaiAgentRoute resource with the given unique name, props, and options.
230
+ :param str resource_name: The name of the resource.
231
+ :param GenaiAgentRouteArgs args: The arguments to use to populate this resource's properties.
232
+ :param pulumi.ResourceOptions opts: Options for the resource.
233
+ """
234
+ ...
235
+ def __init__(__self__, resource_name: str, *args, **kwargs):
236
+ resource_args, opts = _utilities.get_resource_args_opts(GenaiAgentRouteArgs, pulumi.ResourceOptions, *args, **kwargs)
237
+ if resource_args is not None:
238
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
239
+ else:
240
+ __self__._internal_init(resource_name, *args, **kwargs)
241
+
242
+ def _internal_init(__self__,
243
+ resource_name: str,
244
+ opts: Optional[pulumi.ResourceOptions] = None,
245
+ child_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
246
+ if_case: Optional[pulumi.Input[_builtins.str]] = None,
247
+ parent_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
248
+ rollback: Optional[pulumi.Input[_builtins.bool]] = None,
249
+ route_name: Optional[pulumi.Input[_builtins.str]] = None,
250
+ __props__=None):
251
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
252
+ if not isinstance(opts, pulumi.ResourceOptions):
253
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
254
+ if opts.id is None:
255
+ if __props__ is not None:
256
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
257
+ __props__ = GenaiAgentRouteArgs.__new__(GenaiAgentRouteArgs)
258
+
259
+ if child_agent_uuid is None and not opts.urn:
260
+ raise TypeError("Missing required property 'child_agent_uuid'")
261
+ __props__.__dict__["child_agent_uuid"] = child_agent_uuid
262
+ __props__.__dict__["if_case"] = if_case
263
+ if parent_agent_uuid is None and not opts.urn:
264
+ raise TypeError("Missing required property 'parent_agent_uuid'")
265
+ __props__.__dict__["parent_agent_uuid"] = parent_agent_uuid
266
+ __props__.__dict__["rollback"] = rollback
267
+ __props__.__dict__["route_name"] = route_name
268
+ __props__.__dict__["uuid"] = None
269
+ super(GenaiAgentRoute, __self__).__init__(
270
+ 'digitalocean:index/genaiAgentRoute:GenaiAgentRoute',
271
+ resource_name,
272
+ __props__,
273
+ opts)
274
+
275
+ @staticmethod
276
+ def get(resource_name: str,
277
+ id: pulumi.Input[str],
278
+ opts: Optional[pulumi.ResourceOptions] = None,
279
+ child_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
280
+ if_case: Optional[pulumi.Input[_builtins.str]] = None,
281
+ parent_agent_uuid: Optional[pulumi.Input[_builtins.str]] = None,
282
+ rollback: Optional[pulumi.Input[_builtins.bool]] = None,
283
+ route_name: Optional[pulumi.Input[_builtins.str]] = None,
284
+ uuid: Optional[pulumi.Input[_builtins.str]] = None) -> 'GenaiAgentRoute':
285
+ """
286
+ Get an existing GenaiAgentRoute resource's state with the given name, id, and optional extra
287
+ properties used to qualify the lookup.
288
+
289
+ :param str resource_name: The unique name of the resulting resource.
290
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
291
+ :param pulumi.ResourceOptions opts: Options for the resource.
292
+ :param pulumi.Input[_builtins.str] child_agent_uuid: The UUID of the child agent.
293
+ :param pulumi.Input[_builtins.str] if_case: if-case condition for the route.
294
+ :param pulumi.Input[_builtins.str] parent_agent_uuid: The UUID of the parent agent.
295
+ :param pulumi.Input[_builtins.str] route_name: A name for the route.
296
+ :param pulumi.Input[_builtins.str] uuid: The UUID of the linkage
297
+ """
298
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
299
+
300
+ __props__ = _GenaiAgentRouteState.__new__(_GenaiAgentRouteState)
301
+
302
+ __props__.__dict__["child_agent_uuid"] = child_agent_uuid
303
+ __props__.__dict__["if_case"] = if_case
304
+ __props__.__dict__["parent_agent_uuid"] = parent_agent_uuid
305
+ __props__.__dict__["rollback"] = rollback
306
+ __props__.__dict__["route_name"] = route_name
307
+ __props__.__dict__["uuid"] = uuid
308
+ return GenaiAgentRoute(resource_name, opts=opts, __props__=__props__)
309
+
310
+ @_builtins.property
311
+ @pulumi.getter(name="childAgentUuid")
312
+ def child_agent_uuid(self) -> pulumi.Output[_builtins.str]:
313
+ """
314
+ The UUID of the child agent.
315
+ """
316
+ return pulumi.get(self, "child_agent_uuid")
317
+
318
+ @_builtins.property
319
+ @pulumi.getter(name="ifCase")
320
+ def if_case(self) -> pulumi.Output[Optional[_builtins.str]]:
321
+ """
322
+ if-case condition for the route.
323
+ """
324
+ return pulumi.get(self, "if_case")
325
+
326
+ @_builtins.property
327
+ @pulumi.getter(name="parentAgentUuid")
328
+ def parent_agent_uuid(self) -> pulumi.Output[_builtins.str]:
329
+ """
330
+ The UUID of the parent agent.
331
+ """
332
+ return pulumi.get(self, "parent_agent_uuid")
333
+
334
+ @_builtins.property
335
+ @pulumi.getter
336
+ def rollback(self) -> pulumi.Output[Optional[_builtins.bool]]:
337
+ return pulumi.get(self, "rollback")
338
+
339
+ @_builtins.property
340
+ @pulumi.getter(name="routeName")
341
+ def route_name(self) -> pulumi.Output[Optional[_builtins.str]]:
342
+ """
343
+ A name for the route.
344
+ """
345
+ return pulumi.get(self, "route_name")
346
+
347
+ @_builtins.property
348
+ @pulumi.getter
349
+ def uuid(self) -> pulumi.Output[_builtins.str]:
350
+ """
351
+ The UUID of the linkage
352
+ """
353
+ return pulumi.get(self, "uuid")
354
+