pulumi-oci 2.16.0a1731504509__py3-none-any.whl → 2.17.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_oci/__init__.py +40 -0
- pulumi_oci/core/_inputs.py +3 -3
- pulumi_oci/core/compute_capacity_reservation.py +7 -7
- pulumi_oci/core/get_boot_volume.py +1 -1
- pulumi_oci/core/get_volume.py +1 -1
- pulumi_oci/core/instance_pool.py +7 -7
- pulumi_oci/core/outputs.py +46 -46
- pulumi_oci/generativeai/__init__.py +16 -0
- pulumi_oci/generativeai/_inputs.py +1090 -0
- pulumi_oci/generativeai/agent_agent.py +665 -0
- pulumi_oci/generativeai/agent_agent_endpoint.py +888 -0
- pulumi_oci/generativeai/agent_data_ingestion_job.py +647 -0
- pulumi_oci/generativeai/agent_data_source.py +697 -0
- pulumi_oci/generativeai/agent_knowledge_base.py +659 -0
- pulumi_oci/generativeai/get_agent_agent.py +285 -0
- pulumi_oci/generativeai/get_agent_agent_endpoint.py +342 -0
- pulumi_oci/generativeai/get_agent_agent_endpoints.py +217 -0
- pulumi_oci/generativeai/get_agent_agents.py +195 -0
- pulumi_oci/generativeai/get_agent_data_ingestion_job.py +286 -0
- pulumi_oci/generativeai/get_agent_data_ingestion_job_log_content.py +117 -0
- pulumi_oci/generativeai/get_agent_data_ingestion_jobs.py +217 -0
- pulumi_oci/generativeai/get_agent_data_source.py +286 -0
- pulumi_oci/generativeai/get_agent_data_sources.py +217 -0
- pulumi_oci/generativeai/get_agent_knowledge_base.py +272 -0
- pulumi_oci/generativeai/get_agent_knowledge_bases.py +195 -0
- pulumi_oci/generativeai/outputs.py +2840 -268
- pulumi_oci/goldengate/connection.py +1065 -78
- pulumi_oci/goldengate/deployment.py +7 -7
- pulumi_oci/goldengate/deployment_backup.py +49 -0
- pulumi_oci/goldengate/get_connection.py +288 -7
- pulumi_oci/goldengate/get_deployment.py +1 -1
- pulumi_oci/goldengate/get_deployment_backup.py +15 -1
- pulumi_oci/goldengate/outputs.py +240 -3
- pulumi_oci/pulumi-plugin.json +1 -1
- {pulumi_oci-2.16.0a1731504509.dist-info → pulumi_oci-2.17.0.dist-info}/METADATA +1 -1
- {pulumi_oci-2.16.0a1731504509.dist-info → pulumi_oci-2.17.0.dist-info}/RECORD +38 -22
- {pulumi_oci-2.16.0a1731504509.dist-info → pulumi_oci-2.17.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.16.0a1731504509.dist-info → pulumi_oci-2.17.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,285 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
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
|
+
'GetAgentAgentResult',
|
19
|
+
'AwaitableGetAgentAgentResult',
|
20
|
+
'get_agent_agent',
|
21
|
+
'get_agent_agent_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetAgentAgentResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getAgentAgent.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, agent_id=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, knowledge_base_ids=None, lifecycle_details=None, state=None, system_tags=None, time_created=None, time_updated=None, welcome_message=None):
|
30
|
+
if agent_id and not isinstance(agent_id, str):
|
31
|
+
raise TypeError("Expected argument 'agent_id' to be a str")
|
32
|
+
pulumi.set(__self__, "agent_id", agent_id)
|
33
|
+
if compartment_id and not isinstance(compartment_id, str):
|
34
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
35
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
36
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
37
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
38
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
39
|
+
if description and not isinstance(description, str):
|
40
|
+
raise TypeError("Expected argument 'description' to be a str")
|
41
|
+
pulumi.set(__self__, "description", description)
|
42
|
+
if display_name and not isinstance(display_name, str):
|
43
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
44
|
+
pulumi.set(__self__, "display_name", display_name)
|
45
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
46
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
47
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
48
|
+
if id and not isinstance(id, str):
|
49
|
+
raise TypeError("Expected argument 'id' to be a str")
|
50
|
+
pulumi.set(__self__, "id", id)
|
51
|
+
if knowledge_base_ids and not isinstance(knowledge_base_ids, list):
|
52
|
+
raise TypeError("Expected argument 'knowledge_base_ids' to be a list")
|
53
|
+
pulumi.set(__self__, "knowledge_base_ids", knowledge_base_ids)
|
54
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
55
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
56
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
57
|
+
if state and not isinstance(state, str):
|
58
|
+
raise TypeError("Expected argument 'state' to be a str")
|
59
|
+
pulumi.set(__self__, "state", state)
|
60
|
+
if system_tags and not isinstance(system_tags, dict):
|
61
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
62
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
63
|
+
if time_created and not isinstance(time_created, str):
|
64
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
65
|
+
pulumi.set(__self__, "time_created", time_created)
|
66
|
+
if time_updated and not isinstance(time_updated, str):
|
67
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
68
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
69
|
+
if welcome_message and not isinstance(welcome_message, str):
|
70
|
+
raise TypeError("Expected argument 'welcome_message' to be a str")
|
71
|
+
pulumi.set(__self__, "welcome_message", welcome_message)
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter(name="agentId")
|
75
|
+
def agent_id(self) -> str:
|
76
|
+
return pulumi.get(self, "agent_id")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter(name="compartmentId")
|
80
|
+
def compartment_id(self) -> str:
|
81
|
+
"""
|
82
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "compartment_id")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="definedTags")
|
88
|
+
def defined_tags(self) -> Mapping[str, str]:
|
89
|
+
"""
|
90
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "defined_tags")
|
93
|
+
|
94
|
+
@property
|
95
|
+
@pulumi.getter
|
96
|
+
def description(self) -> str:
|
97
|
+
"""
|
98
|
+
Description about the agent.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "description")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter(name="displayName")
|
104
|
+
def display_name(self) -> str:
|
105
|
+
"""
|
106
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "display_name")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter(name="freeformTags")
|
112
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
113
|
+
"""
|
114
|
+
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "freeform_tags")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter
|
120
|
+
def id(self) -> str:
|
121
|
+
"""
|
122
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "id")
|
125
|
+
|
126
|
+
@property
|
127
|
+
@pulumi.getter(name="knowledgeBaseIds")
|
128
|
+
def knowledge_base_ids(self) -> Sequence[str]:
|
129
|
+
"""
|
130
|
+
List of [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledgeBases associated with agent.
|
131
|
+
"""
|
132
|
+
return pulumi.get(self, "knowledge_base_ids")
|
133
|
+
|
134
|
+
@property
|
135
|
+
@pulumi.getter(name="lifecycleDetails")
|
136
|
+
def lifecycle_details(self) -> str:
|
137
|
+
"""
|
138
|
+
A message that describes the current state of the agent in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
139
|
+
"""
|
140
|
+
return pulumi.get(self, "lifecycle_details")
|
141
|
+
|
142
|
+
@property
|
143
|
+
@pulumi.getter
|
144
|
+
def state(self) -> str:
|
145
|
+
"""
|
146
|
+
The current state of the agent.
|
147
|
+
"""
|
148
|
+
return pulumi.get(self, "state")
|
149
|
+
|
150
|
+
@property
|
151
|
+
@pulumi.getter(name="systemTags")
|
152
|
+
def system_tags(self) -> Mapping[str, str]:
|
153
|
+
"""
|
154
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
155
|
+
"""
|
156
|
+
return pulumi.get(self, "system_tags")
|
157
|
+
|
158
|
+
@property
|
159
|
+
@pulumi.getter(name="timeCreated")
|
160
|
+
def time_created(self) -> str:
|
161
|
+
"""
|
162
|
+
The date and time the agent was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
163
|
+
"""
|
164
|
+
return pulumi.get(self, "time_created")
|
165
|
+
|
166
|
+
@property
|
167
|
+
@pulumi.getter(name="timeUpdated")
|
168
|
+
def time_updated(self) -> str:
|
169
|
+
"""
|
170
|
+
The date and time the agent was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
171
|
+
"""
|
172
|
+
return pulumi.get(self, "time_updated")
|
173
|
+
|
174
|
+
@property
|
175
|
+
@pulumi.getter(name="welcomeMessage")
|
176
|
+
def welcome_message(self) -> str:
|
177
|
+
"""
|
178
|
+
Details about purpose and responsibility of the agent
|
179
|
+
"""
|
180
|
+
return pulumi.get(self, "welcome_message")
|
181
|
+
|
182
|
+
|
183
|
+
class AwaitableGetAgentAgentResult(GetAgentAgentResult):
|
184
|
+
# pylint: disable=using-constant-test
|
185
|
+
def __await__(self):
|
186
|
+
if False:
|
187
|
+
yield self
|
188
|
+
return GetAgentAgentResult(
|
189
|
+
agent_id=self.agent_id,
|
190
|
+
compartment_id=self.compartment_id,
|
191
|
+
defined_tags=self.defined_tags,
|
192
|
+
description=self.description,
|
193
|
+
display_name=self.display_name,
|
194
|
+
freeform_tags=self.freeform_tags,
|
195
|
+
id=self.id,
|
196
|
+
knowledge_base_ids=self.knowledge_base_ids,
|
197
|
+
lifecycle_details=self.lifecycle_details,
|
198
|
+
state=self.state,
|
199
|
+
system_tags=self.system_tags,
|
200
|
+
time_created=self.time_created,
|
201
|
+
time_updated=self.time_updated,
|
202
|
+
welcome_message=self.welcome_message)
|
203
|
+
|
204
|
+
|
205
|
+
def get_agent_agent(agent_id: Optional[str] = None,
|
206
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAgentAgentResult:
|
207
|
+
"""
|
208
|
+
This data source provides details about a specific Agent resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
209
|
+
|
210
|
+
**GetAgent**
|
211
|
+
|
212
|
+
Gets information about an agent.
|
213
|
+
|
214
|
+
## Example Usage
|
215
|
+
|
216
|
+
```python
|
217
|
+
import pulumi
|
218
|
+
import pulumi_oci as oci
|
219
|
+
|
220
|
+
test_agent = oci.GenerativeAi.get_agent_agent(agent_id=test_agent_oci_generative_ai_agent_agent["id"])
|
221
|
+
```
|
222
|
+
|
223
|
+
|
224
|
+
:param str agent_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.
|
225
|
+
"""
|
226
|
+
__args__ = dict()
|
227
|
+
__args__['agentId'] = agent_id
|
228
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
229
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getAgentAgent:getAgentAgent', __args__, opts=opts, typ=GetAgentAgentResult).value
|
230
|
+
|
231
|
+
return AwaitableGetAgentAgentResult(
|
232
|
+
agent_id=pulumi.get(__ret__, 'agent_id'),
|
233
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
234
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
235
|
+
description=pulumi.get(__ret__, 'description'),
|
236
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
237
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
238
|
+
id=pulumi.get(__ret__, 'id'),
|
239
|
+
knowledge_base_ids=pulumi.get(__ret__, 'knowledge_base_ids'),
|
240
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
241
|
+
state=pulumi.get(__ret__, 'state'),
|
242
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
243
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
244
|
+
time_updated=pulumi.get(__ret__, 'time_updated'),
|
245
|
+
welcome_message=pulumi.get(__ret__, 'welcome_message'))
|
246
|
+
def get_agent_agent_output(agent_id: Optional[pulumi.Input[str]] = None,
|
247
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentAgentResult]:
|
248
|
+
"""
|
249
|
+
This data source provides details about a specific Agent resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
250
|
+
|
251
|
+
**GetAgent**
|
252
|
+
|
253
|
+
Gets information about an agent.
|
254
|
+
|
255
|
+
## Example Usage
|
256
|
+
|
257
|
+
```python
|
258
|
+
import pulumi
|
259
|
+
import pulumi_oci as oci
|
260
|
+
|
261
|
+
test_agent = oci.GenerativeAi.get_agent_agent(agent_id=test_agent_oci_generative_ai_agent_agent["id"])
|
262
|
+
```
|
263
|
+
|
264
|
+
|
265
|
+
:param str agent_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the agent.
|
266
|
+
"""
|
267
|
+
__args__ = dict()
|
268
|
+
__args__['agentId'] = agent_id
|
269
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
270
|
+
__ret__ = pulumi.runtime.invoke_output('oci:GenerativeAi/getAgentAgent:getAgentAgent', __args__, opts=opts, typ=GetAgentAgentResult)
|
271
|
+
return __ret__.apply(lambda __response__: GetAgentAgentResult(
|
272
|
+
agent_id=pulumi.get(__response__, 'agent_id'),
|
273
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
274
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
275
|
+
description=pulumi.get(__response__, 'description'),
|
276
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
277
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
278
|
+
id=pulumi.get(__response__, 'id'),
|
279
|
+
knowledge_base_ids=pulumi.get(__response__, 'knowledge_base_ids'),
|
280
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
281
|
+
state=pulumi.get(__response__, 'state'),
|
282
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
283
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
284
|
+
time_updated=pulumi.get(__response__, 'time_updated'),
|
285
|
+
welcome_message=pulumi.get(__response__, 'welcome_message')))
|
@@ -0,0 +1,342 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
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
|
+
'GetAgentAgentEndpointResult',
|
20
|
+
'AwaitableGetAgentAgentEndpointResult',
|
21
|
+
'get_agent_agent_endpoint',
|
22
|
+
'get_agent_agent_endpoint_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetAgentAgentEndpointResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getAgentAgentEndpoint.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, agent_endpoint_id=None, agent_id=None, compartment_id=None, content_moderation_configs=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, lifecycle_details=None, session_configs=None, should_enable_citation=None, should_enable_session=None, should_enable_trace=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
31
|
+
if agent_endpoint_id and not isinstance(agent_endpoint_id, str):
|
32
|
+
raise TypeError("Expected argument 'agent_endpoint_id' to be a str")
|
33
|
+
pulumi.set(__self__, "agent_endpoint_id", agent_endpoint_id)
|
34
|
+
if agent_id and not isinstance(agent_id, str):
|
35
|
+
raise TypeError("Expected argument 'agent_id' to be a str")
|
36
|
+
pulumi.set(__self__, "agent_id", agent_id)
|
37
|
+
if compartment_id and not isinstance(compartment_id, str):
|
38
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
39
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
40
|
+
if content_moderation_configs and not isinstance(content_moderation_configs, list):
|
41
|
+
raise TypeError("Expected argument 'content_moderation_configs' to be a list")
|
42
|
+
pulumi.set(__self__, "content_moderation_configs", content_moderation_configs)
|
43
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
44
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
45
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
46
|
+
if description and not isinstance(description, str):
|
47
|
+
raise TypeError("Expected argument 'description' to be a str")
|
48
|
+
pulumi.set(__self__, "description", description)
|
49
|
+
if display_name and not isinstance(display_name, str):
|
50
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
51
|
+
pulumi.set(__self__, "display_name", display_name)
|
52
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
53
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
54
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
55
|
+
if id and not isinstance(id, str):
|
56
|
+
raise TypeError("Expected argument 'id' to be a str")
|
57
|
+
pulumi.set(__self__, "id", id)
|
58
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
59
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
60
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
61
|
+
if session_configs and not isinstance(session_configs, list):
|
62
|
+
raise TypeError("Expected argument 'session_configs' to be a list")
|
63
|
+
pulumi.set(__self__, "session_configs", session_configs)
|
64
|
+
if should_enable_citation and not isinstance(should_enable_citation, bool):
|
65
|
+
raise TypeError("Expected argument 'should_enable_citation' to be a bool")
|
66
|
+
pulumi.set(__self__, "should_enable_citation", should_enable_citation)
|
67
|
+
if should_enable_session and not isinstance(should_enable_session, bool):
|
68
|
+
raise TypeError("Expected argument 'should_enable_session' to be a bool")
|
69
|
+
pulumi.set(__self__, "should_enable_session", should_enable_session)
|
70
|
+
if should_enable_trace and not isinstance(should_enable_trace, bool):
|
71
|
+
raise TypeError("Expected argument 'should_enable_trace' to be a bool")
|
72
|
+
pulumi.set(__self__, "should_enable_trace", should_enable_trace)
|
73
|
+
if state and not isinstance(state, str):
|
74
|
+
raise TypeError("Expected argument 'state' to be a str")
|
75
|
+
pulumi.set(__self__, "state", state)
|
76
|
+
if system_tags and not isinstance(system_tags, dict):
|
77
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
78
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
79
|
+
if time_created and not isinstance(time_created, str):
|
80
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
81
|
+
pulumi.set(__self__, "time_created", time_created)
|
82
|
+
if time_updated and not isinstance(time_updated, str):
|
83
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
84
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="agentEndpointId")
|
88
|
+
def agent_endpoint_id(self) -> str:
|
89
|
+
return pulumi.get(self, "agent_endpoint_id")
|
90
|
+
|
91
|
+
@property
|
92
|
+
@pulumi.getter(name="agentId")
|
93
|
+
def agent_id(self) -> str:
|
94
|
+
"""
|
95
|
+
The OCID of the agent that this endpoint is associated with.
|
96
|
+
"""
|
97
|
+
return pulumi.get(self, "agent_id")
|
98
|
+
|
99
|
+
@property
|
100
|
+
@pulumi.getter(name="compartmentId")
|
101
|
+
def compartment_id(self) -> str:
|
102
|
+
"""
|
103
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
104
|
+
"""
|
105
|
+
return pulumi.get(self, "compartment_id")
|
106
|
+
|
107
|
+
@property
|
108
|
+
@pulumi.getter(name="contentModerationConfigs")
|
109
|
+
def content_moderation_configs(self) -> Sequence['outputs.GetAgentAgentEndpointContentModerationConfigResult']:
|
110
|
+
"""
|
111
|
+
The configuration details about whether to apply the content moderation feature to input and output. Content moderation removes toxic and biased content from responses. It is recommended to use content moderation.
|
112
|
+
"""
|
113
|
+
return pulumi.get(self, "content_moderation_configs")
|
114
|
+
|
115
|
+
@property
|
116
|
+
@pulumi.getter(name="definedTags")
|
117
|
+
def defined_tags(self) -> Mapping[str, str]:
|
118
|
+
"""
|
119
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
|
120
|
+
"""
|
121
|
+
return pulumi.get(self, "defined_tags")
|
122
|
+
|
123
|
+
@property
|
124
|
+
@pulumi.getter
|
125
|
+
def description(self) -> str:
|
126
|
+
"""
|
127
|
+
An optional description of the endpoint.
|
128
|
+
"""
|
129
|
+
return pulumi.get(self, "description")
|
130
|
+
|
131
|
+
@property
|
132
|
+
@pulumi.getter(name="displayName")
|
133
|
+
def display_name(self) -> str:
|
134
|
+
"""
|
135
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
136
|
+
"""
|
137
|
+
return pulumi.get(self, "display_name")
|
138
|
+
|
139
|
+
@property
|
140
|
+
@pulumi.getter(name="freeformTags")
|
141
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
142
|
+
"""
|
143
|
+
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
|
144
|
+
"""
|
145
|
+
return pulumi.get(self, "freeform_tags")
|
146
|
+
|
147
|
+
@property
|
148
|
+
@pulumi.getter
|
149
|
+
def id(self) -> str:
|
150
|
+
"""
|
151
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
152
|
+
"""
|
153
|
+
return pulumi.get(self, "id")
|
154
|
+
|
155
|
+
@property
|
156
|
+
@pulumi.getter(name="lifecycleDetails")
|
157
|
+
def lifecycle_details(self) -> str:
|
158
|
+
"""
|
159
|
+
A message that describes the current state of the endpoint in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
160
|
+
"""
|
161
|
+
return pulumi.get(self, "lifecycle_details")
|
162
|
+
|
163
|
+
@property
|
164
|
+
@pulumi.getter(name="sessionConfigs")
|
165
|
+
def session_configs(self) -> Sequence['outputs.GetAgentAgentEndpointSessionConfigResult']:
|
166
|
+
"""
|
167
|
+
**SessionConfig**
|
168
|
+
"""
|
169
|
+
return pulumi.get(self, "session_configs")
|
170
|
+
|
171
|
+
@property
|
172
|
+
@pulumi.getter(name="shouldEnableCitation")
|
173
|
+
def should_enable_citation(self) -> bool:
|
174
|
+
"""
|
175
|
+
Whether to show citations in the chat result.
|
176
|
+
"""
|
177
|
+
return pulumi.get(self, "should_enable_citation")
|
178
|
+
|
179
|
+
@property
|
180
|
+
@pulumi.getter(name="shouldEnableSession")
|
181
|
+
def should_enable_session(self) -> bool:
|
182
|
+
"""
|
183
|
+
Whether or not to enable Session-based chat.
|
184
|
+
"""
|
185
|
+
return pulumi.get(self, "should_enable_session")
|
186
|
+
|
187
|
+
@property
|
188
|
+
@pulumi.getter(name="shouldEnableTrace")
|
189
|
+
def should_enable_trace(self) -> bool:
|
190
|
+
"""
|
191
|
+
Whether to show traces in the chat result.
|
192
|
+
"""
|
193
|
+
return pulumi.get(self, "should_enable_trace")
|
194
|
+
|
195
|
+
@property
|
196
|
+
@pulumi.getter
|
197
|
+
def state(self) -> str:
|
198
|
+
"""
|
199
|
+
The current state of the endpoint.
|
200
|
+
"""
|
201
|
+
return pulumi.get(self, "state")
|
202
|
+
|
203
|
+
@property
|
204
|
+
@pulumi.getter(name="systemTags")
|
205
|
+
def system_tags(self) -> Mapping[str, str]:
|
206
|
+
"""
|
207
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
208
|
+
"""
|
209
|
+
return pulumi.get(self, "system_tags")
|
210
|
+
|
211
|
+
@property
|
212
|
+
@pulumi.getter(name="timeCreated")
|
213
|
+
def time_created(self) -> str:
|
214
|
+
"""
|
215
|
+
The date and time the AgentEndpoint was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
216
|
+
"""
|
217
|
+
return pulumi.get(self, "time_created")
|
218
|
+
|
219
|
+
@property
|
220
|
+
@pulumi.getter(name="timeUpdated")
|
221
|
+
def time_updated(self) -> str:
|
222
|
+
"""
|
223
|
+
The date and time the endpoint was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
224
|
+
"""
|
225
|
+
return pulumi.get(self, "time_updated")
|
226
|
+
|
227
|
+
|
228
|
+
class AwaitableGetAgentAgentEndpointResult(GetAgentAgentEndpointResult):
|
229
|
+
# pylint: disable=using-constant-test
|
230
|
+
def __await__(self):
|
231
|
+
if False:
|
232
|
+
yield self
|
233
|
+
return GetAgentAgentEndpointResult(
|
234
|
+
agent_endpoint_id=self.agent_endpoint_id,
|
235
|
+
agent_id=self.agent_id,
|
236
|
+
compartment_id=self.compartment_id,
|
237
|
+
content_moderation_configs=self.content_moderation_configs,
|
238
|
+
defined_tags=self.defined_tags,
|
239
|
+
description=self.description,
|
240
|
+
display_name=self.display_name,
|
241
|
+
freeform_tags=self.freeform_tags,
|
242
|
+
id=self.id,
|
243
|
+
lifecycle_details=self.lifecycle_details,
|
244
|
+
session_configs=self.session_configs,
|
245
|
+
should_enable_citation=self.should_enable_citation,
|
246
|
+
should_enable_session=self.should_enable_session,
|
247
|
+
should_enable_trace=self.should_enable_trace,
|
248
|
+
state=self.state,
|
249
|
+
system_tags=self.system_tags,
|
250
|
+
time_created=self.time_created,
|
251
|
+
time_updated=self.time_updated)
|
252
|
+
|
253
|
+
|
254
|
+
def get_agent_agent_endpoint(agent_endpoint_id: Optional[str] = None,
|
255
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAgentAgentEndpointResult:
|
256
|
+
"""
|
257
|
+
This data source provides details about a specific Agent Endpoint resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
258
|
+
|
259
|
+
**GetAgentEndpoint**
|
260
|
+
|
261
|
+
Gets information about an endpoint.
|
262
|
+
|
263
|
+
## Example Usage
|
264
|
+
|
265
|
+
```python
|
266
|
+
import pulumi
|
267
|
+
import pulumi_oci as oci
|
268
|
+
|
269
|
+
test_agent_endpoint = oci.GenerativeAi.get_agent_agent_endpoint(agent_endpoint_id=test_agent_endpoint_oci_generative_ai_agent_agent_endpoint["id"])
|
270
|
+
```
|
271
|
+
|
272
|
+
|
273
|
+
:param str agent_endpoint_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
274
|
+
"""
|
275
|
+
__args__ = dict()
|
276
|
+
__args__['agentEndpointId'] = agent_endpoint_id
|
277
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
278
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getAgentAgentEndpoint:getAgentAgentEndpoint', __args__, opts=opts, typ=GetAgentAgentEndpointResult).value
|
279
|
+
|
280
|
+
return AwaitableGetAgentAgentEndpointResult(
|
281
|
+
agent_endpoint_id=pulumi.get(__ret__, 'agent_endpoint_id'),
|
282
|
+
agent_id=pulumi.get(__ret__, 'agent_id'),
|
283
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
284
|
+
content_moderation_configs=pulumi.get(__ret__, 'content_moderation_configs'),
|
285
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
286
|
+
description=pulumi.get(__ret__, 'description'),
|
287
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
288
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
289
|
+
id=pulumi.get(__ret__, 'id'),
|
290
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
291
|
+
session_configs=pulumi.get(__ret__, 'session_configs'),
|
292
|
+
should_enable_citation=pulumi.get(__ret__, 'should_enable_citation'),
|
293
|
+
should_enable_session=pulumi.get(__ret__, 'should_enable_session'),
|
294
|
+
should_enable_trace=pulumi.get(__ret__, 'should_enable_trace'),
|
295
|
+
state=pulumi.get(__ret__, 'state'),
|
296
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
297
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
298
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
299
|
+
def get_agent_agent_endpoint_output(agent_endpoint_id: Optional[pulumi.Input[str]] = None,
|
300
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentAgentEndpointResult]:
|
301
|
+
"""
|
302
|
+
This data source provides details about a specific Agent Endpoint resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
303
|
+
|
304
|
+
**GetAgentEndpoint**
|
305
|
+
|
306
|
+
Gets information about an endpoint.
|
307
|
+
|
308
|
+
## Example Usage
|
309
|
+
|
310
|
+
```python
|
311
|
+
import pulumi
|
312
|
+
import pulumi_oci as oci
|
313
|
+
|
314
|
+
test_agent_endpoint = oci.GenerativeAi.get_agent_agent_endpoint(agent_endpoint_id=test_agent_endpoint_oci_generative_ai_agent_agent_endpoint["id"])
|
315
|
+
```
|
316
|
+
|
317
|
+
|
318
|
+
:param str agent_endpoint_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint.
|
319
|
+
"""
|
320
|
+
__args__ = dict()
|
321
|
+
__args__['agentEndpointId'] = agent_endpoint_id
|
322
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
323
|
+
__ret__ = pulumi.runtime.invoke_output('oci:GenerativeAi/getAgentAgentEndpoint:getAgentAgentEndpoint', __args__, opts=opts, typ=GetAgentAgentEndpointResult)
|
324
|
+
return __ret__.apply(lambda __response__: GetAgentAgentEndpointResult(
|
325
|
+
agent_endpoint_id=pulumi.get(__response__, 'agent_endpoint_id'),
|
326
|
+
agent_id=pulumi.get(__response__, 'agent_id'),
|
327
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
328
|
+
content_moderation_configs=pulumi.get(__response__, 'content_moderation_configs'),
|
329
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
330
|
+
description=pulumi.get(__response__, 'description'),
|
331
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
332
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
333
|
+
id=pulumi.get(__response__, 'id'),
|
334
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
335
|
+
session_configs=pulumi.get(__response__, 'session_configs'),
|
336
|
+
should_enable_citation=pulumi.get(__response__, 'should_enable_citation'),
|
337
|
+
should_enable_session=pulumi.get(__response__, 'should_enable_session'),
|
338
|
+
should_enable_trace=pulumi.get(__response__, 'should_enable_trace'),
|
339
|
+
state=pulumi.get(__response__, 'state'),
|
340
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
341
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
342
|
+
time_updated=pulumi.get(__response__, 'time_updated')))
|