pulumi-oci 2.6.0__py3-none-any.whl → 2.6.0a1722924801__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 (62) hide show
  1. pulumi_oci/__init__.py +0 -32
  2. pulumi_oci/bigdataservice/_inputs.py +14 -157
  3. pulumi_oci/bigdataservice/bds_instance.py +0 -128
  4. pulumi_oci/bigdataservice/bds_instance_patch_action.py +3 -64
  5. pulumi_oci/bigdataservice/get_bds_instance.py +1 -31
  6. pulumi_oci/bigdataservice/outputs.py +30 -257
  7. pulumi_oci/devops/__init__.py +0 -6
  8. pulumi_oci/devops/_inputs.py +32 -531
  9. pulumi_oci/devops/get_build_runs.py +5 -0
  10. pulumi_oci/devops/get_repositories.py +1 -1
  11. pulumi_oci/devops/get_repository.py +4 -17
  12. pulumi_oci/devops/get_repository_diffs.py +3 -20
  13. pulumi_oci/devops/get_repository_ref.py +2 -2
  14. pulumi_oci/devops/get_triggers.py +5 -0
  15. pulumi_oci/devops/outputs.py +162 -1198
  16. pulumi_oci/devops/repository.py +75 -66
  17. pulumi_oci/devops/repository_ref.py +2 -2
  18. pulumi_oci/jms/__init__.py +0 -4
  19. pulumi_oci/jms/_inputs.py +0 -80
  20. pulumi_oci/jms/get_fleet_blocklists.py +2 -2
  21. pulumi_oci/jms/get_fleet_crypto_analysis_result.py +3 -29
  22. pulumi_oci/jms/get_fleet_crypto_analysis_results.py +3 -97
  23. pulumi_oci/jms/get_fleet_export_setting.py +3 -3
  24. pulumi_oci/jms/get_fleet_export_status.py +2 -2
  25. pulumi_oci/jms/get_fleet_java_migration_analysis_result.py +2 -2
  26. pulumi_oci/jms/get_fleet_java_migration_analysis_results.py +5 -45
  27. pulumi_oci/jms/get_fleet_performance_tuning_analysis_result.py +4 -4
  28. pulumi_oci/jms/get_fleet_performance_tuning_analysis_results.py +5 -25
  29. pulumi_oci/jms/get_fleets.py +2 -2
  30. pulumi_oci/jms/get_installation_site.py +4 -4
  31. pulumi_oci/jms/get_installation_sites.py +4 -4
  32. pulumi_oci/jms/get_java_downloads_java_download_tokens.py +2 -2
  33. pulumi_oci/jms/get_java_downloads_java_license_acceptance_records.py +2 -2
  34. pulumi_oci/jms/get_java_family.py +1 -14
  35. pulumi_oci/jms/outputs.py +32 -488
  36. pulumi_oci/osmanagementhub/get_software_source.py +1 -19
  37. pulumi_oci/osmanagementhub/software_source.py +0 -82
  38. pulumi_oci/psql/_inputs.py +4 -8
  39. pulumi_oci/psql/backup.py +4 -4
  40. pulumi_oci/psql/configuration.py +38 -141
  41. pulumi_oci/psql/db_system.py +55 -53
  42. pulumi_oci/psql/get_backup.py +1 -1
  43. pulumi_oci/psql/get_configuration.py +1 -27
  44. pulumi_oci/psql/get_configurations.py +2 -2
  45. pulumi_oci/psql/get_default_configuration.py +2 -15
  46. pulumi_oci/psql/get_default_configurations.py +2 -2
  47. pulumi_oci/psql/outputs.py +13 -176
  48. pulumi_oci/pulumi-plugin.json +1 -1
  49. {pulumi_oci-2.6.0.dist-info → pulumi_oci-2.6.0a1722924801.dist-info}/METADATA +1 -1
  50. {pulumi_oci-2.6.0.dist-info → pulumi_oci-2.6.0a1722924801.dist-info}/RECORD +52 -62
  51. pulumi_oci/devops/get_project_repository_setting.py +0 -129
  52. pulumi_oci/devops/get_repository_protected_branches.py +0 -150
  53. pulumi_oci/devops/get_repository_setting.py +0 -142
  54. pulumi_oci/devops/project_repository_setting.py +0 -338
  55. pulumi_oci/devops/repository_protected_branch_management.py +0 -333
  56. pulumi_oci/devops/repository_setting.py +0 -391
  57. pulumi_oci/jms/get_agent_installers.py +0 -190
  58. pulumi_oci/jms/get_jms_plugin.py +0 -313
  59. pulumi_oci/jms/get_jms_plugins.py +0 -291
  60. pulumi_oci/jms/jms_plugin.py +0 -731
  61. {pulumi_oci-2.6.0.dist-info → pulumi_oci-2.6.0a1722924801.dist-info}/WHEEL +0 -0
  62. {pulumi_oci-2.6.0.dist-info → pulumi_oci-2.6.0a1722924801.dist-info}/top_level.txt +0 -0
