pulumi-oci 2.24.0a1738823453__py3-none-any.whl → 2.24.0a1738857714__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 +72 -0
- pulumi_oci/database/__init__.py +20 -0
- pulumi_oci/database/_inputs.py +868 -14
- pulumi_oci/database/cloud_exadata_infrastructure.py +28 -0
- pulumi_oci/database/exadata_infrastructure.py +28 -0
- pulumi_oci/database/execution_action.py +812 -0
- pulumi_oci/database/execution_window.py +856 -0
- pulumi_oci/database/get_cloud_exadata_infrastructure.py +15 -1
- pulumi_oci/database/get_database_maintenance_run_history.py +29 -1
- pulumi_oci/database/get_exadata_infrastructure.py +15 -1
- pulumi_oci/database/get_execution_action.py +352 -0
- pulumi_oci/database/get_execution_actions.py +213 -0
- pulumi_oci/database/get_execution_window.py +379 -0
- pulumi_oci/database/get_execution_windows.py +213 -0
- pulumi_oci/database/get_maintenance_run.py +32 -4
- pulumi_oci/database/get_scheduled_action.py +324 -0
- pulumi_oci/database/get_scheduled_action_params.py +144 -0
- pulumi_oci/database/get_scheduled_actions.py +240 -0
- pulumi_oci/database/get_scheduling_plan.py +323 -0
- pulumi_oci/database/get_scheduling_plans.py +243 -0
- pulumi_oci/database/get_scheduling_policies.py +191 -0
- pulumi_oci/database/get_scheduling_policy.py +268 -0
- pulumi_oci/database/get_scheduling_policy_recommended_scheduled_actions.py +182 -0
- pulumi_oci/database/get_scheduling_policy_scheduling_window.py +276 -0
- pulumi_oci/database/get_scheduling_policy_scheduling_windows.py +213 -0
- pulumi_oci/database/maintenance_run.py +58 -2
- pulumi_oci/database/outputs.py +11459 -7870
- pulumi_oci/database/scheduled_action.py +775 -0
- pulumi_oci/database/scheduling_plan.py +744 -0
- pulumi_oci/database/scheduling_policy.py +616 -0
- pulumi_oci/database/scheduling_policy_scheduling_window.py +584 -0
- pulumi_oci/datasafe/__init__.py +8 -0
- pulumi_oci/datasafe/_inputs.py +466 -12
- pulumi_oci/datasafe/alert.py +7 -7
- pulumi_oci/datasafe/alert_policy.py +7 -7
- pulumi_oci/datasafe/audit_archive_retrieval.py +7 -7
- pulumi_oci/datasafe/audit_policy.py +7 -7
- pulumi_oci/datasafe/audit_policy_management.py +21 -21
- pulumi_oci/datasafe/audit_profile.py +18 -18
- pulumi_oci/datasafe/audit_profile_management.py +21 -21
- pulumi_oci/datasafe/audit_trail.py +14 -14
- pulumi_oci/datasafe/audit_trail_management.py +14 -14
- pulumi_oci/datasafe/data_safe_configuration.py +4 -4
- pulumi_oci/datasafe/data_safe_private_endpoint.py +7 -7
- pulumi_oci/datasafe/database_security_config.py +7 -7
- pulumi_oci/datasafe/database_security_config_management.py +7 -7
- pulumi_oci/datasafe/discovery_mod.py +7 -7
- pulumi_oci/datasafe/get_alert.py +1 -1
- pulumi_oci/datasafe/get_alert_policy.py +1 -1
- pulumi_oci/datasafe/get_audit_archive_retrieval.py +1 -1
- pulumi_oci/datasafe/get_audit_events.py +2 -2
- pulumi_oci/datasafe/get_audit_policy.py +1 -1
- pulumi_oci/datasafe/get_audit_profile.py +2 -2
- pulumi_oci/datasafe/get_audit_trail.py +1 -1
- pulumi_oci/datasafe/get_data_safe_configuration.py +1 -1
- pulumi_oci/datasafe/get_data_safe_private_endpoint.py +1 -1
- pulumi_oci/datasafe/get_database_security_config.py +1 -1
- pulumi_oci/datasafe/get_discovery_job.py +1 -1
- pulumi_oci/datasafe/get_library_masking_format.py +1 -1
- pulumi_oci/datasafe/get_masking_policy.py +1 -1
- pulumi_oci/datasafe/get_masking_policy_health_report.py +33 -5
- pulumi_oci/datasafe/get_masking_policy_referential_relations.py +232 -0
- pulumi_oci/datasafe/get_onprem_connector.py +1 -1
- pulumi_oci/datasafe/get_report.py +1 -1
- pulumi_oci/datasafe/get_report_definition.py +1 -1
- pulumi_oci/datasafe/get_sdm_masking_policy_difference.py +1 -1
- pulumi_oci/datasafe/get_security_assessment.py +1 -1
- pulumi_oci/datasafe/get_security_policy.py +1 -1
- pulumi_oci/datasafe/get_security_policy_deployment.py +1 -1
- pulumi_oci/datasafe/get_sensitive_data_model.py +1 -1
- pulumi_oci/datasafe/get_sensitive_data_model_referential_relation.py +186 -0
- pulumi_oci/datasafe/get_sensitive_data_model_referential_relations.py +254 -0
- pulumi_oci/datasafe/get_sensitive_type.py +1 -1
- pulumi_oci/datasafe/get_sensitive_types_export.py +267 -0
- pulumi_oci/datasafe/get_sensitive_types_exports.py +296 -0
- pulumi_oci/datasafe/get_sql_collection.py +1 -1
- pulumi_oci/datasafe/get_sql_firewall_allowed_sql.py +1 -1
- pulumi_oci/datasafe/get_sql_firewall_policy.py +1 -1
- pulumi_oci/datasafe/get_target_alert_policy_association.py +1 -1
- pulumi_oci/datasafe/get_target_database.py +1 -1
- pulumi_oci/datasafe/get_user_assessment.py +1 -1
- pulumi_oci/datasafe/get_user_assessment_password_expiry_date_analytics.py +240 -0
- pulumi_oci/datasafe/get_user_assessment_user_analytics.py +41 -3
- pulumi_oci/datasafe/get_user_assessment_users.py +39 -1
- pulumi_oci/datasafe/library_masing_format.py +7 -7
- pulumi_oci/datasafe/masking_policy.py +7 -7
- pulumi_oci/datasafe/on_prem_connector.py +7 -7
- pulumi_oci/datasafe/outputs.py +1266 -151
- pulumi_oci/datasafe/report.py +7 -7
- pulumi_oci/datasafe/report_definition.py +7 -7
- pulumi_oci/datasafe/sdm_masking_policy_difference.py +7 -7
- pulumi_oci/datasafe/security_assessment.py +36 -37
- pulumi_oci/datasafe/security_policy.py +7 -7
- pulumi_oci/datasafe/security_policy_deployment.py +7 -7
- pulumi_oci/datasafe/security_policy_deployment_management.py +7 -7
- pulumi_oci/datasafe/security_policy_management.py +7 -7
- pulumi_oci/datasafe/sensitive_data_model.py +7 -7
- pulumi_oci/datasafe/sensitive_data_model_referential_relation.py +504 -0
- pulumi_oci/datasafe/sensitive_type.py +7 -7
- pulumi_oci/datasafe/sensitive_types_export.py +637 -0
- pulumi_oci/datasafe/sql_collection.py +7 -7
- pulumi_oci/datasafe/sql_firewall_policy.py +7 -7
- pulumi_oci/datasafe/sql_firewall_policy_management.py +56 -56
- pulumi_oci/datasafe/target_alert_policy_association.py +7 -7
- pulumi_oci/datasafe/target_database.py +7 -7
- pulumi_oci/datasafe/user_assessment.py +7 -7
- pulumi_oci/datascience/__init__.py +4 -0
- pulumi_oci/datascience/_inputs.py +1811 -0
- pulumi_oci/datascience/get_containers.py +270 -0
- pulumi_oci/datascience/get_schedule.py +366 -0
- pulumi_oci/datascience/get_schedules.py +221 -0
- pulumi_oci/datascience/outputs.py +8697 -4890
- pulumi_oci/datascience/schedule.py +1045 -0
- pulumi_oci/mysql/_inputs.py +229 -9
- pulumi_oci/mysql/get_mysql_db_system.py +47 -1
- pulumi_oci/mysql/mysql_db_system.py +185 -0
- pulumi_oci/mysql/outputs.py +477 -26
- pulumi_oci/pulumi-plugin.json +1 -1
- {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/METADATA +1 -1
- {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/RECORD +122 -90
- {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,323 @@
|
|
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
|
+
'GetSchedulingPlanResult',
|
19
|
+
'AwaitableGetSchedulingPlanResult',
|
20
|
+
'get_scheduling_plan',
|
21
|
+
'get_scheduling_plan_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetSchedulingPlanResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getSchedulingPlan.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, compartment_id=None, defined_tags=None, display_name=None, estimated_time_in_mins=None, freeform_tags=None, id=None, is_using_recommended_scheduled_actions=None, lifecycle_details=None, plan_intent=None, resource_id=None, scheduling_plan_id=None, scheduling_policy_id=None, service_type=None, state=None, system_tags=None, time_created=None, time_updated=None):
|
30
|
+
if compartment_id and not isinstance(compartment_id, str):
|
31
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
32
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
33
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
34
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
35
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
36
|
+
if display_name and not isinstance(display_name, str):
|
37
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
38
|
+
pulumi.set(__self__, "display_name", display_name)
|
39
|
+
if estimated_time_in_mins and not isinstance(estimated_time_in_mins, int):
|
40
|
+
raise TypeError("Expected argument 'estimated_time_in_mins' to be a int")
|
41
|
+
pulumi.set(__self__, "estimated_time_in_mins", estimated_time_in_mins)
|
42
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
43
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
44
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
45
|
+
if id and not isinstance(id, str):
|
46
|
+
raise TypeError("Expected argument 'id' to be a str")
|
47
|
+
pulumi.set(__self__, "id", id)
|
48
|
+
if is_using_recommended_scheduled_actions and not isinstance(is_using_recommended_scheduled_actions, bool):
|
49
|
+
raise TypeError("Expected argument 'is_using_recommended_scheduled_actions' to be a bool")
|
50
|
+
pulumi.set(__self__, "is_using_recommended_scheduled_actions", is_using_recommended_scheduled_actions)
|
51
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
52
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
53
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
54
|
+
if plan_intent and not isinstance(plan_intent, str):
|
55
|
+
raise TypeError("Expected argument 'plan_intent' to be a str")
|
56
|
+
pulumi.set(__self__, "plan_intent", plan_intent)
|
57
|
+
if resource_id and not isinstance(resource_id, str):
|
58
|
+
raise TypeError("Expected argument 'resource_id' to be a str")
|
59
|
+
pulumi.set(__self__, "resource_id", resource_id)
|
60
|
+
if scheduling_plan_id and not isinstance(scheduling_plan_id, str):
|
61
|
+
raise TypeError("Expected argument 'scheduling_plan_id' to be a str")
|
62
|
+
pulumi.set(__self__, "scheduling_plan_id", scheduling_plan_id)
|
63
|
+
if scheduling_policy_id and not isinstance(scheduling_policy_id, str):
|
64
|
+
raise TypeError("Expected argument 'scheduling_policy_id' to be a str")
|
65
|
+
pulumi.set(__self__, "scheduling_policy_id", scheduling_policy_id)
|
66
|
+
if service_type and not isinstance(service_type, str):
|
67
|
+
raise TypeError("Expected argument 'service_type' to be a str")
|
68
|
+
pulumi.set(__self__, "service_type", service_type)
|
69
|
+
if state and not isinstance(state, str):
|
70
|
+
raise TypeError("Expected argument 'state' to be a str")
|
71
|
+
pulumi.set(__self__, "state", state)
|
72
|
+
if system_tags and not isinstance(system_tags, dict):
|
73
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
74
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
75
|
+
if time_created and not isinstance(time_created, str):
|
76
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
77
|
+
pulumi.set(__self__, "time_created", time_created)
|
78
|
+
if time_updated and not isinstance(time_updated, str):
|
79
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
80
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
81
|
+
|
82
|
+
@property
|
83
|
+
@pulumi.getter(name="compartmentId")
|
84
|
+
def compartment_id(self) -> str:
|
85
|
+
"""
|
86
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
87
|
+
"""
|
88
|
+
return pulumi.get(self, "compartment_id")
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter(name="definedTags")
|
92
|
+
def defined_tags(self) -> Mapping[str, str]:
|
93
|
+
"""
|
94
|
+
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).
|
95
|
+
"""
|
96
|
+
return pulumi.get(self, "defined_tags")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter(name="displayName")
|
100
|
+
def display_name(self) -> str:
|
101
|
+
"""
|
102
|
+
The display name of the Scheduling Plan.
|
103
|
+
"""
|
104
|
+
return pulumi.get(self, "display_name")
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter(name="estimatedTimeInMins")
|
108
|
+
def estimated_time_in_mins(self) -> int:
|
109
|
+
"""
|
110
|
+
The estimated time for the Scheduling Plan.
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "estimated_time_in_mins")
|
113
|
+
|
114
|
+
@property
|
115
|
+
@pulumi.getter(name="freeformTags")
|
116
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
117
|
+
"""
|
118
|
+
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"}`
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "freeform_tags")
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter
|
124
|
+
def id(self) -> str:
|
125
|
+
"""
|
126
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Plan.
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "id")
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter(name="isUsingRecommendedScheduledActions")
|
132
|
+
def is_using_recommended_scheduled_actions(self) -> bool:
|
133
|
+
"""
|
134
|
+
If true, recommended scheduled actions will be generated for the scheduling plan.
|
135
|
+
"""
|
136
|
+
return pulumi.get(self, "is_using_recommended_scheduled_actions")
|
137
|
+
|
138
|
+
@property
|
139
|
+
@pulumi.getter(name="lifecycleDetails")
|
140
|
+
def lifecycle_details(self) -> str:
|
141
|
+
"""
|
142
|
+
Additional information about the current lifecycle state.
|
143
|
+
"""
|
144
|
+
return pulumi.get(self, "lifecycle_details")
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="planIntent")
|
148
|
+
def plan_intent(self) -> str:
|
149
|
+
"""
|
150
|
+
The current intent the Scheduling Plan. Valid states is EXADATA_INFRASTRUCTURE_FULL_SOFTWARE_UPDATE.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "plan_intent")
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter(name="resourceId")
|
156
|
+
def resource_id(self) -> str:
|
157
|
+
"""
|
158
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "resource_id")
|
161
|
+
|
162
|
+
@property
|
163
|
+
@pulumi.getter(name="schedulingPlanId")
|
164
|
+
def scheduling_plan_id(self) -> str:
|
165
|
+
return pulumi.get(self, "scheduling_plan_id")
|
166
|
+
|
167
|
+
@property
|
168
|
+
@pulumi.getter(name="schedulingPolicyId")
|
169
|
+
def scheduling_policy_id(self) -> str:
|
170
|
+
"""
|
171
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Policy.
|
172
|
+
"""
|
173
|
+
return pulumi.get(self, "scheduling_policy_id")
|
174
|
+
|
175
|
+
@property
|
176
|
+
@pulumi.getter(name="serviceType")
|
177
|
+
def service_type(self) -> str:
|
178
|
+
"""
|
179
|
+
The service type of the Scheduling Plan.
|
180
|
+
"""
|
181
|
+
return pulumi.get(self, "service_type")
|
182
|
+
|
183
|
+
@property
|
184
|
+
@pulumi.getter
|
185
|
+
def state(self) -> str:
|
186
|
+
"""
|
187
|
+
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
|
188
|
+
"""
|
189
|
+
return pulumi.get(self, "state")
|
190
|
+
|
191
|
+
@property
|
192
|
+
@pulumi.getter(name="systemTags")
|
193
|
+
def system_tags(self) -> Mapping[str, str]:
|
194
|
+
"""
|
195
|
+
System 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).
|
196
|
+
"""
|
197
|
+
return pulumi.get(self, "system_tags")
|
198
|
+
|
199
|
+
@property
|
200
|
+
@pulumi.getter(name="timeCreated")
|
201
|
+
def time_created(self) -> str:
|
202
|
+
"""
|
203
|
+
The date and time the Scheduling Plan Resource was created.
|
204
|
+
"""
|
205
|
+
return pulumi.get(self, "time_created")
|
206
|
+
|
207
|
+
@property
|
208
|
+
@pulumi.getter(name="timeUpdated")
|
209
|
+
def time_updated(self) -> str:
|
210
|
+
"""
|
211
|
+
The date and time the Scheduling Plan Resource was updated.
|
212
|
+
"""
|
213
|
+
return pulumi.get(self, "time_updated")
|
214
|
+
|
215
|
+
|
216
|
+
class AwaitableGetSchedulingPlanResult(GetSchedulingPlanResult):
|
217
|
+
# pylint: disable=using-constant-test
|
218
|
+
def __await__(self):
|
219
|
+
if False:
|
220
|
+
yield self
|
221
|
+
return GetSchedulingPlanResult(
|
222
|
+
compartment_id=self.compartment_id,
|
223
|
+
defined_tags=self.defined_tags,
|
224
|
+
display_name=self.display_name,
|
225
|
+
estimated_time_in_mins=self.estimated_time_in_mins,
|
226
|
+
freeform_tags=self.freeform_tags,
|
227
|
+
id=self.id,
|
228
|
+
is_using_recommended_scheduled_actions=self.is_using_recommended_scheduled_actions,
|
229
|
+
lifecycle_details=self.lifecycle_details,
|
230
|
+
plan_intent=self.plan_intent,
|
231
|
+
resource_id=self.resource_id,
|
232
|
+
scheduling_plan_id=self.scheduling_plan_id,
|
233
|
+
scheduling_policy_id=self.scheduling_policy_id,
|
234
|
+
service_type=self.service_type,
|
235
|
+
state=self.state,
|
236
|
+
system_tags=self.system_tags,
|
237
|
+
time_created=self.time_created,
|
238
|
+
time_updated=self.time_updated)
|
239
|
+
|
240
|
+
|
241
|
+
def get_scheduling_plan(scheduling_plan_id: Optional[str] = None,
|
242
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulingPlanResult:
|
243
|
+
"""
|
244
|
+
This data source provides details about a specific Scheduling Plan resource in Oracle Cloud Infrastructure Database service.
|
245
|
+
|
246
|
+
Gets information about the specified Scheduling Plan.
|
247
|
+
|
248
|
+
## Example Usage
|
249
|
+
|
250
|
+
```python
|
251
|
+
import pulumi
|
252
|
+
import pulumi_oci as oci
|
253
|
+
|
254
|
+
test_scheduling_plan = oci.Database.get_scheduling_plan(scheduling_plan_id=test_scheduling_plan_oci_database_scheduling_plan["id"])
|
255
|
+
```
|
256
|
+
|
257
|
+
|
258
|
+
:param str scheduling_plan_id: The Schedule Plan [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
259
|
+
"""
|
260
|
+
__args__ = dict()
|
261
|
+
__args__['schedulingPlanId'] = scheduling_plan_id
|
262
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
263
|
+
__ret__ = pulumi.runtime.invoke('oci:Database/getSchedulingPlan:getSchedulingPlan', __args__, opts=opts, typ=GetSchedulingPlanResult).value
|
264
|
+
|
265
|
+
return AwaitableGetSchedulingPlanResult(
|
266
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
267
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
268
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
269
|
+
estimated_time_in_mins=pulumi.get(__ret__, 'estimated_time_in_mins'),
|
270
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
271
|
+
id=pulumi.get(__ret__, 'id'),
|
272
|
+
is_using_recommended_scheduled_actions=pulumi.get(__ret__, 'is_using_recommended_scheduled_actions'),
|
273
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
274
|
+
plan_intent=pulumi.get(__ret__, 'plan_intent'),
|
275
|
+
resource_id=pulumi.get(__ret__, 'resource_id'),
|
276
|
+
scheduling_plan_id=pulumi.get(__ret__, 'scheduling_plan_id'),
|
277
|
+
scheduling_policy_id=pulumi.get(__ret__, 'scheduling_policy_id'),
|
278
|
+
service_type=pulumi.get(__ret__, 'service_type'),
|
279
|
+
state=pulumi.get(__ret__, 'state'),
|
280
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
281
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
282
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
283
|
+
def get_scheduling_plan_output(scheduling_plan_id: Optional[pulumi.Input[str]] = None,
|
284
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulingPlanResult]:
|
285
|
+
"""
|
286
|
+
This data source provides details about a specific Scheduling Plan resource in Oracle Cloud Infrastructure Database service.
|
287
|
+
|
288
|
+
Gets information about the specified Scheduling Plan.
|
289
|
+
|
290
|
+
## Example Usage
|
291
|
+
|
292
|
+
```python
|
293
|
+
import pulumi
|
294
|
+
import pulumi_oci as oci
|
295
|
+
|
296
|
+
test_scheduling_plan = oci.Database.get_scheduling_plan(scheduling_plan_id=test_scheduling_plan_oci_database_scheduling_plan["id"])
|
297
|
+
```
|
298
|
+
|
299
|
+
|
300
|
+
:param str scheduling_plan_id: The Schedule Plan [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
301
|
+
"""
|
302
|
+
__args__ = dict()
|
303
|
+
__args__['schedulingPlanId'] = scheduling_plan_id
|
304
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
305
|
+
__ret__ = pulumi.runtime.invoke_output('oci:Database/getSchedulingPlan:getSchedulingPlan', __args__, opts=opts, typ=GetSchedulingPlanResult)
|
306
|
+
return __ret__.apply(lambda __response__: GetSchedulingPlanResult(
|
307
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
308
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
309
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
310
|
+
estimated_time_in_mins=pulumi.get(__response__, 'estimated_time_in_mins'),
|
311
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
312
|
+
id=pulumi.get(__response__, 'id'),
|
313
|
+
is_using_recommended_scheduled_actions=pulumi.get(__response__, 'is_using_recommended_scheduled_actions'),
|
314
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
315
|
+
plan_intent=pulumi.get(__response__, 'plan_intent'),
|
316
|
+
resource_id=pulumi.get(__response__, 'resource_id'),
|
317
|
+
scheduling_plan_id=pulumi.get(__response__, 'scheduling_plan_id'),
|
318
|
+
scheduling_policy_id=pulumi.get(__response__, 'scheduling_policy_id'),
|
319
|
+
service_type=pulumi.get(__response__, 'service_type'),
|
320
|
+
state=pulumi.get(__response__, 'state'),
|
321
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
322
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
323
|
+
time_updated=pulumi.get(__response__, 'time_updated')))
|
@@ -0,0 +1,243 @@
|
|
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
|
+
'GetSchedulingPlansResult',
|
21
|
+
'AwaitableGetSchedulingPlansResult',
|
22
|
+
'get_scheduling_plans',
|
23
|
+
'get_scheduling_plans_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetSchedulingPlansResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getSchedulingPlans.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, compartment_id=None, display_name=None, filters=None, id=None, resource_id=None, scheduling_plan_collections=None, scheduling_policy_id=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 resource_id and not isinstance(resource_id, str):
|
45
|
+
raise TypeError("Expected argument 'resource_id' to be a str")
|
46
|
+
pulumi.set(__self__, "resource_id", resource_id)
|
47
|
+
if scheduling_plan_collections and not isinstance(scheduling_plan_collections, list):
|
48
|
+
raise TypeError("Expected argument 'scheduling_plan_collections' to be a list")
|
49
|
+
pulumi.set(__self__, "scheduling_plan_collections", scheduling_plan_collections)
|
50
|
+
if scheduling_policy_id and not isinstance(scheduling_policy_id, str):
|
51
|
+
raise TypeError("Expected argument 'scheduling_policy_id' to be a str")
|
52
|
+
pulumi.set(__self__, "scheduling_policy_id", scheduling_policy_id)
|
53
|
+
if state and not isinstance(state, str):
|
54
|
+
raise TypeError("Expected argument 'state' to be a str")
|
55
|
+
pulumi.set(__self__, "state", state)
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter(name="compartmentId")
|
59
|
+
def compartment_id(self) -> str:
|
60
|
+
"""
|
61
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "compartment_id")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="displayName")
|
67
|
+
def display_name(self) -> Optional[str]:
|
68
|
+
"""
|
69
|
+
The display name of the Scheduling Plan.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "display_name")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter
|
75
|
+
def filters(self) -> Optional[Sequence['outputs.GetSchedulingPlansFilterResult']]:
|
76
|
+
return pulumi.get(self, "filters")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter
|
80
|
+
def id(self) -> Optional[str]:
|
81
|
+
"""
|
82
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Plan.
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "id")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="resourceId")
|
88
|
+
def resource_id(self) -> Optional[str]:
|
89
|
+
"""
|
90
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource.
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "resource_id")
|
93
|
+
|
94
|
+
@property
|
95
|
+
@pulumi.getter(name="schedulingPlanCollections")
|
96
|
+
def scheduling_plan_collections(self) -> Sequence['outputs.GetSchedulingPlansSchedulingPlanCollectionResult']:
|
97
|
+
"""
|
98
|
+
The list of scheduling_plan_collection.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "scheduling_plan_collections")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter(name="schedulingPolicyId")
|
104
|
+
def scheduling_policy_id(self) -> Optional[str]:
|
105
|
+
"""
|
106
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Policy.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "scheduling_policy_id")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def state(self) -> Optional[str]:
|
113
|
+
"""
|
114
|
+
The current state of the Scheduling Plan. Valid states are CREATING, NEEDS_ATTENTION, AVAILABLE, UPDATING, FAILED, DELETING and DELETED.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "state")
|
117
|
+
|
118
|
+
|
119
|
+
class AwaitableGetSchedulingPlansResult(GetSchedulingPlansResult):
|
120
|
+
# pylint: disable=using-constant-test
|
121
|
+
def __await__(self):
|
122
|
+
if False:
|
123
|
+
yield self
|
124
|
+
return GetSchedulingPlansResult(
|
125
|
+
compartment_id=self.compartment_id,
|
126
|
+
display_name=self.display_name,
|
127
|
+
filters=self.filters,
|
128
|
+
id=self.id,
|
129
|
+
resource_id=self.resource_id,
|
130
|
+
scheduling_plan_collections=self.scheduling_plan_collections,
|
131
|
+
scheduling_policy_id=self.scheduling_policy_id,
|
132
|
+
state=self.state)
|
133
|
+
|
134
|
+
|
135
|
+
def get_scheduling_plans(compartment_id: Optional[str] = None,
|
136
|
+
display_name: Optional[str] = None,
|
137
|
+
filters: Optional[Sequence[Union['GetSchedulingPlansFilterArgs', 'GetSchedulingPlansFilterArgsDict']]] = None,
|
138
|
+
id: Optional[str] = None,
|
139
|
+
resource_id: Optional[str] = None,
|
140
|
+
scheduling_policy_id: Optional[str] = None,
|
141
|
+
state: Optional[str] = None,
|
142
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulingPlansResult:
|
143
|
+
"""
|
144
|
+
This data source provides the list of Scheduling Plans in Oracle Cloud Infrastructure Database service.
|
145
|
+
|
146
|
+
Lists the Scheduling Plan resources in the specified compartment.
|
147
|
+
|
148
|
+
## Example Usage
|
149
|
+
|
150
|
+
```python
|
151
|
+
import pulumi
|
152
|
+
import pulumi_oci as oci
|
153
|
+
|
154
|
+
test_scheduling_plans = oci.Database.get_scheduling_plans(compartment_id=compartment_id,
|
155
|
+
display_name=scheduling_plan_display_name,
|
156
|
+
id=scheduling_plan_id,
|
157
|
+
resource_id=test_resource["id"],
|
158
|
+
scheduling_policy_id=test_scheduling_policy["id"],
|
159
|
+
state=scheduling_plan_state)
|
160
|
+
```
|
161
|
+
|
162
|
+
|
163
|
+
:param str compartment_id: The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
164
|
+
:param str display_name: A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
165
|
+
:param str id: A filter to return only resources that match the given Schedule Plan id exactly.
|
166
|
+
:param str resource_id: A filter to return only resources that match the given resource id exactly.
|
167
|
+
:param str scheduling_policy_id: A filter to return only resources that match the given scheduling policy id exactly.
|
168
|
+
:param str state: A filter to return only resources that match the given lifecycle state exactly.
|
169
|
+
"""
|
170
|
+
__args__ = dict()
|
171
|
+
__args__['compartmentId'] = compartment_id
|
172
|
+
__args__['displayName'] = display_name
|
173
|
+
__args__['filters'] = filters
|
174
|
+
__args__['id'] = id
|
175
|
+
__args__['resourceId'] = resource_id
|
176
|
+
__args__['schedulingPolicyId'] = scheduling_policy_id
|
177
|
+
__args__['state'] = state
|
178
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
179
|
+
__ret__ = pulumi.runtime.invoke('oci:Database/getSchedulingPlans:getSchedulingPlans', __args__, opts=opts, typ=GetSchedulingPlansResult).value
|
180
|
+
|
181
|
+
return AwaitableGetSchedulingPlansResult(
|
182
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
183
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
184
|
+
filters=pulumi.get(__ret__, 'filters'),
|
185
|
+
id=pulumi.get(__ret__, 'id'),
|
186
|
+
resource_id=pulumi.get(__ret__, 'resource_id'),
|
187
|
+
scheduling_plan_collections=pulumi.get(__ret__, 'scheduling_plan_collections'),
|
188
|
+
scheduling_policy_id=pulumi.get(__ret__, 'scheduling_policy_id'),
|
189
|
+
state=pulumi.get(__ret__, 'state'))
|
190
|
+
def get_scheduling_plans_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
191
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
192
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSchedulingPlansFilterArgs', 'GetSchedulingPlansFilterArgsDict']]]]] = None,
|
193
|
+
id: Optional[pulumi.Input[Optional[str]]] = None,
|
194
|
+
resource_id: Optional[pulumi.Input[Optional[str]]] = None,
|
195
|
+
scheduling_policy_id: Optional[pulumi.Input[Optional[str]]] = None,
|
196
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
197
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulingPlansResult]:
|
198
|
+
"""
|
199
|
+
This data source provides the list of Scheduling Plans in Oracle Cloud Infrastructure Database service.
|
200
|
+
|
201
|
+
Lists the Scheduling Plan resources in the specified compartment.
|
202
|
+
|
203
|
+
## Example Usage
|
204
|
+
|
205
|
+
```python
|
206
|
+
import pulumi
|
207
|
+
import pulumi_oci as oci
|
208
|
+
|
209
|
+
test_scheduling_plans = oci.Database.get_scheduling_plans(compartment_id=compartment_id,
|
210
|
+
display_name=scheduling_plan_display_name,
|
211
|
+
id=scheduling_plan_id,
|
212
|
+
resource_id=test_resource["id"],
|
213
|
+
scheduling_policy_id=test_scheduling_policy["id"],
|
214
|
+
state=scheduling_plan_state)
|
215
|
+
```
|
216
|
+
|
217
|
+
|
218
|
+
:param str compartment_id: The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
|
219
|
+
:param str display_name: A filter to return only resources that match the entire display name given. The match is not case sensitive.
|
220
|
+
:param str id: A filter to return only resources that match the given Schedule Plan id exactly.
|
221
|
+
:param str resource_id: A filter to return only resources that match the given resource id exactly.
|
222
|
+
:param str scheduling_policy_id: A filter to return only resources that match the given scheduling policy id exactly.
|
223
|
+
:param str state: A filter to return only resources that match the given lifecycle state exactly.
|
224
|
+
"""
|
225
|
+
__args__ = dict()
|
226
|
+
__args__['compartmentId'] = compartment_id
|
227
|
+
__args__['displayName'] = display_name
|
228
|
+
__args__['filters'] = filters
|
229
|
+
__args__['id'] = id
|
230
|
+
__args__['resourceId'] = resource_id
|
231
|
+
__args__['schedulingPolicyId'] = scheduling_policy_id
|
232
|
+
__args__['state'] = state
|
233
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
234
|
+
__ret__ = pulumi.runtime.invoke_output('oci:Database/getSchedulingPlans:getSchedulingPlans', __args__, opts=opts, typ=GetSchedulingPlansResult)
|
235
|
+
return __ret__.apply(lambda __response__: GetSchedulingPlansResult(
|
236
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
237
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
238
|
+
filters=pulumi.get(__response__, 'filters'),
|
239
|
+
id=pulumi.get(__response__, 'id'),
|
240
|
+
resource_id=pulumi.get(__response__, 'resource_id'),
|
241
|
+
scheduling_plan_collections=pulumi.get(__response__, 'scheduling_plan_collections'),
|
242
|
+
scheduling_policy_id=pulumi.get(__response__, 'scheduling_policy_id'),
|
243
|
+
state=pulumi.get(__response__, 'state')))
|