pulumi-azure-native 2.44.0__py3-none-any.whl → 2.44.0a1717427766__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.

Potentially problematic release.


This version of pulumi-azure-native might be problematic. Click here for more details.

Files changed (189) hide show
  1. pulumi_azure_native/__init__.py +5 -69
  2. pulumi_azure_native/appcomplianceautomation/__init__.py +0 -14
  3. pulumi_azure_native/appcomplianceautomation/_inputs.py +0 -40
  4. pulumi_azure_native/appcomplianceautomation/get_report.py +0 -4
  5. pulumi_azure_native/appcomplianceautomation/outputs.py +0 -226
  6. pulumi_azure_native/appcomplianceautomation/report.py +1 -5
  7. pulumi_azure_native/appcomplianceautomation/v20221116preview/report.py +1 -1
  8. pulumi_azure_native/authorization/__init__.py +2 -0
  9. pulumi_azure_native/authorization/_enums.py +70 -0
  10. pulumi_azure_native/authorization/_inputs.py +838 -0
  11. pulumi_azure_native/authorization/get_role_management_policy.py +228 -0
  12. pulumi_azure_native/authorization/outputs.py +88 -0
  13. pulumi_azure_native/authorization/role_management_policy.py +327 -0
  14. pulumi_azure_native/authorization/v20201001/__init__.py +4 -0
  15. pulumi_azure_native/authorization/v20201001/_enums.py +78 -0
  16. pulumi_azure_native/authorization/v20201001/_inputs.py +853 -0
  17. pulumi_azure_native/authorization/v20201001/get_role_management_policy.py +222 -0
  18. pulumi_azure_native/authorization/v20201001/outputs.py +89 -0
  19. pulumi_azure_native/authorization/v20201001/role_management_policy.py +321 -0
  20. pulumi_azure_native/authorization/v20201001preview/__init__.py +4 -0
  21. pulumi_azure_native/authorization/v20201001preview/_enums.py +78 -0
  22. pulumi_azure_native/authorization/v20201001preview/_inputs.py +853 -0
  23. pulumi_azure_native/authorization/v20201001preview/get_role_management_policy.py +222 -0
  24. pulumi_azure_native/authorization/v20201001preview/outputs.py +959 -0
  25. pulumi_azure_native/authorization/v20201001preview/role_management_policy.py +321 -0
  26. pulumi_azure_native/devhub/__init__.py +0 -5
  27. pulumi_azure_native/devhub/_inputs.py +0 -190
  28. pulumi_azure_native/devhub/get_git_hub_o_auth.py +2 -2
  29. pulumi_azure_native/devhub/get_workflow.py +2 -2
  30. pulumi_azure_native/devhub/outputs.py +0 -229
  31. pulumi_azure_native/devhub/v20221011preview/workflow.py +1 -1
  32. pulumi_azure_native/devhub/v20230801/workflow.py +1 -1
  33. pulumi_azure_native/devhub/workflow.py +3 -3
  34. pulumi_azure_native/hybridcompute/__init__.py +0 -3
  35. pulumi_azure_native/hybridcompute/gateway.py +1 -5
  36. pulumi_azure_native/hybridcompute/get_gateway.py +0 -4
  37. pulumi_azure_native/hybridcompute/get_license.py +2 -2
  38. pulumi_azure_native/hybridcompute/get_license_profile.py +2 -2
  39. pulumi_azure_native/hybridcompute/get_machine.py +2 -2
  40. pulumi_azure_native/hybridcompute/get_machine_extension.py +2 -2
  41. pulumi_azure_native/hybridcompute/get_machine_run_command.py +2 -2
  42. pulumi_azure_native/hybridcompute/get_private_endpoint_connection.py +2 -2
  43. pulumi_azure_native/hybridcompute/get_private_link_scope.py +2 -2
  44. pulumi_azure_native/hybridcompute/license.py +3 -3
  45. pulumi_azure_native/hybridcompute/license_profile.py +3 -3
  46. pulumi_azure_native/hybridcompute/machine.py +3 -3
  47. pulumi_azure_native/hybridcompute/machine_extension.py +3 -3
  48. pulumi_azure_native/hybridcompute/machine_run_command.py +3 -3
  49. pulumi_azure_native/hybridcompute/private_endpoint_connection.py +3 -3
  50. pulumi_azure_native/hybridcompute/private_link_scope.py +3 -3
  51. pulumi_azure_native/hybridcompute/v20200802/machine.py +1 -1
  52. pulumi_azure_native/hybridcompute/v20200815preview/machine.py +1 -1
  53. pulumi_azure_native/hybridcompute/v20200815preview/machine_extension.py +1 -1
  54. pulumi_azure_native/hybridcompute/v20200815preview/private_endpoint_connection.py +1 -1
  55. pulumi_azure_native/hybridcompute/v20200815preview/private_link_scope.py +1 -1
  56. pulumi_azure_native/hybridcompute/v20220510preview/machine.py +1 -1
  57. pulumi_azure_native/hybridcompute/v20220510preview/machine_extension.py +1 -1
  58. pulumi_azure_native/hybridcompute/v20221227/machine.py +1 -1
  59. pulumi_azure_native/hybridcompute/v20221227/machine_extension.py +1 -1
  60. pulumi_azure_native/hybridcompute/v20221227/private_endpoint_connection.py +1 -1
  61. pulumi_azure_native/hybridcompute/v20221227/private_link_scope.py +1 -1
  62. pulumi_azure_native/hybridcompute/v20230620preview/license.py +1 -1
  63. pulumi_azure_native/hybridcompute/v20230620preview/license_profile.py +1 -1
  64. pulumi_azure_native/hybridcompute/v20230620preview/machine.py +1 -1
  65. pulumi_azure_native/hybridcompute/v20230620preview/machine_extension.py +1 -1
  66. pulumi_azure_native/hybridcompute/v20230620preview/private_endpoint_connection.py +1 -1
  67. pulumi_azure_native/hybridcompute/v20230620preview/private_link_scope.py +1 -1
  68. pulumi_azure_native/hybridcompute/v20231003preview/license.py +1 -1
  69. pulumi_azure_native/hybridcompute/v20231003preview/license_profile.py +1 -1
  70. pulumi_azure_native/hybridcompute/v20231003preview/machine.py +1 -1
  71. pulumi_azure_native/hybridcompute/v20231003preview/machine_extension.py +1 -1
  72. pulumi_azure_native/hybridcompute/v20231003preview/machine_run_command.py +1 -1
  73. pulumi_azure_native/hybridcompute/v20231003preview/private_endpoint_connection.py +1 -1
  74. pulumi_azure_native/hybridcompute/v20231003preview/private_link_scope.py +1 -1
  75. pulumi_azure_native/hybridcompute/v20240331preview/gateway.py +1 -1
  76. pulumi_azure_native/hybridcompute/v20240331preview/license.py +1 -1
  77. pulumi_azure_native/hybridcompute/v20240331preview/license_profile.py +1 -1
  78. pulumi_azure_native/hybridcompute/v20240331preview/machine.py +1 -1
  79. pulumi_azure_native/hybridcompute/v20240331preview/machine_extension.py +1 -1
  80. pulumi_azure_native/hybridcompute/v20240331preview/machine_run_command.py +1 -1
  81. pulumi_azure_native/hybridcompute/v20240331preview/private_endpoint_connection.py +1 -1
  82. pulumi_azure_native/hybridcompute/v20240331preview/private_link_scope.py +1 -1
  83. pulumi_azure_native/pulumi-plugin.json +1 -1
  84. pulumi_azure_native/scvmm/get_guest_agent.py +2 -2
  85. pulumi_azure_native/scvmm/get_vm_instance_guest_agent.py +4 -0
  86. pulumi_azure_native/scvmm/guest_agent.py +2 -2
  87. pulumi_azure_native/scvmm/v20231007/__init__.py +2 -2
  88. pulumi_azure_native/scvmm/v20231007/_enums.py +4 -49
  89. pulumi_azure_native/scvmm/v20231007/_inputs.py +145 -56
  90. pulumi_azure_native/scvmm/v20231007/cloud.py +6 -6
  91. pulumi_azure_native/scvmm/v20231007/get_cloud.py +10 -10
  92. pulumi_azure_native/scvmm/v20231007/get_inventory_item.py +4 -4
  93. pulumi_azure_native/scvmm/v20231007/get_virtual_machine_instance.py +4 -4
  94. pulumi_azure_native/scvmm/v20231007/{get_guest_agent.py → get_vm_instance_guest_agent.py} +16 -16
  95. pulumi_azure_native/scvmm/v20231007/get_vmm_server.py +6 -6
  96. pulumi_azure_native/scvmm/v20231007/inventory_item.py +5 -5
  97. pulumi_azure_native/scvmm/v20231007/outputs.py +100 -96
  98. pulumi_azure_native/scvmm/v20231007/virtual_machine_instance.py +19 -19
  99. pulumi_azure_native/scvmm/v20231007/{guest_agent.py → vm_instance_guest_agent.py} +18 -18
  100. pulumi_azure_native/scvmm/v20231007/vmm_server.py +13 -13
  101. pulumi_azure_native/scvmm/vm_instance_guest_agent.py +4 -0
  102. pulumi_azure_native/storage/v20230501/_enums.py +0 -2
  103. pulumi_azure_native/virtualmachineimages/__init__.py +0 -3
  104. pulumi_azure_native/virtualmachineimages/get_trigger.py +2 -2
  105. pulumi_azure_native/virtualmachineimages/get_virtual_machine_image_template.py +2 -2
  106. pulumi_azure_native/virtualmachineimages/trigger.py +3 -3
  107. pulumi_azure_native/virtualmachineimages/v20220701/trigger.py +1 -1
  108. pulumi_azure_native/virtualmachineimages/v20220701/virtual_machine_image_template.py +1 -1
  109. pulumi_azure_native/virtualmachineimages/v20230701/trigger.py +1 -1
  110. pulumi_azure_native/virtualmachineimages/v20230701/virtual_machine_image_template.py +1 -1
  111. pulumi_azure_native/virtualmachineimages/virtual_machine_image_template.py +3 -3
  112. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717427766.dist-info}/METADATA +1 -1
  113. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717427766.dist-info}/RECORD +115 -179
  114. pulumi_azure_native/appcomplianceautomation/_enums.py +0 -125
  115. pulumi_azure_native/appcomplianceautomation/evidence.py +0 -363
  116. pulumi_azure_native/appcomplianceautomation/get_evidence.py +0 -198
  117. pulumi_azure_native/appcomplianceautomation/get_provider_action_collection_count.py +0 -75
  118. pulumi_azure_native/appcomplianceautomation/get_provider_action_overview_status.py +0 -76
  119. pulumi_azure_native/appcomplianceautomation/get_report_scoping_questions.py +0 -76
  120. pulumi_azure_native/appcomplianceautomation/get_scoping_configuration.py +0 -146
  121. pulumi_azure_native/appcomplianceautomation/get_webhook.py +0 -289
  122. pulumi_azure_native/appcomplianceautomation/list_provider_action_in_use_storage_accounts.py +0 -76
  123. pulumi_azure_native/appcomplianceautomation/scoping_configuration.py +0 -206
  124. pulumi_azure_native/appcomplianceautomation/v20240627/__init__.py +0 -22
  125. pulumi_azure_native/appcomplianceautomation/v20240627/_enums.py +0 -144
  126. pulumi_azure_native/appcomplianceautomation/v20240627/_inputs.py +0 -215
  127. pulumi_azure_native/appcomplianceautomation/v20240627/evidence.py +0 -361
  128. pulumi_azure_native/appcomplianceautomation/v20240627/get_evidence.py +0 -196
  129. pulumi_azure_native/appcomplianceautomation/v20240627/get_provider_action_collection_count.py +0 -73
  130. pulumi_azure_native/appcomplianceautomation/v20240627/get_provider_action_overview_status.py +0 -74
  131. pulumi_azure_native/appcomplianceautomation/v20240627/get_report.py +0 -296
  132. pulumi_azure_native/appcomplianceautomation/v20240627/get_report_scoping_questions.py +0 -74
  133. pulumi_azure_native/appcomplianceautomation/v20240627/get_scoping_configuration.py +0 -144
  134. pulumi_azure_native/appcomplianceautomation/v20240627/get_webhook.py +0 -287
  135. pulumi_azure_native/appcomplianceautomation/v20240627/list_provider_action_in_use_storage_accounts.py +0 -74
  136. pulumi_azure_native/appcomplianceautomation/v20240627/outputs.py +0 -720
  137. pulumi_azure_native/appcomplianceautomation/v20240627/report.py +0 -387
  138. pulumi_azure_native/appcomplianceautomation/v20240627/scoping_configuration.py +0 -204
  139. pulumi_azure_native/appcomplianceautomation/v20240627/webhook.py +0 -447
  140. pulumi_azure_native/appcomplianceautomation/webhook.py +0 -449
  141. pulumi_azure_native/devhub/get_iac_profile.py +0 -322
  142. pulumi_azure_native/devhub/iac_profile.py +0 -539
  143. pulumi_azure_native/devhub/v20240501preview/__init__.py +0 -15
  144. pulumi_azure_native/devhub/v20240501preview/_enums.py +0 -146
  145. pulumi_azure_native/devhub/v20240501preview/_inputs.py +0 -427
  146. pulumi_azure_native/devhub/v20240501preview/get_git_hub_o_auth.py +0 -91
  147. pulumi_azure_native/devhub/v20240501preview/get_iac_profile.py +0 -320
  148. pulumi_azure_native/devhub/v20240501preview/get_workflow.py +0 -489
  149. pulumi_azure_native/devhub/v20240501preview/iac_profile.py +0 -537
  150. pulumi_azure_native/devhub/v20240501preview/outputs.py +0 -654
  151. pulumi_azure_native/devhub/v20240501preview/workflow.py +0 -915
  152. pulumi_azure_native/hybridcompute/v20240520preview/__init__.py +0 -26
  153. pulumi_azure_native/hybridcompute/v20240520preview/_enums.py +0 -172
  154. pulumi_azure_native/hybridcompute/v20240520preview/_inputs.py +0 -1408
  155. pulumi_azure_native/hybridcompute/v20240520preview/gateway.py +0 -311
  156. pulumi_azure_native/hybridcompute/v20240520preview/get_gateway.py +0 -209
  157. pulumi_azure_native/hybridcompute/v20240520preview/get_license.py +0 -196
  158. pulumi_azure_native/hybridcompute/v20240520preview/get_license_profile.py +0 -357
  159. pulumi_azure_native/hybridcompute/v20240520preview/get_machine.py +0 -591
  160. pulumi_azure_native/hybridcompute/v20240520preview/get_machine_extension.py +0 -162
  161. pulumi_azure_native/hybridcompute/v20240520preview/get_machine_run_command.py +0 -318
  162. pulumi_azure_native/hybridcompute/v20240520preview/get_private_endpoint_connection.py +0 -136
  163. pulumi_azure_native/hybridcompute/v20240520preview/get_private_link_scope.py +0 -157
  164. pulumi_azure_native/hybridcompute/v20240520preview/license.py +0 -321
  165. pulumi_azure_native/hybridcompute/v20240520preview/license_profile.py +0 -500
  166. pulumi_azure_native/hybridcompute/v20240520preview/machine.py +0 -850
  167. pulumi_azure_native/hybridcompute/v20240520preview/machine_extension.py +0 -274
  168. pulumi_azure_native/hybridcompute/v20240520preview/machine_run_command.py +0 -587
  169. pulumi_azure_native/hybridcompute/v20240520preview/outputs.py +0 -3204
  170. pulumi_azure_native/hybridcompute/v20240520preview/private_endpoint_connection.py +0 -215
  171. pulumi_azure_native/hybridcompute/v20240520preview/private_link_scope.py +0 -253
  172. pulumi_azure_native/verifiedid/__init__.py +0 -18
  173. pulumi_azure_native/verifiedid/authority.py +0 -234
  174. pulumi_azure_native/verifiedid/get_authority.py +0 -159
  175. pulumi_azure_native/verifiedid/outputs.py +0 -125
  176. pulumi_azure_native/verifiedid/v20240126preview/__init__.py +0 -10
  177. pulumi_azure_native/verifiedid/v20240126preview/authority.py +0 -232
  178. pulumi_azure_native/verifiedid/v20240126preview/get_authority.py +0 -157
  179. pulumi_azure_native/verifiedid/v20240126preview/outputs.py +0 -125
  180. pulumi_azure_native/virtualmachineimages/v20240201/__init__.py +0 -14
  181. pulumi_azure_native/virtualmachineimages/v20240201/_enums.py +0 -60
  182. pulumi_azure_native/virtualmachineimages/v20240201/_inputs.py +0 -1895
  183. pulumi_azure_native/virtualmachineimages/v20240201/get_trigger.py +0 -162
  184. pulumi_azure_native/virtualmachineimages/v20240201/get_virtual_machine_image_template.py +0 -352
  185. pulumi_azure_native/virtualmachineimages/v20240201/outputs.py +0 -2401
  186. pulumi_azure_native/virtualmachineimages/v20240201/trigger.py +0 -235
  187. pulumi_azure_native/virtualmachineimages/v20240201/virtual_machine_image_template.py +0 -619
  188. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717427766.dist-info}/WHEEL +0 -0
  189. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717427766.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,222 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
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
+ 'GetRoleManagementPolicyResult',
15
+ 'AwaitableGetRoleManagementPolicyResult',
16
+ 'get_role_management_policy',
17
+ 'get_role_management_policy_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetRoleManagementPolicyResult:
22
+ """
23
+ Role management policy
24
+ """
25
+ def __init__(__self__, description=None, display_name=None, effective_rules=None, id=None, is_organization_default=None, last_modified_by=None, last_modified_date_time=None, name=None, policy_properties=None, rules=None, scope=None, type=None):
26
+ if description and not isinstance(description, str):
27
+ raise TypeError("Expected argument 'description' to be a str")
28
+ pulumi.set(__self__, "description", description)
29
+ if display_name and not isinstance(display_name, str):
30
+ raise TypeError("Expected argument 'display_name' to be a str")
31
+ pulumi.set(__self__, "display_name", display_name)
32
+ if effective_rules and not isinstance(effective_rules, list):
33
+ raise TypeError("Expected argument 'effective_rules' to be a list")
34
+ pulumi.set(__self__, "effective_rules", effective_rules)
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 is_organization_default and not isinstance(is_organization_default, bool):
39
+ raise TypeError("Expected argument 'is_organization_default' to be a bool")
40
+ pulumi.set(__self__, "is_organization_default", is_organization_default)
41
+ if last_modified_by and not isinstance(last_modified_by, dict):
42
+ raise TypeError("Expected argument 'last_modified_by' to be a dict")
43
+ pulumi.set(__self__, "last_modified_by", last_modified_by)
44
+ if last_modified_date_time and not isinstance(last_modified_date_time, str):
45
+ raise TypeError("Expected argument 'last_modified_date_time' to be a str")
46
+ pulumi.set(__self__, "last_modified_date_time", last_modified_date_time)
47
+ if name and not isinstance(name, str):
48
+ raise TypeError("Expected argument 'name' to be a str")
49
+ pulumi.set(__self__, "name", name)
50
+ if policy_properties and not isinstance(policy_properties, dict):
51
+ raise TypeError("Expected argument 'policy_properties' to be a dict")
52
+ pulumi.set(__self__, "policy_properties", policy_properties)
53
+ if rules and not isinstance(rules, list):
54
+ raise TypeError("Expected argument 'rules' to be a list")
55
+ pulumi.set(__self__, "rules", rules)
56
+ if scope and not isinstance(scope, str):
57
+ raise TypeError("Expected argument 'scope' to be a str")
58
+ pulumi.set(__self__, "scope", scope)
59
+ if type and not isinstance(type, str):
60
+ raise TypeError("Expected argument 'type' to be a str")
61
+ pulumi.set(__self__, "type", type)
62
+
63
+ @property
64
+ @pulumi.getter
65
+ def description(self) -> Optional[str]:
66
+ """
67
+ The role management policy description.
68
+ """
69
+ return pulumi.get(self, "description")
70
+
71
+ @property
72
+ @pulumi.getter(name="displayName")
73
+ def display_name(self) -> Optional[str]:
74
+ """
75
+ The role management policy display name.
76
+ """
77
+ return pulumi.get(self, "display_name")
78
+
79
+ @property
80
+ @pulumi.getter(name="effectiveRules")
81
+ def effective_rules(self) -> Sequence[Any]:
82
+ """
83
+ The readonly computed rule applied to the policy.
84
+ """
85
+ return pulumi.get(self, "effective_rules")
86
+
87
+ @property
88
+ @pulumi.getter
89
+ def id(self) -> str:
90
+ """
91
+ The role management policy Id.
92
+ """
93
+ return pulumi.get(self, "id")
94
+
95
+ @property
96
+ @pulumi.getter(name="isOrganizationDefault")
97
+ def is_organization_default(self) -> Optional[bool]:
98
+ """
99
+ The role management policy is default policy.
100
+ """
101
+ return pulumi.get(self, "is_organization_default")
102
+
103
+ @property
104
+ @pulumi.getter(name="lastModifiedBy")
105
+ def last_modified_by(self) -> 'outputs.PrincipalResponse':
106
+ """
107
+ The name of the entity last modified it
108
+ """
109
+ return pulumi.get(self, "last_modified_by")
110
+
111
+ @property
112
+ @pulumi.getter(name="lastModifiedDateTime")
113
+ def last_modified_date_time(self) -> str:
114
+ """
115
+ The last modified date time.
116
+ """
117
+ return pulumi.get(self, "last_modified_date_time")
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def name(self) -> str:
122
+ """
123
+ The role management policy name.
124
+ """
125
+ return pulumi.get(self, "name")
126
+
127
+ @property
128
+ @pulumi.getter(name="policyProperties")
129
+ def policy_properties(self) -> 'outputs.PolicyPropertiesResponse':
130
+ """
131
+ Additional properties of scope
132
+ """
133
+ return pulumi.get(self, "policy_properties")
134
+
135
+ @property
136
+ @pulumi.getter
137
+ def rules(self) -> Optional[Sequence[Any]]:
138
+ """
139
+ The rule applied to the policy.
140
+ """
141
+ return pulumi.get(self, "rules")
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def scope(self) -> Optional[str]:
146
+ """
147
+ The role management policy scope.
148
+ """
149
+ return pulumi.get(self, "scope")
150
+
151
+ @property
152
+ @pulumi.getter
153
+ def type(self) -> str:
154
+ """
155
+ The role management policy type.
156
+ """
157
+ return pulumi.get(self, "type")
158
+
159
+
160
+ class AwaitableGetRoleManagementPolicyResult(GetRoleManagementPolicyResult):
161
+ # pylint: disable=using-constant-test
162
+ def __await__(self):
163
+ if False:
164
+ yield self
165
+ return GetRoleManagementPolicyResult(
166
+ description=self.description,
167
+ display_name=self.display_name,
168
+ effective_rules=self.effective_rules,
169
+ id=self.id,
170
+ is_organization_default=self.is_organization_default,
171
+ last_modified_by=self.last_modified_by,
172
+ last_modified_date_time=self.last_modified_date_time,
173
+ name=self.name,
174
+ policy_properties=self.policy_properties,
175
+ rules=self.rules,
176
+ scope=self.scope,
177
+ type=self.type)
178
+
179
+
180
+ def get_role_management_policy(role_management_policy_name: Optional[str] = None,
181
+ scope: Optional[str] = None,
182
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRoleManagementPolicyResult:
183
+ """
184
+ Get the specified role management policy for a resource scope
185
+
186
+
187
+ :param str role_management_policy_name: The name (guid) of the role management policy to get.
188
+ :param str scope: The scope of the role management policy.
189
+ """
190
+ __args__ = dict()
191
+ __args__['roleManagementPolicyName'] = role_management_policy_name
192
+ __args__['scope'] = scope
193
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
194
+ __ret__ = pulumi.runtime.invoke('azure-native:authorization/v20201001:getRoleManagementPolicy', __args__, opts=opts, typ=GetRoleManagementPolicyResult).value
195
+
196
+ return AwaitableGetRoleManagementPolicyResult(
197
+ description=pulumi.get(__ret__, 'description'),
198
+ display_name=pulumi.get(__ret__, 'display_name'),
199
+ effective_rules=pulumi.get(__ret__, 'effective_rules'),
200
+ id=pulumi.get(__ret__, 'id'),
201
+ is_organization_default=pulumi.get(__ret__, 'is_organization_default'),
202
+ last_modified_by=pulumi.get(__ret__, 'last_modified_by'),
203
+ last_modified_date_time=pulumi.get(__ret__, 'last_modified_date_time'),
204
+ name=pulumi.get(__ret__, 'name'),
205
+ policy_properties=pulumi.get(__ret__, 'policy_properties'),
206
+ rules=pulumi.get(__ret__, 'rules'),
207
+ scope=pulumi.get(__ret__, 'scope'),
208
+ type=pulumi.get(__ret__, 'type'))
209
+
210
+
211
+ @_utilities.lift_output_func(get_role_management_policy)
212
+ def get_role_management_policy_output(role_management_policy_name: Optional[pulumi.Input[str]] = None,
213
+ scope: Optional[pulumi.Input[str]] = None,
214
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleManagementPolicyResult]:
215
+ """
216
+ Get the specified role management policy for a resource scope
217
+
218
+
219
+ :param str role_management_policy_name: The name (guid) of the role management policy to get.
220
+ :param str scope: The scope of the role management policy.
221
+ """
222
+ ...
@@ -9,6 +9,7 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from ... import _utilities
11
11
  from . import outputs
12
+ from ._enums import *
12
13
 
13
14
  __all__ = [
14
15
  'ApprovalSettingsResponse',
@@ -17,6 +18,8 @@ __all__ = [
17
18
  'PolicyAssignmentPropertiesResponsePolicy',
18
19
  'PolicyAssignmentPropertiesResponseRoleDefinition',
19
20
  'PolicyAssignmentPropertiesResponseScope',
21
+ 'PolicyPropertiesResponse',
22
+ 'PolicyPropertiesResponseScope',
20
23
  'PrincipalResponse',
21
24
  'RoleManagementPolicyApprovalRuleResponse',
22
25
  'RoleManagementPolicyAuthenticationContextRuleResponse',
@@ -490,6 +493,92 @@ class PolicyAssignmentPropertiesResponseScope(dict):
490
493
  return pulumi.get(self, "type")
491
494
 
492
495
 
496
+ @pulumi.output_type
497
+ class PolicyPropertiesResponse(dict):
498
+ """
499
+ Expanded info of resource scope
500
+ """
501
+ def __init__(__self__, *,
502
+ scope: 'outputs.PolicyPropertiesResponseScope'):
503
+ """
504
+ Expanded info of resource scope
505
+ :param 'PolicyPropertiesResponseScope' scope: Details of the resource scope
506
+ """
507
+ pulumi.set(__self__, "scope", scope)
508
+
509
+ @property
510
+ @pulumi.getter
511
+ def scope(self) -> 'outputs.PolicyPropertiesResponseScope':
512
+ """
513
+ Details of the resource scope
514
+ """
515
+ return pulumi.get(self, "scope")
516
+
517
+
518
+ @pulumi.output_type
519
+ class PolicyPropertiesResponseScope(dict):
520
+ """
521
+ Details of the resource scope
522
+ """
523
+ @staticmethod
524
+ def __key_warning(key: str):
525
+ suggest = None
526
+ if key == "displayName":
527
+ suggest = "display_name"
528
+
529
+ if suggest:
530
+ pulumi.log.warn(f"Key '{key}' not found in PolicyPropertiesResponseScope. Access the value via the '{suggest}' property getter instead.")
531
+
532
+ def __getitem__(self, key: str) -> Any:
533
+ PolicyPropertiesResponseScope.__key_warning(key)
534
+ return super().__getitem__(key)
535
+
536
+ def get(self, key: str, default = None) -> Any:
537
+ PolicyPropertiesResponseScope.__key_warning(key)
538
+ return super().get(key, default)
539
+
540
+ def __init__(__self__, *,
541
+ display_name: Optional[str] = None,
542
+ id: Optional[str] = None,
543
+ type: Optional[str] = None):
544
+ """
545
+ Details of the resource scope
546
+ :param str display_name: Display name of the resource
547
+ :param str id: Scope id of the resource
548
+ :param str type: Type of the resource
549
+ """
550
+ if display_name is not None:
551
+ pulumi.set(__self__, "display_name", display_name)
552
+ if id is not None:
553
+ pulumi.set(__self__, "id", id)
554
+ if type is not None:
555
+ pulumi.set(__self__, "type", type)
556
+
557
+ @property
558
+ @pulumi.getter(name="displayName")
559
+ def display_name(self) -> Optional[str]:
560
+ """
561
+ Display name of the resource
562
+ """
563
+ return pulumi.get(self, "display_name")
564
+
565
+ @property
566
+ @pulumi.getter
567
+ def id(self) -> Optional[str]:
568
+ """
569
+ Scope id of the resource
570
+ """
571
+ return pulumi.get(self, "id")
572
+
573
+ @property
574
+ @pulumi.getter
575
+ def type(self) -> Optional[str]:
576
+ """
577
+ Type of the resource
578
+ """
579
+ return pulumi.get(self, "type")
580
+
581
+
493
582
  @pulumi.output_type
494
583
  class PrincipalResponse(dict):
495
584
  """
@@ -0,0 +1,321 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
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 ._enums import *
13
+ from ._inputs import *
14
+
15
+ __all__ = ['RoleManagementPolicyArgs', 'RoleManagementPolicy']
16
+
17
+ @pulumi.input_type
18
+ class RoleManagementPolicyArgs:
19
+ def __init__(__self__, *,
20
+ scope: pulumi.Input[str],
21
+ description: Optional[pulumi.Input[str]] = None,
22
+ display_name: Optional[pulumi.Input[str]] = None,
23
+ is_organization_default: Optional[pulumi.Input[bool]] = None,
24
+ role_management_policy_name: Optional[pulumi.Input[str]] = None,
25
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RoleManagementPolicyApprovalRuleArgs', 'RoleManagementPolicyAuthenticationContextRuleArgs', 'RoleManagementPolicyEnablementRuleArgs', 'RoleManagementPolicyExpirationRuleArgs', 'RoleManagementPolicyNotificationRuleArgs']]]]] = None):
26
+ """
27
+ The set of arguments for constructing a RoleManagementPolicy resource.
28
+ :param pulumi.Input[str] scope: The role management policy scope.
29
+ :param pulumi.Input[str] description: The role management policy description.
30
+ :param pulumi.Input[str] display_name: The role management policy display name.
31
+ :param pulumi.Input[bool] is_organization_default: The role management policy is default policy.
32
+ :param pulumi.Input[str] role_management_policy_name: The name (guid) of the role management policy to upsert.
33
+ :param pulumi.Input[Sequence[pulumi.Input[Union['RoleManagementPolicyApprovalRuleArgs', 'RoleManagementPolicyAuthenticationContextRuleArgs', 'RoleManagementPolicyEnablementRuleArgs', 'RoleManagementPolicyExpirationRuleArgs', 'RoleManagementPolicyNotificationRuleArgs']]]] rules: The rule applied to the policy.
34
+ """
35
+ pulumi.set(__self__, "scope", scope)
36
+ if description is not None:
37
+ pulumi.set(__self__, "description", description)
38
+ if display_name is not None:
39
+ pulumi.set(__self__, "display_name", display_name)
40
+ if is_organization_default is not None:
41
+ pulumi.set(__self__, "is_organization_default", is_organization_default)
42
+ if role_management_policy_name is not None:
43
+ pulumi.set(__self__, "role_management_policy_name", role_management_policy_name)
44
+ if rules is not None:
45
+ pulumi.set(__self__, "rules", rules)
46
+
47
+ @property
48
+ @pulumi.getter
49
+ def scope(self) -> pulumi.Input[str]:
50
+ """
51
+ The role management policy scope.
52
+ """
53
+ return pulumi.get(self, "scope")
54
+
55
+ @scope.setter
56
+ def scope(self, value: pulumi.Input[str]):
57
+ pulumi.set(self, "scope", value)
58
+
59
+ @property
60
+ @pulumi.getter
61
+ def description(self) -> Optional[pulumi.Input[str]]:
62
+ """
63
+ The role management policy description.
64
+ """
65
+ return pulumi.get(self, "description")
66
+
67
+ @description.setter
68
+ def description(self, value: Optional[pulumi.Input[str]]):
69
+ pulumi.set(self, "description", value)
70
+
71
+ @property
72
+ @pulumi.getter(name="displayName")
73
+ def display_name(self) -> Optional[pulumi.Input[str]]:
74
+ """
75
+ The role management policy display name.
76
+ """
77
+ return pulumi.get(self, "display_name")
78
+
79
+ @display_name.setter
80
+ def display_name(self, value: Optional[pulumi.Input[str]]):
81
+ pulumi.set(self, "display_name", value)
82
+
83
+ @property
84
+ @pulumi.getter(name="isOrganizationDefault")
85
+ def is_organization_default(self) -> Optional[pulumi.Input[bool]]:
86
+ """
87
+ The role management policy is default policy.
88
+ """
89
+ return pulumi.get(self, "is_organization_default")
90
+
91
+ @is_organization_default.setter
92
+ def is_organization_default(self, value: Optional[pulumi.Input[bool]]):
93
+ pulumi.set(self, "is_organization_default", value)
94
+
95
+ @property
96
+ @pulumi.getter(name="roleManagementPolicyName")
97
+ def role_management_policy_name(self) -> Optional[pulumi.Input[str]]:
98
+ """
99
+ The name (guid) of the role management policy to upsert.
100
+ """
101
+ return pulumi.get(self, "role_management_policy_name")
102
+
103
+ @role_management_policy_name.setter
104
+ def role_management_policy_name(self, value: Optional[pulumi.Input[str]]):
105
+ pulumi.set(self, "role_management_policy_name", value)
106
+
107
+ @property
108
+ @pulumi.getter
109
+ def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Union['RoleManagementPolicyApprovalRuleArgs', 'RoleManagementPolicyAuthenticationContextRuleArgs', 'RoleManagementPolicyEnablementRuleArgs', 'RoleManagementPolicyExpirationRuleArgs', 'RoleManagementPolicyNotificationRuleArgs']]]]]:
110
+ """
111
+ The rule applied to the policy.
112
+ """
113
+ return pulumi.get(self, "rules")
114
+
115
+ @rules.setter
116
+ def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RoleManagementPolicyApprovalRuleArgs', 'RoleManagementPolicyAuthenticationContextRuleArgs', 'RoleManagementPolicyEnablementRuleArgs', 'RoleManagementPolicyExpirationRuleArgs', 'RoleManagementPolicyNotificationRuleArgs']]]]]):
117
+ pulumi.set(self, "rules", value)
118
+
119
+
120
+ class RoleManagementPolicy(pulumi.CustomResource):
121
+ @overload
122
+ def __init__(__self__,
123
+ resource_name: str,
124
+ opts: Optional[pulumi.ResourceOptions] = None,
125
+ description: Optional[pulumi.Input[str]] = None,
126
+ display_name: Optional[pulumi.Input[str]] = None,
127
+ is_organization_default: Optional[pulumi.Input[bool]] = None,
128
+ role_management_policy_name: Optional[pulumi.Input[str]] = None,
129
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['RoleManagementPolicyApprovalRuleArgs'], pulumi.InputType['RoleManagementPolicyAuthenticationContextRuleArgs'], pulumi.InputType['RoleManagementPolicyEnablementRuleArgs'], pulumi.InputType['RoleManagementPolicyExpirationRuleArgs'], pulumi.InputType['RoleManagementPolicyNotificationRuleArgs']]]]]] = None,
130
+ scope: Optional[pulumi.Input[str]] = None,
131
+ __props__=None):
132
+ """
133
+ Role management policy
134
+
135
+ :param str resource_name: The name of the resource.
136
+ :param pulumi.ResourceOptions opts: Options for the resource.
137
+ :param pulumi.Input[str] description: The role management policy description.
138
+ :param pulumi.Input[str] display_name: The role management policy display name.
139
+ :param pulumi.Input[bool] is_organization_default: The role management policy is default policy.
140
+ :param pulumi.Input[str] role_management_policy_name: The name (guid) of the role management policy to upsert.
141
+ :param pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['RoleManagementPolicyApprovalRuleArgs'], pulumi.InputType['RoleManagementPolicyAuthenticationContextRuleArgs'], pulumi.InputType['RoleManagementPolicyEnablementRuleArgs'], pulumi.InputType['RoleManagementPolicyExpirationRuleArgs'], pulumi.InputType['RoleManagementPolicyNotificationRuleArgs']]]]] rules: The rule applied to the policy.
142
+ :param pulumi.Input[str] scope: The role management policy scope.
143
+ """
144
+ ...
145
+ @overload
146
+ def __init__(__self__,
147
+ resource_name: str,
148
+ args: RoleManagementPolicyArgs,
149
+ opts: Optional[pulumi.ResourceOptions] = None):
150
+ """
151
+ Role management policy
152
+
153
+ :param str resource_name: The name of the resource.
154
+ :param RoleManagementPolicyArgs args: The arguments to use to populate this resource's properties.
155
+ :param pulumi.ResourceOptions opts: Options for the resource.
156
+ """
157
+ ...
158
+ def __init__(__self__, resource_name: str, *args, **kwargs):
159
+ resource_args, opts = _utilities.get_resource_args_opts(RoleManagementPolicyArgs, pulumi.ResourceOptions, *args, **kwargs)
160
+ if resource_args is not None:
161
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
162
+ else:
163
+ __self__._internal_init(resource_name, *args, **kwargs)
164
+
165
+ def _internal_init(__self__,
166
+ resource_name: str,
167
+ opts: Optional[pulumi.ResourceOptions] = None,
168
+ description: Optional[pulumi.Input[str]] = None,
169
+ display_name: Optional[pulumi.Input[str]] = None,
170
+ is_organization_default: Optional[pulumi.Input[bool]] = None,
171
+ role_management_policy_name: Optional[pulumi.Input[str]] = None,
172
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union[pulumi.InputType['RoleManagementPolicyApprovalRuleArgs'], pulumi.InputType['RoleManagementPolicyAuthenticationContextRuleArgs'], pulumi.InputType['RoleManagementPolicyEnablementRuleArgs'], pulumi.InputType['RoleManagementPolicyExpirationRuleArgs'], pulumi.InputType['RoleManagementPolicyNotificationRuleArgs']]]]]] = None,
173
+ scope: Optional[pulumi.Input[str]] = None,
174
+ __props__=None):
175
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
176
+ if not isinstance(opts, pulumi.ResourceOptions):
177
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
178
+ if opts.id is None:
179
+ if __props__ is not None:
180
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
181
+ __props__ = RoleManagementPolicyArgs.__new__(RoleManagementPolicyArgs)
182
+
183
+ __props__.__dict__["description"] = description
184
+ __props__.__dict__["display_name"] = display_name
185
+ __props__.__dict__["is_organization_default"] = is_organization_default
186
+ __props__.__dict__["role_management_policy_name"] = role_management_policy_name
187
+ __props__.__dict__["rules"] = rules
188
+ if scope is None and not opts.urn:
189
+ raise TypeError("Missing required property 'scope'")
190
+ __props__.__dict__["scope"] = scope
191
+ __props__.__dict__["effective_rules"] = None
192
+ __props__.__dict__["last_modified_by"] = None
193
+ __props__.__dict__["last_modified_date_time"] = None
194
+ __props__.__dict__["name"] = None
195
+ __props__.__dict__["policy_properties"] = None
196
+ __props__.__dict__["type"] = None
197
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:authorization:RoleManagementPolicy"), pulumi.Alias(type_="azure-native:authorization/v20201001preview:RoleManagementPolicy")])
198
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
199
+ super(RoleManagementPolicy, __self__).__init__(
200
+ 'azure-native:authorization/v20201001:RoleManagementPolicy',
201
+ resource_name,
202
+ __props__,
203
+ opts)
204
+
205
+ @staticmethod
206
+ def get(resource_name: str,
207
+ id: pulumi.Input[str],
208
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'RoleManagementPolicy':
209
+ """
210
+ Get an existing RoleManagementPolicy resource's state with the given name, id, and optional extra
211
+ properties used to qualify the lookup.
212
+
213
+ :param str resource_name: The unique name of the resulting resource.
214
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
215
+ :param pulumi.ResourceOptions opts: Options for the resource.
216
+ """
217
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
218
+
219
+ __props__ = RoleManagementPolicyArgs.__new__(RoleManagementPolicyArgs)
220
+
221
+ __props__.__dict__["description"] = None
222
+ __props__.__dict__["display_name"] = None
223
+ __props__.__dict__["effective_rules"] = None
224
+ __props__.__dict__["is_organization_default"] = None
225
+ __props__.__dict__["last_modified_by"] = None
226
+ __props__.__dict__["last_modified_date_time"] = None
227
+ __props__.__dict__["name"] = None
228
+ __props__.__dict__["policy_properties"] = None
229
+ __props__.__dict__["rules"] = None
230
+ __props__.__dict__["scope"] = None
231
+ __props__.__dict__["type"] = None
232
+ return RoleManagementPolicy(resource_name, opts=opts, __props__=__props__)
233
+
234
+ @property
235
+ @pulumi.getter
236
+ def description(self) -> pulumi.Output[Optional[str]]:
237
+ """
238
+ The role management policy description.
239
+ """
240
+ return pulumi.get(self, "description")
241
+
242
+ @property
243
+ @pulumi.getter(name="displayName")
244
+ def display_name(self) -> pulumi.Output[Optional[str]]:
245
+ """
246
+ The role management policy display name.
247
+ """
248
+ return pulumi.get(self, "display_name")
249
+
250
+ @property
251
+ @pulumi.getter(name="effectiveRules")
252
+ def effective_rules(self) -> pulumi.Output[Sequence[Any]]:
253
+ """
254
+ The readonly computed rule applied to the policy.
255
+ """
256
+ return pulumi.get(self, "effective_rules")
257
+
258
+ @property
259
+ @pulumi.getter(name="isOrganizationDefault")
260
+ def is_organization_default(self) -> pulumi.Output[Optional[bool]]:
261
+ """
262
+ The role management policy is default policy.
263
+ """
264
+ return pulumi.get(self, "is_organization_default")
265
+
266
+ @property
267
+ @pulumi.getter(name="lastModifiedBy")
268
+ def last_modified_by(self) -> pulumi.Output['outputs.PrincipalResponse']:
269
+ """
270
+ The name of the entity last modified it
271
+ """
272
+ return pulumi.get(self, "last_modified_by")
273
+
274
+ @property
275
+ @pulumi.getter(name="lastModifiedDateTime")
276
+ def last_modified_date_time(self) -> pulumi.Output[str]:
277
+ """
278
+ The last modified date time.
279
+ """
280
+ return pulumi.get(self, "last_modified_date_time")
281
+
282
+ @property
283
+ @pulumi.getter
284
+ def name(self) -> pulumi.Output[str]:
285
+ """
286
+ The role management policy name.
287
+ """
288
+ return pulumi.get(self, "name")
289
+
290
+ @property
291
+ @pulumi.getter(name="policyProperties")
292
+ def policy_properties(self) -> pulumi.Output['outputs.PolicyPropertiesResponse']:
293
+ """
294
+ Additional properties of scope
295
+ """
296
+ return pulumi.get(self, "policy_properties")
297
+
298
+ @property
299
+ @pulumi.getter
300
+ def rules(self) -> pulumi.Output[Optional[Sequence[Any]]]:
301
+ """
302
+ The rule applied to the policy.
303
+ """
304
+ return pulumi.get(self, "rules")
305
+
306
+ @property
307
+ @pulumi.getter
308
+ def scope(self) -> pulumi.Output[Optional[str]]:
309
+ """
310
+ The role management policy scope.
311
+ """
312
+ return pulumi.get(self, "scope")
313
+
314
+ @property
315
+ @pulumi.getter
316
+ def type(self) -> pulumi.Output[str]:
317
+ """
318
+ The role management policy type.
319
+ """
320
+ return pulumi.get(self, "type")
321
+
@@ -5,6 +5,10 @@
5
5
  from ... import _utilities
6
6
  import typing
7
7
  # Export this package's modules as members:
8
+ from ._enums import *
9
+ from .get_role_management_policy import *
8
10
  from .get_role_management_policy_assignment import *
11
+ from .role_management_policy import *
9
12
  from .role_management_policy_assignment import *
13
+ from ._inputs import *
10
14
  from . import outputs