pulumi-oci 2.33.0a1746081542__py3-none-any.whl → 2.33.0a1746138884__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/containerengine/_inputs.py +43 -3
- pulumi_oci/containerengine/get_cluster.py +22 -3
- pulumi_oci/containerengine/node_pool.py +4 -0
- pulumi_oci/containerengine/outputs.py +79 -7
- pulumi_oci/database/_inputs.py +6 -5
- pulumi_oci/database/autonomous_database.py +47 -0
- pulumi_oci/database/get_autonomous_database.py +15 -1
- pulumi_oci/database/outputs.py +15 -3
- pulumi_oci/disasterrecovery/_inputs.py +566 -16
- pulumi_oci/disasterrecovery/dr_protection_group.py +312 -0
- pulumi_oci/disasterrecovery/outputs.py +1077 -27
- pulumi_oci/nosql/table.py +7 -7
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/resourcescheduler/_inputs.py +89 -1
- pulumi_oci/resourcescheduler/get_schedule.py +15 -1
- pulumi_oci/resourcescheduler/get_schedules.py +22 -7
- pulumi_oci/resourcescheduler/outputs.py +174 -11
- pulumi_oci/resourcescheduler/schedule.py +58 -2
- {pulumi_oci-2.33.0a1746081542.dist-info → pulumi_oci-2.33.0a1746138884.dist-info}/METADATA +1 -1
- {pulumi_oci-2.33.0a1746081542.dist-info → pulumi_oci-2.33.0a1746138884.dist-info}/RECORD +22 -22
- {pulumi_oci-2.33.0a1746081542.dist-info → pulumi_oci-2.33.0a1746138884.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.33.0a1746081542.dist-info → pulumi_oci-2.33.0a1746138884.dist-info}/top_level.txt +0 -0
pulumi_oci/nosql/table.py
CHANGED
@@ -32,7 +32,7 @@ class TableArgs:
|
|
32
32
|
"""
|
33
33
|
The set of arguments for constructing a Table resource.
|
34
34
|
:param pulumi.Input[builtins.str] compartment_id: (Updatable) Compartment Identifier.
|
35
|
-
:param pulumi.Input[builtins.str] ddl_statement: (Updatable)
|
35
|
+
:param pulumi.Input[builtins.str] ddl_statement: (Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
36
36
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`
|
37
37
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
38
38
|
:param pulumi.Input[builtins.bool] is_auto_reclaimable: True if table can be reclaimed after an idle period.
|
@@ -68,7 +68,7 @@ class TableArgs:
|
|
68
68
|
@pulumi.getter(name="ddlStatement")
|
69
69
|
def ddl_statement(self) -> pulumi.Input[builtins.str]:
|
70
70
|
"""
|
71
|
-
(Updatable)
|
71
|
+
(Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
72
72
|
"""
|
73
73
|
return pulumi.get(self, "ddl_statement")
|
74
74
|
|
@@ -161,7 +161,7 @@ class _TableState:
|
|
161
161
|
"""
|
162
162
|
Input properties used for looking up and filtering Table resources.
|
163
163
|
:param pulumi.Input[builtins.str] compartment_id: (Updatable) Compartment Identifier.
|
164
|
-
:param pulumi.Input[builtins.str] ddl_statement: (Updatable)
|
164
|
+
:param pulumi.Input[builtins.str] ddl_statement: (Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
165
165
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`
|
166
166
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
167
167
|
:param pulumi.Input[builtins.bool] is_auto_reclaimable: True if table can be reclaimed after an idle period.
|
@@ -232,7 +232,7 @@ class _TableState:
|
|
232
232
|
@pulumi.getter(name="ddlStatement")
|
233
233
|
def ddl_statement(self) -> Optional[pulumi.Input[builtins.str]]:
|
234
234
|
"""
|
235
|
-
(Updatable)
|
235
|
+
(Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
236
236
|
"""
|
237
237
|
return pulumi.get(self, "ddl_statement")
|
238
238
|
|
@@ -488,7 +488,7 @@ class Table(pulumi.CustomResource):
|
|
488
488
|
:param str resource_name: The name of the resource.
|
489
489
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
490
490
|
:param pulumi.Input[builtins.str] compartment_id: (Updatable) Compartment Identifier.
|
491
|
-
:param pulumi.Input[builtins.str] ddl_statement: (Updatable)
|
491
|
+
:param pulumi.Input[builtins.str] ddl_statement: (Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
492
492
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`
|
493
493
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
494
494
|
:param pulumi.Input[builtins.bool] is_auto_reclaimable: True if table can be reclaimed after an idle period.
|
@@ -626,7 +626,7 @@ class Table(pulumi.CustomResource):
|
|
626
626
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
627
627
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
628
628
|
:param pulumi.Input[builtins.str] compartment_id: (Updatable) Compartment Identifier.
|
629
|
-
:param pulumi.Input[builtins.str] ddl_statement: (Updatable)
|
629
|
+
:param pulumi.Input[builtins.str] ddl_statement: (Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
630
630
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace": {"bar-key": "value"}}`
|
631
631
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
632
632
|
:param pulumi.Input[builtins.bool] is_auto_reclaimable: True if table can be reclaimed after an idle period.
|
@@ -680,7 +680,7 @@ class Table(pulumi.CustomResource):
|
|
680
680
|
@pulumi.getter(name="ddlStatement")
|
681
681
|
def ddl_statement(self) -> pulumi.Output[builtins.str]:
|
682
682
|
"""
|
683
|
-
(Updatable)
|
683
|
+
(Updatable) CREATE TABLE DDL statement. While updating an existing table, note that the column order should not be changed, and new columns can only be appended at the end of the table.
|
684
684
|
"""
|
685
685
|
return pulumi.get(self, "ddl_statement")
|
686
686
|
|
pulumi_oci/pulumi-plugin.json
CHANGED
@@ -22,6 +22,8 @@ __all__ = [
|
|
22
22
|
'ScheduleResourceFilterArgsDict',
|
23
23
|
'ScheduleResourceFilterValueArgs',
|
24
24
|
'ScheduleResourceFilterValueArgsDict',
|
25
|
+
'ScheduleResourceParameterArgs',
|
26
|
+
'ScheduleResourceParameterArgsDict',
|
25
27
|
'GetSchedulesFilterArgs',
|
26
28
|
'GetSchedulesFilterArgsDict',
|
27
29
|
]
|
@@ -38,8 +40,15 @@ if not MYPY:
|
|
38
40
|
"""
|
39
41
|
(Updatable) This is additional information that helps to identity the resource for the schedule.
|
40
42
|
|
43
|
+
<<<<<<< ours
|
41
44
|
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
42
45
|
"""
|
46
|
+
parameters: NotRequired[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceParameterArgsDict']]]]
|
47
|
+
"""
|
48
|
+
(Updatable) This is the user input parameters to use when acting on the resource.
|
49
|
+
|
50
|
+
{ "parameters": [ { "parameterType": "BODY", "value": { "ip": "192.168.44.44", "memory": "1024", "synced_folders": [ { "host_path": "data/", "guest_path": "/var/www", "type": "default" } ], "forwarded_ports": [] } }, { "parameterType": "PATH", "value": { "compartmentId": "ocid1.compartment.oc1..xxxxx", "instanceId": "ocid1.vcn.oc1..yyyy" } }, { "parameterType": "QUERY", "value": { "limit": "10", "tenantId": "ocid1.tenant.oc1..zzzz" } }, { "parameterType": "HEADER", "value": { "token": "xxxx" } } ] }
|
51
|
+
"""
|
43
52
|
elif False:
|
44
53
|
ScheduleResourceArgsDict: TypeAlias = Mapping[str, Any]
|
45
54
|
|
@@ -47,16 +56,23 @@ elif False:
|
|
47
56
|
class ScheduleResourceArgs:
|
48
57
|
def __init__(__self__, *,
|
49
58
|
id: pulumi.Input[builtins.str],
|
50
|
-
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None
|
59
|
+
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
60
|
+
parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceParameterArgs']]]] = None):
|
51
61
|
"""
|
52
62
|
:param pulumi.Input[builtins.str] id: (Updatable) This is the resource OCID.
|
53
63
|
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] metadata: (Updatable) This is additional information that helps to identity the resource for the schedule.
|
54
64
|
|
65
|
+
<<<<<<< ours
|
55
66
|
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
67
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScheduleResourceParameterArgs']]] parameters: (Updatable) This is the user input parameters to use when acting on the resource.
|
68
|
+
|
69
|
+
{ "parameters": [ { "parameterType": "BODY", "value": { "ip": "192.168.44.44", "memory": "1024", "synced_folders": [ { "host_path": "data/", "guest_path": "/var/www", "type": "default" } ], "forwarded_ports": [] } }, { "parameterType": "PATH", "value": { "compartmentId": "ocid1.compartment.oc1..xxxxx", "instanceId": "ocid1.vcn.oc1..yyyy" } }, { "parameterType": "QUERY", "value": { "limit": "10", "tenantId": "ocid1.tenant.oc1..zzzz" } }, { "parameterType": "HEADER", "value": { "token": "xxxx" } } ] }
|
56
70
|
"""
|
57
71
|
pulumi.set(__self__, "id", id)
|
58
72
|
if metadata is not None:
|
59
73
|
pulumi.set(__self__, "metadata", metadata)
|
74
|
+
if parameters is not None:
|
75
|
+
pulumi.set(__self__, "parameters", parameters)
|
60
76
|
|
61
77
|
@property
|
62
78
|
@pulumi.getter
|
@@ -76,6 +92,7 @@ class ScheduleResourceArgs:
|
|
76
92
|
"""
|
77
93
|
(Updatable) This is additional information that helps to identity the resource for the schedule.
|
78
94
|
|
95
|
+
<<<<<<< ours
|
79
96
|
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
80
97
|
"""
|
81
98
|
return pulumi.get(self, "metadata")
|
@@ -84,6 +101,20 @@ class ScheduleResourceArgs:
|
|
84
101
|
def metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
85
102
|
pulumi.set(self, "metadata", value)
|
86
103
|
|
104
|
+
@property
|
105
|
+
@pulumi.getter
|
106
|
+
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceParameterArgs']]]]:
|
107
|
+
"""
|
108
|
+
(Updatable) This is the user input parameters to use when acting on the resource.
|
109
|
+
|
110
|
+
{ "parameters": [ { "parameterType": "BODY", "value": { "ip": "192.168.44.44", "memory": "1024", "synced_folders": [ { "host_path": "data/", "guest_path": "/var/www", "type": "default" } ], "forwarded_ports": [] } }, { "parameterType": "PATH", "value": { "compartmentId": "ocid1.compartment.oc1..xxxxx", "instanceId": "ocid1.vcn.oc1..yyyy" } }, { "parameterType": "QUERY", "value": { "limit": "10", "tenantId": "ocid1.tenant.oc1..zzzz" } }, { "parameterType": "HEADER", "value": { "token": "xxxx" } } ] }
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "parameters")
|
113
|
+
|
114
|
+
@parameters.setter
|
115
|
+
def parameters(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduleResourceParameterArgs']]]]):
|
116
|
+
pulumi.set(self, "parameters", value)
|
117
|
+
|
87
118
|
|
88
119
|
if not MYPY:
|
89
120
|
class ScheduleResourceFilterArgsDict(TypedDict):
|
@@ -251,6 +282,63 @@ class ScheduleResourceFilterValueArgs:
|
|
251
282
|
pulumi.set(self, "value", value)
|
252
283
|
|
253
284
|
|
285
|
+
if not MYPY:
|
286
|
+
class ScheduleResourceParameterArgsDict(TypedDict):
|
287
|
+
parameter_type: pulumi.Input[builtins.str]
|
288
|
+
"""
|
289
|
+
(Updatable) This is the parameter type on which the input parameter is defined
|
290
|
+
"""
|
291
|
+
value: NotRequired[pulumi.Input[builtins.str]]
|
292
|
+
"""
|
293
|
+
(Updatable) This is the HTTP request header value.
|
294
|
+
=======
|
295
|
+
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
296
|
+
"""
|
297
|
+
elif False:
|
298
|
+
ScheduleResourceParameterArgsDict: TypeAlias = Mapping[str, Any]
|
299
|
+
|
300
|
+
@pulumi.input_type
|
301
|
+
class ScheduleResourceParameterArgs:
|
302
|
+
def __init__(__self__, *,
|
303
|
+
parameter_type: pulumi.Input[builtins.str],
|
304
|
+
value: Optional[pulumi.Input[builtins.str]] = None):
|
305
|
+
"""
|
306
|
+
:param pulumi.Input[builtins.str] parameter_type: (Updatable) This is the parameter type on which the input parameter is defined
|
307
|
+
:param pulumi.Input[builtins.str] value: (Updatable) This is the HTTP request header value.
|
308
|
+
=======
|
309
|
+
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
310
|
+
"""
|
311
|
+
pulumi.set(__self__, "parameter_type", parameter_type)
|
312
|
+
if value is not None:
|
313
|
+
pulumi.set(__self__, "value", value)
|
314
|
+
|
315
|
+
@property
|
316
|
+
@pulumi.getter(name="parameterType")
|
317
|
+
def parameter_type(self) -> pulumi.Input[builtins.str]:
|
318
|
+
"""
|
319
|
+
(Updatable) This is the parameter type on which the input parameter is defined
|
320
|
+
"""
|
321
|
+
return pulumi.get(self, "parameter_type")
|
322
|
+
|
323
|
+
@parameter_type.setter
|
324
|
+
def parameter_type(self, value: pulumi.Input[builtins.str]):
|
325
|
+
pulumi.set(self, "parameter_type", value)
|
326
|
+
|
327
|
+
@property
|
328
|
+
@pulumi.getter
|
329
|
+
def value(self) -> Optional[pulumi.Input[builtins.str]]:
|
330
|
+
"""
|
331
|
+
(Updatable) This is the HTTP request header value.
|
332
|
+
=======
|
333
|
+
{ "id": "<OCID_of_bucket>" "metadata": { "namespaceName": "sampleNamespace", "bucketName": "sampleBucket" } }
|
334
|
+
"""
|
335
|
+
return pulumi.get(self, "value")
|
336
|
+
|
337
|
+
@value.setter
|
338
|
+
def value(self, value: Optional[pulumi.Input[builtins.str]]):
|
339
|
+
pulumi.set(self, "value", value)
|
340
|
+
|
341
|
+
|
254
342
|
if not MYPY:
|
255
343
|
class GetSchedulesFilterArgsDict(TypedDict):
|
256
344
|
name: builtins.str
|
@@ -28,7 +28,7 @@ class GetScheduleResult:
|
|
28
28
|
"""
|
29
29
|
A collection of values returned by getSchedule.
|
30
30
|
"""
|
31
|
-
def __init__(__self__, action=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, recurrence_details=None, recurrence_type=None, resource_filters=None, resources=None, schedule_id=None, state=None, system_tags=None, time_created=None, time_ends=None, time_last_run=None, time_next_run=None, time_starts=None, time_updated=None):
|
31
|
+
def __init__(__self__, action=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, last_run_status=None, recurrence_details=None, recurrence_type=None, resource_filters=None, resources=None, schedule_id=None, state=None, system_tags=None, time_created=None, time_ends=None, time_last_run=None, time_next_run=None, time_starts=None, time_updated=None):
|
32
32
|
if action and not isinstance(action, str):
|
33
33
|
raise TypeError("Expected argument 'action' to be a str")
|
34
34
|
pulumi.set(__self__, "action", action)
|
@@ -50,6 +50,9 @@ class GetScheduleResult:
|
|
50
50
|
if id and not isinstance(id, str):
|
51
51
|
raise TypeError("Expected argument 'id' to be a str")
|
52
52
|
pulumi.set(__self__, "id", id)
|
53
|
+
if last_run_status and not isinstance(last_run_status, str):
|
54
|
+
raise TypeError("Expected argument 'last_run_status' to be a str")
|
55
|
+
pulumi.set(__self__, "last_run_status", last_run_status)
|
53
56
|
if recurrence_details and not isinstance(recurrence_details, str):
|
54
57
|
raise TypeError("Expected argument 'recurrence_details' to be a str")
|
55
58
|
pulumi.set(__self__, "recurrence_details", recurrence_details)
|
@@ -146,6 +149,14 @@ class GetScheduleResult:
|
|
146
149
|
"""
|
147
150
|
return pulumi.get(self, "id")
|
148
151
|
|
152
|
+
@property
|
153
|
+
@pulumi.getter(name="lastRunStatus")
|
154
|
+
def last_run_status(self) -> builtins.str:
|
155
|
+
"""
|
156
|
+
This is the status of the last work request.
|
157
|
+
"""
|
158
|
+
return pulumi.get(self, "last_run_status")
|
159
|
+
|
149
160
|
@property
|
150
161
|
@pulumi.getter(name="recurrenceDetails")
|
151
162
|
def recurrence_details(self) -> builtins.str:
|
@@ -261,6 +272,7 @@ class AwaitableGetScheduleResult(GetScheduleResult):
|
|
261
272
|
display_name=self.display_name,
|
262
273
|
freeform_tags=self.freeform_tags,
|
263
274
|
id=self.id,
|
275
|
+
last_run_status=self.last_run_status,
|
264
276
|
recurrence_details=self.recurrence_details,
|
265
277
|
recurrence_type=self.recurrence_type,
|
266
278
|
resource_filters=self.resource_filters,
|
@@ -308,6 +320,7 @@ def get_schedule(schedule_id: Optional[builtins.str] = None,
|
|
308
320
|
display_name=pulumi.get(__ret__, 'display_name'),
|
309
321
|
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
310
322
|
id=pulumi.get(__ret__, 'id'),
|
323
|
+
last_run_status=pulumi.get(__ret__, 'last_run_status'),
|
311
324
|
recurrence_details=pulumi.get(__ret__, 'recurrence_details'),
|
312
325
|
recurrence_type=pulumi.get(__ret__, 'recurrence_type'),
|
313
326
|
resource_filters=pulumi.get(__ret__, 'resource_filters'),
|
@@ -352,6 +365,7 @@ def get_schedule_output(schedule_id: Optional[pulumi.Input[builtins.str]] = None
|
|
352
365
|
display_name=pulumi.get(__response__, 'display_name'),
|
353
366
|
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
354
367
|
id=pulumi.get(__response__, 'id'),
|
368
|
+
last_run_status=pulumi.get(__response__, 'last_run_status'),
|
355
369
|
recurrence_details=pulumi.get(__response__, 'recurrence_details'),
|
356
370
|
recurrence_type=pulumi.get(__response__, 'recurrence_type'),
|
357
371
|
resource_filters=pulumi.get(__response__, 'resource_filters'),
|
@@ -29,7 +29,7 @@ class GetSchedulesResult:
|
|
29
29
|
"""
|
30
30
|
A collection of values returned by getSchedules.
|
31
31
|
"""
|
32
|
-
def __init__(__self__, compartment_id=None, display_name=None, filters=None, id=None, schedule_collections=None, schedule_id=None, state=None):
|
32
|
+
def __init__(__self__, compartment_id=None, display_name=None, filters=None, id=None, resource_id=None, schedule_collections=None, schedule_id=None, state=None):
|
33
33
|
if compartment_id and not isinstance(compartment_id, str):
|
34
34
|
raise TypeError("Expected argument 'compartment_id' to be a str")
|
35
35
|
pulumi.set(__self__, "compartment_id", compartment_id)
|
@@ -42,6 +42,9 @@ class GetSchedulesResult:
|
|
42
42
|
if id and not isinstance(id, str):
|
43
43
|
raise TypeError("Expected argument 'id' to be a str")
|
44
44
|
pulumi.set(__self__, "id", id)
|
45
|
+
if resource_id and not isinstance(resource_id, str):
|
46
|
+
raise TypeError("Expected argument 'resource_id' to be a str")
|
47
|
+
pulumi.set(__self__, "resource_id", resource_id)
|
45
48
|
if schedule_collections and not isinstance(schedule_collections, list):
|
46
49
|
raise TypeError("Expected argument 'schedule_collections' to be a list")
|
47
50
|
pulumi.set(__self__, "schedule_collections", schedule_collections)
|
@@ -81,6 +84,11 @@ class GetSchedulesResult:
|
|
81
84
|
"""
|
82
85
|
return pulumi.get(self, "id")
|
83
86
|
|
87
|
+
@property
|
88
|
+
@pulumi.getter(name="resourceId")
|
89
|
+
def resource_id(self) -> Optional[builtins.str]:
|
90
|
+
return pulumi.get(self, "resource_id")
|
91
|
+
|
84
92
|
@property
|
85
93
|
@pulumi.getter(name="scheduleCollections")
|
86
94
|
def schedule_collections(self) -> Sequence['outputs.GetSchedulesScheduleCollectionResult']:
|
@@ -113,6 +121,7 @@ class AwaitableGetSchedulesResult(GetSchedulesResult):
|
|
113
121
|
display_name=self.display_name,
|
114
122
|
filters=self.filters,
|
115
123
|
id=self.id,
|
124
|
+
resource_id=self.resource_id,
|
116
125
|
schedule_collections=self.schedule_collections,
|
117
126
|
schedule_id=self.schedule_id,
|
118
127
|
state=self.state)
|
@@ -121,13 +130,14 @@ class AwaitableGetSchedulesResult(GetSchedulesResult):
|
|
121
130
|
def get_schedules(compartment_id: Optional[builtins.str] = None,
|
122
131
|
display_name: Optional[builtins.str] = None,
|
123
132
|
filters: Optional[Sequence[Union['GetSchedulesFilterArgs', 'GetSchedulesFilterArgsDict']]] = None,
|
133
|
+
resource_id: Optional[builtins.str] = None,
|
124
134
|
schedule_id: Optional[builtins.str] = None,
|
125
135
|
state: Optional[builtins.str] = None,
|
126
136
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulesResult:
|
127
137
|
"""
|
128
138
|
This data source provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service.
|
129
139
|
|
130
|
-
This API gets a list of schedules
|
140
|
+
This API gets a list of schedules. You must provide either a compartmentId or a scheduleId or both. You can list resources in this compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This is required unless a specific schedule ID is passed.
|
131
141
|
|
132
142
|
## Example Usage
|
133
143
|
|
@@ -136,14 +146,14 @@ def get_schedules(compartment_id: Optional[builtins.str] = None,
|
|
136
146
|
import pulumi_oci as oci
|
137
147
|
|
138
148
|
test_schedules = oci.ResourceScheduler.get_schedules(compartment_id=compartment_id,
|
139
|
-
schedule_id=test_schedule["id"],
|
140
149
|
display_name=schedule_display_name,
|
141
|
-
|
150
|
+
resource_id=test_resource["id"])
|
142
151
|
```
|
143
152
|
|
144
153
|
|
145
154
|
:param builtins.str compartment_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. You need to at least provide either `compartment_id` or `schedule_id` or both.
|
146
155
|
:param builtins.str display_name: This is a filter to return only resources that match the given display name exactly.
|
156
|
+
:param builtins.str resource_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.
|
147
157
|
:param builtins.str schedule_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. You need to at least provide either `compartment_id` or `schedule_id` or both.
|
148
158
|
:param builtins.str state: This is a filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
|
149
159
|
"""
|
@@ -151,6 +161,7 @@ def get_schedules(compartment_id: Optional[builtins.str] = None,
|
|
151
161
|
__args__['compartmentId'] = compartment_id
|
152
162
|
__args__['displayName'] = display_name
|
153
163
|
__args__['filters'] = filters
|
164
|
+
__args__['resourceId'] = resource_id
|
154
165
|
__args__['scheduleId'] = schedule_id
|
155
166
|
__args__['state'] = state
|
156
167
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -161,19 +172,21 @@ def get_schedules(compartment_id: Optional[builtins.str] = None,
|
|
161
172
|
display_name=pulumi.get(__ret__, 'display_name'),
|
162
173
|
filters=pulumi.get(__ret__, 'filters'),
|
163
174
|
id=pulumi.get(__ret__, 'id'),
|
175
|
+
resource_id=pulumi.get(__ret__, 'resource_id'),
|
164
176
|
schedule_collections=pulumi.get(__ret__, 'schedule_collections'),
|
165
177
|
schedule_id=pulumi.get(__ret__, 'schedule_id'),
|
166
178
|
state=pulumi.get(__ret__, 'state'))
|
167
179
|
def get_schedules_output(compartment_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
168
180
|
display_name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
169
181
|
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSchedulesFilterArgs', 'GetSchedulesFilterArgsDict']]]]] = None,
|
182
|
+
resource_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
170
183
|
schedule_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
171
184
|
state: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
172
185
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulesResult]:
|
173
186
|
"""
|
174
187
|
This data source provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service.
|
175
188
|
|
176
|
-
This API gets a list of schedules
|
189
|
+
This API gets a list of schedules. You must provide either a compartmentId or a scheduleId or both. You can list resources in this compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This is required unless a specific schedule ID is passed.
|
177
190
|
|
178
191
|
## Example Usage
|
179
192
|
|
@@ -182,14 +195,14 @@ def get_schedules_output(compartment_id: Optional[pulumi.Input[Optional[builtins
|
|
182
195
|
import pulumi_oci as oci
|
183
196
|
|
184
197
|
test_schedules = oci.ResourceScheduler.get_schedules(compartment_id=compartment_id,
|
185
|
-
schedule_id=test_schedule["id"],
|
186
198
|
display_name=schedule_display_name,
|
187
|
-
|
199
|
+
resource_id=test_resource["id"])
|
188
200
|
```
|
189
201
|
|
190
202
|
|
191
203
|
:param builtins.str compartment_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. You need to at least provide either `compartment_id` or `schedule_id` or both.
|
192
204
|
:param builtins.str display_name: This is a filter to return only resources that match the given display name exactly.
|
205
|
+
:param builtins.str resource_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request.
|
193
206
|
:param builtins.str schedule_id: This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. You need to at least provide either `compartment_id` or `schedule_id` or both.
|
194
207
|
:param builtins.str state: This is a filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
|
195
208
|
"""
|
@@ -197,6 +210,7 @@ def get_schedules_output(compartment_id: Optional[pulumi.Input[Optional[builtins
|
|
197
210
|
__args__['compartmentId'] = compartment_id
|
198
211
|
__args__['displayName'] = display_name
|
199
212
|
__args__['filters'] = filters
|
213
|
+
__args__['resourceId'] = resource_id
|
200
214
|
__args__['scheduleId'] = schedule_id
|
201
215
|
__args__['state'] = state
|
202
216
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -206,6 +220,7 @@ def get_schedules_output(compartment_id: Optional[pulumi.Input[Optional[builtins
|
|
206
220
|
display_name=pulumi.get(__response__, 'display_name'),
|
207
221
|
filters=pulumi.get(__response__, 'filters'),
|
208
222
|
id=pulumi.get(__response__, 'id'),
|
223
|
+
resource_id=pulumi.get(__response__, 'resource_id'),
|
209
224
|
schedule_collections=pulumi.get(__response__, 'schedule_collections'),
|
210
225
|
schedule_id=pulumi.get(__response__, 'schedule_id'),
|
211
226
|
state=pulumi.get(__response__, 'state')))
|