pulumi-oci 3.1.0a1751948424__py3-none-any.whl → 3.2.0a1752121229__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 (37) hide show
  1. pulumi_oci/__init__.py +40 -0
  2. pulumi_oci/bigdataservice/__init__.py +10 -0
  3. pulumi_oci/bigdataservice/_inputs.py +378 -0
  4. pulumi_oci/bigdataservice/bds_instance_node_backup.py +481 -0
  5. pulumi_oci/bigdataservice/bds_instance_node_backup_configuration.py +611 -0
  6. pulumi_oci/bigdataservice/bds_instance_node_replace_configuration.py +538 -0
  7. pulumi_oci/bigdataservice/bds_instance_replace_node_action.py +406 -0
  8. pulumi_oci/bigdataservice/get_bds_instance_node_backup.py +245 -0
  9. pulumi_oci/bigdataservice/get_bds_instance_node_backup_configuration.py +263 -0
  10. pulumi_oci/bigdataservice/get_bds_instance_node_backup_configurations.py +192 -0
  11. pulumi_oci/bigdataservice/get_bds_instance_node_backups.py +211 -0
  12. pulumi_oci/bigdataservice/get_bds_instance_node_replace_configuration.py +246 -0
  13. pulumi_oci/bigdataservice/get_bds_instance_node_replace_configurations.py +192 -0
  14. pulumi_oci/bigdataservice/outputs.py +798 -0
  15. pulumi_oci/generativeai/__init__.py +3 -0
  16. pulumi_oci/generativeai/_inputs.py +1479 -132
  17. pulumi_oci/generativeai/agent_agent.py +66 -11
  18. pulumi_oci/generativeai/agent_agent_endpoint.py +296 -25
  19. pulumi_oci/generativeai/agent_data_source.py +70 -21
  20. pulumi_oci/generativeai/agent_tool.py +619 -0
  21. pulumi_oci/generativeai/get_agent_agent.py +17 -2
  22. pulumi_oci/generativeai/get_agent_agent_endpoint.py +72 -6
  23. pulumi_oci/generativeai/get_agent_agent_endpoints.py +0 -4
  24. pulumi_oci/generativeai/get_agent_data_source.py +15 -1
  25. pulumi_oci/generativeai/get_agent_tool.py +283 -0
  26. pulumi_oci/generativeai/get_agent_tools.py +214 -0
  27. pulumi_oci/generativeai/outputs.py +4001 -1259
  28. pulumi_oci/kms/vault_verification.py +62 -2
  29. pulumi_oci/ospgateway/_inputs.py +20 -0
  30. pulumi_oci/ospgateway/get_subscription.py +15 -1
  31. pulumi_oci/ospgateway/outputs.py +47 -0
  32. pulumi_oci/ospgateway/subscription.py +28 -0
  33. pulumi_oci/pulumi-plugin.json +1 -1
  34. {pulumi_oci-3.1.0a1751948424.dist-info → pulumi_oci-3.2.0a1752121229.dist-info}/METADATA +1 -1
  35. {pulumi_oci-3.1.0a1751948424.dist-info → pulumi_oci-3.2.0a1752121229.dist-info}/RECORD +37 -24
  36. {pulumi_oci-3.1.0a1751948424.dist-info → pulumi_oci-3.2.0a1752121229.dist-info}/WHEEL +0 -0
  37. {pulumi_oci-3.1.0a1751948424.dist-info → pulumi_oci-3.2.0a1752121229.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,406 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+
18
+ __all__ = ['BdsInstanceReplaceNodeActionArgs', 'BdsInstanceReplaceNodeAction']
19
+
20
+ @pulumi.input_type
21
+ class BdsInstanceReplaceNodeActionArgs:
22
+ def __init__(__self__, *,
23
+ bds_instance_id: pulumi.Input[builtins.str],
24
+ cluster_admin_password: pulumi.Input[builtins.str],
25
+ node_backup_id: pulumi.Input[builtins.str],
26
+ node_host_name: pulumi.Input[builtins.str],
27
+ shape: Optional[pulumi.Input[builtins.str]] = None):
28
+ """
29
+ The set of arguments for constructing a BdsInstanceReplaceNodeAction resource.
30
+ :param pulumi.Input[builtins.str] bds_instance_id: The OCID of the cluster.
31
+ :param pulumi.Input[builtins.str] cluster_admin_password: Base-64 encoded password for the cluster admin user.
32
+ :param pulumi.Input[builtins.str] node_backup_id: The id of the nodeBackup to use for replacing the node.
33
+ :param pulumi.Input[builtins.str] node_host_name: Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
34
+ :param pulumi.Input[builtins.str] shape: Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
35
+
36
+
37
+ ** IMPORTANT **
38
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
39
+ """
40
+ pulumi.set(__self__, "bds_instance_id", bds_instance_id)
41
+ pulumi.set(__self__, "cluster_admin_password", cluster_admin_password)
42
+ pulumi.set(__self__, "node_backup_id", node_backup_id)
43
+ pulumi.set(__self__, "node_host_name", node_host_name)
44
+ if shape is not None:
45
+ pulumi.set(__self__, "shape", shape)
46
+
47
+ @property
48
+ @pulumi.getter(name="bdsInstanceId")
49
+ def bds_instance_id(self) -> pulumi.Input[builtins.str]:
50
+ """
51
+ The OCID of the cluster.
52
+ """
53
+ return pulumi.get(self, "bds_instance_id")
54
+
55
+ @bds_instance_id.setter
56
+ def bds_instance_id(self, value: pulumi.Input[builtins.str]):
57
+ pulumi.set(self, "bds_instance_id", value)
58
+
59
+ @property
60
+ @pulumi.getter(name="clusterAdminPassword")
61
+ def cluster_admin_password(self) -> pulumi.Input[builtins.str]:
62
+ """
63
+ Base-64 encoded password for the cluster admin user.
64
+ """
65
+ return pulumi.get(self, "cluster_admin_password")
66
+
67
+ @cluster_admin_password.setter
68
+ def cluster_admin_password(self, value: pulumi.Input[builtins.str]):
69
+ pulumi.set(self, "cluster_admin_password", value)
70
+
71
+ @property
72
+ @pulumi.getter(name="nodeBackupId")
73
+ def node_backup_id(self) -> pulumi.Input[builtins.str]:
74
+ """
75
+ The id of the nodeBackup to use for replacing the node.
76
+ """
77
+ return pulumi.get(self, "node_backup_id")
78
+
79
+ @node_backup_id.setter
80
+ def node_backup_id(self, value: pulumi.Input[builtins.str]):
81
+ pulumi.set(self, "node_backup_id", value)
82
+
83
+ @property
84
+ @pulumi.getter(name="nodeHostName")
85
+ def node_host_name(self) -> pulumi.Input[builtins.str]:
86
+ """
87
+ Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
88
+ """
89
+ return pulumi.get(self, "node_host_name")
90
+
91
+ @node_host_name.setter
92
+ def node_host_name(self, value: pulumi.Input[builtins.str]):
93
+ pulumi.set(self, "node_host_name", value)
94
+
95
+ @property
96
+ @pulumi.getter
97
+ def shape(self) -> Optional[pulumi.Input[builtins.str]]:
98
+ """
99
+ Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
100
+
101
+
102
+ ** IMPORTANT **
103
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
104
+ """
105
+ return pulumi.get(self, "shape")
106
+
107
+ @shape.setter
108
+ def shape(self, value: Optional[pulumi.Input[builtins.str]]):
109
+ pulumi.set(self, "shape", value)
110
+
111
+
112
+ @pulumi.input_type
113
+ class _BdsInstanceReplaceNodeActionState:
114
+ def __init__(__self__, *,
115
+ bds_instance_id: Optional[pulumi.Input[builtins.str]] = None,
116
+ cluster_admin_password: Optional[pulumi.Input[builtins.str]] = None,
117
+ node_backup_id: Optional[pulumi.Input[builtins.str]] = None,
118
+ node_host_name: Optional[pulumi.Input[builtins.str]] = None,
119
+ shape: Optional[pulumi.Input[builtins.str]] = None):
120
+ """
121
+ Input properties used for looking up and filtering BdsInstanceReplaceNodeAction resources.
122
+ :param pulumi.Input[builtins.str] bds_instance_id: The OCID of the cluster.
123
+ :param pulumi.Input[builtins.str] cluster_admin_password: Base-64 encoded password for the cluster admin user.
124
+ :param pulumi.Input[builtins.str] node_backup_id: The id of the nodeBackup to use for replacing the node.
125
+ :param pulumi.Input[builtins.str] node_host_name: Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
126
+ :param pulumi.Input[builtins.str] shape: Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
127
+
128
+
129
+ ** IMPORTANT **
130
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
131
+ """
132
+ if bds_instance_id is not None:
133
+ pulumi.set(__self__, "bds_instance_id", bds_instance_id)
134
+ if cluster_admin_password is not None:
135
+ pulumi.set(__self__, "cluster_admin_password", cluster_admin_password)
136
+ if node_backup_id is not None:
137
+ pulumi.set(__self__, "node_backup_id", node_backup_id)
138
+ if node_host_name is not None:
139
+ pulumi.set(__self__, "node_host_name", node_host_name)
140
+ if shape is not None:
141
+ pulumi.set(__self__, "shape", shape)
142
+
143
+ @property
144
+ @pulumi.getter(name="bdsInstanceId")
145
+ def bds_instance_id(self) -> Optional[pulumi.Input[builtins.str]]:
146
+ """
147
+ The OCID of the cluster.
148
+ """
149
+ return pulumi.get(self, "bds_instance_id")
150
+
151
+ @bds_instance_id.setter
152
+ def bds_instance_id(self, value: Optional[pulumi.Input[builtins.str]]):
153
+ pulumi.set(self, "bds_instance_id", value)
154
+
155
+ @property
156
+ @pulumi.getter(name="clusterAdminPassword")
157
+ def cluster_admin_password(self) -> Optional[pulumi.Input[builtins.str]]:
158
+ """
159
+ Base-64 encoded password for the cluster admin user.
160
+ """
161
+ return pulumi.get(self, "cluster_admin_password")
162
+
163
+ @cluster_admin_password.setter
164
+ def cluster_admin_password(self, value: Optional[pulumi.Input[builtins.str]]):
165
+ pulumi.set(self, "cluster_admin_password", value)
166
+
167
+ @property
168
+ @pulumi.getter(name="nodeBackupId")
169
+ def node_backup_id(self) -> Optional[pulumi.Input[builtins.str]]:
170
+ """
171
+ The id of the nodeBackup to use for replacing the node.
172
+ """
173
+ return pulumi.get(self, "node_backup_id")
174
+
175
+ @node_backup_id.setter
176
+ def node_backup_id(self, value: Optional[pulumi.Input[builtins.str]]):
177
+ pulumi.set(self, "node_backup_id", value)
178
+
179
+ @property
180
+ @pulumi.getter(name="nodeHostName")
181
+ def node_host_name(self) -> Optional[pulumi.Input[builtins.str]]:
182
+ """
183
+ Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
184
+ """
185
+ return pulumi.get(self, "node_host_name")
186
+
187
+ @node_host_name.setter
188
+ def node_host_name(self, value: Optional[pulumi.Input[builtins.str]]):
189
+ pulumi.set(self, "node_host_name", value)
190
+
191
+ @property
192
+ @pulumi.getter
193
+ def shape(self) -> Optional[pulumi.Input[builtins.str]]:
194
+ """
195
+ Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
196
+
197
+
198
+ ** IMPORTANT **
199
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
200
+ """
201
+ return pulumi.get(self, "shape")
202
+
203
+ @shape.setter
204
+ def shape(self, value: Optional[pulumi.Input[builtins.str]]):
205
+ pulumi.set(self, "shape", value)
206
+
207
+
208
+ @pulumi.type_token("oci:BigDataService/bdsInstanceReplaceNodeAction:BdsInstanceReplaceNodeAction")
209
+ class BdsInstanceReplaceNodeAction(pulumi.CustomResource):
210
+ @overload
211
+ def __init__(__self__,
212
+ resource_name: str,
213
+ opts: Optional[pulumi.ResourceOptions] = None,
214
+ bds_instance_id: Optional[pulumi.Input[builtins.str]] = None,
215
+ cluster_admin_password: Optional[pulumi.Input[builtins.str]] = None,
216
+ node_backup_id: Optional[pulumi.Input[builtins.str]] = None,
217
+ node_host_name: Optional[pulumi.Input[builtins.str]] = None,
218
+ shape: Optional[pulumi.Input[builtins.str]] = None,
219
+ __props__=None):
220
+ """
221
+ This resource replaces the node with the given hostname, in Oracle Cloud Infrastructure Big Data Service cluster.
222
+
223
+ Replace the node with the given host name in the cluster.
224
+
225
+ ## Example Usage
226
+
227
+ ```python
228
+ import pulumi
229
+ import pulumi_oci as oci
230
+
231
+ test_bds_instance_replace_node_action = oci.big_data_service.BdsInstanceReplaceNodeAction("test_bds_instance_replace_node_action",
232
+ bds_instance_id=test_bds_instance["id"],
233
+ node_host_name=bds_instance_replace_node_action["nodeHostName"],
234
+ node_backup_id=bds_instance_replace_node_action["nodeBackupId"],
235
+ cluster_admin_password=test_bds_instance["clusterAdminPassword"],
236
+ shape=shape)
237
+ ```
238
+
239
+ :param str resource_name: The name of the resource.
240
+ :param pulumi.ResourceOptions opts: Options for the resource.
241
+ :param pulumi.Input[builtins.str] bds_instance_id: The OCID of the cluster.
242
+ :param pulumi.Input[builtins.str] cluster_admin_password: Base-64 encoded password for the cluster admin user.
243
+ :param pulumi.Input[builtins.str] node_backup_id: The id of the nodeBackup to use for replacing the node.
244
+ :param pulumi.Input[builtins.str] node_host_name: Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
245
+ :param pulumi.Input[builtins.str] shape: Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
246
+
247
+
248
+ ** IMPORTANT **
249
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
250
+ """
251
+ ...
252
+ @overload
253
+ def __init__(__self__,
254
+ resource_name: str,
255
+ args: BdsInstanceReplaceNodeActionArgs,
256
+ opts: Optional[pulumi.ResourceOptions] = None):
257
+ """
258
+ This resource replaces the node with the given hostname, in Oracle Cloud Infrastructure Big Data Service cluster.
259
+
260
+ Replace the node with the given host name in the cluster.
261
+
262
+ ## Example Usage
263
+
264
+ ```python
265
+ import pulumi
266
+ import pulumi_oci as oci
267
+
268
+ test_bds_instance_replace_node_action = oci.big_data_service.BdsInstanceReplaceNodeAction("test_bds_instance_replace_node_action",
269
+ bds_instance_id=test_bds_instance["id"],
270
+ node_host_name=bds_instance_replace_node_action["nodeHostName"],
271
+ node_backup_id=bds_instance_replace_node_action["nodeBackupId"],
272
+ cluster_admin_password=test_bds_instance["clusterAdminPassword"],
273
+ shape=shape)
274
+ ```
275
+
276
+ :param str resource_name: The name of the resource.
277
+ :param BdsInstanceReplaceNodeActionArgs args: The arguments to use to populate this resource's properties.
278
+ :param pulumi.ResourceOptions opts: Options for the resource.
279
+ """
280
+ ...
281
+ def __init__(__self__, resource_name: str, *args, **kwargs):
282
+ resource_args, opts = _utilities.get_resource_args_opts(BdsInstanceReplaceNodeActionArgs, pulumi.ResourceOptions, *args, **kwargs)
283
+ if resource_args is not None:
284
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
285
+ else:
286
+ __self__._internal_init(resource_name, *args, **kwargs)
287
+
288
+ def _internal_init(__self__,
289
+ resource_name: str,
290
+ opts: Optional[pulumi.ResourceOptions] = None,
291
+ bds_instance_id: Optional[pulumi.Input[builtins.str]] = None,
292
+ cluster_admin_password: Optional[pulumi.Input[builtins.str]] = None,
293
+ node_backup_id: Optional[pulumi.Input[builtins.str]] = None,
294
+ node_host_name: Optional[pulumi.Input[builtins.str]] = None,
295
+ shape: Optional[pulumi.Input[builtins.str]] = None,
296
+ __props__=None):
297
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
298
+ if not isinstance(opts, pulumi.ResourceOptions):
299
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
300
+ if opts.id is None:
301
+ if __props__ is not None:
302
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
303
+ __props__ = BdsInstanceReplaceNodeActionArgs.__new__(BdsInstanceReplaceNodeActionArgs)
304
+
305
+ if bds_instance_id is None and not opts.urn:
306
+ raise TypeError("Missing required property 'bds_instance_id'")
307
+ __props__.__dict__["bds_instance_id"] = bds_instance_id
308
+ if cluster_admin_password is None and not opts.urn:
309
+ raise TypeError("Missing required property 'cluster_admin_password'")
310
+ __props__.__dict__["cluster_admin_password"] = None if cluster_admin_password is None else pulumi.Output.secret(cluster_admin_password)
311
+ if node_backup_id is None and not opts.urn:
312
+ raise TypeError("Missing required property 'node_backup_id'")
313
+ __props__.__dict__["node_backup_id"] = node_backup_id
314
+ if node_host_name is None and not opts.urn:
315
+ raise TypeError("Missing required property 'node_host_name'")
316
+ __props__.__dict__["node_host_name"] = node_host_name
317
+ __props__.__dict__["shape"] = shape
318
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["clusterAdminPassword"])
319
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
320
+ super(BdsInstanceReplaceNodeAction, __self__).__init__(
321
+ 'oci:BigDataService/bdsInstanceReplaceNodeAction:BdsInstanceReplaceNodeAction',
322
+ resource_name,
323
+ __props__,
324
+ opts)
325
+
326
+ @staticmethod
327
+ def get(resource_name: str,
328
+ id: pulumi.Input[str],
329
+ opts: Optional[pulumi.ResourceOptions] = None,
330
+ bds_instance_id: Optional[pulumi.Input[builtins.str]] = None,
331
+ cluster_admin_password: Optional[pulumi.Input[builtins.str]] = None,
332
+ node_backup_id: Optional[pulumi.Input[builtins.str]] = None,
333
+ node_host_name: Optional[pulumi.Input[builtins.str]] = None,
334
+ shape: Optional[pulumi.Input[builtins.str]] = None) -> 'BdsInstanceReplaceNodeAction':
335
+ """
336
+ Get an existing BdsInstanceReplaceNodeAction resource's state with the given name, id, and optional extra
337
+ properties used to qualify the lookup.
338
+
339
+ :param str resource_name: The unique name of the resulting resource.
340
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
341
+ :param pulumi.ResourceOptions opts: Options for the resource.
342
+ :param pulumi.Input[builtins.str] bds_instance_id: The OCID of the cluster.
343
+ :param pulumi.Input[builtins.str] cluster_admin_password: Base-64 encoded password for the cluster admin user.
344
+ :param pulumi.Input[builtins.str] node_backup_id: The id of the nodeBackup to use for replacing the node.
345
+ :param pulumi.Input[builtins.str] node_host_name: Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
346
+ :param pulumi.Input[builtins.str] shape: Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
347
+
348
+
349
+ ** IMPORTANT **
350
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
351
+ """
352
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
353
+
354
+ __props__ = _BdsInstanceReplaceNodeActionState.__new__(_BdsInstanceReplaceNodeActionState)
355
+
356
+ __props__.__dict__["bds_instance_id"] = bds_instance_id
357
+ __props__.__dict__["cluster_admin_password"] = cluster_admin_password
358
+ __props__.__dict__["node_backup_id"] = node_backup_id
359
+ __props__.__dict__["node_host_name"] = node_host_name
360
+ __props__.__dict__["shape"] = shape
361
+ return BdsInstanceReplaceNodeAction(resource_name, opts=opts, __props__=__props__)
362
+
363
+ @property
364
+ @pulumi.getter(name="bdsInstanceId")
365
+ def bds_instance_id(self) -> pulumi.Output[builtins.str]:
366
+ """
367
+ The OCID of the cluster.
368
+ """
369
+ return pulumi.get(self, "bds_instance_id")
370
+
371
+ @property
372
+ @pulumi.getter(name="clusterAdminPassword")
373
+ def cluster_admin_password(self) -> pulumi.Output[builtins.str]:
374
+ """
375
+ Base-64 encoded password for the cluster admin user.
376
+ """
377
+ return pulumi.get(self, "cluster_admin_password")
378
+
379
+ @property
380
+ @pulumi.getter(name="nodeBackupId")
381
+ def node_backup_id(self) -> pulumi.Output[builtins.str]:
382
+ """
383
+ The id of the nodeBackup to use for replacing the node.
384
+ """
385
+ return pulumi.get(self, "node_backup_id")
386
+
387
+ @property
388
+ @pulumi.getter(name="nodeHostName")
389
+ def node_host_name(self) -> pulumi.Output[builtins.str]:
390
+ """
391
+ Host name of the node to replace. MASTER, UTILITY and EDGE node are only supported types
392
+ """
393
+ return pulumi.get(self, "node_host_name")
394
+
395
+ @property
396
+ @pulumi.getter
397
+ def shape(self) -> pulumi.Output[Optional[builtins.str]]:
398
+ """
399
+ Shape of the new vm when replacing the node. If not provided, BDS will attempt to replace the node with the shape of current node.
400
+
401
+
402
+ ** IMPORTANT **
403
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
404
+ """
405
+ return pulumi.get(self, "shape")
406
+
@@ -0,0 +1,245 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+
18
+ __all__ = [
19
+ 'GetBdsInstanceNodeBackupResult',
20
+ 'AwaitableGetBdsInstanceNodeBackupResult',
21
+ 'get_bds_instance_node_backup',
22
+ 'get_bds_instance_node_backup_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetBdsInstanceNodeBackupResult:
27
+ """
28
+ A collection of values returned by getBdsInstanceNodeBackup.
29
+ """
30
+ def __init__(__self__, backup_trigger_type=None, backup_type=None, bds_instance_id=None, display_name=None, id=None, node_backup_config_id=None, node_backup_id=None, node_host_name=None, node_instance_id=None, state=None, time_created=None):
31
+ if backup_trigger_type and not isinstance(backup_trigger_type, str):
32
+ raise TypeError("Expected argument 'backup_trigger_type' to be a str")
33
+ pulumi.set(__self__, "backup_trigger_type", backup_trigger_type)
34
+ if backup_type and not isinstance(backup_type, str):
35
+ raise TypeError("Expected argument 'backup_type' to be a str")
36
+ pulumi.set(__self__, "backup_type", backup_type)
37
+ if bds_instance_id and not isinstance(bds_instance_id, str):
38
+ raise TypeError("Expected argument 'bds_instance_id' to be a str")
39
+ pulumi.set(__self__, "bds_instance_id", bds_instance_id)
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 id and not isinstance(id, str):
44
+ raise TypeError("Expected argument 'id' to be a str")
45
+ pulumi.set(__self__, "id", id)
46
+ if node_backup_config_id and not isinstance(node_backup_config_id, str):
47
+ raise TypeError("Expected argument 'node_backup_config_id' to be a str")
48
+ pulumi.set(__self__, "node_backup_config_id", node_backup_config_id)
49
+ if node_backup_id and not isinstance(node_backup_id, str):
50
+ raise TypeError("Expected argument 'node_backup_id' to be a str")
51
+ pulumi.set(__self__, "node_backup_id", node_backup_id)
52
+ if node_host_name and not isinstance(node_host_name, str):
53
+ raise TypeError("Expected argument 'node_host_name' to be a str")
54
+ pulumi.set(__self__, "node_host_name", node_host_name)
55
+ if node_instance_id and not isinstance(node_instance_id, str):
56
+ raise TypeError("Expected argument 'node_instance_id' to be a str")
57
+ pulumi.set(__self__, "node_instance_id", node_instance_id)
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 time_created and not isinstance(time_created, str):
62
+ raise TypeError("Expected argument 'time_created' to be a str")
63
+ pulumi.set(__self__, "time_created", time_created)
64
+
65
+ @property
66
+ @pulumi.getter(name="backupTriggerType")
67
+ def backup_trigger_type(self) -> builtins.str:
68
+ """
69
+ type based on how backup action was initiated.
70
+ """
71
+ return pulumi.get(self, "backup_trigger_type")
72
+
73
+ @property
74
+ @pulumi.getter(name="backupType")
75
+ def backup_type(self) -> builtins.str:
76
+ """
77
+ Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
78
+ """
79
+ return pulumi.get(self, "backup_type")
80
+
81
+ @property
82
+ @pulumi.getter(name="bdsInstanceId")
83
+ def bds_instance_id(self) -> builtins.str:
84
+ return pulumi.get(self, "bds_instance_id")
85
+
86
+ @property
87
+ @pulumi.getter(name="displayName")
88
+ def display_name(self) -> builtins.str:
89
+ """
90
+ BDS generated name for the backup. Format is nodeHostName_timeCreated.
91
+ """
92
+ return pulumi.get(self, "display_name")
93
+
94
+ @property
95
+ @pulumi.getter
96
+ def id(self) -> builtins.str:
97
+ """
98
+ The provider-assigned unique ID for this managed resource.
99
+ """
100
+ return pulumi.get(self, "id")
101
+
102
+ @property
103
+ @pulumi.getter(name="nodeBackupConfigId")
104
+ def node_backup_config_id(self) -> builtins.str:
105
+ """
106
+ The ID of the nodeBackupConfiguration if the NodeBackup is automatically created by applying the configuration.
107
+ """
108
+ return pulumi.get(self, "node_backup_config_id")
109
+
110
+ @property
111
+ @pulumi.getter(name="nodeBackupId")
112
+ def node_backup_id(self) -> builtins.str:
113
+ return pulumi.get(self, "node_backup_id")
114
+
115
+ @property
116
+ @pulumi.getter(name="nodeHostName")
117
+ def node_host_name(self) -> builtins.str:
118
+ """
119
+ Host name of the node to which this backup belongs.
120
+ """
121
+ return pulumi.get(self, "node_host_name")
122
+
123
+ @property
124
+ @pulumi.getter(name="nodeInstanceId")
125
+ def node_instance_id(self) -> builtins.str:
126
+ """
127
+ The instance OCID of the node, which is the resource from which the node backup was acquired.
128
+ """
129
+ return pulumi.get(self, "node_instance_id")
130
+
131
+ @property
132
+ @pulumi.getter
133
+ def state(self) -> builtins.str:
134
+ """
135
+ The state of the NodeBackup.
136
+ """
137
+ return pulumi.get(self, "state")
138
+
139
+ @property
140
+ @pulumi.getter(name="timeCreated")
141
+ def time_created(self) -> builtins.str:
142
+ """
143
+ The time the cluster was created, shown as an RFC 3339 formatted datetime string.
144
+ """
145
+ return pulumi.get(self, "time_created")
146
+
147
+
148
+ class AwaitableGetBdsInstanceNodeBackupResult(GetBdsInstanceNodeBackupResult):
149
+ # pylint: disable=using-constant-test
150
+ def __await__(self):
151
+ if False:
152
+ yield self
153
+ return GetBdsInstanceNodeBackupResult(
154
+ backup_trigger_type=self.backup_trigger_type,
155
+ backup_type=self.backup_type,
156
+ bds_instance_id=self.bds_instance_id,
157
+ display_name=self.display_name,
158
+ id=self.id,
159
+ node_backup_config_id=self.node_backup_config_id,
160
+ node_backup_id=self.node_backup_id,
161
+ node_host_name=self.node_host_name,
162
+ node_instance_id=self.node_instance_id,
163
+ state=self.state,
164
+ time_created=self.time_created)
165
+
166
+
167
+ def get_bds_instance_node_backup(bds_instance_id: Optional[builtins.str] = None,
168
+ node_backup_id: Optional[builtins.str] = None,
169
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBdsInstanceNodeBackupResult:
170
+ """
171
+ This data source provides details about a specific Bds Instance Node Backup resource in Oracle Cloud Infrastructure Big Data Service service.
172
+
173
+ Returns details of NodeBackup identified by the given ID.
174
+
175
+ ## Example Usage
176
+
177
+ ```python
178
+ import pulumi
179
+ import pulumi_oci as oci
180
+
181
+ test_bds_instance_node_backup = oci.BigDataService.get_bds_instance_node_backup(bds_instance_id=test_bds_instance["id"],
182
+ node_backup_id=test_backup["id"])
183
+ ```
184
+
185
+
186
+ :param builtins.str bds_instance_id: The OCID of the cluster.
187
+ :param builtins.str node_backup_id: Unique assigned identifier of the nodeBackupId.
188
+ """
189
+ __args__ = dict()
190
+ __args__['bdsInstanceId'] = bds_instance_id
191
+ __args__['nodeBackupId'] = node_backup_id
192
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
193
+ __ret__ = pulumi.runtime.invoke('oci:BigDataService/getBdsInstanceNodeBackup:getBdsInstanceNodeBackup', __args__, opts=opts, typ=GetBdsInstanceNodeBackupResult).value
194
+
195
+ return AwaitableGetBdsInstanceNodeBackupResult(
196
+ backup_trigger_type=pulumi.get(__ret__, 'backup_trigger_type'),
197
+ backup_type=pulumi.get(__ret__, 'backup_type'),
198
+ bds_instance_id=pulumi.get(__ret__, 'bds_instance_id'),
199
+ display_name=pulumi.get(__ret__, 'display_name'),
200
+ id=pulumi.get(__ret__, 'id'),
201
+ node_backup_config_id=pulumi.get(__ret__, 'node_backup_config_id'),
202
+ node_backup_id=pulumi.get(__ret__, 'node_backup_id'),
203
+ node_host_name=pulumi.get(__ret__, 'node_host_name'),
204
+ node_instance_id=pulumi.get(__ret__, 'node_instance_id'),
205
+ state=pulumi.get(__ret__, 'state'),
206
+ time_created=pulumi.get(__ret__, 'time_created'))
207
+ def get_bds_instance_node_backup_output(bds_instance_id: Optional[pulumi.Input[builtins.str]] = None,
208
+ node_backup_id: Optional[pulumi.Input[builtins.str]] = None,
209
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetBdsInstanceNodeBackupResult]:
210
+ """
211
+ This data source provides details about a specific Bds Instance Node Backup resource in Oracle Cloud Infrastructure Big Data Service service.
212
+
213
+ Returns details of NodeBackup identified by the given ID.
214
+
215
+ ## Example Usage
216
+
217
+ ```python
218
+ import pulumi
219
+ import pulumi_oci as oci
220
+
221
+ test_bds_instance_node_backup = oci.BigDataService.get_bds_instance_node_backup(bds_instance_id=test_bds_instance["id"],
222
+ node_backup_id=test_backup["id"])
223
+ ```
224
+
225
+
226
+ :param builtins.str bds_instance_id: The OCID of the cluster.
227
+ :param builtins.str node_backup_id: Unique assigned identifier of the nodeBackupId.
228
+ """
229
+ __args__ = dict()
230
+ __args__['bdsInstanceId'] = bds_instance_id
231
+ __args__['nodeBackupId'] = node_backup_id
232
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
233
+ __ret__ = pulumi.runtime.invoke_output('oci:BigDataService/getBdsInstanceNodeBackup:getBdsInstanceNodeBackup', __args__, opts=opts, typ=GetBdsInstanceNodeBackupResult)
234
+ return __ret__.apply(lambda __response__: GetBdsInstanceNodeBackupResult(
235
+ backup_trigger_type=pulumi.get(__response__, 'backup_trigger_type'),
236
+ backup_type=pulumi.get(__response__, 'backup_type'),
237
+ bds_instance_id=pulumi.get(__response__, 'bds_instance_id'),
238
+ display_name=pulumi.get(__response__, 'display_name'),
239
+ id=pulumi.get(__response__, 'id'),
240
+ node_backup_config_id=pulumi.get(__response__, 'node_backup_config_id'),
241
+ node_backup_id=pulumi.get(__response__, 'node_backup_id'),
242
+ node_host_name=pulumi.get(__response__, 'node_host_name'),
243
+ node_instance_id=pulumi.get(__response__, 'node_instance_id'),
244
+ state=pulumi.get(__response__, 'state'),
245
+ time_created=pulumi.get(__response__, 'time_created')))