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,272 @@
|
|
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
|
+
'GetAgentKnowledgeBaseResult',
|
20
|
+
'AwaitableGetAgentKnowledgeBaseResult',
|
21
|
+
'get_agent_knowledge_base',
|
22
|
+
'get_agent_knowledge_base_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetAgentKnowledgeBaseResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getAgentKnowledgeBase.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, index_configs=None, knowledge_base_id=None, lifecycle_details=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
31
|
+
if compartment_id and not isinstance(compartment_id, str):
|
32
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
33
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
34
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
35
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
36
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
37
|
+
if description and not isinstance(description, str):
|
38
|
+
raise TypeError("Expected argument 'description' to be a str")
|
39
|
+
pulumi.set(__self__, "description", description)
|
40
|
+
if display_name and not isinstance(display_name, str):
|
41
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
42
|
+
pulumi.set(__self__, "display_name", display_name)
|
43
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
44
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
45
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
46
|
+
if id and not isinstance(id, str):
|
47
|
+
raise TypeError("Expected argument 'id' to be a str")
|
48
|
+
pulumi.set(__self__, "id", id)
|
49
|
+
if index_configs and not isinstance(index_configs, list):
|
50
|
+
raise TypeError("Expected argument 'index_configs' to be a list")
|
51
|
+
pulumi.set(__self__, "index_configs", index_configs)
|
52
|
+
if knowledge_base_id and not isinstance(knowledge_base_id, str):
|
53
|
+
raise TypeError("Expected argument 'knowledge_base_id' to be a str")
|
54
|
+
pulumi.set(__self__, "knowledge_base_id", knowledge_base_id)
|
55
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
56
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
57
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
58
|
+
if state and not isinstance(state, str):
|
59
|
+
raise TypeError("Expected argument 'state' to be a str")
|
60
|
+
pulumi.set(__self__, "state", state)
|
61
|
+
if system_tags and not isinstance(system_tags, dict):
|
62
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
63
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
64
|
+
if time_created and not isinstance(time_created, str):
|
65
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
66
|
+
pulumi.set(__self__, "time_created", time_created)
|
67
|
+
if time_updated and not isinstance(time_updated, str):
|
68
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
69
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
70
|
+
|
71
|
+
@property
|
72
|
+
@pulumi.getter(name="compartmentId")
|
73
|
+
def compartment_id(self) -> str:
|
74
|
+
"""
|
75
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "compartment_id")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="definedTags")
|
81
|
+
def defined_tags(self) -> Mapping[str, str]:
|
82
|
+
"""
|
83
|
+
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"}`
|
84
|
+
"""
|
85
|
+
return pulumi.get(self, "defined_tags")
|
86
|
+
|
87
|
+
@property
|
88
|
+
@pulumi.getter
|
89
|
+
def description(self) -> str:
|
90
|
+
"""
|
91
|
+
A description of the knowledge base.
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "description")
|
94
|
+
|
95
|
+
@property
|
96
|
+
@pulumi.getter(name="displayName")
|
97
|
+
def display_name(self) -> str:
|
98
|
+
"""
|
99
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
100
|
+
"""
|
101
|
+
return pulumi.get(self, "display_name")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter(name="freeformTags")
|
105
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
106
|
+
"""
|
107
|
+
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"}`
|
108
|
+
"""
|
109
|
+
return pulumi.get(self, "freeform_tags")
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter
|
113
|
+
def id(self) -> str:
|
114
|
+
"""
|
115
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "id")
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter(name="indexConfigs")
|
121
|
+
def index_configs(self) -> Sequence['outputs.GetAgentKnowledgeBaseIndexConfigResult']:
|
122
|
+
"""
|
123
|
+
**IndexConfig**
|
124
|
+
"""
|
125
|
+
return pulumi.get(self, "index_configs")
|
126
|
+
|
127
|
+
@property
|
128
|
+
@pulumi.getter(name="knowledgeBaseId")
|
129
|
+
def knowledge_base_id(self) -> str:
|
130
|
+
return pulumi.get(self, "knowledge_base_id")
|
131
|
+
|
132
|
+
@property
|
133
|
+
@pulumi.getter(name="lifecycleDetails")
|
134
|
+
def lifecycle_details(self) -> str:
|
135
|
+
"""
|
136
|
+
A message that describes the current state of the knowledge base in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
137
|
+
"""
|
138
|
+
return pulumi.get(self, "lifecycle_details")
|
139
|
+
|
140
|
+
@property
|
141
|
+
@pulumi.getter
|
142
|
+
def state(self) -> str:
|
143
|
+
"""
|
144
|
+
The current state of the knowledge base.
|
145
|
+
"""
|
146
|
+
return pulumi.get(self, "state")
|
147
|
+
|
148
|
+
@property
|
149
|
+
@pulumi.getter(name="systemTags")
|
150
|
+
def system_tags(self) -> Mapping[str, str]:
|
151
|
+
"""
|
152
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
153
|
+
"""
|
154
|
+
return pulumi.get(self, "system_tags")
|
155
|
+
|
156
|
+
@property
|
157
|
+
@pulumi.getter(name="timeCreated")
|
158
|
+
def time_created(self) -> str:
|
159
|
+
"""
|
160
|
+
The date and time the knowledge base was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
161
|
+
"""
|
162
|
+
return pulumi.get(self, "time_created")
|
163
|
+
|
164
|
+
@property
|
165
|
+
@pulumi.getter(name="timeUpdated")
|
166
|
+
def time_updated(self) -> str:
|
167
|
+
"""
|
168
|
+
The date and time the knowledge base was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
169
|
+
"""
|
170
|
+
return pulumi.get(self, "time_updated")
|
171
|
+
|
172
|
+
|
173
|
+
class AwaitableGetAgentKnowledgeBaseResult(GetAgentKnowledgeBaseResult):
|
174
|
+
# pylint: disable=using-constant-test
|
175
|
+
def __await__(self):
|
176
|
+
if False:
|
177
|
+
yield self
|
178
|
+
return GetAgentKnowledgeBaseResult(
|
179
|
+
compartment_id=self.compartment_id,
|
180
|
+
defined_tags=self.defined_tags,
|
181
|
+
description=self.description,
|
182
|
+
display_name=self.display_name,
|
183
|
+
freeform_tags=self.freeform_tags,
|
184
|
+
id=self.id,
|
185
|
+
index_configs=self.index_configs,
|
186
|
+
knowledge_base_id=self.knowledge_base_id,
|
187
|
+
lifecycle_details=self.lifecycle_details,
|
188
|
+
state=self.state,
|
189
|
+
system_tags=self.system_tags,
|
190
|
+
time_created=self.time_created,
|
191
|
+
time_updated=self.time_updated)
|
192
|
+
|
193
|
+
|
194
|
+
def get_agent_knowledge_base(knowledge_base_id: Optional[str] = None,
|
195
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAgentKnowledgeBaseResult:
|
196
|
+
"""
|
197
|
+
This data source provides details about a specific Knowledge Base resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
198
|
+
|
199
|
+
**GetKnowledgeBase**
|
200
|
+
|
201
|
+
Gets information about a knowledge base.
|
202
|
+
|
203
|
+
## Example Usage
|
204
|
+
|
205
|
+
```python
|
206
|
+
import pulumi
|
207
|
+
import pulumi_oci as oci
|
208
|
+
|
209
|
+
test_knowledge_base = oci.GenerativeAi.get_agent_knowledge_base(knowledge_base_id=test_knowledge_base_oci_generative_ai_agent_knowledge_base["id"])
|
210
|
+
```
|
211
|
+
|
212
|
+
|
213
|
+
:param str knowledge_base_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.
|
214
|
+
"""
|
215
|
+
__args__ = dict()
|
216
|
+
__args__['knowledgeBaseId'] = knowledge_base_id
|
217
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
218
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getAgentKnowledgeBase:getAgentKnowledgeBase', __args__, opts=opts, typ=GetAgentKnowledgeBaseResult).value
|
219
|
+
|
220
|
+
return AwaitableGetAgentKnowledgeBaseResult(
|
221
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
222
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
223
|
+
description=pulumi.get(__ret__, 'description'),
|
224
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
225
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
226
|
+
id=pulumi.get(__ret__, 'id'),
|
227
|
+
index_configs=pulumi.get(__ret__, 'index_configs'),
|
228
|
+
knowledge_base_id=pulumi.get(__ret__, 'knowledge_base_id'),
|
229
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
230
|
+
state=pulumi.get(__ret__, 'state'),
|
231
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
232
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
233
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
234
|
+
def get_agent_knowledge_base_output(knowledge_base_id: Optional[pulumi.Input[str]] = None,
|
235
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentKnowledgeBaseResult]:
|
236
|
+
"""
|
237
|
+
This data source provides details about a specific Knowledge Base resource in Oracle Cloud Infrastructure Generative Ai Agent service.
|
238
|
+
|
239
|
+
**GetKnowledgeBase**
|
240
|
+
|
241
|
+
Gets information about a knowledge base.
|
242
|
+
|
243
|
+
## Example Usage
|
244
|
+
|
245
|
+
```python
|
246
|
+
import pulumi
|
247
|
+
import pulumi_oci as oci
|
248
|
+
|
249
|
+
test_knowledge_base = oci.GenerativeAi.get_agent_knowledge_base(knowledge_base_id=test_knowledge_base_oci_generative_ai_agent_knowledge_base["id"])
|
250
|
+
```
|
251
|
+
|
252
|
+
|
253
|
+
:param str knowledge_base_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the knowledge base.
|
254
|
+
"""
|
255
|
+
__args__ = dict()
|
256
|
+
__args__['knowledgeBaseId'] = knowledge_base_id
|
257
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
258
|
+
__ret__ = pulumi.runtime.invoke_output('oci:GenerativeAi/getAgentKnowledgeBase:getAgentKnowledgeBase', __args__, opts=opts, typ=GetAgentKnowledgeBaseResult)
|
259
|
+
return __ret__.apply(lambda __response__: GetAgentKnowledgeBaseResult(
|
260
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
261
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
262
|
+
description=pulumi.get(__response__, 'description'),
|
263
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
264
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
265
|
+
id=pulumi.get(__response__, 'id'),
|
266
|
+
index_configs=pulumi.get(__response__, 'index_configs'),
|
267
|
+
knowledge_base_id=pulumi.get(__response__, 'knowledge_base_id'),
|
268
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
269
|
+
state=pulumi.get(__response__, 'state'),
|
270
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
271
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
272
|
+
time_updated=pulumi.get(__response__, 'time_updated')))
|
@@ -0,0 +1,195 @@
|
|
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
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetAgentKnowledgeBasesResult',
|
21
|
+
'AwaitableGetAgentKnowledgeBasesResult',
|
22
|
+
'get_agent_knowledge_bases',
|
23
|
+
'get_agent_knowledge_bases_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetAgentKnowledgeBasesResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getAgentKnowledgeBases.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, compartment_id=None, display_name=None, filters=None, id=None, knowledge_base_collections=None, state=None):
|
32
|
+
if compartment_id and not isinstance(compartment_id, str):
|
33
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
34
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
35
|
+
if display_name and not isinstance(display_name, str):
|
36
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
37
|
+
pulumi.set(__self__, "display_name", display_name)
|
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 knowledge_base_collections and not isinstance(knowledge_base_collections, list):
|
45
|
+
raise TypeError("Expected argument 'knowledge_base_collections' to be a list")
|
46
|
+
pulumi.set(__self__, "knowledge_base_collections", knowledge_base_collections)
|
47
|
+
if state and not isinstance(state, str):
|
48
|
+
raise TypeError("Expected argument 'state' to be a str")
|
49
|
+
pulumi.set(__self__, "state", state)
|
50
|
+
|
51
|
+
@property
|
52
|
+
@pulumi.getter(name="compartmentId")
|
53
|
+
def compartment_id(self) -> Optional[str]:
|
54
|
+
"""
|
55
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
56
|
+
"""
|
57
|
+
return pulumi.get(self, "compartment_id")
|
58
|
+
|
59
|
+
@property
|
60
|
+
@pulumi.getter(name="displayName")
|
61
|
+
def display_name(self) -> Optional[str]:
|
62
|
+
"""
|
63
|
+
A user-friendly name. Does not have to be unique, and it's changeable.
|
64
|
+
"""
|
65
|
+
return pulumi.get(self, "display_name")
|
66
|
+
|
67
|
+
@property
|
68
|
+
@pulumi.getter
|
69
|
+
def filters(self) -> Optional[Sequence['outputs.GetAgentKnowledgeBasesFilterResult']]:
|
70
|
+
return pulumi.get(self, "filters")
|
71
|
+
|
72
|
+
@property
|
73
|
+
@pulumi.getter
|
74
|
+
def id(self) -> str:
|
75
|
+
"""
|
76
|
+
The provider-assigned unique ID for this managed resource.
|
77
|
+
"""
|
78
|
+
return pulumi.get(self, "id")
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter(name="knowledgeBaseCollections")
|
82
|
+
def knowledge_base_collections(self) -> Sequence['outputs.GetAgentKnowledgeBasesKnowledgeBaseCollectionResult']:
|
83
|
+
"""
|
84
|
+
The list of knowledge_base_collection.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "knowledge_base_collections")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def state(self) -> Optional[str]:
|
91
|
+
"""
|
92
|
+
The current state of the knowledge base.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "state")
|
95
|
+
|
96
|
+
|
97
|
+
class AwaitableGetAgentKnowledgeBasesResult(GetAgentKnowledgeBasesResult):
|
98
|
+
# pylint: disable=using-constant-test
|
99
|
+
def __await__(self):
|
100
|
+
if False:
|
101
|
+
yield self
|
102
|
+
return GetAgentKnowledgeBasesResult(
|
103
|
+
compartment_id=self.compartment_id,
|
104
|
+
display_name=self.display_name,
|
105
|
+
filters=self.filters,
|
106
|
+
id=self.id,
|
107
|
+
knowledge_base_collections=self.knowledge_base_collections,
|
108
|
+
state=self.state)
|
109
|
+
|
110
|
+
|
111
|
+
def get_agent_knowledge_bases(compartment_id: Optional[str] = None,
|
112
|
+
display_name: Optional[str] = None,
|
113
|
+
filters: Optional[Sequence[Union['GetAgentKnowledgeBasesFilterArgs', 'GetAgentKnowledgeBasesFilterArgsDict']]] = None,
|
114
|
+
state: Optional[str] = None,
|
115
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAgentKnowledgeBasesResult:
|
116
|
+
"""
|
117
|
+
This data source provides the list of Knowledge Bases in Oracle Cloud Infrastructure Generative Ai Agent service.
|
118
|
+
|
119
|
+
**ListKnowledgeBases**
|
120
|
+
|
121
|
+
Gets a list of knowledge bases.
|
122
|
+
|
123
|
+
## Example Usage
|
124
|
+
|
125
|
+
```python
|
126
|
+
import pulumi
|
127
|
+
import pulumi_oci as oci
|
128
|
+
|
129
|
+
test_knowledge_bases = oci.GenerativeAi.get_agent_knowledge_bases(compartment_id=compartment_id,
|
130
|
+
display_name=knowledge_base_display_name,
|
131
|
+
state=knowledge_base_state)
|
132
|
+
```
|
133
|
+
|
134
|
+
|
135
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
136
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
137
|
+
:param str state: A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
|
138
|
+
"""
|
139
|
+
__args__ = dict()
|
140
|
+
__args__['compartmentId'] = compartment_id
|
141
|
+
__args__['displayName'] = display_name
|
142
|
+
__args__['filters'] = filters
|
143
|
+
__args__['state'] = state
|
144
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
145
|
+
__ret__ = pulumi.runtime.invoke('oci:GenerativeAi/getAgentKnowledgeBases:getAgentKnowledgeBases', __args__, opts=opts, typ=GetAgentKnowledgeBasesResult).value
|
146
|
+
|
147
|
+
return AwaitableGetAgentKnowledgeBasesResult(
|
148
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
149
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
150
|
+
filters=pulumi.get(__ret__, 'filters'),
|
151
|
+
id=pulumi.get(__ret__, 'id'),
|
152
|
+
knowledge_base_collections=pulumi.get(__ret__, 'knowledge_base_collections'),
|
153
|
+
state=pulumi.get(__ret__, 'state'))
|
154
|
+
def get_agent_knowledge_bases_output(compartment_id: Optional[pulumi.Input[Optional[str]]] = None,
|
155
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
156
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetAgentKnowledgeBasesFilterArgs', 'GetAgentKnowledgeBasesFilterArgsDict']]]]] = None,
|
157
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
158
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAgentKnowledgeBasesResult]:
|
159
|
+
"""
|
160
|
+
This data source provides the list of Knowledge Bases in Oracle Cloud Infrastructure Generative Ai Agent service.
|
161
|
+
|
162
|
+
**ListKnowledgeBases**
|
163
|
+
|
164
|
+
Gets a list of knowledge bases.
|
165
|
+
|
166
|
+
## Example Usage
|
167
|
+
|
168
|
+
```python
|
169
|
+
import pulumi
|
170
|
+
import pulumi_oci as oci
|
171
|
+
|
172
|
+
test_knowledge_bases = oci.GenerativeAi.get_agent_knowledge_bases(compartment_id=compartment_id,
|
173
|
+
display_name=knowledge_base_display_name,
|
174
|
+
state=knowledge_base_state)
|
175
|
+
```
|
176
|
+
|
177
|
+
|
178
|
+
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.
|
179
|
+
:param str display_name: A filter to return only resources that match the given display name exactly.
|
180
|
+
:param str state: A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
|
181
|
+
"""
|
182
|
+
__args__ = dict()
|
183
|
+
__args__['compartmentId'] = compartment_id
|
184
|
+
__args__['displayName'] = display_name
|
185
|
+
__args__['filters'] = filters
|
186
|
+
__args__['state'] = state
|
187
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
188
|
+
__ret__ = pulumi.runtime.invoke_output('oci:GenerativeAi/getAgentKnowledgeBases:getAgentKnowledgeBases', __args__, opts=opts, typ=GetAgentKnowledgeBasesResult)
|
189
|
+
return __ret__.apply(lambda __response__: GetAgentKnowledgeBasesResult(
|
190
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
191
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
192
|
+
filters=pulumi.get(__response__, 'filters'),
|
193
|
+
id=pulumi.get(__response__, 'id'),
|
194
|
+
knowledge_base_collections=pulumi.get(__response__, 'knowledge_base_collections'),
|
195
|
+
state=pulumi.get(__response__, 'state')))
|