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.
Files changed (122) hide show
  1. pulumi_oci/__init__.py +72 -0
  2. pulumi_oci/database/__init__.py +20 -0
  3. pulumi_oci/database/_inputs.py +868 -14
  4. pulumi_oci/database/cloud_exadata_infrastructure.py +28 -0
  5. pulumi_oci/database/exadata_infrastructure.py +28 -0
  6. pulumi_oci/database/execution_action.py +812 -0
  7. pulumi_oci/database/execution_window.py +856 -0
  8. pulumi_oci/database/get_cloud_exadata_infrastructure.py +15 -1
  9. pulumi_oci/database/get_database_maintenance_run_history.py +29 -1
  10. pulumi_oci/database/get_exadata_infrastructure.py +15 -1
  11. pulumi_oci/database/get_execution_action.py +352 -0
  12. pulumi_oci/database/get_execution_actions.py +213 -0
  13. pulumi_oci/database/get_execution_window.py +379 -0
  14. pulumi_oci/database/get_execution_windows.py +213 -0
  15. pulumi_oci/database/get_maintenance_run.py +32 -4
  16. pulumi_oci/database/get_scheduled_action.py +324 -0
  17. pulumi_oci/database/get_scheduled_action_params.py +144 -0
  18. pulumi_oci/database/get_scheduled_actions.py +240 -0
  19. pulumi_oci/database/get_scheduling_plan.py +323 -0
  20. pulumi_oci/database/get_scheduling_plans.py +243 -0
  21. pulumi_oci/database/get_scheduling_policies.py +191 -0
  22. pulumi_oci/database/get_scheduling_policy.py +268 -0
  23. pulumi_oci/database/get_scheduling_policy_recommended_scheduled_actions.py +182 -0
  24. pulumi_oci/database/get_scheduling_policy_scheduling_window.py +276 -0
  25. pulumi_oci/database/get_scheduling_policy_scheduling_windows.py +213 -0
  26. pulumi_oci/database/maintenance_run.py +58 -2
  27. pulumi_oci/database/outputs.py +11459 -7870
  28. pulumi_oci/database/scheduled_action.py +775 -0
  29. pulumi_oci/database/scheduling_plan.py +744 -0
  30. pulumi_oci/database/scheduling_policy.py +616 -0
  31. pulumi_oci/database/scheduling_policy_scheduling_window.py +584 -0
  32. pulumi_oci/datasafe/__init__.py +8 -0
  33. pulumi_oci/datasafe/_inputs.py +466 -12
  34. pulumi_oci/datasafe/alert.py +7 -7
  35. pulumi_oci/datasafe/alert_policy.py +7 -7
  36. pulumi_oci/datasafe/audit_archive_retrieval.py +7 -7
  37. pulumi_oci/datasafe/audit_policy.py +7 -7
  38. pulumi_oci/datasafe/audit_policy_management.py +21 -21
  39. pulumi_oci/datasafe/audit_profile.py +18 -18
  40. pulumi_oci/datasafe/audit_profile_management.py +21 -21
  41. pulumi_oci/datasafe/audit_trail.py +14 -14
  42. pulumi_oci/datasafe/audit_trail_management.py +14 -14
  43. pulumi_oci/datasafe/data_safe_configuration.py +4 -4
  44. pulumi_oci/datasafe/data_safe_private_endpoint.py +7 -7
  45. pulumi_oci/datasafe/database_security_config.py +7 -7
  46. pulumi_oci/datasafe/database_security_config_management.py +7 -7
  47. pulumi_oci/datasafe/discovery_mod.py +7 -7
  48. pulumi_oci/datasafe/get_alert.py +1 -1
  49. pulumi_oci/datasafe/get_alert_policy.py +1 -1
  50. pulumi_oci/datasafe/get_audit_archive_retrieval.py +1 -1
  51. pulumi_oci/datasafe/get_audit_events.py +2 -2
  52. pulumi_oci/datasafe/get_audit_policy.py +1 -1
  53. pulumi_oci/datasafe/get_audit_profile.py +2 -2
  54. pulumi_oci/datasafe/get_audit_trail.py +1 -1
  55. pulumi_oci/datasafe/get_data_safe_configuration.py +1 -1
  56. pulumi_oci/datasafe/get_data_safe_private_endpoint.py +1 -1
  57. pulumi_oci/datasafe/get_database_security_config.py +1 -1
  58. pulumi_oci/datasafe/get_discovery_job.py +1 -1
  59. pulumi_oci/datasafe/get_library_masking_format.py +1 -1
  60. pulumi_oci/datasafe/get_masking_policy.py +1 -1
  61. pulumi_oci/datasafe/get_masking_policy_health_report.py +33 -5
  62. pulumi_oci/datasafe/get_masking_policy_referential_relations.py +232 -0
  63. pulumi_oci/datasafe/get_onprem_connector.py +1 -1
  64. pulumi_oci/datasafe/get_report.py +1 -1
  65. pulumi_oci/datasafe/get_report_definition.py +1 -1
  66. pulumi_oci/datasafe/get_sdm_masking_policy_difference.py +1 -1
  67. pulumi_oci/datasafe/get_security_assessment.py +1 -1
  68. pulumi_oci/datasafe/get_security_policy.py +1 -1
  69. pulumi_oci/datasafe/get_security_policy_deployment.py +1 -1
  70. pulumi_oci/datasafe/get_sensitive_data_model.py +1 -1
  71. pulumi_oci/datasafe/get_sensitive_data_model_referential_relation.py +186 -0
  72. pulumi_oci/datasafe/get_sensitive_data_model_referential_relations.py +254 -0
  73. pulumi_oci/datasafe/get_sensitive_type.py +1 -1
  74. pulumi_oci/datasafe/get_sensitive_types_export.py +267 -0
  75. pulumi_oci/datasafe/get_sensitive_types_exports.py +296 -0
  76. pulumi_oci/datasafe/get_sql_collection.py +1 -1
  77. pulumi_oci/datasafe/get_sql_firewall_allowed_sql.py +1 -1
  78. pulumi_oci/datasafe/get_sql_firewall_policy.py +1 -1
  79. pulumi_oci/datasafe/get_target_alert_policy_association.py +1 -1
  80. pulumi_oci/datasafe/get_target_database.py +1 -1
  81. pulumi_oci/datasafe/get_user_assessment.py +1 -1
  82. pulumi_oci/datasafe/get_user_assessment_password_expiry_date_analytics.py +240 -0
  83. pulumi_oci/datasafe/get_user_assessment_user_analytics.py +41 -3
  84. pulumi_oci/datasafe/get_user_assessment_users.py +39 -1
  85. pulumi_oci/datasafe/library_masing_format.py +7 -7
  86. pulumi_oci/datasafe/masking_policy.py +7 -7
  87. pulumi_oci/datasafe/on_prem_connector.py +7 -7
  88. pulumi_oci/datasafe/outputs.py +1266 -151
  89. pulumi_oci/datasafe/report.py +7 -7
  90. pulumi_oci/datasafe/report_definition.py +7 -7
  91. pulumi_oci/datasafe/sdm_masking_policy_difference.py +7 -7
  92. pulumi_oci/datasafe/security_assessment.py +36 -37
  93. pulumi_oci/datasafe/security_policy.py +7 -7
  94. pulumi_oci/datasafe/security_policy_deployment.py +7 -7
  95. pulumi_oci/datasafe/security_policy_deployment_management.py +7 -7
  96. pulumi_oci/datasafe/security_policy_management.py +7 -7
  97. pulumi_oci/datasafe/sensitive_data_model.py +7 -7
  98. pulumi_oci/datasafe/sensitive_data_model_referential_relation.py +504 -0
  99. pulumi_oci/datasafe/sensitive_type.py +7 -7
  100. pulumi_oci/datasafe/sensitive_types_export.py +637 -0
  101. pulumi_oci/datasafe/sql_collection.py +7 -7
  102. pulumi_oci/datasafe/sql_firewall_policy.py +7 -7
  103. pulumi_oci/datasafe/sql_firewall_policy_management.py +56 -56
  104. pulumi_oci/datasafe/target_alert_policy_association.py +7 -7
  105. pulumi_oci/datasafe/target_database.py +7 -7
  106. pulumi_oci/datasafe/user_assessment.py +7 -7
  107. pulumi_oci/datascience/__init__.py +4 -0
  108. pulumi_oci/datascience/_inputs.py +1811 -0
  109. pulumi_oci/datascience/get_containers.py +270 -0
  110. pulumi_oci/datascience/get_schedule.py +366 -0
  111. pulumi_oci/datascience/get_schedules.py +221 -0
  112. pulumi_oci/datascience/outputs.py +8697 -4890
  113. pulumi_oci/datascience/schedule.py +1045 -0
  114. pulumi_oci/mysql/_inputs.py +229 -9
  115. pulumi_oci/mysql/get_mysql_db_system.py +47 -1
  116. pulumi_oci/mysql/mysql_db_system.py +185 -0
  117. pulumi_oci/mysql/outputs.py +477 -26
  118. pulumi_oci/pulumi-plugin.json +1 -1
  119. {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/METADATA +1 -1
  120. {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/RECORD +122 -90
  121. {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/WHEEL +0 -0
  122. {pulumi_oci-2.24.0a1738823453.dist-info → pulumi_oci-2.24.0a1738857714.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,191 @@
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
+ 'GetSchedulingPoliciesResult',
21
+ 'AwaitableGetSchedulingPoliciesResult',
22
+ 'get_scheduling_policies',
23
+ 'get_scheduling_policies_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetSchedulingPoliciesResult:
28
+ """
29
+ A collection of values returned by getSchedulingPolicies.
30
+ """
31
+ def __init__(__self__, compartment_id=None, display_name=None, filters=None, id=None, scheduling_policies=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 scheduling_policies and not isinstance(scheduling_policies, list):
45
+ raise TypeError("Expected argument 'scheduling_policies' to be a list")
46
+ pulumi.set(__self__, "scheduling_policies", scheduling_policies)
47
+ if state and not isinstance(state, str):
48
+ raise TypeError("Expected argument 'state' to be a str")
49
+ pulumi.set(__self__, "state", state)
50
+
51
+ @property
52
+ @pulumi.getter(name="compartmentId")
53
+ def compartment_id(self) -> str:
54
+ """
55
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
56
+ """
57
+ return pulumi.get(self, "compartment_id")
58
+
59
+ @property
60
+ @pulumi.getter(name="displayName")
61
+ def display_name(self) -> Optional[str]:
62
+ """
63
+ The user-friendly name for the Scheduling Policy. The name does not need to be unique.
64
+ """
65
+ return pulumi.get(self, "display_name")
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def filters(self) -> Optional[Sequence['outputs.GetSchedulingPoliciesFilterResult']]:
70
+ return pulumi.get(self, "filters")
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def id(self) -> str:
75
+ """
76
+ The provider-assigned unique ID for this managed resource.
77
+ """
78
+ return pulumi.get(self, "id")
79
+
80
+ @property
81
+ @pulumi.getter(name="schedulingPolicies")
82
+ def scheduling_policies(self) -> Sequence['outputs.GetSchedulingPoliciesSchedulingPolicyResult']:
83
+ """
84
+ The list of scheduling_policies.
85
+ """
86
+ return pulumi.get(self, "scheduling_policies")
87
+
88
+ @property
89
+ @pulumi.getter
90
+ def state(self) -> Optional[str]:
91
+ """
92
+ The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
93
+ """
94
+ return pulumi.get(self, "state")
95
+
96
+
97
+ class AwaitableGetSchedulingPoliciesResult(GetSchedulingPoliciesResult):
98
+ # pylint: disable=using-constant-test
99
+ def __await__(self):
100
+ if False:
101
+ yield self
102
+ return GetSchedulingPoliciesResult(
103
+ compartment_id=self.compartment_id,
104
+ display_name=self.display_name,
105
+ filters=self.filters,
106
+ id=self.id,
107
+ scheduling_policies=self.scheduling_policies,
108
+ state=self.state)
109
+
110
+
111
+ def get_scheduling_policies(compartment_id: Optional[str] = None,
112
+ display_name: Optional[str] = None,
113
+ filters: Optional[Sequence[Union['GetSchedulingPoliciesFilterArgs', 'GetSchedulingPoliciesFilterArgsDict']]] = None,
114
+ state: Optional[str] = None,
115
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulingPoliciesResult:
116
+ """
117
+ This data source provides the list of Scheduling Policies in Oracle Cloud Infrastructure Database service.
118
+
119
+ Lists the Scheduling Policy resources in the specified compartment.
120
+
121
+ ## Example Usage
122
+
123
+ ```python
124
+ import pulumi
125
+ import pulumi_oci as oci
126
+
127
+ test_scheduling_policies = oci.Database.get_scheduling_policies(compartment_id=compartment_id,
128
+ display_name=scheduling_policy_display_name,
129
+ state=scheduling_policy_state)
130
+ ```
131
+
132
+
133
+ :param str compartment_id: The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
134
+ :param str display_name: A filter to return only resources that match the entire display name given. The match is not case sensitive.
135
+ :param str state: A filter to return only resources that match the given lifecycle state exactly.
136
+ """
137
+ __args__ = dict()
138
+ __args__['compartmentId'] = compartment_id
139
+ __args__['displayName'] = display_name
140
+ __args__['filters'] = filters
141
+ __args__['state'] = state
142
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
143
+ __ret__ = pulumi.runtime.invoke('oci:Database/getSchedulingPolicies:getSchedulingPolicies', __args__, opts=opts, typ=GetSchedulingPoliciesResult).value
144
+
145
+ return AwaitableGetSchedulingPoliciesResult(
146
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
147
+ display_name=pulumi.get(__ret__, 'display_name'),
148
+ filters=pulumi.get(__ret__, 'filters'),
149
+ id=pulumi.get(__ret__, 'id'),
150
+ scheduling_policies=pulumi.get(__ret__, 'scheduling_policies'),
151
+ state=pulumi.get(__ret__, 'state'))
152
+ def get_scheduling_policies_output(compartment_id: Optional[pulumi.Input[str]] = None,
153
+ display_name: Optional[pulumi.Input[Optional[str]]] = None,
154
+ filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSchedulingPoliciesFilterArgs', 'GetSchedulingPoliciesFilterArgsDict']]]]] = None,
155
+ state: Optional[pulumi.Input[Optional[str]]] = None,
156
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulingPoliciesResult]:
157
+ """
158
+ This data source provides the list of Scheduling Policies in Oracle Cloud Infrastructure Database service.
159
+
160
+ Lists the Scheduling Policy resources in the specified compartment.
161
+
162
+ ## Example Usage
163
+
164
+ ```python
165
+ import pulumi
166
+ import pulumi_oci as oci
167
+
168
+ test_scheduling_policies = oci.Database.get_scheduling_policies(compartment_id=compartment_id,
169
+ display_name=scheduling_policy_display_name,
170
+ state=scheduling_policy_state)
171
+ ```
172
+
173
+
174
+ :param str compartment_id: The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
175
+ :param str display_name: A filter to return only resources that match the entire display name given. The match is not case sensitive.
176
+ :param str state: A filter to return only resources that match the given lifecycle state exactly.
177
+ """
178
+ __args__ = dict()
179
+ __args__['compartmentId'] = compartment_id
180
+ __args__['displayName'] = display_name
181
+ __args__['filters'] = filters
182
+ __args__['state'] = state
183
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
184
+ __ret__ = pulumi.runtime.invoke_output('oci:Database/getSchedulingPolicies:getSchedulingPolicies', __args__, opts=opts, typ=GetSchedulingPoliciesResult)
185
+ return __ret__.apply(lambda __response__: GetSchedulingPoliciesResult(
186
+ compartment_id=pulumi.get(__response__, 'compartment_id'),
187
+ display_name=pulumi.get(__response__, 'display_name'),
188
+ filters=pulumi.get(__response__, 'filters'),
189
+ id=pulumi.get(__response__, 'id'),
190
+ scheduling_policies=pulumi.get(__response__, 'scheduling_policies'),
191
+ state=pulumi.get(__response__, 'state')))
@@ -0,0 +1,268 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+
18
+ __all__ = [
19
+ 'GetSchedulingPolicyResult',
20
+ 'AwaitableGetSchedulingPolicyResult',
21
+ 'get_scheduling_policy',
22
+ 'get_scheduling_policy_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetSchedulingPolicyResult:
27
+ """
28
+ A collection of values returned by getSchedulingPolicy.
29
+ """
30
+ def __init__(__self__, cadence=None, cadence_start_months=None, compartment_id=None, defined_tags=None, display_name=None, freeform_tags=None, id=None, lifecycle_details=None, scheduling_policy_id=None, state=None, time_created=None, time_next_window_starts=None, time_updated=None):
31
+ if cadence and not isinstance(cadence, str):
32
+ raise TypeError("Expected argument 'cadence' to be a str")
33
+ pulumi.set(__self__, "cadence", cadence)
34
+ if cadence_start_months and not isinstance(cadence_start_months, list):
35
+ raise TypeError("Expected argument 'cadence_start_months' to be a list")
36
+ pulumi.set(__self__, "cadence_start_months", cadence_start_months)
37
+ if compartment_id and not isinstance(compartment_id, str):
38
+ raise TypeError("Expected argument 'compartment_id' to be a str")
39
+ pulumi.set(__self__, "compartment_id", compartment_id)
40
+ if defined_tags and not isinstance(defined_tags, dict):
41
+ raise TypeError("Expected argument 'defined_tags' to be a dict")
42
+ pulumi.set(__self__, "defined_tags", defined_tags)
43
+ if display_name and not isinstance(display_name, str):
44
+ raise TypeError("Expected argument 'display_name' to be a str")
45
+ pulumi.set(__self__, "display_name", display_name)
46
+ if freeform_tags and not isinstance(freeform_tags, dict):
47
+ raise TypeError("Expected argument 'freeform_tags' to be a dict")
48
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
49
+ if id and not isinstance(id, str):
50
+ raise TypeError("Expected argument 'id' to be a str")
51
+ pulumi.set(__self__, "id", id)
52
+ if lifecycle_details and not isinstance(lifecycle_details, str):
53
+ raise TypeError("Expected argument 'lifecycle_details' to be a str")
54
+ pulumi.set(__self__, "lifecycle_details", lifecycle_details)
55
+ if scheduling_policy_id and not isinstance(scheduling_policy_id, str):
56
+ raise TypeError("Expected argument 'scheduling_policy_id' to be a str")
57
+ pulumi.set(__self__, "scheduling_policy_id", scheduling_policy_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
+ if time_next_window_starts and not isinstance(time_next_window_starts, str):
65
+ raise TypeError("Expected argument 'time_next_window_starts' to be a str")
66
+ pulumi.set(__self__, "time_next_window_starts", time_next_window_starts)
67
+ if time_updated and not isinstance(time_updated, str):
68
+ raise TypeError("Expected argument 'time_updated' to be a str")
69
+ pulumi.set(__self__, "time_updated", time_updated)
70
+
71
+ @property
72
+ @pulumi.getter
73
+ def cadence(self) -> str:
74
+ """
75
+ The cadence period.
76
+ """
77
+ return pulumi.get(self, "cadence")
78
+
79
+ @property
80
+ @pulumi.getter(name="cadenceStartMonths")
81
+ def cadence_start_months(self) -> Sequence['outputs.GetSchedulingPolicyCadenceStartMonthResult']:
82
+ """
83
+ Start of the month to be followed during the cadence period.
84
+ """
85
+ return pulumi.get(self, "cadence_start_months")
86
+
87
+ @property
88
+ @pulumi.getter(name="compartmentId")
89
+ def compartment_id(self) -> str:
90
+ """
91
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
92
+ """
93
+ return pulumi.get(self, "compartment_id")
94
+
95
+ @property
96
+ @pulumi.getter(name="definedTags")
97
+ def defined_tags(self) -> Mapping[str, str]:
98
+ """
99
+ 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).
100
+ """
101
+ return pulumi.get(self, "defined_tags")
102
+
103
+ @property
104
+ @pulumi.getter(name="displayName")
105
+ def display_name(self) -> str:
106
+ """
107
+ The user-friendly name for the Scheduling Policy. The name does not need to be unique.
108
+ """
109
+ return pulumi.get(self, "display_name")
110
+
111
+ @property
112
+ @pulumi.getter(name="freeformTags")
113
+ def freeform_tags(self) -> Mapping[str, str]:
114
+ """
115
+ 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"}`
116
+ """
117
+ return pulumi.get(self, "freeform_tags")
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def id(self) -> str:
122
+ """
123
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Scheduling Policy.
124
+ """
125
+ return pulumi.get(self, "id")
126
+
127
+ @property
128
+ @pulumi.getter(name="lifecycleDetails")
129
+ def lifecycle_details(self) -> str:
130
+ """
131
+ Additional information about the current lifecycle state.
132
+ """
133
+ return pulumi.get(self, "lifecycle_details")
134
+
135
+ @property
136
+ @pulumi.getter(name="schedulingPolicyId")
137
+ def scheduling_policy_id(self) -> str:
138
+ return pulumi.get(self, "scheduling_policy_id")
139
+
140
+ @property
141
+ @pulumi.getter
142
+ def state(self) -> str:
143
+ """
144
+ The current state of the Scheduling Policy. Valid states are CREATING, NEEDS_ATTENTION, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
145
+ """
146
+ return pulumi.get(self, "state")
147
+
148
+ @property
149
+ @pulumi.getter(name="timeCreated")
150
+ def time_created(self) -> str:
151
+ """
152
+ The date and time the Scheduling Policy was created.
153
+ """
154
+ return pulumi.get(self, "time_created")
155
+
156
+ @property
157
+ @pulumi.getter(name="timeNextWindowStarts")
158
+ def time_next_window_starts(self) -> str:
159
+ """
160
+ The date and time of the next scheduling window associated with the schedulingPolicy is planned to start.
161
+ """
162
+ return pulumi.get(self, "time_next_window_starts")
163
+
164
+ @property
165
+ @pulumi.getter(name="timeUpdated")
166
+ def time_updated(self) -> str:
167
+ """
168
+ The last date and time that the Scheduling Policy was updated.
169
+ """
170
+ return pulumi.get(self, "time_updated")
171
+
172
+
173
+ class AwaitableGetSchedulingPolicyResult(GetSchedulingPolicyResult):
174
+ # pylint: disable=using-constant-test
175
+ def __await__(self):
176
+ if False:
177
+ yield self
178
+ return GetSchedulingPolicyResult(
179
+ cadence=self.cadence,
180
+ cadence_start_months=self.cadence_start_months,
181
+ compartment_id=self.compartment_id,
182
+ defined_tags=self.defined_tags,
183
+ display_name=self.display_name,
184
+ freeform_tags=self.freeform_tags,
185
+ id=self.id,
186
+ lifecycle_details=self.lifecycle_details,
187
+ scheduling_policy_id=self.scheduling_policy_id,
188
+ state=self.state,
189
+ time_created=self.time_created,
190
+ time_next_window_starts=self.time_next_window_starts,
191
+ time_updated=self.time_updated)
192
+
193
+
194
+ def get_scheduling_policy(scheduling_policy_id: Optional[str] = None,
195
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulingPolicyResult:
196
+ """
197
+ This data source provides details about a specific Scheduling Policy resource in Oracle Cloud Infrastructure Database service.
198
+
199
+ Gets information about the specified Scheduling Policy.
200
+
201
+ ## Example Usage
202
+
203
+ ```python
204
+ import pulumi
205
+ import pulumi_oci as oci
206
+
207
+ test_scheduling_policy = oci.Database.get_scheduling_policy(scheduling_policy_id=test_scheduling_policy_oci_database_scheduling_policy["id"])
208
+ ```
209
+
210
+
211
+ :param str scheduling_policy_id: The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
212
+ """
213
+ __args__ = dict()
214
+ __args__['schedulingPolicyId'] = scheduling_policy_id
215
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
216
+ __ret__ = pulumi.runtime.invoke('oci:Database/getSchedulingPolicy:getSchedulingPolicy', __args__, opts=opts, typ=GetSchedulingPolicyResult).value
217
+
218
+ return AwaitableGetSchedulingPolicyResult(
219
+ cadence=pulumi.get(__ret__, 'cadence'),
220
+ cadence_start_months=pulumi.get(__ret__, 'cadence_start_months'),
221
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
222
+ defined_tags=pulumi.get(__ret__, 'defined_tags'),
223
+ display_name=pulumi.get(__ret__, 'display_name'),
224
+ freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
225
+ id=pulumi.get(__ret__, 'id'),
226
+ lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
227
+ scheduling_policy_id=pulumi.get(__ret__, 'scheduling_policy_id'),
228
+ state=pulumi.get(__ret__, 'state'),
229
+ time_created=pulumi.get(__ret__, 'time_created'),
230
+ time_next_window_starts=pulumi.get(__ret__, 'time_next_window_starts'),
231
+ time_updated=pulumi.get(__ret__, 'time_updated'))
232
+ def get_scheduling_policy_output(scheduling_policy_id: Optional[pulumi.Input[str]] = None,
233
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulingPolicyResult]:
234
+ """
235
+ This data source provides details about a specific Scheduling Policy resource in Oracle Cloud Infrastructure Database service.
236
+
237
+ Gets information about the specified Scheduling Policy.
238
+
239
+ ## Example Usage
240
+
241
+ ```python
242
+ import pulumi
243
+ import pulumi_oci as oci
244
+
245
+ test_scheduling_policy = oci.Database.get_scheduling_policy(scheduling_policy_id=test_scheduling_policy_oci_database_scheduling_policy["id"])
246
+ ```
247
+
248
+
249
+ :param str scheduling_policy_id: The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
250
+ """
251
+ __args__ = dict()
252
+ __args__['schedulingPolicyId'] = scheduling_policy_id
253
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
254
+ __ret__ = pulumi.runtime.invoke_output('oci:Database/getSchedulingPolicy:getSchedulingPolicy', __args__, opts=opts, typ=GetSchedulingPolicyResult)
255
+ return __ret__.apply(lambda __response__: GetSchedulingPolicyResult(
256
+ cadence=pulumi.get(__response__, 'cadence'),
257
+ cadence_start_months=pulumi.get(__response__, 'cadence_start_months'),
258
+ compartment_id=pulumi.get(__response__, 'compartment_id'),
259
+ defined_tags=pulumi.get(__response__, 'defined_tags'),
260
+ display_name=pulumi.get(__response__, 'display_name'),
261
+ freeform_tags=pulumi.get(__response__, 'freeform_tags'),
262
+ id=pulumi.get(__response__, 'id'),
263
+ lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
264
+ scheduling_policy_id=pulumi.get(__response__, 'scheduling_policy_id'),
265
+ state=pulumi.get(__response__, 'state'),
266
+ time_created=pulumi.get(__response__, 'time_created'),
267
+ time_next_window_starts=pulumi.get(__response__, 'time_next_window_starts'),
268
+ time_updated=pulumi.get(__response__, 'time_updated')))
@@ -0,0 +1,182 @@
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
+ 'GetSchedulingPolicyRecommendedScheduledActionsResult',
21
+ 'AwaitableGetSchedulingPolicyRecommendedScheduledActionsResult',
22
+ 'get_scheduling_policy_recommended_scheduled_actions',
23
+ 'get_scheduling_policy_recommended_scheduled_actions_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetSchedulingPolicyRecommendedScheduledActionsResult:
28
+ """
29
+ A collection of values returned by getSchedulingPolicyRecommendedScheduledActions.
30
+ """
31
+ def __init__(__self__, filters=None, id=None, plan_intent=None, recommended_scheduled_actions_collections=None, scheduling_policy_id=None, scheduling_policy_target_resource_id=None):
32
+ if filters and not isinstance(filters, list):
33
+ raise TypeError("Expected argument 'filters' to be a list")
34
+ pulumi.set(__self__, "filters", filters)
35
+ if id and not isinstance(id, str):
36
+ raise TypeError("Expected argument 'id' to be a str")
37
+ pulumi.set(__self__, "id", id)
38
+ if plan_intent and not isinstance(plan_intent, str):
39
+ raise TypeError("Expected argument 'plan_intent' to be a str")
40
+ pulumi.set(__self__, "plan_intent", plan_intent)
41
+ if recommended_scheduled_actions_collections and not isinstance(recommended_scheduled_actions_collections, list):
42
+ raise TypeError("Expected argument 'recommended_scheduled_actions_collections' to be a list")
43
+ pulumi.set(__self__, "recommended_scheduled_actions_collections", recommended_scheduled_actions_collections)
44
+ if scheduling_policy_id and not isinstance(scheduling_policy_id, str):
45
+ raise TypeError("Expected argument 'scheduling_policy_id' to be a str")
46
+ pulumi.set(__self__, "scheduling_policy_id", scheduling_policy_id)
47
+ if scheduling_policy_target_resource_id and not isinstance(scheduling_policy_target_resource_id, str):
48
+ raise TypeError("Expected argument 'scheduling_policy_target_resource_id' to be a str")
49
+ pulumi.set(__self__, "scheduling_policy_target_resource_id", scheduling_policy_target_resource_id)
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def filters(self) -> Optional[Sequence['outputs.GetSchedulingPolicyRecommendedScheduledActionsFilterResult']]:
54
+ return pulumi.get(self, "filters")
55
+
56
+ @property
57
+ @pulumi.getter
58
+ def id(self) -> str:
59
+ """
60
+ The provider-assigned unique ID for this managed resource.
61
+ """
62
+ return pulumi.get(self, "id")
63
+
64
+ @property
65
+ @pulumi.getter(name="planIntent")
66
+ def plan_intent(self) -> str:
67
+ return pulumi.get(self, "plan_intent")
68
+
69
+ @property
70
+ @pulumi.getter(name="recommendedScheduledActionsCollections")
71
+ def recommended_scheduled_actions_collections(self) -> Sequence['outputs.GetSchedulingPolicyRecommendedScheduledActionsRecommendedScheduledActionsCollectionResult']:
72
+ """
73
+ The list of recommended_scheduled_actions_collection.
74
+ """
75
+ return pulumi.get(self, "recommended_scheduled_actions_collections")
76
+
77
+ @property
78
+ @pulumi.getter(name="schedulingPolicyId")
79
+ def scheduling_policy_id(self) -> str:
80
+ return pulumi.get(self, "scheduling_policy_id")
81
+
82
+ @property
83
+ @pulumi.getter(name="schedulingPolicyTargetResourceId")
84
+ def scheduling_policy_target_resource_id(self) -> str:
85
+ return pulumi.get(self, "scheduling_policy_target_resource_id")
86
+
87
+
88
+ class AwaitableGetSchedulingPolicyRecommendedScheduledActionsResult(GetSchedulingPolicyRecommendedScheduledActionsResult):
89
+ # pylint: disable=using-constant-test
90
+ def __await__(self):
91
+ if False:
92
+ yield self
93
+ return GetSchedulingPolicyRecommendedScheduledActionsResult(
94
+ filters=self.filters,
95
+ id=self.id,
96
+ plan_intent=self.plan_intent,
97
+ recommended_scheduled_actions_collections=self.recommended_scheduled_actions_collections,
98
+ scheduling_policy_id=self.scheduling_policy_id,
99
+ scheduling_policy_target_resource_id=self.scheduling_policy_target_resource_id)
100
+
101
+
102
+ def get_scheduling_policy_recommended_scheduled_actions(filters: Optional[Sequence[Union['GetSchedulingPolicyRecommendedScheduledActionsFilterArgs', 'GetSchedulingPolicyRecommendedScheduledActionsFilterArgsDict']]] = None,
103
+ plan_intent: Optional[str] = None,
104
+ scheduling_policy_id: Optional[str] = None,
105
+ scheduling_policy_target_resource_id: Optional[str] = None,
106
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchedulingPolicyRecommendedScheduledActionsResult:
107
+ """
108
+ This data source provides the list of Scheduling Policy Recommended Scheduled Actions in Oracle Cloud Infrastructure Database service.
109
+
110
+ Returns a recommended Scheduled Actions configuration for a given resource, plan intent and scheduling policy.
111
+
112
+ ## Example Usage
113
+
114
+ ```python
115
+ import pulumi
116
+ import pulumi_oci as oci
117
+
118
+ test_scheduling_policy_recommended_scheduled_actions = oci.Database.get_scheduling_policy_recommended_scheduled_actions(plan_intent=scheduling_policy_recommended_scheduled_action_plan_intent,
119
+ scheduling_policy_id=test_scheduling_policy["id"],
120
+ scheduling_policy_target_resource_id=test_resource["id"])
121
+ ```
122
+
123
+
124
+ :param str plan_intent: The scheduling plan intent the scheduled actions will be for.
125
+ :param str scheduling_policy_id: The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
126
+ :param str scheduling_policy_target_resource_id: The target resource [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) the scheduled actions will be for.
127
+ """
128
+ __args__ = dict()
129
+ __args__['filters'] = filters
130
+ __args__['planIntent'] = plan_intent
131
+ __args__['schedulingPolicyId'] = scheduling_policy_id
132
+ __args__['schedulingPolicyTargetResourceId'] = scheduling_policy_target_resource_id
133
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
134
+ __ret__ = pulumi.runtime.invoke('oci:Database/getSchedulingPolicyRecommendedScheduledActions:getSchedulingPolicyRecommendedScheduledActions', __args__, opts=opts, typ=GetSchedulingPolicyRecommendedScheduledActionsResult).value
135
+
136
+ return AwaitableGetSchedulingPolicyRecommendedScheduledActionsResult(
137
+ filters=pulumi.get(__ret__, 'filters'),
138
+ id=pulumi.get(__ret__, 'id'),
139
+ plan_intent=pulumi.get(__ret__, 'plan_intent'),
140
+ recommended_scheduled_actions_collections=pulumi.get(__ret__, 'recommended_scheduled_actions_collections'),
141
+ scheduling_policy_id=pulumi.get(__ret__, 'scheduling_policy_id'),
142
+ scheduling_policy_target_resource_id=pulumi.get(__ret__, 'scheduling_policy_target_resource_id'))
143
+ def get_scheduling_policy_recommended_scheduled_actions_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSchedulingPolicyRecommendedScheduledActionsFilterArgs', 'GetSchedulingPolicyRecommendedScheduledActionsFilterArgsDict']]]]] = None,
144
+ plan_intent: Optional[pulumi.Input[str]] = None,
145
+ scheduling_policy_id: Optional[pulumi.Input[str]] = None,
146
+ scheduling_policy_target_resource_id: Optional[pulumi.Input[str]] = None,
147
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchedulingPolicyRecommendedScheduledActionsResult]:
148
+ """
149
+ This data source provides the list of Scheduling Policy Recommended Scheduled Actions in Oracle Cloud Infrastructure Database service.
150
+
151
+ Returns a recommended Scheduled Actions configuration for a given resource, plan intent and scheduling policy.
152
+
153
+ ## Example Usage
154
+
155
+ ```python
156
+ import pulumi
157
+ import pulumi_oci as oci
158
+
159
+ test_scheduling_policy_recommended_scheduled_actions = oci.Database.get_scheduling_policy_recommended_scheduled_actions(plan_intent=scheduling_policy_recommended_scheduled_action_plan_intent,
160
+ scheduling_policy_id=test_scheduling_policy["id"],
161
+ scheduling_policy_target_resource_id=test_resource["id"])
162
+ ```
163
+
164
+
165
+ :param str plan_intent: The scheduling plan intent the scheduled actions will be for.
166
+ :param str scheduling_policy_id: The Scheduling Policy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
167
+ :param str scheduling_policy_target_resource_id: The target resource [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) the scheduled actions will be for.
168
+ """
169
+ __args__ = dict()
170
+ __args__['filters'] = filters
171
+ __args__['planIntent'] = plan_intent
172
+ __args__['schedulingPolicyId'] = scheduling_policy_id
173
+ __args__['schedulingPolicyTargetResourceId'] = scheduling_policy_target_resource_id
174
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
175
+ __ret__ = pulumi.runtime.invoke_output('oci:Database/getSchedulingPolicyRecommendedScheduledActions:getSchedulingPolicyRecommendedScheduledActions', __args__, opts=opts, typ=GetSchedulingPolicyRecommendedScheduledActionsResult)
176
+ return __ret__.apply(lambda __response__: GetSchedulingPolicyRecommendedScheduledActionsResult(
177
+ filters=pulumi.get(__response__, 'filters'),
178
+ id=pulumi.get(__response__, 'id'),
179
+ plan_intent=pulumi.get(__response__, 'plan_intent'),
180
+ recommended_scheduled_actions_collections=pulumi.get(__response__, 'recommended_scheduled_actions_collections'),
181
+ scheduling_policy_id=pulumi.get(__response__, 'scheduling_policy_id'),
182
+ scheduling_policy_target_resource_id=pulumi.get(__response__, 'scheduling_policy_target_resource_id')))