pulumi-oci 1.36.0a1715707046__py3-none-any.whl → 1.36.0a1715878445__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 (119) hide show
  1. pulumi_oci/__init__.py +208 -0
  2. pulumi_oci/core/__init__.py +3 -0
  3. pulumi_oci/core/_inputs.py +40 -0
  4. pulumi_oci/core/get_ip_inventory_subnet.py +171 -0
  5. pulumi_oci/core/get_ip_inventory_subnet_cidr.py +171 -0
  6. pulumi_oci/core/get_ip_inventory_vcn_overlaps.py +206 -0
  7. pulumi_oci/core/outputs.py +261 -0
  8. pulumi_oci/database/_inputs.py +192 -0
  9. pulumi_oci/database/exadata_infrastructure.py +28 -0
  10. pulumi_oci/database/get_exadata_infrastructure.py +14 -1
  11. pulumi_oci/database/get_vm_cluster.py +14 -1
  12. pulumi_oci/database/outputs.py +418 -0
  13. pulumi_oci/database/vm_cluster.py +55 -0
  14. pulumi_oci/database/vm_cluster_add_virtual_network.py +28 -0
  15. pulumi_oci/database/vm_cluster_remove_virtual_machine.py +28 -0
  16. pulumi_oci/datasafe/__init__.py +1 -0
  17. pulumi_oci/datasafe/masking_report_management.py +693 -0
  18. pulumi_oci/email/__init__.py +3 -0
  19. pulumi_oci/email/_inputs.py +46 -0
  20. pulumi_oci/email/dkim.py +4 -4
  21. pulumi_oci/email/email_domain.py +77 -0
  22. pulumi_oci/email/email_return_path.py +642 -0
  23. pulumi_oci/email/get_email_domain.py +27 -1
  24. pulumi_oci/email/get_email_return_path.py +274 -0
  25. pulumi_oci/email/get_email_return_paths.py +203 -0
  26. pulumi_oci/email/outputs.py +231 -0
  27. pulumi_oci/loadbalancer/_inputs.py +16 -0
  28. pulumi_oci/loadbalancer/listener.py +2 -0
  29. pulumi_oci/loadbalancer/outputs.py +14 -0
  30. pulumi_oci/loganalytics/namespace.py +4 -4
  31. pulumi_oci/networkloadbalancer/get_listener.py +14 -1
  32. pulumi_oci/networkloadbalancer/listener.py +51 -2
  33. pulumi_oci/networkloadbalancer/outputs.py +11 -0
  34. pulumi_oci/osmanagementhub/__init__.py +48 -0
  35. pulumi_oci/osmanagementhub/_inputs.py +3635 -493
  36. pulumi_oci/osmanagementhub/event.py +701 -0
  37. pulumi_oci/osmanagementhub/get_entitlements.py +178 -0
  38. pulumi_oci/osmanagementhub/get_errata.py +283 -0
  39. pulumi_oci/osmanagementhub/get_erratum.py +308 -0
  40. pulumi_oci/osmanagementhub/get_event.py +314 -0
  41. pulumi_oci/osmanagementhub/get_events.py +314 -0
  42. pulumi_oci/osmanagementhub/get_lifecycle_environment.py +26 -13
  43. pulumi_oci/osmanagementhub/get_lifecycle_environments.py +48 -11
  44. pulumi_oci/osmanagementhub/get_lifecycle_stage.py +28 -15
  45. pulumi_oci/osmanagementhub/get_lifecycle_stages.py +86 -19
  46. pulumi_oci/osmanagementhub/get_managed_instance.py +587 -0
  47. pulumi_oci/osmanagementhub/get_managed_instance_available_packages.py +187 -0
  48. pulumi_oci/osmanagementhub/get_managed_instance_available_software_sources.py +190 -0
  49. pulumi_oci/osmanagementhub/get_managed_instance_available_windows_updates.py +238 -0
  50. pulumi_oci/osmanagementhub/get_managed_instance_errata.py +204 -0
  51. pulumi_oci/osmanagementhub/get_managed_instance_group.py +62 -10
  52. pulumi_oci/osmanagementhub/get_managed_instance_group_available_modules.py +7 -9
  53. pulumi_oci/osmanagementhub/get_managed_instance_group_available_packages.py +7 -7
  54. pulumi_oci/osmanagementhub/get_managed_instance_group_available_software_sources.py +8 -10
  55. pulumi_oci/osmanagementhub/get_managed_instance_group_installed_packages.py +220 -0
  56. pulumi_oci/osmanagementhub/get_managed_instance_group_modules.py +244 -0
  57. pulumi_oci/osmanagementhub/get_managed_instance_groups.py +71 -16
  58. pulumi_oci/osmanagementhub/get_managed_instance_installed_packages.py +221 -0
  59. pulumi_oci/osmanagementhub/get_managed_instance_installed_windows_updates.py +204 -0
  60. pulumi_oci/osmanagementhub/get_managed_instance_modules.py +187 -0
  61. pulumi_oci/osmanagementhub/get_managed_instance_updatable_packages.py +221 -0
  62. pulumi_oci/osmanagementhub/get_managed_instances.py +537 -0
  63. pulumi_oci/osmanagementhub/get_management_station.py +42 -19
  64. pulumi_oci/osmanagementhub/get_management_station_mirrors.py +4 -4
  65. pulumi_oci/osmanagementhub/get_management_stations.py +15 -15
  66. pulumi_oci/osmanagementhub/get_profile.py +51 -12
  67. pulumi_oci/osmanagementhub/get_profiles.py +76 -16
  68. pulumi_oci/osmanagementhub/get_scheduled_job.py +426 -0
  69. pulumi_oci/osmanagementhub/get_scheduled_jobs.py +433 -0
  70. pulumi_oci/osmanagementhub/get_software_package.py +301 -0
  71. pulumi_oci/osmanagementhub/get_software_package_software_source.py +329 -0
  72. pulumi_oci/osmanagementhub/get_software_packages.py +232 -0
  73. pulumi_oci/osmanagementhub/get_software_source.py +109 -18
  74. pulumi_oci/osmanagementhub/get_software_source_module_stream.py +5 -5
  75. pulumi_oci/osmanagementhub/get_software_source_module_stream_profile.py +6 -6
  76. pulumi_oci/osmanagementhub/get_software_source_module_stream_profiles.py +8 -8
  77. pulumi_oci/osmanagementhub/get_software_source_module_streams.py +9 -9
  78. pulumi_oci/osmanagementhub/get_software_source_package_group.py +8 -8
  79. pulumi_oci/osmanagementhub/get_software_source_package_groups.py +7 -7
  80. pulumi_oci/osmanagementhub/get_software_source_software_package.py +23 -10
  81. pulumi_oci/osmanagementhub/get_software_source_software_packages.py +6 -6
  82. pulumi_oci/osmanagementhub/get_software_source_vendors.py +2 -2
  83. pulumi_oci/osmanagementhub/get_software_sources.py +78 -21
  84. pulumi_oci/osmanagementhub/get_windows_update.py +222 -0
  85. pulumi_oci/osmanagementhub/get_windows_updates.py +187 -0
  86. pulumi_oci/osmanagementhub/lifecycle_environment.py +159 -86
  87. pulumi_oci/osmanagementhub/lifecycle_stage_attach_managed_instances_management.py +249 -0
  88. pulumi_oci/osmanagementhub/lifecycle_stage_detach_managed_instances_management.py +249 -0
  89. pulumi_oci/osmanagementhub/lifecycle_stage_promote_software_source_management.py +296 -0
  90. pulumi_oci/osmanagementhub/managed_instance.py +1327 -0
  91. pulumi_oci/osmanagementhub/managed_instance_attach_profile_management.py +266 -0
  92. pulumi_oci/osmanagementhub/managed_instance_detach_profile_management.py +214 -0
  93. pulumi_oci/osmanagementhub/managed_instance_group.py +264 -86
  94. pulumi_oci/osmanagementhub/managed_instance_group_attach_managed_instances_management.py +293 -0
  95. pulumi_oci/osmanagementhub/managed_instance_group_attach_software_sources_management.py +293 -0
  96. pulumi_oci/osmanagementhub/managed_instance_group_detach_managed_instances_management.py +264 -0
  97. pulumi_oci/osmanagementhub/managed_instance_group_detach_software_sources_management.py +293 -0
  98. pulumi_oci/osmanagementhub/managed_instance_group_install_packages_management.py +293 -0
  99. pulumi_oci/osmanagementhub/managed_instance_group_install_windows_updates_management.py +293 -0
  100. pulumi_oci/osmanagementhub/managed_instance_group_manage_module_streams_management.py +526 -0
  101. pulumi_oci/osmanagementhub/managed_instance_group_remove_packages_management.py +293 -0
  102. pulumi_oci/osmanagementhub/managed_instance_group_update_all_packages_management.py +292 -0
  103. pulumi_oci/osmanagementhub/managed_instance_install_windows_updates_management.py +341 -0
  104. pulumi_oci/osmanagementhub/managed_instance_update_packages_management.py +341 -0
  105. pulumi_oci/osmanagementhub/management_station.py +184 -81
  106. pulumi_oci/osmanagementhub/management_station_mirror_synchronize_management.py +264 -0
  107. pulumi_oci/osmanagementhub/management_station_refresh_management.py +212 -0
  108. pulumi_oci/osmanagementhub/management_station_synchronize_mirrors_management.py +264 -0
  109. pulumi_oci/osmanagementhub/outputs.py +10867 -2365
  110. pulumi_oci/osmanagementhub/profile.py +200 -78
  111. pulumi_oci/osmanagementhub/scheduled_job.py +1331 -0
  112. pulumi_oci/osmanagementhub/software_source.py +365 -181
  113. pulumi_oci/osmanagementhub/software_source_add_packages_management.py +266 -0
  114. pulumi_oci/osmanagementhub/software_source_change_availability_management.py +194 -0
  115. pulumi_oci/pulumi-plugin.json +1 -1
  116. {pulumi_oci-1.36.0a1715707046.dist-info → pulumi_oci-1.36.0a1715878445.dist-info}/METADATA +1 -1
  117. {pulumi_oci-1.36.0a1715707046.dist-info → pulumi_oci-1.36.0a1715878445.dist-info}/RECORD +119 -64
  118. {pulumi_oci-1.36.0a1715707046.dist-info → pulumi_oci-1.36.0a1715878445.dist-info}/WHEEL +0 -0
  119. {pulumi_oci-1.36.0a1715707046.dist-info → pulumi_oci-1.36.0a1715878445.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,7 @@ class GetProfilesResult:
23
23
  """
24
24
  A collection of values returned by getProfiles.
25
25
  """
26
- def __init__(__self__, arch_type=None, compartment_id=None, display_name_contains=None, display_names=None, filters=None, id=None, os_family=None, profile_collections=None, profile_id=None, profile_types=None, state=None, vendor_name=None):
26
+ def __init__(__self__, arch_type=None, compartment_id=None, display_name_contains=None, display_names=None, filters=None, id=None, is_default_profile=None, is_service_provided_profile=None, os_family=None, profile_collections=None, profile_id=None, profile_types=None, registration_types=None, state=None, vendor_name=None):
27
27
  if arch_type and not isinstance(arch_type, str):
28
28
  raise TypeError("Expected argument 'arch_type' to be a str")
29
29
  pulumi.set(__self__, "arch_type", arch_type)
@@ -42,6 +42,12 @@ class GetProfilesResult:
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 is_default_profile and not isinstance(is_default_profile, bool):
46
+ raise TypeError("Expected argument 'is_default_profile' to be a bool")
47
+ pulumi.set(__self__, "is_default_profile", is_default_profile)
48
+ if is_service_provided_profile and not isinstance(is_service_provided_profile, bool):
49
+ raise TypeError("Expected argument 'is_service_provided_profile' to be a bool")
50
+ pulumi.set(__self__, "is_service_provided_profile", is_service_provided_profile)
45
51
  if os_family and not isinstance(os_family, str):
46
52
  raise TypeError("Expected argument 'os_family' to be a str")
47
53
  pulumi.set(__self__, "os_family", os_family)
@@ -54,6 +60,9 @@ class GetProfilesResult:
54
60
  if profile_types and not isinstance(profile_types, list):
55
61
  raise TypeError("Expected argument 'profile_types' to be a list")
56
62
  pulumi.set(__self__, "profile_types", profile_types)
63
+ if registration_types and not isinstance(registration_types, list):
64
+ raise TypeError("Expected argument 'registration_types' to be a list")
65
+ pulumi.set(__self__, "registration_types", registration_types)
57
66
  if state and not isinstance(state, str):
58
67
  raise TypeError("Expected argument 'state' to be a str")
59
68
  pulumi.set(__self__, "state", state)
@@ -73,7 +82,7 @@ class GetProfilesResult:
73
82
  @pulumi.getter(name="compartmentId")
74
83
  def compartment_id(self) -> Optional[str]:
75
84
  """
76
- The OCID of the tenancy containing the registration profile.
85
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the registration profile.
77
86
  """
78
87
  return pulumi.get(self, "compartment_id")
79
88
 
@@ -103,6 +112,22 @@ class GetProfilesResult:
103
112
  """
104
113
  return pulumi.get(self, "id")
105
114
 
115
+ @property
116
+ @pulumi.getter(name="isDefaultProfile")
117
+ def is_default_profile(self) -> Optional[bool]:
118
+ """
119
+ Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
120
+ """
121
+ return pulumi.get(self, "is_default_profile")
122
+
123
+ @property
124
+ @pulumi.getter(name="isServiceProvidedProfile")
125
+ def is_service_provided_profile(self) -> Optional[bool]:
126
+ """
127
+ Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
128
+ """
129
+ return pulumi.get(self, "is_service_provided_profile")
130
+
106
131
  @property
107
132
  @pulumi.getter(name="osFamily")
108
133
  def os_family(self) -> Optional[str]:
@@ -128,10 +153,18 @@ class GetProfilesResult:
128
153
  @pulumi.getter(name="profileTypes")
129
154
  def profile_types(self) -> Optional[Sequence[str]]:
130
155
  """
131
- The type of Profile. One of SOFTWARESOURCE, GROUP or LIFECYCLE.
156
+ The type of profile.
132
157
  """
133
158
  return pulumi.get(self, "profile_types")
134
159
 
160
+ @property
161
+ @pulumi.getter(name="registrationTypes")
162
+ def registration_types(self) -> Optional[Sequence[str]]:
163
+ """
164
+ The type of instance to register.
165
+ """
166
+ return pulumi.get(self, "registration_types")
167
+
135
168
  @property
136
169
  @pulumi.getter
137
170
  def state(self) -> Optional[str]:
@@ -144,7 +177,7 @@ class GetProfilesResult:
144
177
  @pulumi.getter(name="vendorName")
145
178
  def vendor_name(self) -> Optional[str]:
146
179
  """
147
- The software source vendor name.
180
+ The vendor of the operating system for the instance.
148
181
  """
149
182
  return pulumi.get(self, "vendor_name")
150
183
 
@@ -161,10 +194,13 @@ class AwaitableGetProfilesResult(GetProfilesResult):
161
194
  display_names=self.display_names,
162
195
  filters=self.filters,
163
196
  id=self.id,
197
+ is_default_profile=self.is_default_profile,
198
+ is_service_provided_profile=self.is_service_provided_profile,
164
199
  os_family=self.os_family,
165
200
  profile_collections=self.profile_collections,
166
201
  profile_id=self.profile_id,
167
202
  profile_types=self.profile_types,
203
+ registration_types=self.registration_types,
168
204
  state=self.state,
169
205
  vendor_name=self.vendor_name)
170
206
 
@@ -174,9 +210,12 @@ def get_profiles(arch_type: Optional[str] = None,
174
210
  display_name_contains: Optional[str] = None,
175
211
  display_names: Optional[Sequence[str]] = None,
176
212
  filters: Optional[Sequence[pulumi.InputType['GetProfilesFilterArgs']]] = None,
213
+ is_default_profile: Optional[bool] = None,
214
+ is_service_provided_profile: Optional[bool] = None,
177
215
  os_family: Optional[str] = None,
178
216
  profile_id: Optional[str] = None,
179
217
  profile_types: Optional[Sequence[str]] = None,
218
+ registration_types: Optional[Sequence[str]] = None,
180
219
  state: Optional[str] = None,
181
220
  vendor_name: Optional[str] = None,
182
221
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProfilesResult:
@@ -196,23 +235,29 @@ def get_profiles(arch_type: Optional[str] = None,
196
235
  compartment_id=compartment_id,
197
236
  display_names=profile_display_name,
198
237
  display_name_contains=profile_display_name_contains,
238
+ is_default_profile=profile_is_default_profile,
239
+ is_service_provided_profile=profile_is_service_provided_profile,
199
240
  os_family=profile_os_family,
200
241
  profile_id=test_profile["id"],
201
242
  profile_types=profile_profile_type,
243
+ registration_types=profile_registration_type,
202
244
  state=profile_state,
203
245
  vendor_name=profile_vendor_name)
204
246
  ```
205
247
 
206
248
 
207
249
  :param str arch_type: A filter to return only profiles that match the given archType.
208
- :param str compartment_id: The OCID of the compartment that contains the resources to list.
250
+ :param str compartment_id: (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
209
251
  :param str display_name_contains: A filter to return resources that may partially match the given display name.
210
252
  :param Sequence[str] display_names: A filter to return resources that match the given display names.
211
- :param str os_family: A filter to return only profiles that match the given osFamily.
212
- :param str profile_id: The OCID of the registration profile.
213
- :param Sequence[str] profile_types: A filter to return registration profiles that match the given profileType.
214
- :param str state: A filter to return only registration profile whose lifecycleState matches the given lifecycleState.
215
- :param str vendor_name: A filter to return only profiles that match the given vendorName.
253
+ :param bool is_default_profile: A boolean variable that is used to list only the default profile resources.
254
+ :param bool is_service_provided_profile: A filter to return only service-provided profiles.
255
+ :param str os_family: A filter to return only resources that match the given operating system family.
256
+ :param str profile_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. A filter used to return the specified profile.
257
+ :param Sequence[str] profile_types: A filter to return registration profiles that match the given profile type.
258
+ :param Sequence[str] registration_types: A filter to return profiles that match the given instance type.
259
+ :param str state: A filter to return only registration profiles in the given state.
260
+ :param str vendor_name: A filter to return only resources that match the given vendor name.
216
261
  """
217
262
  __args__ = dict()
218
263
  __args__['archType'] = arch_type
@@ -220,9 +265,12 @@ def get_profiles(arch_type: Optional[str] = None,
220
265
  __args__['displayNameContains'] = display_name_contains
221
266
  __args__['displayNames'] = display_names
222
267
  __args__['filters'] = filters
268
+ __args__['isDefaultProfile'] = is_default_profile
269
+ __args__['isServiceProvidedProfile'] = is_service_provided_profile
223
270
  __args__['osFamily'] = os_family
224
271
  __args__['profileId'] = profile_id
225
272
  __args__['profileTypes'] = profile_types
273
+ __args__['registrationTypes'] = registration_types
226
274
  __args__['state'] = state
227
275
  __args__['vendorName'] = vendor_name
228
276
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -235,10 +283,13 @@ def get_profiles(arch_type: Optional[str] = None,
235
283
  display_names=pulumi.get(__ret__, 'display_names'),
236
284
  filters=pulumi.get(__ret__, 'filters'),
237
285
  id=pulumi.get(__ret__, 'id'),
286
+ is_default_profile=pulumi.get(__ret__, 'is_default_profile'),
287
+ is_service_provided_profile=pulumi.get(__ret__, 'is_service_provided_profile'),
238
288
  os_family=pulumi.get(__ret__, 'os_family'),
239
289
  profile_collections=pulumi.get(__ret__, 'profile_collections'),
240
290
  profile_id=pulumi.get(__ret__, 'profile_id'),
241
291
  profile_types=pulumi.get(__ret__, 'profile_types'),
292
+ registration_types=pulumi.get(__ret__, 'registration_types'),
242
293
  state=pulumi.get(__ret__, 'state'),
243
294
  vendor_name=pulumi.get(__ret__, 'vendor_name'))
244
295
 
@@ -249,9 +300,12 @@ def get_profiles_output(arch_type: Optional[pulumi.Input[Optional[str]]] = None,
249
300
  display_name_contains: Optional[pulumi.Input[Optional[str]]] = None,
250
301
  display_names: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
251
302
  filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetProfilesFilterArgs']]]]] = None,
303
+ is_default_profile: Optional[pulumi.Input[Optional[bool]]] = None,
304
+ is_service_provided_profile: Optional[pulumi.Input[Optional[bool]]] = None,
252
305
  os_family: Optional[pulumi.Input[Optional[str]]] = None,
253
306
  profile_id: Optional[pulumi.Input[Optional[str]]] = None,
254
307
  profile_types: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
308
+ registration_types: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
255
309
  state: Optional[pulumi.Input[Optional[str]]] = None,
256
310
  vendor_name: Optional[pulumi.Input[Optional[str]]] = None,
257
311
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProfilesResult]:
@@ -271,22 +325,28 @@ def get_profiles_output(arch_type: Optional[pulumi.Input[Optional[str]]] = None,
271
325
  compartment_id=compartment_id,
272
326
  display_names=profile_display_name,
273
327
  display_name_contains=profile_display_name_contains,
328
+ is_default_profile=profile_is_default_profile,
329
+ is_service_provided_profile=profile_is_service_provided_profile,
274
330
  os_family=profile_os_family,
275
331
  profile_id=test_profile["id"],
276
332
  profile_types=profile_profile_type,
333
+ registration_types=profile_registration_type,
277
334
  state=profile_state,
278
335
  vendor_name=profile_vendor_name)
279
336
  ```
280
337
 
281
338
 
282
339
  :param str arch_type: A filter to return only profiles that match the given archType.
283
- :param str compartment_id: The OCID of the compartment that contains the resources to list.
340
+ :param str compartment_id: (Updatable) The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
284
341
  :param str display_name_contains: A filter to return resources that may partially match the given display name.
285
342
  :param Sequence[str] display_names: A filter to return resources that match the given display names.
286
- :param str os_family: A filter to return only profiles that match the given osFamily.
287
- :param str profile_id: The OCID of the registration profile.
288
- :param Sequence[str] profile_types: A filter to return registration profiles that match the given profileType.
289
- :param str state: A filter to return only registration profile whose lifecycleState matches the given lifecycleState.
290
- :param str vendor_name: A filter to return only profiles that match the given vendorName.
343
+ :param bool is_default_profile: A boolean variable that is used to list only the default profile resources.
344
+ :param bool is_service_provided_profile: A filter to return only service-provided profiles.
345
+ :param str os_family: A filter to return only resources that match the given operating system family.
346
+ :param str profile_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the registration profile. A filter used to return the specified profile.
347
+ :param Sequence[str] profile_types: A filter to return registration profiles that match the given profile type.
348
+ :param Sequence[str] registration_types: A filter to return profiles that match the given instance type.
349
+ :param str state: A filter to return only registration profiles in the given state.
350
+ :param str vendor_name: A filter to return only resources that match the given vendor name.
291
351
  """
292
352
  ...
@@ -0,0 +1,426 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from .. import _utilities
11
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetScheduledJobResult',
15
+ 'AwaitableGetScheduledJobResult',
16
+ 'get_scheduled_job',
17
+ 'get_scheduled_job_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetScheduledJobResult:
22
+ """
23
+ A collection of values returned by getScheduledJob.
24
+ """
25
+ def __init__(__self__, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, is_managed_by_autonomous_linux=None, is_restricted=None, is_subcompartment_included=None, lifecycle_stage_ids=None, locations=None, managed_compartment_ids=None, managed_instance_group_ids=None, managed_instance_ids=None, operations=None, recurring_rule=None, retry_intervals=None, schedule_type=None, scheduled_job_id=None, state=None, system_tags=None, time_created=None, time_last_execution=None, time_next_execution=None, time_updated=None, work_request_ids=None):
26
+ if compartment_id and not isinstance(compartment_id, str):
27
+ raise TypeError("Expected argument 'compartment_id' to be a str")
28
+ pulumi.set(__self__, "compartment_id", compartment_id)
29
+ if defined_tags and not isinstance(defined_tags, dict):
30
+ raise TypeError("Expected argument 'defined_tags' to be a dict")
31
+ pulumi.set(__self__, "defined_tags", defined_tags)
32
+ if description and not isinstance(description, str):
33
+ raise TypeError("Expected argument 'description' to be a str")
34
+ pulumi.set(__self__, "description", description)
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 freeform_tags and not isinstance(freeform_tags, dict):
39
+ raise TypeError("Expected argument 'freeform_tags' to be a dict")
40
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
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 is_managed_by_autonomous_linux and not isinstance(is_managed_by_autonomous_linux, bool):
45
+ raise TypeError("Expected argument 'is_managed_by_autonomous_linux' to be a bool")
46
+ pulumi.set(__self__, "is_managed_by_autonomous_linux", is_managed_by_autonomous_linux)
47
+ if is_restricted and not isinstance(is_restricted, bool):
48
+ raise TypeError("Expected argument 'is_restricted' to be a bool")
49
+ pulumi.set(__self__, "is_restricted", is_restricted)
50
+ if is_subcompartment_included and not isinstance(is_subcompartment_included, bool):
51
+ raise TypeError("Expected argument 'is_subcompartment_included' to be a bool")
52
+ pulumi.set(__self__, "is_subcompartment_included", is_subcompartment_included)
53
+ if lifecycle_stage_ids and not isinstance(lifecycle_stage_ids, list):
54
+ raise TypeError("Expected argument 'lifecycle_stage_ids' to be a list")
55
+ pulumi.set(__self__, "lifecycle_stage_ids", lifecycle_stage_ids)
56
+ if locations and not isinstance(locations, list):
57
+ raise TypeError("Expected argument 'locations' to be a list")
58
+ pulumi.set(__self__, "locations", locations)
59
+ if managed_compartment_ids and not isinstance(managed_compartment_ids, list):
60
+ raise TypeError("Expected argument 'managed_compartment_ids' to be a list")
61
+ pulumi.set(__self__, "managed_compartment_ids", managed_compartment_ids)
62
+ if managed_instance_group_ids and not isinstance(managed_instance_group_ids, list):
63
+ raise TypeError("Expected argument 'managed_instance_group_ids' to be a list")
64
+ pulumi.set(__self__, "managed_instance_group_ids", managed_instance_group_ids)
65
+ if managed_instance_ids and not isinstance(managed_instance_ids, list):
66
+ raise TypeError("Expected argument 'managed_instance_ids' to be a list")
67
+ pulumi.set(__self__, "managed_instance_ids", managed_instance_ids)
68
+ if operations and not isinstance(operations, list):
69
+ raise TypeError("Expected argument 'operations' to be a list")
70
+ pulumi.set(__self__, "operations", operations)
71
+ if recurring_rule and not isinstance(recurring_rule, str):
72
+ raise TypeError("Expected argument 'recurring_rule' to be a str")
73
+ pulumi.set(__self__, "recurring_rule", recurring_rule)
74
+ if retry_intervals and not isinstance(retry_intervals, list):
75
+ raise TypeError("Expected argument 'retry_intervals' to be a list")
76
+ pulumi.set(__self__, "retry_intervals", retry_intervals)
77
+ if schedule_type and not isinstance(schedule_type, str):
78
+ raise TypeError("Expected argument 'schedule_type' to be a str")
79
+ pulumi.set(__self__, "schedule_type", schedule_type)
80
+ if scheduled_job_id and not isinstance(scheduled_job_id, str):
81
+ raise TypeError("Expected argument 'scheduled_job_id' to be a str")
82
+ pulumi.set(__self__, "scheduled_job_id", scheduled_job_id)
83
+ if state and not isinstance(state, str):
84
+ raise TypeError("Expected argument 'state' to be a str")
85
+ pulumi.set(__self__, "state", state)
86
+ if system_tags and not isinstance(system_tags, dict):
87
+ raise TypeError("Expected argument 'system_tags' to be a dict")
88
+ pulumi.set(__self__, "system_tags", system_tags)
89
+ if time_created and not isinstance(time_created, str):
90
+ raise TypeError("Expected argument 'time_created' to be a str")
91
+ pulumi.set(__self__, "time_created", time_created)
92
+ if time_last_execution and not isinstance(time_last_execution, str):
93
+ raise TypeError("Expected argument 'time_last_execution' to be a str")
94
+ pulumi.set(__self__, "time_last_execution", time_last_execution)
95
+ if time_next_execution and not isinstance(time_next_execution, str):
96
+ raise TypeError("Expected argument 'time_next_execution' to be a str")
97
+ pulumi.set(__self__, "time_next_execution", time_next_execution)
98
+ if time_updated and not isinstance(time_updated, str):
99
+ raise TypeError("Expected argument 'time_updated' to be a str")
100
+ pulumi.set(__self__, "time_updated", time_updated)
101
+ if work_request_ids and not isinstance(work_request_ids, list):
102
+ raise TypeError("Expected argument 'work_request_ids' to be a list")
103
+ pulumi.set(__self__, "work_request_ids", work_request_ids)
104
+
105
+ @property
106
+ @pulumi.getter(name="compartmentId")
107
+ def compartment_id(self) -> str:
108
+ """
109
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
110
+ """
111
+ return pulumi.get(self, "compartment_id")
112
+
113
+ @property
114
+ @pulumi.getter(name="definedTags")
115
+ def defined_tags(self) -> Mapping[str, Any]:
116
+ """
117
+ Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}`
118
+ """
119
+ return pulumi.get(self, "defined_tags")
120
+
121
+ @property
122
+ @pulumi.getter
123
+ def description(self) -> str:
124
+ """
125
+ User-specified description for the scheduled job.
126
+ """
127
+ return pulumi.get(self, "description")
128
+
129
+ @property
130
+ @pulumi.getter(name="displayName")
131
+ def display_name(self) -> str:
132
+ """
133
+ User-friendly name for the scheduled job.
134
+ """
135
+ return pulumi.get(self, "display_name")
136
+
137
+ @property
138
+ @pulumi.getter(name="freeformTags")
139
+ def freeform_tags(self) -> Mapping[str, Any]:
140
+ """
141
+ 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"}`
142
+ """
143
+ return pulumi.get(self, "freeform_tags")
144
+
145
+ @property
146
+ @pulumi.getter
147
+ def id(self) -> str:
148
+ """
149
+ The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job.
150
+ """
151
+ return pulumi.get(self, "id")
152
+
153
+ @property
154
+ @pulumi.getter(name="isManagedByAutonomousLinux")
155
+ def is_managed_by_autonomous_linux(self) -> bool:
156
+ """
157
+ Indicates whether this scheduled job is managed by the Autonomous Linux service.
158
+ """
159
+ return pulumi.get(self, "is_managed_by_autonomous_linux")
160
+
161
+ @property
162
+ @pulumi.getter(name="isRestricted")
163
+ def is_restricted(self) -> bool:
164
+ """
165
+ Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
166
+ """
167
+ return pulumi.get(self, "is_restricted")
168
+
169
+ @property
170
+ @pulumi.getter(name="isSubcompartmentIncluded")
171
+ def is_subcompartment_included(self) -> bool:
172
+ """
173
+ Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
174
+ """
175
+ return pulumi.get(self, "is_subcompartment_included")
176
+
177
+ @property
178
+ @pulumi.getter(name="lifecycleStageIds")
179
+ def lifecycle_stage_ids(self) -> Sequence[str]:
180
+ """
181
+ The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and managedCompartmentIds.
182
+ """
183
+ return pulumi.get(self, "lifecycle_stage_ids")
184
+
185
+ @property
186
+ @pulumi.getter
187
+ def locations(self) -> Sequence[str]:
188
+ """
189
+ The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
190
+ """
191
+ return pulumi.get(self, "locations")
192
+
193
+ @property
194
+ @pulumi.getter(name="managedCompartmentIds")
195
+ def managed_compartment_ids(self) -> Sequence[str]:
196
+ """
197
+ The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedInstanceGroupIds, and lifecycleStageIds.
198
+ """
199
+ return pulumi.get(self, "managed_compartment_ids")
200
+
201
+ @property
202
+ @pulumi.getter(name="managedInstanceGroupIds")
203
+ def managed_instance_group_ids(self) -> Sequence[str]:
204
+ """
205
+ The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceIds, managedCompartmentIds, and lifecycleStageIds.
206
+ """
207
+ return pulumi.get(self, "managed_instance_group_ids")
208
+
209
+ @property
210
+ @pulumi.getter(name="managedInstanceIds")
211
+ def managed_instance_ids(self) -> Sequence[str]:
212
+ """
213
+ The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore this parameter is mutually exclusive with managedInstanceGroupIds, managedCompartmentIds, and lifecycleStageIds.
214
+ """
215
+ return pulumi.get(self, "managed_instance_ids")
216
+
217
+ @property
218
+ @pulumi.getter
219
+ def operations(self) -> Sequence['outputs.GetScheduledJobOperationResult']:
220
+ """
221
+ The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
222
+ * UPDATE_PACKAGES
223
+ * UPDATE_ALL
224
+ * UPDATE_SECURITY
225
+ * UPDATE_BUGFIX
226
+ * UPDATE_ENHANCEMENT
227
+ * UPDATE_OTHER
228
+ * UPDATE_KSPLICE_USERSPACE
229
+ * UPDATE_KSPLICE_KERNEL
230
+ """
231
+ return pulumi.get(self, "operations")
232
+
233
+ @property
234
+ @pulumi.getter(name="recurringRule")
235
+ def recurring_rule(self) -> str:
236
+ """
237
+ The frequency schedule for a recurring scheduled job.
238
+ """
239
+ return pulumi.get(self, "recurring_rule")
240
+
241
+ @property
242
+ @pulumi.getter(name="retryIntervals")
243
+ def retry_intervals(self) -> Sequence[int]:
244
+ """
245
+ The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
246
+ """
247
+ return pulumi.get(self, "retry_intervals")
248
+
249
+ @property
250
+ @pulumi.getter(name="scheduleType")
251
+ def schedule_type(self) -> str:
252
+ """
253
+ The type of scheduling frequency for the job.
254
+ """
255
+ return pulumi.get(self, "schedule_type")
256
+
257
+ @property
258
+ @pulumi.getter(name="scheduledJobId")
259
+ def scheduled_job_id(self) -> str:
260
+ return pulumi.get(self, "scheduled_job_id")
261
+
262
+ @property
263
+ @pulumi.getter
264
+ def state(self) -> str:
265
+ """
266
+ The current state of the scheduled job.
267
+ """
268
+ return pulumi.get(self, "state")
269
+
270
+ @property
271
+ @pulumi.getter(name="systemTags")
272
+ def system_tags(self) -> Mapping[str, Any]:
273
+ """
274
+ System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
275
+ """
276
+ return pulumi.get(self, "system_tags")
277
+
278
+ @property
279
+ @pulumi.getter(name="timeCreated")
280
+ def time_created(self) -> str:
281
+ """
282
+ The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
283
+ """
284
+ return pulumi.get(self, "time_created")
285
+
286
+ @property
287
+ @pulumi.getter(name="timeLastExecution")
288
+ def time_last_execution(self) -> str:
289
+ """
290
+ The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
291
+ """
292
+ return pulumi.get(self, "time_last_execution")
293
+
294
+ @property
295
+ @pulumi.getter(name="timeNextExecution")
296
+ def time_next_execution(self) -> str:
297
+ """
298
+ The time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
299
+ """
300
+ return pulumi.get(self, "time_next_execution")
301
+
302
+ @property
303
+ @pulumi.getter(name="timeUpdated")
304
+ def time_updated(self) -> str:
305
+ """
306
+ The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
307
+ """
308
+ return pulumi.get(self, "time_updated")
309
+
310
+ @property
311
+ @pulumi.getter(name="workRequestIds")
312
+ def work_request_ids(self) -> Sequence[str]:
313
+ """
314
+ The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job.
315
+ """
316
+ return pulumi.get(self, "work_request_ids")
317
+
318
+
319
+ class AwaitableGetScheduledJobResult(GetScheduledJobResult):
320
+ # pylint: disable=using-constant-test
321
+ def __await__(self):
322
+ if False:
323
+ yield self
324
+ return GetScheduledJobResult(
325
+ compartment_id=self.compartment_id,
326
+ defined_tags=self.defined_tags,
327
+ description=self.description,
328
+ display_name=self.display_name,
329
+ freeform_tags=self.freeform_tags,
330
+ id=self.id,
331
+ is_managed_by_autonomous_linux=self.is_managed_by_autonomous_linux,
332
+ is_restricted=self.is_restricted,
333
+ is_subcompartment_included=self.is_subcompartment_included,
334
+ lifecycle_stage_ids=self.lifecycle_stage_ids,
335
+ locations=self.locations,
336
+ managed_compartment_ids=self.managed_compartment_ids,
337
+ managed_instance_group_ids=self.managed_instance_group_ids,
338
+ managed_instance_ids=self.managed_instance_ids,
339
+ operations=self.operations,
340
+ recurring_rule=self.recurring_rule,
341
+ retry_intervals=self.retry_intervals,
342
+ schedule_type=self.schedule_type,
343
+ scheduled_job_id=self.scheduled_job_id,
344
+ state=self.state,
345
+ system_tags=self.system_tags,
346
+ time_created=self.time_created,
347
+ time_last_execution=self.time_last_execution,
348
+ time_next_execution=self.time_next_execution,
349
+ time_updated=self.time_updated,
350
+ work_request_ids=self.work_request_ids)
351
+
352
+
353
+ def get_scheduled_job(scheduled_job_id: Optional[str] = None,
354
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetScheduledJobResult:
355
+ """
356
+ This data source provides details about a specific Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service.
357
+
358
+ Gets information about the specified scheduled job.
359
+
360
+ ## Example Usage
361
+
362
+ ```python
363
+ import pulumi
364
+ import pulumi_oci as oci
365
+
366
+ test_scheduled_job = oci.OsManagementHub.get_scheduled_job(scheduled_job_id=test_scheduled_job_oci_os_management_hub_scheduled_job["id"])
367
+ ```
368
+
369
+
370
+ :param str scheduled_job_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job.
371
+ """
372
+ __args__ = dict()
373
+ __args__['scheduledJobId'] = scheduled_job_id
374
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
375
+ __ret__ = pulumi.runtime.invoke('oci:OsManagementHub/getScheduledJob:getScheduledJob', __args__, opts=opts, typ=GetScheduledJobResult).value
376
+
377
+ return AwaitableGetScheduledJobResult(
378
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
379
+ defined_tags=pulumi.get(__ret__, 'defined_tags'),
380
+ description=pulumi.get(__ret__, 'description'),
381
+ display_name=pulumi.get(__ret__, 'display_name'),
382
+ freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
383
+ id=pulumi.get(__ret__, 'id'),
384
+ is_managed_by_autonomous_linux=pulumi.get(__ret__, 'is_managed_by_autonomous_linux'),
385
+ is_restricted=pulumi.get(__ret__, 'is_restricted'),
386
+ is_subcompartment_included=pulumi.get(__ret__, 'is_subcompartment_included'),
387
+ lifecycle_stage_ids=pulumi.get(__ret__, 'lifecycle_stage_ids'),
388
+ locations=pulumi.get(__ret__, 'locations'),
389
+ managed_compartment_ids=pulumi.get(__ret__, 'managed_compartment_ids'),
390
+ managed_instance_group_ids=pulumi.get(__ret__, 'managed_instance_group_ids'),
391
+ managed_instance_ids=pulumi.get(__ret__, 'managed_instance_ids'),
392
+ operations=pulumi.get(__ret__, 'operations'),
393
+ recurring_rule=pulumi.get(__ret__, 'recurring_rule'),
394
+ retry_intervals=pulumi.get(__ret__, 'retry_intervals'),
395
+ schedule_type=pulumi.get(__ret__, 'schedule_type'),
396
+ scheduled_job_id=pulumi.get(__ret__, 'scheduled_job_id'),
397
+ state=pulumi.get(__ret__, 'state'),
398
+ system_tags=pulumi.get(__ret__, 'system_tags'),
399
+ time_created=pulumi.get(__ret__, 'time_created'),
400
+ time_last_execution=pulumi.get(__ret__, 'time_last_execution'),
401
+ time_next_execution=pulumi.get(__ret__, 'time_next_execution'),
402
+ time_updated=pulumi.get(__ret__, 'time_updated'),
403
+ work_request_ids=pulumi.get(__ret__, 'work_request_ids'))
404
+
405
+
406
+ @_utilities.lift_output_func(get_scheduled_job)
407
+ def get_scheduled_job_output(scheduled_job_id: Optional[pulumi.Input[str]] = None,
408
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetScheduledJobResult]:
409
+ """
410
+ This data source provides details about a specific Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service.
411
+
412
+ Gets information about the specified scheduled job.
413
+
414
+ ## Example Usage
415
+
416
+ ```python
417
+ import pulumi
418
+ import pulumi_oci as oci
419
+
420
+ test_scheduled_job = oci.OsManagementHub.get_scheduled_job(scheduled_job_id=test_scheduled_job_oci_os_management_hub_scheduled_job["id"])
421
+ ```
422
+
423
+
424
+ :param str scheduled_job_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the scheduled job.
425
+ """
426
+ ...