@@ -1,338 +0,0 @@
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
- from ._inputs import *
13
-
14
- __all__ = ['ProjectRepositorySettingArgs', 'ProjectRepositorySetting']
15
-
16
- @pulumi.input_type
17
- class ProjectRepositorySettingArgs:
18
- def __init__(__self__, *,
19
- project_id: pulumi.Input[str],
20
- approval_rules: Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']] = None,
21
- merge_settings: Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']] = None):
22
- """
23
- The set of arguments for constructing a ProjectRepositorySetting resource.
24
- :param pulumi.Input[str] project_id: Unique project identifier.
25
-
26
-
27
- ** IMPORTANT **
28
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
29
- :param pulumi.Input['ProjectRepositorySettingApprovalRulesArgs'] approval_rules: (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
30
- :param pulumi.Input['ProjectRepositorySettingMergeSettingsArgs'] merge_settings: (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
31
- """
32
- pulumi.set(__self__, "project_id", project_id)
33
- if approval_rules is not None:
34
- pulumi.set(__self__, "approval_rules", approval_rules)
35
- if merge_settings is not None:
36
- pulumi.set(__self__, "merge_settings", merge_settings)
37
-
38
- @property
39
- @pulumi.getter(name="projectId")
40
- def project_id(self) -> pulumi.Input[str]:
41
- """
42
- Unique project identifier.
43
-
44
-
45
- ** IMPORTANT **
46
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
47
- """
48
- return pulumi.get(self, "project_id")
49
-
50
- @project_id.setter
51
- def project_id(self, value: pulumi.Input[str]):
52
- pulumi.set(self, "project_id", value)
53
-
54
- @property
55
- @pulumi.getter(name="approvalRules")
56
- def approval_rules(self) -> Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']]:
57
- """
58
- (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
59
- """
60
- return pulumi.get(self, "approval_rules")
61
-
62
- @approval_rules.setter
63
- def approval_rules(self, value: Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']]):
64
- pulumi.set(self, "approval_rules", value)
65
-
66
- @property
67
- @pulumi.getter(name="mergeSettings")
68
- def merge_settings(self) -> Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']]:
69
- """
70
- (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
71
- """
72
- return pulumi.get(self, "merge_settings")
73
-
74
- @merge_settings.setter
75
- def merge_settings(self, value: Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']]):
76
- pulumi.set(self, "merge_settings", value)
77
-
78
-
79
- @pulumi.input_type
80
- class _ProjectRepositorySettingState:
81
- def __init__(__self__, *,
82
- approval_rules: Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']] = None,
83
- merge_settings: Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']] = None,
84
- project_id: Optional[pulumi.Input[str]] = None):
85
- """
86
- Input properties used for looking up and filtering ProjectRepositorySetting resources.
87
- :param pulumi.Input['ProjectRepositorySettingApprovalRulesArgs'] approval_rules: (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
88
- :param pulumi.Input['ProjectRepositorySettingMergeSettingsArgs'] merge_settings: (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
89
- :param pulumi.Input[str] project_id: Unique project identifier.
90
-
91
-
92
- ** IMPORTANT **
93
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
94
- """
95
- if approval_rules is not None:
96
- pulumi.set(__self__, "approval_rules", approval_rules)
97
- if merge_settings is not None:
98
- pulumi.set(__self__, "merge_settings", merge_settings)
99
- if project_id is not None:
100
- pulumi.set(__self__, "project_id", project_id)
101
-
102
- @property
103
- @pulumi.getter(name="approvalRules")
104
- def approval_rules(self) -> Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']]:
105
- """
106
- (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
107
- """
108
- return pulumi.get(self, "approval_rules")
109
-
110
- @approval_rules.setter
111
- def approval_rules(self, value: Optional[pulumi.Input['ProjectRepositorySettingApprovalRulesArgs']]):
112
- pulumi.set(self, "approval_rules", value)
113
-
114
- @property
115
- @pulumi.getter(name="mergeSettings")
116
- def merge_settings(self) -> Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']]:
117
- """
118
- (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
119
- """
120
- return pulumi.get(self, "merge_settings")
121
-
122
- @merge_settings.setter
123
- def merge_settings(self, value: Optional[pulumi.Input['ProjectRepositorySettingMergeSettingsArgs']]):
124
- pulumi.set(self, "merge_settings", value)
125
-
126
- @property
127
- @pulumi.getter(name="projectId")
128
- def project_id(self) -> Optional[pulumi.Input[str]]:
129
- """
130
- Unique project identifier.
131
-
132
-
133
- ** IMPORTANT **
134
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
135
- """
136
- return pulumi.get(self, "project_id")
137
-
138
- @project_id.setter
139
- def project_id(self, value: Optional[pulumi.Input[str]]):
140
- pulumi.set(self, "project_id", value)
141
-
142
-
143
- class ProjectRepositorySetting(pulumi.CustomResource):
144
- @overload
145
- def __init__(__self__,
146
- resource_name: str,
147
- opts: Optional[pulumi.ResourceOptions] = None,
148
- approval_rules: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingApprovalRulesArgs']]] = None,
149
- merge_settings: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingMergeSettingsArgs']]] = None,
150
- project_id: Optional[pulumi.Input[str]] = None,
151
- __props__=None):
152
- """
153
- This resource provides the Project Repository Setting resource in Oracle Cloud Infrastructure Devops service.
154
-
155
- Updates the repository settings for a project.
156
-
157
- ## Example Usage
158
-
159
- ```python
160
- import pulumi
161
- import pulumi_oci as oci
162
-
163
- test_project_repository_setting = oci.dev_ops.ProjectRepositorySetting("test_project_repository_setting",
164
- project_id=test_project["id"],
165
- approval_rules=oci.dev_ops.ProjectRepositorySettingApprovalRulesArgs(
166
- items=[oci.dev_ops.ProjectRepositorySettingApprovalRulesItemArgs(
167
- min_approvals_count=project_repository_setting_approval_rules_items_min_approvals_count,
168
- name=project_repository_setting_approval_rules_items_name,
169
- destination_branch=project_repository_setting_approval_rules_items_destination_branch,
170
- reviewers=[oci.dev_ops.ProjectRepositorySettingApprovalRulesItemReviewerArgs(
171
- principal_id=test_principal["id"],
172
- )],
173
- )],
174
- ),
175
- merge_settings=oci.dev_ops.ProjectRepositorySettingMergeSettingsArgs(
176
- allowed_merge_strategies=project_repository_setting_merge_settings_allowed_merge_strategies,
177
- default_merge_strategy=project_repository_setting_merge_settings_default_merge_strategy,
178
- ))
179
- ```
180
-
181
- ## Import
182
-
183
- ProjectRepositorySettings can be imported using the `id`, e.g.
184
-
185
- ```sh
186
- $ pulumi import oci:DevOps/projectRepositorySetting:ProjectRepositorySetting test_project_repository_setting "projects/{projectId}/repositorySettings"
187
- ```
188
-
189
- :param str resource_name: The name of the resource.
190
- :param pulumi.ResourceOptions opts: Options for the resource.
191
- :param pulumi.Input[pulumi.InputType['ProjectRepositorySettingApprovalRulesArgs']] approval_rules: (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
192
- :param pulumi.Input[pulumi.InputType['ProjectRepositorySettingMergeSettingsArgs']] merge_settings: (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
193
- :param pulumi.Input[str] project_id: Unique project identifier.
194
-
195
-
196
- ** IMPORTANT **
197
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
198
- """
199
- ...
200
- @overload
201
- def __init__(__self__,
202
- resource_name: str,
203
- args: ProjectRepositorySettingArgs,
204
- opts: Optional[pulumi.ResourceOptions] = None):
205
- """
206
- This resource provides the Project Repository Setting resource in Oracle Cloud Infrastructure Devops service.
207
-
208
- Updates the repository settings for a project.
209
-
210
- ## Example Usage
211
-
212
- ```python
213
- import pulumi
214
- import pulumi_oci as oci
215
-
216
- test_project_repository_setting = oci.dev_ops.ProjectRepositorySetting("test_project_repository_setting",
217
- project_id=test_project["id"],
218
- approval_rules=oci.dev_ops.ProjectRepositorySettingApprovalRulesArgs(
219
- items=[oci.dev_ops.ProjectRepositorySettingApprovalRulesItemArgs(
220
- min_approvals_count=project_repository_setting_approval_rules_items_min_approvals_count,
221
- name=project_repository_setting_approval_rules_items_name,
222
- destination_branch=project_repository_setting_approval_rules_items_destination_branch,
223
- reviewers=[oci.dev_ops.ProjectRepositorySettingApprovalRulesItemReviewerArgs(
224
- principal_id=test_principal["id"],
225
- )],
226
- )],
227
- ),
228
- merge_settings=oci.dev_ops.ProjectRepositorySettingMergeSettingsArgs(
229
- allowed_merge_strategies=project_repository_setting_merge_settings_allowed_merge_strategies,
230
- default_merge_strategy=project_repository_setting_merge_settings_default_merge_strategy,
231
- ))
232
- ```
233
-
234
- ## Import
235
-
236
- ProjectRepositorySettings can be imported using the `id`, e.g.
237
-
238
- ```sh
239
- $ pulumi import oci:DevOps/projectRepositorySetting:ProjectRepositorySetting test_project_repository_setting "projects/{projectId}/repositorySettings"
240
- ```
241
-
242
- :param str resource_name: The name of the resource.
243
- :param ProjectRepositorySettingArgs args: The arguments to use to populate this resource's properties.
244
- :param pulumi.ResourceOptions opts: Options for the resource.
245
- """
246
- ...
247
- def __init__(__self__, resource_name: str, *args, **kwargs):
248
- resource_args, opts = _utilities.get_resource_args_opts(ProjectRepositorySettingArgs, pulumi.ResourceOptions, *args, **kwargs)
249
- if resource_args is not None:
250
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
251
- else:
252
- __self__._internal_init(resource_name, *args, **kwargs)
253
-
254
- def _internal_init(__self__,
255
- resource_name: str,
256
- opts: Optional[pulumi.ResourceOptions] = None,
257
- approval_rules: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingApprovalRulesArgs']]] = None,
258
- merge_settings: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingMergeSettingsArgs']]] = None,
259
- project_id: Optional[pulumi.Input[str]] = None,
260
- __props__=None):
261
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
262
- if not isinstance(opts, pulumi.ResourceOptions):
263
- raise TypeError('Expected resource options to be a ResourceOptions instance')
264
- if opts.id is None:
265
- if __props__ is not None:
266
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
267
- __props__ = ProjectRepositorySettingArgs.__new__(ProjectRepositorySettingArgs)
268
-
269
- __props__.__dict__["approval_rules"] = approval_rules
270
- __props__.__dict__["merge_settings"] = merge_settings
271
- if project_id is None and not opts.urn:
272
- raise TypeError("Missing required property 'project_id'")
273
- __props__.__dict__["project_id"] = project_id
274
- super(ProjectRepositorySetting, __self__).__init__(
275
- 'oci:DevOps/projectRepositorySetting:ProjectRepositorySetting',
276
- resource_name,
277
- __props__,
278
- opts)
279
-
280
- @staticmethod
281
- def get(resource_name: str,
282
- id: pulumi.Input[str],
283
- opts: Optional[pulumi.ResourceOptions] = None,
284
- approval_rules: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingApprovalRulesArgs']]] = None,
285
- merge_settings: Optional[pulumi.Input[pulumi.InputType['ProjectRepositorySettingMergeSettingsArgs']]] = None,
286
- project_id: Optional[pulumi.Input[str]] = None) -> 'ProjectRepositorySetting':
287
- """
288
- Get an existing ProjectRepositorySetting resource's state with the given name, id, and optional extra
289
- properties used to qualify the lookup.
290
-
291
- :param str resource_name: The unique name of the resulting resource.
292
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
293
- :param pulumi.ResourceOptions opts: Options for the resource.
294
- :param pulumi.Input[pulumi.InputType['ProjectRepositorySettingApprovalRulesArgs']] approval_rules: (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
295
- :param pulumi.Input[pulumi.InputType['ProjectRepositorySettingMergeSettingsArgs']] merge_settings: (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
296
- :param pulumi.Input[str] project_id: Unique project identifier.
297
-
298
-
299
- ** IMPORTANT **
300
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
301
- """
302
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
303
-
304
- __props__ = _ProjectRepositorySettingState.__new__(_ProjectRepositorySettingState)
305
-
306
- __props__.__dict__["approval_rules"] = approval_rules
307
- __props__.__dict__["merge_settings"] = merge_settings
308
- __props__.__dict__["project_id"] = project_id
309
- return ProjectRepositorySetting(resource_name, opts=opts, __props__=__props__)
310
-
311
- @property
312
- @pulumi.getter(name="approvalRules")
313
- def approval_rules(self) -> pulumi.Output['outputs.ProjectRepositorySettingApprovalRules']:
314
- """
315
- (Updatable) List of approval rules which must be statisfied before pull requests which match the rules can be merged
316
- """
317
- return pulumi.get(self, "approval_rules")
318
-
319
- @property
320
- @pulumi.getter(name="mergeSettings")
321
- def merge_settings(self) -> pulumi.Output['outputs.ProjectRepositorySettingMergeSettings']:
322
- """
323
- (Updatable) Enabled and disabled merge strategies for a project or repository, also contains a default strategy.
324
- """
325
- return pulumi.get(self, "merge_settings")
326
-
327
- @property
328
- @pulumi.getter(name="projectId")
329
- def project_id(self) -> pulumi.Output[str]:
330
- """
331
- Unique project identifier.
332
-
333
-
334
- ** IMPORTANT **
335
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
336
- """
337
- return pulumi.get(self, "project_id")
338
-
@@ -1,333 +0,0 @@
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
-
12
- __all__ = ['RepositoryProtectedBranchManagementArgs', 'RepositoryProtectedBranchManagement']
13
-
14
- @pulumi.input_type
15
- class RepositoryProtectedBranchManagementArgs:
16
- def __init__(__self__, *,
17
- branch_name: pulumi.Input[str],
18
- repository_id: pulumi.Input[str],
19
- protection_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
20
- """
21
- The set of arguments for constructing a RepositoryProtectedBranchManagement resource.
22
- :param pulumi.Input[str] branch_name: Name of a branch to protect.
23
- :param pulumi.Input[str] repository_id: Unique repository identifier.
24
-
25
-
26
- ** IMPORTANT **
27
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
28
- :param pulumi.Input[Sequence[pulumi.Input[str]]] protection_levels: Level of protection to add on a branch.
29
- """
30
- pulumi.set(__self__, "branch_name", branch_name)
31
- pulumi.set(__self__, "repository_id", repository_id)
32
- if protection_levels is not None:
33
- pulumi.set(__self__, "protection_levels", protection_levels)
34
-
35
- @property
36
- @pulumi.getter(name="branchName")
37
- def branch_name(self) -> pulumi.Input[str]:
38
- """
39
- Name of a branch to protect.
40
- """
41
- return pulumi.get(self, "branch_name")
42
-
43
- @branch_name.setter
44
- def branch_name(self, value: pulumi.Input[str]):
45
- pulumi.set(self, "branch_name", value)
46
-
47
- @property
48
- @pulumi.getter(name="repositoryId")
49
- def repository_id(self) -> pulumi.Input[str]:
50
- """
51
- Unique repository identifier.
52
-
53
-
54
- ** IMPORTANT **
55
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
56
- """
57
- return pulumi.get(self, "repository_id")
58
-
59
- @repository_id.setter
60
- def repository_id(self, value: pulumi.Input[str]):
61
- pulumi.set(self, "repository_id", value)
62
-
63
- @property
64
- @pulumi.getter(name="protectionLevels")
65
- def protection_levels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
66
- """
67
- Level of protection to add on a branch.
68
- """
69
- return pulumi.get(self, "protection_levels")
70
-
71
- @protection_levels.setter
72
- def protection_levels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
73
- pulumi.set(self, "protection_levels", value)
74
-
75
-
76
- @pulumi.input_type
77
- class _RepositoryProtectedBranchManagementState:
78
- def __init__(__self__, *,
79
- branch_name: Optional[pulumi.Input[str]] = None,
80
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
81
- protection_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
82
- repository_id: Optional[pulumi.Input[str]] = None):
83
- """
84
- Input properties used for looking up and filtering RepositoryProtectedBranchManagement resources.
85
- :param pulumi.Input[str] branch_name: Name of a branch to protect.
86
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
87
- :param pulumi.Input[Sequence[pulumi.Input[str]]] protection_levels: Level of protection to add on a branch.
88
- :param pulumi.Input[str] repository_id: Unique repository identifier.
89
-
90
-
91
- ** IMPORTANT **
92
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
93
- """
94
- if branch_name is not None:
95
- pulumi.set(__self__, "branch_name", branch_name)
96
- if freeform_tags is not None:
97
- pulumi.set(__self__, "freeform_tags", freeform_tags)
98
- if protection_levels is not None:
99
- pulumi.set(__self__, "protection_levels", protection_levels)
100
- if repository_id is not None:
101
- pulumi.set(__self__, "repository_id", repository_id)
102
-
103
- @property
104
- @pulumi.getter(name="branchName")
105
- def branch_name(self) -> Optional[pulumi.Input[str]]:
106
- """
107
- Name of a branch to protect.
108
- """
109
- return pulumi.get(self, "branch_name")
110
-
111
- @branch_name.setter
112
- def branch_name(self, value: Optional[pulumi.Input[str]]):
113
- pulumi.set(self, "branch_name", value)
114
-
115
- @property
116
- @pulumi.getter(name="freeformTags")
117
- def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
118
- """
119
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
120
- """
121
- return pulumi.get(self, "freeform_tags")
122
-
123
- @freeform_tags.setter
124
- def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
125
- pulumi.set(self, "freeform_tags", value)
126
-
127
- @property
128
- @pulumi.getter(name="protectionLevels")
129
- def protection_levels(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
130
- """
131
- Level of protection to add on a branch.
132
- """
133
- return pulumi.get(self, "protection_levels")
134
-
135
- @protection_levels.setter
136
- def protection_levels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
137
- pulumi.set(self, "protection_levels", value)
138
-
139
- @property
140
- @pulumi.getter(name="repositoryId")
141
- def repository_id(self) -> Optional[pulumi.Input[str]]:
142
- """
143
- Unique repository identifier.
144
-
145
-
146
- ** IMPORTANT **
147
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
148
- """
149
- return pulumi.get(self, "repository_id")
150
-
151
- @repository_id.setter
152
- def repository_id(self, value: Optional[pulumi.Input[str]]):
153
- pulumi.set(self, "repository_id", value)
154
-
155
-
156
- class RepositoryProtectedBranchManagement(pulumi.CustomResource):
157
- @overload
158
- def __init__(__self__,
159
- resource_name: str,
160
- opts: Optional[pulumi.ResourceOptions] = None,
161
- branch_name: Optional[pulumi.Input[str]] = None,
162
- protection_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
163
- repository_id: Optional[pulumi.Input[str]] = None,
164
- __props__=None):
165
- """
166
- This resource provides the Repository Protected Branch Management resource in Oracle Cloud Infrastructure Devops service.
167
-
168
- Creates a restriction on a branch that prevents certain actions on it.
169
-
170
- ## Example Usage
171
-
172
- ```python
173
- import pulumi
174
- import pulumi_oci as oci
175
-
176
- test_repository_protected_branch_management = oci.dev_ops.RepositoryProtectedBranchManagement("test_repository_protected_branch_management",
177
- branch_name=repository_protected_branch_management_branch_name,
178
- repository_id=test_repository["id"],
179
- protection_levels=repository_protected_branch_management_protection_levels)
180
- ```
181
-
182
- ## Import
183
-
184
- Import is not supported for this resource.
185
-
186
- :param str resource_name: The name of the resource.
187
- :param pulumi.ResourceOptions opts: Options for the resource.
188
- :param pulumi.Input[str] branch_name: Name of a branch to protect.
189
- :param pulumi.Input[Sequence[pulumi.Input[str]]] protection_levels: Level of protection to add on a branch.
190
- :param pulumi.Input[str] repository_id: Unique repository identifier.
191
-
192
-
193
- ** IMPORTANT **
194
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
195
- """
196
- ...
197
- @overload
198
- def __init__(__self__,
199
- resource_name: str,
200
- args: RepositoryProtectedBranchManagementArgs,
201
- opts: Optional[pulumi.ResourceOptions] = None):
202
- """
203
- This resource provides the Repository Protected Branch Management resource in Oracle Cloud Infrastructure Devops service.
204
-
205
- Creates a restriction on a branch that prevents certain actions on it.
206
-
207
- ## Example Usage
208
-
209
- ```python
210
- import pulumi
211
- import pulumi_oci as oci
212
-
213
- test_repository_protected_branch_management = oci.dev_ops.RepositoryProtectedBranchManagement("test_repository_protected_branch_management",
214
- branch_name=repository_protected_branch_management_branch_name,
215
- repository_id=test_repository["id"],
216
- protection_levels=repository_protected_branch_management_protection_levels)
217
- ```
218
-
219
- ## Import
220
-
221
- Import is not supported for this resource.
222
-
223
- :param str resource_name: The name of the resource.
224
- :param RepositoryProtectedBranchManagementArgs args: The arguments to use to populate this resource's properties.
225
- :param pulumi.ResourceOptions opts: Options for the resource.
226
- """
227
- ...
228
- def __init__(__self__, resource_name: str, *args, **kwargs):
229
- resource_args, opts = _utilities.get_resource_args_opts(RepositoryProtectedBranchManagementArgs, pulumi.ResourceOptions, *args, **kwargs)
230
- if resource_args is not None:
231
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
232
- else:
233
- __self__._internal_init(resource_name, *args, **kwargs)
234
-
235
- def _internal_init(__self__,
236
- resource_name: str,
237
- opts: Optional[pulumi.ResourceOptions] = None,
238
- branch_name: Optional[pulumi.Input[str]] = None,
239
- protection_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
240
- repository_id: Optional[pulumi.Input[str]] = None,
241
- __props__=None):
242
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
243
- if not isinstance(opts, pulumi.ResourceOptions):
244
- raise TypeError('Expected resource options to be a ResourceOptions instance')
245
- if opts.id is None:
246
- if __props__ is not None:
247
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
248
- __props__ = RepositoryProtectedBranchManagementArgs.__new__(RepositoryProtectedBranchManagementArgs)
249
-
250
- if branch_name is None and not opts.urn:
251
- raise TypeError("Missing required property 'branch_name'")
252
- __props__.__dict__["branch_name"] = branch_name
253
- __props__.__dict__["protection_levels"] = protection_levels
254
- if repository_id is None and not opts.urn:
255
- raise TypeError("Missing required property 'repository_id'")
256
- __props__.__dict__["repository_id"] = repository_id
257
- __props__.__dict__["freeform_tags"] = None
258
- super(RepositoryProtectedBranchManagement, __self__).__init__(
259
- 'oci:DevOps/repositoryProtectedBranchManagement:RepositoryProtectedBranchManagement',
260
- resource_name,
261
- __props__,
262
- opts)
263
-
264
- @staticmethod
265
- def get(resource_name: str,
266
- id: pulumi.Input[str],
267
- opts: Optional[pulumi.ResourceOptions] = None,
268
- branch_name: Optional[pulumi.Input[str]] = None,
269
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
270
- protection_levels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
271
- repository_id: Optional[pulumi.Input[str]] = None) -> 'RepositoryProtectedBranchManagement':
272
- """
273
- Get an existing RepositoryProtectedBranchManagement resource's state with the given name, id, and optional extra
274
- properties used to qualify the lookup.
275
-
276
- :param str resource_name: The unique name of the resulting resource.
277
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
278
- :param pulumi.ResourceOptions opts: Options for the resource.
279
- :param pulumi.Input[str] branch_name: Name of a branch to protect.
280
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
281
- :param pulumi.Input[Sequence[pulumi.Input[str]]] protection_levels: Level of protection to add on a branch.
282
- :param pulumi.Input[str] repository_id: Unique repository identifier.
283
-
284
-
285
- ** IMPORTANT **
286
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
287
- """
288
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
289
-
290
- __props__ = _RepositoryProtectedBranchManagementState.__new__(_RepositoryProtectedBranchManagementState)
291
-
292
- __props__.__dict__["branch_name"] = branch_name
293
- __props__.__dict__["freeform_tags"] = freeform_tags
294
- __props__.__dict__["protection_levels"] = protection_levels
295
- __props__.__dict__["repository_id"] = repository_id
296
- return RepositoryProtectedBranchManagement(resource_name, opts=opts, __props__=__props__)
297
-
298
- @property
299
- @pulumi.getter(name="branchName")
300
- def branch_name(self) -> pulumi.Output[str]:
301
- """
302
- Name of a branch to protect.
303
- """
304
- return pulumi.get(self, "branch_name")
305
-
306
- @property
307
- @pulumi.getter(name="freeformTags")
308
- def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
309
- """
310
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"bar-key": "value"}`
311
- """
312
- return pulumi.get(self, "freeform_tags")
313
-
314
- @property
315
- @pulumi.getter(name="protectionLevels")
316
- def protection_levels(self) -> pulumi.Output[Sequence[str]]:
317
- """
318
- Level of protection to add on a branch.
319
- """
320
- return pulumi.get(self, "protection_levels")
321
-
322
- @property
323
- @pulumi.getter(name="repositoryId")
324
- def repository_id(self) -> pulumi.Output[str]:
325
- """
326
- Unique repository identifier.
327
-
328
-
329
- ** IMPORTANT **
330
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
331
- """
332
- return pulumi.get(self, "repository_id")
333
-