pulumi-azure-native 2.44.0__py3-none-any.whl → 2.44.0a1717167674__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 (171) hide show
  1. pulumi_azure_native/__init__.py +2 -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/devhub/__init__.py +0 -5
  9. pulumi_azure_native/devhub/_inputs.py +0 -190
  10. pulumi_azure_native/devhub/get_git_hub_o_auth.py +2 -2
  11. pulumi_azure_native/devhub/get_workflow.py +2 -2
  12. pulumi_azure_native/devhub/outputs.py +0 -229
  13. pulumi_azure_native/devhub/v20221011preview/workflow.py +1 -1
  14. pulumi_azure_native/devhub/v20230801/workflow.py +1 -1
  15. pulumi_azure_native/devhub/workflow.py +3 -3
  16. pulumi_azure_native/hybridcompute/__init__.py +0 -3
  17. pulumi_azure_native/hybridcompute/gateway.py +1 -5
  18. pulumi_azure_native/hybridcompute/get_gateway.py +0 -4
  19. pulumi_azure_native/hybridcompute/get_license.py +2 -2
  20. pulumi_azure_native/hybridcompute/get_license_profile.py +2 -2
  21. pulumi_azure_native/hybridcompute/get_machine.py +2 -2
  22. pulumi_azure_native/hybridcompute/get_machine_extension.py +2 -2
  23. pulumi_azure_native/hybridcompute/get_machine_run_command.py +2 -2
  24. pulumi_azure_native/hybridcompute/get_private_endpoint_connection.py +2 -2
  25. pulumi_azure_native/hybridcompute/get_private_link_scope.py +2 -2
  26. pulumi_azure_native/hybridcompute/license.py +3 -3
  27. pulumi_azure_native/hybridcompute/license_profile.py +3 -3
  28. pulumi_azure_native/hybridcompute/machine.py +3 -3
  29. pulumi_azure_native/hybridcompute/machine_extension.py +3 -3
  30. pulumi_azure_native/hybridcompute/machine_run_command.py +3 -3
  31. pulumi_azure_native/hybridcompute/private_endpoint_connection.py +3 -3
  32. pulumi_azure_native/hybridcompute/private_link_scope.py +3 -3
  33. pulumi_azure_native/hybridcompute/v20200802/machine.py +1 -1
  34. pulumi_azure_native/hybridcompute/v20200815preview/machine.py +1 -1
  35. pulumi_azure_native/hybridcompute/v20200815preview/machine_extension.py +1 -1
  36. pulumi_azure_native/hybridcompute/v20200815preview/private_endpoint_connection.py +1 -1
  37. pulumi_azure_native/hybridcompute/v20200815preview/private_link_scope.py +1 -1
  38. pulumi_azure_native/hybridcompute/v20220510preview/machine.py +1 -1
  39. pulumi_azure_native/hybridcompute/v20220510preview/machine_extension.py +1 -1
  40. pulumi_azure_native/hybridcompute/v20221227/machine.py +1 -1
  41. pulumi_azure_native/hybridcompute/v20221227/machine_extension.py +1 -1
  42. pulumi_azure_native/hybridcompute/v20221227/private_endpoint_connection.py +1 -1
  43. pulumi_azure_native/hybridcompute/v20221227/private_link_scope.py +1 -1
  44. pulumi_azure_native/hybridcompute/v20230620preview/license.py +1 -1
  45. pulumi_azure_native/hybridcompute/v20230620preview/license_profile.py +1 -1
  46. pulumi_azure_native/hybridcompute/v20230620preview/machine.py +1 -1
  47. pulumi_azure_native/hybridcompute/v20230620preview/machine_extension.py +1 -1
  48. pulumi_azure_native/hybridcompute/v20230620preview/private_endpoint_connection.py +1 -1
  49. pulumi_azure_native/hybridcompute/v20230620preview/private_link_scope.py +1 -1
  50. pulumi_azure_native/hybridcompute/v20231003preview/license.py +1 -1
  51. pulumi_azure_native/hybridcompute/v20231003preview/license_profile.py +1 -1
  52. pulumi_azure_native/hybridcompute/v20231003preview/machine.py +1 -1
  53. pulumi_azure_native/hybridcompute/v20231003preview/machine_extension.py +1 -1
  54. pulumi_azure_native/hybridcompute/v20231003preview/machine_run_command.py +1 -1
  55. pulumi_azure_native/hybridcompute/v20231003preview/private_endpoint_connection.py +1 -1
  56. pulumi_azure_native/hybridcompute/v20231003preview/private_link_scope.py +1 -1
  57. pulumi_azure_native/hybridcompute/v20240331preview/gateway.py +1 -1
  58. pulumi_azure_native/hybridcompute/v20240331preview/license.py +1 -1
  59. pulumi_azure_native/hybridcompute/v20240331preview/license_profile.py +1 -1
  60. pulumi_azure_native/hybridcompute/v20240331preview/machine.py +1 -1
  61. pulumi_azure_native/hybridcompute/v20240331preview/machine_extension.py +1 -1
  62. pulumi_azure_native/hybridcompute/v20240331preview/machine_run_command.py +1 -1
  63. pulumi_azure_native/hybridcompute/v20240331preview/private_endpoint_connection.py +1 -1
  64. pulumi_azure_native/hybridcompute/v20240331preview/private_link_scope.py +1 -1
  65. pulumi_azure_native/pulumi-plugin.json +1 -1
  66. pulumi_azure_native/scvmm/get_guest_agent.py +2 -2
  67. pulumi_azure_native/scvmm/get_vm_instance_guest_agent.py +4 -0
  68. pulumi_azure_native/scvmm/guest_agent.py +2 -2
  69. pulumi_azure_native/scvmm/v20231007/__init__.py +2 -2
  70. pulumi_azure_native/scvmm/v20231007/_enums.py +4 -49
  71. pulumi_azure_native/scvmm/v20231007/_inputs.py +145 -56
  72. pulumi_azure_native/scvmm/v20231007/cloud.py +6 -6
  73. pulumi_azure_native/scvmm/v20231007/get_cloud.py +10 -10
  74. pulumi_azure_native/scvmm/v20231007/get_inventory_item.py +4 -4
  75. pulumi_azure_native/scvmm/v20231007/get_virtual_machine_instance.py +4 -4
  76. pulumi_azure_native/scvmm/v20231007/{get_guest_agent.py → get_vm_instance_guest_agent.py} +16 -16
  77. pulumi_azure_native/scvmm/v20231007/get_vmm_server.py +6 -6
  78. pulumi_azure_native/scvmm/v20231007/inventory_item.py +5 -5
  79. pulumi_azure_native/scvmm/v20231007/outputs.py +100 -96
  80. pulumi_azure_native/scvmm/v20231007/virtual_machine_instance.py +19 -19
  81. pulumi_azure_native/scvmm/v20231007/{guest_agent.py → vm_instance_guest_agent.py} +18 -18
  82. pulumi_azure_native/scvmm/v20231007/vmm_server.py +13 -13
  83. pulumi_azure_native/scvmm/vm_instance_guest_agent.py +4 -0
  84. pulumi_azure_native/storage/v20230501/_enums.py +0 -2
  85. pulumi_azure_native/virtualmachineimages/__init__.py +0 -3
  86. pulumi_azure_native/virtualmachineimages/get_trigger.py +2 -2
  87. pulumi_azure_native/virtualmachineimages/get_virtual_machine_image_template.py +2 -2
  88. pulumi_azure_native/virtualmachineimages/trigger.py +3 -3
  89. pulumi_azure_native/virtualmachineimages/v20220701/trigger.py +1 -1
  90. pulumi_azure_native/virtualmachineimages/v20220701/virtual_machine_image_template.py +1 -1
  91. pulumi_azure_native/virtualmachineimages/v20230701/trigger.py +1 -1
  92. pulumi_azure_native/virtualmachineimages/v20230701/virtual_machine_image_template.py +1 -1
  93. pulumi_azure_native/virtualmachineimages/virtual_machine_image_template.py +3 -3
  94. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717167674.dist-info}/METADATA +1 -1
  95. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717167674.dist-info}/RECORD +97 -171
  96. pulumi_azure_native/appcomplianceautomation/_enums.py +0 -125
  97. pulumi_azure_native/appcomplianceautomation/evidence.py +0 -363
  98. pulumi_azure_native/appcomplianceautomation/get_evidence.py +0 -198
  99. pulumi_azure_native/appcomplianceautomation/get_provider_action_collection_count.py +0 -75
  100. pulumi_azure_native/appcomplianceautomation/get_provider_action_overview_status.py +0 -76
  101. pulumi_azure_native/appcomplianceautomation/get_report_scoping_questions.py +0 -76
  102. pulumi_azure_native/appcomplianceautomation/get_scoping_configuration.py +0 -146
  103. pulumi_azure_native/appcomplianceautomation/get_webhook.py +0 -289
  104. pulumi_azure_native/appcomplianceautomation/list_provider_action_in_use_storage_accounts.py +0 -76
  105. pulumi_azure_native/appcomplianceautomation/scoping_configuration.py +0 -206
  106. pulumi_azure_native/appcomplianceautomation/v20240627/__init__.py +0 -22
  107. pulumi_azure_native/appcomplianceautomation/v20240627/_enums.py +0 -144
  108. pulumi_azure_native/appcomplianceautomation/v20240627/_inputs.py +0 -215
  109. pulumi_azure_native/appcomplianceautomation/v20240627/evidence.py +0 -361
  110. pulumi_azure_native/appcomplianceautomation/v20240627/get_evidence.py +0 -196
  111. pulumi_azure_native/appcomplianceautomation/v20240627/get_provider_action_collection_count.py +0 -73
  112. pulumi_azure_native/appcomplianceautomation/v20240627/get_provider_action_overview_status.py +0 -74
  113. pulumi_azure_native/appcomplianceautomation/v20240627/get_report.py +0 -296
  114. pulumi_azure_native/appcomplianceautomation/v20240627/get_report_scoping_questions.py +0 -74
  115. pulumi_azure_native/appcomplianceautomation/v20240627/get_scoping_configuration.py +0 -144
  116. pulumi_azure_native/appcomplianceautomation/v20240627/get_webhook.py +0 -287
  117. pulumi_azure_native/appcomplianceautomation/v20240627/list_provider_action_in_use_storage_accounts.py +0 -74
  118. pulumi_azure_native/appcomplianceautomation/v20240627/outputs.py +0 -720
  119. pulumi_azure_native/appcomplianceautomation/v20240627/report.py +0 -387
  120. pulumi_azure_native/appcomplianceautomation/v20240627/scoping_configuration.py +0 -204
  121. pulumi_azure_native/appcomplianceautomation/v20240627/webhook.py +0 -447
  122. pulumi_azure_native/appcomplianceautomation/webhook.py +0 -449
  123. pulumi_azure_native/devhub/get_iac_profile.py +0 -322
  124. pulumi_azure_native/devhub/iac_profile.py +0 -539
  125. pulumi_azure_native/devhub/v20240501preview/__init__.py +0 -15
  126. pulumi_azure_native/devhub/v20240501preview/_enums.py +0 -146
  127. pulumi_azure_native/devhub/v20240501preview/_inputs.py +0 -427
  128. pulumi_azure_native/devhub/v20240501preview/get_git_hub_o_auth.py +0 -91
  129. pulumi_azure_native/devhub/v20240501preview/get_iac_profile.py +0 -320
  130. pulumi_azure_native/devhub/v20240501preview/get_workflow.py +0 -489
  131. pulumi_azure_native/devhub/v20240501preview/iac_profile.py +0 -537
  132. pulumi_azure_native/devhub/v20240501preview/outputs.py +0 -654
  133. pulumi_azure_native/devhub/v20240501preview/workflow.py +0 -915
  134. pulumi_azure_native/hybridcompute/v20240520preview/__init__.py +0 -26
  135. pulumi_azure_native/hybridcompute/v20240520preview/_enums.py +0 -172
  136. pulumi_azure_native/hybridcompute/v20240520preview/_inputs.py +0 -1408
  137. pulumi_azure_native/hybridcompute/v20240520preview/gateway.py +0 -311
  138. pulumi_azure_native/hybridcompute/v20240520preview/get_gateway.py +0 -209
  139. pulumi_azure_native/hybridcompute/v20240520preview/get_license.py +0 -196
  140. pulumi_azure_native/hybridcompute/v20240520preview/get_license_profile.py +0 -357
  141. pulumi_azure_native/hybridcompute/v20240520preview/get_machine.py +0 -591
  142. pulumi_azure_native/hybridcompute/v20240520preview/get_machine_extension.py +0 -162
  143. pulumi_azure_native/hybridcompute/v20240520preview/get_machine_run_command.py +0 -318
  144. pulumi_azure_native/hybridcompute/v20240520preview/get_private_endpoint_connection.py +0 -136
  145. pulumi_azure_native/hybridcompute/v20240520preview/get_private_link_scope.py +0 -157
  146. pulumi_azure_native/hybridcompute/v20240520preview/license.py +0 -321
  147. pulumi_azure_native/hybridcompute/v20240520preview/license_profile.py +0 -500
  148. pulumi_azure_native/hybridcompute/v20240520preview/machine.py +0 -850
  149. pulumi_azure_native/hybridcompute/v20240520preview/machine_extension.py +0 -274
  150. pulumi_azure_native/hybridcompute/v20240520preview/machine_run_command.py +0 -587
  151. pulumi_azure_native/hybridcompute/v20240520preview/outputs.py +0 -3204
  152. pulumi_azure_native/hybridcompute/v20240520preview/private_endpoint_connection.py +0 -215
  153. pulumi_azure_native/hybridcompute/v20240520preview/private_link_scope.py +0 -253
  154. pulumi_azure_native/verifiedid/__init__.py +0 -18
  155. pulumi_azure_native/verifiedid/authority.py +0 -234
  156. pulumi_azure_native/verifiedid/get_authority.py +0 -159
  157. pulumi_azure_native/verifiedid/outputs.py +0 -125
  158. pulumi_azure_native/verifiedid/v20240126preview/__init__.py +0 -10
  159. pulumi_azure_native/verifiedid/v20240126preview/authority.py +0 -232
  160. pulumi_azure_native/verifiedid/v20240126preview/get_authority.py +0 -157
  161. pulumi_azure_native/verifiedid/v20240126preview/outputs.py +0 -125
  162. pulumi_azure_native/virtualmachineimages/v20240201/__init__.py +0 -14
  163. pulumi_azure_native/virtualmachineimages/v20240201/_enums.py +0 -60
  164. pulumi_azure_native/virtualmachineimages/v20240201/_inputs.py +0 -1895
  165. pulumi_azure_native/virtualmachineimages/v20240201/get_trigger.py +0 -162
  166. pulumi_azure_native/virtualmachineimages/v20240201/get_virtual_machine_image_template.py +0 -352
  167. pulumi_azure_native/virtualmachineimages/v20240201/outputs.py +0 -2401
  168. pulumi_azure_native/virtualmachineimages/v20240201/trigger.py +0 -235
  169. pulumi_azure_native/virtualmachineimages/v20240201/virtual_machine_image_template.py +0 -619
  170. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717167674.dist-info}/WHEEL +0 -0
  171. {pulumi_azure_native-2.44.0.dist-info → pulumi_azure_native-2.44.0a1717167674.dist-info}/top_level.txt +0 -0
@@ -1,2401 +0,0 @@
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
-
14
- __all__ = [
15
- 'DistributeVersionerLatestResponse',
16
- 'DistributeVersionerSourceResponse',
17
- 'ImageTemplateAutoRunResponse',
18
- 'ImageTemplateFileCustomizerResponse',
19
- 'ImageTemplateFileValidatorResponse',
20
- 'ImageTemplateIdentityResponse',
21
- 'ImageTemplateLastRunStatusResponse',
22
- 'ImageTemplateManagedImageDistributorResponse',
23
- 'ImageTemplateManagedImageSourceResponse',
24
- 'ImageTemplatePlatformImageSourceResponse',
25
- 'ImageTemplatePowerShellCustomizerResponse',
26
- 'ImageTemplatePowerShellValidatorResponse',
27
- 'ImageTemplatePropertiesResponseErrorHandling',
28
- 'ImageTemplatePropertiesResponseOptimize',
29
- 'ImageTemplatePropertiesResponseValidate',
30
- 'ImageTemplatePropertiesResponseVmBoot',
31
- 'ImageTemplateRestartCustomizerResponse',
32
- 'ImageTemplateSharedImageDistributorResponse',
33
- 'ImageTemplateSharedImageVersionSourceResponse',
34
- 'ImageTemplateShellCustomizerResponse',
35
- 'ImageTemplateShellValidatorResponse',
36
- 'ImageTemplateVhdDistributorResponse',
37
- 'ImageTemplateVmProfileResponse',
38
- 'ImageTemplateWindowsUpdateCustomizerResponse',
39
- 'PlatformImagePurchasePlanResponse',
40
- 'ProvisioningErrorResponse',
41
- 'SystemDataResponse',
42
- 'TargetRegionResponse',
43
- 'TriggerStatusResponse',
44
- 'UserAssignedIdentityResponse',
45
- 'VirtualNetworkConfigResponse',
46
- ]
47
-
48
- @pulumi.output_type
49
- class DistributeVersionerLatestResponse(dict):
50
- """
51
- Generates version number that will be latest based on existing version numbers.
52
- """
53
- def __init__(__self__, *,
54
- scheme: str,
55
- major: Optional[int] = None):
56
- """
57
- Generates version number that will be latest based on existing version numbers.
58
- :param str scheme: Version numbering scheme to be used.
59
- Expected value is 'Latest'.
60
- :param int major: Major version for the generated version number. Determine what is "latest" based on versions with this value as the major version. -1 is equivalent to leaving it unset.
61
- """
62
- pulumi.set(__self__, "scheme", 'Latest')
63
- if major is None:
64
- major = -1
65
- if major is not None:
66
- pulumi.set(__self__, "major", major)
67
-
68
- @property
69
- @pulumi.getter
70
- def scheme(self) -> str:
71
- """
72
- Version numbering scheme to be used.
73
- Expected value is 'Latest'.
74
- """
75
- return pulumi.get(self, "scheme")
76
-
77
- @property
78
- @pulumi.getter
79
- def major(self) -> Optional[int]:
80
- """
81
- Major version for the generated version number. Determine what is "latest" based on versions with this value as the major version. -1 is equivalent to leaving it unset.
82
- """
83
- return pulumi.get(self, "major")
84
-
85
-
86
- @pulumi.output_type
87
- class DistributeVersionerSourceResponse(dict):
88
- """
89
- Generates version number based on version number of source image
90
- """
91
- def __init__(__self__, *,
92
- scheme: str):
93
- """
94
- Generates version number based on version number of source image
95
- :param str scheme: Version numbering scheme to be used.
96
- Expected value is 'Source'.
97
- """
98
- pulumi.set(__self__, "scheme", 'Source')
99
-
100
- @property
101
- @pulumi.getter
102
- def scheme(self) -> str:
103
- """
104
- Version numbering scheme to be used.
105
- Expected value is 'Source'.
106
- """
107
- return pulumi.get(self, "scheme")
108
-
109
-
110
- @pulumi.output_type
111
- class ImageTemplateAutoRunResponse(dict):
112
- """
113
- Indicates if the image template needs to be built on create/update
114
- """
115
- def __init__(__self__, *,
116
- state: Optional[str] = None):
117
- """
118
- Indicates if the image template needs to be built on create/update
119
- :param str state: Enabling this field will trigger an automatic build on image template creation or update.
120
- """
121
- if state is not None:
122
- pulumi.set(__self__, "state", state)
123
-
124
- @property
125
- @pulumi.getter
126
- def state(self) -> Optional[str]:
127
- """
128
- Enabling this field will trigger an automatic build on image template creation or update.
129
- """
130
- return pulumi.get(self, "state")
131
-
132
-
133
- @pulumi.output_type
134
- class ImageTemplateFileCustomizerResponse(dict):
135
- """
136
- Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner
137
- """
138
- @staticmethod
139
- def __key_warning(key: str):
140
- suggest = None
141
- if key == "sha256Checksum":
142
- suggest = "sha256_checksum"
143
- elif key == "sourceUri":
144
- suggest = "source_uri"
145
-
146
- if suggest:
147
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateFileCustomizerResponse. Access the value via the '{suggest}' property getter instead.")
148
-
149
- def __getitem__(self, key: str) -> Any:
150
- ImageTemplateFileCustomizerResponse.__key_warning(key)
151
- return super().__getitem__(key)
152
-
153
- def get(self, key: str, default = None) -> Any:
154
- ImageTemplateFileCustomizerResponse.__key_warning(key)
155
- return super().get(key, default)
156
-
157
- def __init__(__self__, *,
158
- type: str,
159
- destination: Optional[str] = None,
160
- name: Optional[str] = None,
161
- sha256_checksum: Optional[str] = None,
162
- source_uri: Optional[str] = None):
163
- """
164
- Uploads files to VMs (Linux, Windows). Corresponds to Packer file provisioner
165
- :param str type: The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
166
- Expected value is 'File'.
167
- :param str destination: The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
168
- :param str name: Friendly Name to provide context on what this customization step does
169
- :param str sha256_checksum: SHA256 checksum of the file provided in the sourceUri field above
170
- :param str source_uri: The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
171
- """
172
- pulumi.set(__self__, "type", 'File')
173
- if destination is not None:
174
- pulumi.set(__self__, "destination", destination)
175
- if name is not None:
176
- pulumi.set(__self__, "name", name)
177
- if sha256_checksum is None:
178
- sha256_checksum = ''
179
- if sha256_checksum is not None:
180
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
181
- if source_uri is not None:
182
- pulumi.set(__self__, "source_uri", source_uri)
183
-
184
- @property
185
- @pulumi.getter
186
- def type(self) -> str:
187
- """
188
- The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
189
- Expected value is 'File'.
190
- """
191
- return pulumi.get(self, "type")
192
-
193
- @property
194
- @pulumi.getter
195
- def destination(self) -> Optional[str]:
196
- """
197
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
198
- """
199
- return pulumi.get(self, "destination")
200
-
201
- @property
202
- @pulumi.getter
203
- def name(self) -> Optional[str]:
204
- """
205
- Friendly Name to provide context on what this customization step does
206
- """
207
- return pulumi.get(self, "name")
208
-
209
- @property
210
- @pulumi.getter(name="sha256Checksum")
211
- def sha256_checksum(self) -> Optional[str]:
212
- """
213
- SHA256 checksum of the file provided in the sourceUri field above
214
- """
215
- return pulumi.get(self, "sha256_checksum")
216
-
217
- @property
218
- @pulumi.getter(name="sourceUri")
219
- def source_uri(self) -> Optional[str]:
220
- """
221
- The URI of the file to be uploaded for customizing the VM. It can be a github link, SAS URI for Azure Storage, etc
222
- """
223
- return pulumi.get(self, "source_uri")
224
-
225
-
226
- @pulumi.output_type
227
- class ImageTemplateFileValidatorResponse(dict):
228
- """
229
- Uploads files required for validation to VMs (Linux, Windows). Corresponds to Packer file provisioner
230
- """
231
- @staticmethod
232
- def __key_warning(key: str):
233
- suggest = None
234
- if key == "sha256Checksum":
235
- suggest = "sha256_checksum"
236
- elif key == "sourceUri":
237
- suggest = "source_uri"
238
-
239
- if suggest:
240
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateFileValidatorResponse. Access the value via the '{suggest}' property getter instead.")
241
-
242
- def __getitem__(self, key: str) -> Any:
243
- ImageTemplateFileValidatorResponse.__key_warning(key)
244
- return super().__getitem__(key)
245
-
246
- def get(self, key: str, default = None) -> Any:
247
- ImageTemplateFileValidatorResponse.__key_warning(key)
248
- return super().get(key, default)
249
-
250
- def __init__(__self__, *,
251
- type: str,
252
- destination: Optional[str] = None,
253
- name: Optional[str] = None,
254
- sha256_checksum: Optional[str] = None,
255
- source_uri: Optional[str] = None):
256
- """
257
- Uploads files required for validation to VMs (Linux, Windows). Corresponds to Packer file provisioner
258
- :param str type: The type of validation you want to use on the Image. For example, "Shell" can be shell validation
259
- Expected value is 'File'.
260
- :param str destination: The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
261
- :param str name: Friendly Name to provide context on what this validation step does
262
- :param str sha256_checksum: SHA256 checksum of the file provided in the sourceUri field above
263
- :param str source_uri: The URI of the file to be uploaded to the VM for validation. It can be a github link, Azure Storage URI (authorized or SAS), etc
264
- """
265
- pulumi.set(__self__, "type", 'File')
266
- if destination is not None:
267
- pulumi.set(__self__, "destination", destination)
268
- if name is not None:
269
- pulumi.set(__self__, "name", name)
270
- if sha256_checksum is None:
271
- sha256_checksum = ''
272
- if sha256_checksum is not None:
273
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
274
- if source_uri is not None:
275
- pulumi.set(__self__, "source_uri", source_uri)
276
-
277
- @property
278
- @pulumi.getter
279
- def type(self) -> str:
280
- """
281
- The type of validation you want to use on the Image. For example, "Shell" can be shell validation
282
- Expected value is 'File'.
283
- """
284
- return pulumi.get(self, "type")
285
-
286
- @property
287
- @pulumi.getter
288
- def destination(self) -> Optional[str]:
289
- """
290
- The absolute path to a file (with nested directory structures already created) where the file (from sourceUri) will be uploaded to in the VM
291
- """
292
- return pulumi.get(self, "destination")
293
-
294
- @property
295
- @pulumi.getter
296
- def name(self) -> Optional[str]:
297
- """
298
- Friendly Name to provide context on what this validation step does
299
- """
300
- return pulumi.get(self, "name")
301
-
302
- @property
303
- @pulumi.getter(name="sha256Checksum")
304
- def sha256_checksum(self) -> Optional[str]:
305
- """
306
- SHA256 checksum of the file provided in the sourceUri field above
307
- """
308
- return pulumi.get(self, "sha256_checksum")
309
-
310
- @property
311
- @pulumi.getter(name="sourceUri")
312
- def source_uri(self) -> Optional[str]:
313
- """
314
- The URI of the file to be uploaded to the VM for validation. It can be a github link, Azure Storage URI (authorized or SAS), etc
315
- """
316
- return pulumi.get(self, "source_uri")
317
-
318
-
319
- @pulumi.output_type
320
- class ImageTemplateIdentityResponse(dict):
321
- """
322
- Identity for the image template.
323
- """
324
- @staticmethod
325
- def __key_warning(key: str):
326
- suggest = None
327
- if key == "userAssignedIdentities":
328
- suggest = "user_assigned_identities"
329
-
330
- if suggest:
331
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateIdentityResponse. Access the value via the '{suggest}' property getter instead.")
332
-
333
- def __getitem__(self, key: str) -> Any:
334
- ImageTemplateIdentityResponse.__key_warning(key)
335
- return super().__getitem__(key)
336
-
337
- def get(self, key: str, default = None) -> Any:
338
- ImageTemplateIdentityResponse.__key_warning(key)
339
- return super().get(key, default)
340
-
341
- def __init__(__self__, *,
342
- type: Optional[str] = None,
343
- user_assigned_identities: Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']] = None):
344
- """
345
- Identity for the image template.
346
- :param str type: The type of identity used for the image template. The type 'None' will remove any identities from the image template.
347
- :param Mapping[str, 'UserAssignedIdentityResponse'] user_assigned_identities: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
348
- """
349
- if type is not None:
350
- pulumi.set(__self__, "type", type)
351
- if user_assigned_identities is not None:
352
- pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
353
-
354
- @property
355
- @pulumi.getter
356
- def type(self) -> Optional[str]:
357
- """
358
- The type of identity used for the image template. The type 'None' will remove any identities from the image template.
359
- """
360
- return pulumi.get(self, "type")
361
-
362
- @property
363
- @pulumi.getter(name="userAssignedIdentities")
364
- def user_assigned_identities(self) -> Optional[Mapping[str, 'outputs.UserAssignedIdentityResponse']]:
365
- """
366
- The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
367
- """
368
- return pulumi.get(self, "user_assigned_identities")
369
-
370
-
371
- @pulumi.output_type
372
- class ImageTemplateLastRunStatusResponse(dict):
373
- """
374
- Describes the latest status of running an image template
375
- """
376
- @staticmethod
377
- def __key_warning(key: str):
378
- suggest = None
379
- if key == "endTime":
380
- suggest = "end_time"
381
- elif key == "runState":
382
- suggest = "run_state"
383
- elif key == "runSubState":
384
- suggest = "run_sub_state"
385
- elif key == "startTime":
386
- suggest = "start_time"
387
-
388
- if suggest:
389
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateLastRunStatusResponse. Access the value via the '{suggest}' property getter instead.")
390
-
391
- def __getitem__(self, key: str) -> Any:
392
- ImageTemplateLastRunStatusResponse.__key_warning(key)
393
- return super().__getitem__(key)
394
-
395
- def get(self, key: str, default = None) -> Any:
396
- ImageTemplateLastRunStatusResponse.__key_warning(key)
397
- return super().get(key, default)
398
-
399
- def __init__(__self__, *,
400
- end_time: Optional[str] = None,
401
- message: Optional[str] = None,
402
- run_state: Optional[str] = None,
403
- run_sub_state: Optional[str] = None,
404
- start_time: Optional[str] = None):
405
- """
406
- Describes the latest status of running an image template
407
- :param str end_time: End time of the last run (UTC)
408
- :param str message: Verbose information about the last run state
409
- :param str run_state: State of the last run
410
- :param str run_sub_state: Sub-state of the last run
411
- :param str start_time: Start time of the last run (UTC)
412
- """
413
- if end_time is not None:
414
- pulumi.set(__self__, "end_time", end_time)
415
- if message is not None:
416
- pulumi.set(__self__, "message", message)
417
- if run_state is not None:
418
- pulumi.set(__self__, "run_state", run_state)
419
- if run_sub_state is not None:
420
- pulumi.set(__self__, "run_sub_state", run_sub_state)
421
- if start_time is not None:
422
- pulumi.set(__self__, "start_time", start_time)
423
-
424
- @property
425
- @pulumi.getter(name="endTime")
426
- def end_time(self) -> Optional[str]:
427
- """
428
- End time of the last run (UTC)
429
- """
430
- return pulumi.get(self, "end_time")
431
-
432
- @property
433
- @pulumi.getter
434
- def message(self) -> Optional[str]:
435
- """
436
- Verbose information about the last run state
437
- """
438
- return pulumi.get(self, "message")
439
-
440
- @property
441
- @pulumi.getter(name="runState")
442
- def run_state(self) -> Optional[str]:
443
- """
444
- State of the last run
445
- """
446
- return pulumi.get(self, "run_state")
447
-
448
- @property
449
- @pulumi.getter(name="runSubState")
450
- def run_sub_state(self) -> Optional[str]:
451
- """
452
- Sub-state of the last run
453
- """
454
- return pulumi.get(self, "run_sub_state")
455
-
456
- @property
457
- @pulumi.getter(name="startTime")
458
- def start_time(self) -> Optional[str]:
459
- """
460
- Start time of the last run (UTC)
461
- """
462
- return pulumi.get(self, "start_time")
463
-
464
-
465
- @pulumi.output_type
466
- class ImageTemplateManagedImageDistributorResponse(dict):
467
- """
468
- Distribute as a Managed Disk Image.
469
- """
470
- @staticmethod
471
- def __key_warning(key: str):
472
- suggest = None
473
- if key == "imageId":
474
- suggest = "image_id"
475
- elif key == "runOutputName":
476
- suggest = "run_output_name"
477
- elif key == "artifactTags":
478
- suggest = "artifact_tags"
479
-
480
- if suggest:
481
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateManagedImageDistributorResponse. Access the value via the '{suggest}' property getter instead.")
482
-
483
- def __getitem__(self, key: str) -> Any:
484
- ImageTemplateManagedImageDistributorResponse.__key_warning(key)
485
- return super().__getitem__(key)
486
-
487
- def get(self, key: str, default = None) -> Any:
488
- ImageTemplateManagedImageDistributorResponse.__key_warning(key)
489
- return super().get(key, default)
490
-
491
- def __init__(__self__, *,
492
- image_id: str,
493
- location: str,
494
- run_output_name: str,
495
- type: str,
496
- artifact_tags: Optional[Mapping[str, str]] = None):
497
- """
498
- Distribute as a Managed Disk Image.
499
- :param str image_id: Resource Id of the Managed Disk Image
500
- :param str location: Azure location for the image, should match if image already exists
501
- :param str run_output_name: The name to be used for the associated RunOutput.
502
- :param str type: Type of distribution.
503
- Expected value is 'ManagedImage'.
504
- :param Mapping[str, str] artifact_tags: Tags that will be applied to the artifact once it has been created/updated by the distributor.
505
- """
506
- pulumi.set(__self__, "image_id", image_id)
507
- pulumi.set(__self__, "location", location)
508
- pulumi.set(__self__, "run_output_name", run_output_name)
509
- pulumi.set(__self__, "type", 'ManagedImage')
510
- if artifact_tags is not None:
511
- pulumi.set(__self__, "artifact_tags", artifact_tags)
512
-
513
- @property
514
- @pulumi.getter(name="imageId")
515
- def image_id(self) -> str:
516
- """
517
- Resource Id of the Managed Disk Image
518
- """
519
- return pulumi.get(self, "image_id")
520
-
521
- @property
522
- @pulumi.getter
523
- def location(self) -> str:
524
- """
525
- Azure location for the image, should match if image already exists
526
- """
527
- return pulumi.get(self, "location")
528
-
529
- @property
530
- @pulumi.getter(name="runOutputName")
531
- def run_output_name(self) -> str:
532
- """
533
- The name to be used for the associated RunOutput.
534
- """
535
- return pulumi.get(self, "run_output_name")
536
-
537
- @property
538
- @pulumi.getter
539
- def type(self) -> str:
540
- """
541
- Type of distribution.
542
- Expected value is 'ManagedImage'.
543
- """
544
- return pulumi.get(self, "type")
545
-
546
- @property
547
- @pulumi.getter(name="artifactTags")
548
- def artifact_tags(self) -> Optional[Mapping[str, str]]:
549
- """
550
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
551
- """
552
- return pulumi.get(self, "artifact_tags")
553
-
554
-
555
- @pulumi.output_type
556
- class ImageTemplateManagedImageSourceResponse(dict):
557
- """
558
- Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template.
559
- """
560
- @staticmethod
561
- def __key_warning(key: str):
562
- suggest = None
563
- if key == "imageId":
564
- suggest = "image_id"
565
-
566
- if suggest:
567
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateManagedImageSourceResponse. Access the value via the '{suggest}' property getter instead.")
568
-
569
- def __getitem__(self, key: str) -> Any:
570
- ImageTemplateManagedImageSourceResponse.__key_warning(key)
571
- return super().__getitem__(key)
572
-
573
- def get(self, key: str, default = None) -> Any:
574
- ImageTemplateManagedImageSourceResponse.__key_warning(key)
575
- return super().get(key, default)
576
-
577
- def __init__(__self__, *,
578
- image_id: str,
579
- type: str):
580
- """
581
- Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template.
582
- :param str image_id: ARM resource id of the managed image in customer subscription
583
- :param str type: Specifies the type of source image you want to start with.
584
- Expected value is 'ManagedImage'.
585
- """
586
- pulumi.set(__self__, "image_id", image_id)
587
- pulumi.set(__self__, "type", 'ManagedImage')
588
-
589
- @property
590
- @pulumi.getter(name="imageId")
591
- def image_id(self) -> str:
592
- """
593
- ARM resource id of the managed image in customer subscription
594
- """
595
- return pulumi.get(self, "image_id")
596
-
597
- @property
598
- @pulumi.getter
599
- def type(self) -> str:
600
- """
601
- Specifies the type of source image you want to start with.
602
- Expected value is 'ManagedImage'.
603
- """
604
- return pulumi.get(self, "type")
605
-
606
-
607
- @pulumi.output_type
608
- class ImageTemplatePlatformImageSourceResponse(dict):
609
- """
610
- Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
611
- """
612
- @staticmethod
613
- def __key_warning(key: str):
614
- suggest = None
615
- if key == "exactVersion":
616
- suggest = "exact_version"
617
- elif key == "planInfo":
618
- suggest = "plan_info"
619
-
620
- if suggest:
621
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePlatformImageSourceResponse. Access the value via the '{suggest}' property getter instead.")
622
-
623
- def __getitem__(self, key: str) -> Any:
624
- ImageTemplatePlatformImageSourceResponse.__key_warning(key)
625
- return super().__getitem__(key)
626
-
627
- def get(self, key: str, default = None) -> Any:
628
- ImageTemplatePlatformImageSourceResponse.__key_warning(key)
629
- return super().get(key, default)
630
-
631
- def __init__(__self__, *,
632
- exact_version: str,
633
- type: str,
634
- offer: Optional[str] = None,
635
- plan_info: Optional['outputs.PlatformImagePurchasePlanResponse'] = None,
636
- publisher: Optional[str] = None,
637
- sku: Optional[str] = None,
638
- version: Optional[str] = None):
639
- """
640
- Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
641
- :param str exact_version: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
642
- :param str type: Specifies the type of source image you want to start with.
643
- Expected value is 'PlatformImage'.
644
- :param str offer: Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
645
- :param 'PlatformImagePurchasePlanResponse' plan_info: Optional configuration of purchase plan for platform image.
646
- :param str publisher: Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
647
- :param str sku: Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
648
- :param str version: Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
649
- """
650
- pulumi.set(__self__, "exact_version", exact_version)
651
- pulumi.set(__self__, "type", 'PlatformImage')
652
- if offer is not None:
653
- pulumi.set(__self__, "offer", offer)
654
- if plan_info is not None:
655
- pulumi.set(__self__, "plan_info", plan_info)
656
- if publisher is not None:
657
- pulumi.set(__self__, "publisher", publisher)
658
- if sku is not None:
659
- pulumi.set(__self__, "sku", sku)
660
- if version is not None:
661
- pulumi.set(__self__, "version", version)
662
-
663
- @property
664
- @pulumi.getter(name="exactVersion")
665
- def exact_version(self) -> str:
666
- """
667
- Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'.
668
- """
669
- return pulumi.get(self, "exact_version")
670
-
671
- @property
672
- @pulumi.getter
673
- def type(self) -> str:
674
- """
675
- Specifies the type of source image you want to start with.
676
- Expected value is 'PlatformImage'.
677
- """
678
- return pulumi.get(self, "type")
679
-
680
- @property
681
- @pulumi.getter
682
- def offer(self) -> Optional[str]:
683
- """
684
- Image offer from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
685
- """
686
- return pulumi.get(self, "offer")
687
-
688
- @property
689
- @pulumi.getter(name="planInfo")
690
- def plan_info(self) -> Optional['outputs.PlatformImagePurchasePlanResponse']:
691
- """
692
- Optional configuration of purchase plan for platform image.
693
- """
694
- return pulumi.get(self, "plan_info")
695
-
696
- @property
697
- @pulumi.getter
698
- def publisher(self) -> Optional[str]:
699
- """
700
- Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
701
- """
702
- return pulumi.get(self, "publisher")
703
-
704
- @property
705
- @pulumi.getter
706
- def sku(self) -> Optional[str]:
707
- """
708
- Image sku from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages).
709
- """
710
- return pulumi.get(self, "sku")
711
-
712
- @property
713
- @pulumi.getter
714
- def version(self) -> Optional[str]:
715
- """
716
- Image version from the [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages). If 'latest' is specified here, the version is evaluated when the image build takes place, not when the template is submitted.
717
- """
718
- return pulumi.get(self, "version")
719
-
720
-
721
- @pulumi.output_type
722
- class ImageTemplatePowerShellCustomizerResponse(dict):
723
- """
724
- Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
725
- """
726
- @staticmethod
727
- def __key_warning(key: str):
728
- suggest = None
729
- if key == "runAsSystem":
730
- suggest = "run_as_system"
731
- elif key == "runElevated":
732
- suggest = "run_elevated"
733
- elif key == "scriptUri":
734
- suggest = "script_uri"
735
- elif key == "sha256Checksum":
736
- suggest = "sha256_checksum"
737
- elif key == "validExitCodes":
738
- suggest = "valid_exit_codes"
739
-
740
- if suggest:
741
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePowerShellCustomizerResponse. Access the value via the '{suggest}' property getter instead.")
742
-
743
- def __getitem__(self, key: str) -> Any:
744
- ImageTemplatePowerShellCustomizerResponse.__key_warning(key)
745
- return super().__getitem__(key)
746
-
747
- def get(self, key: str, default = None) -> Any:
748
- ImageTemplatePowerShellCustomizerResponse.__key_warning(key)
749
- return super().get(key, default)
750
-
751
- def __init__(__self__, *,
752
- type: str,
753
- inline: Optional[Sequence[str]] = None,
754
- name: Optional[str] = None,
755
- run_as_system: Optional[bool] = None,
756
- run_elevated: Optional[bool] = None,
757
- script_uri: Optional[str] = None,
758
- sha256_checksum: Optional[str] = None,
759
- valid_exit_codes: Optional[Sequence[int]] = None):
760
- """
761
- Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
762
- :param str type: The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
763
- Expected value is 'PowerShell'.
764
- :param Sequence[str] inline: Array of PowerShell commands to execute
765
- :param str name: Friendly Name to provide context on what this customization step does
766
- :param bool run_as_system: If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
767
- :param bool run_elevated: If specified, the PowerShell script will be run with elevated privileges
768
- :param str script_uri: URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
769
- :param str sha256_checksum: SHA256 checksum of the power shell script provided in the scriptUri field above
770
- :param Sequence[int] valid_exit_codes: Valid exit codes for the PowerShell script. [Default: 0]
771
- """
772
- pulumi.set(__self__, "type", 'PowerShell')
773
- if inline is not None:
774
- pulumi.set(__self__, "inline", inline)
775
- if name is not None:
776
- pulumi.set(__self__, "name", name)
777
- if run_as_system is None:
778
- run_as_system = False
779
- if run_as_system is not None:
780
- pulumi.set(__self__, "run_as_system", run_as_system)
781
- if run_elevated is None:
782
- run_elevated = False
783
- if run_elevated is not None:
784
- pulumi.set(__self__, "run_elevated", run_elevated)
785
- if script_uri is not None:
786
- pulumi.set(__self__, "script_uri", script_uri)
787
- if sha256_checksum is None:
788
- sha256_checksum = ''
789
- if sha256_checksum is not None:
790
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
791
- if valid_exit_codes is not None:
792
- pulumi.set(__self__, "valid_exit_codes", valid_exit_codes)
793
-
794
- @property
795
- @pulumi.getter
796
- def type(self) -> str:
797
- """
798
- The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
799
- Expected value is 'PowerShell'.
800
- """
801
- return pulumi.get(self, "type")
802
-
803
- @property
804
- @pulumi.getter
805
- def inline(self) -> Optional[Sequence[str]]:
806
- """
807
- Array of PowerShell commands to execute
808
- """
809
- return pulumi.get(self, "inline")
810
-
811
- @property
812
- @pulumi.getter
813
- def name(self) -> Optional[str]:
814
- """
815
- Friendly Name to provide context on what this customization step does
816
- """
817
- return pulumi.get(self, "name")
818
-
819
- @property
820
- @pulumi.getter(name="runAsSystem")
821
- def run_as_system(self) -> Optional[bool]:
822
- """
823
- If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
824
- """
825
- return pulumi.get(self, "run_as_system")
826
-
827
- @property
828
- @pulumi.getter(name="runElevated")
829
- def run_elevated(self) -> Optional[bool]:
830
- """
831
- If specified, the PowerShell script will be run with elevated privileges
832
- """
833
- return pulumi.get(self, "run_elevated")
834
-
835
- @property
836
- @pulumi.getter(name="scriptUri")
837
- def script_uri(self) -> Optional[str]:
838
- """
839
- URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
840
- """
841
- return pulumi.get(self, "script_uri")
842
-
843
- @property
844
- @pulumi.getter(name="sha256Checksum")
845
- def sha256_checksum(self) -> Optional[str]:
846
- """
847
- SHA256 checksum of the power shell script provided in the scriptUri field above
848
- """
849
- return pulumi.get(self, "sha256_checksum")
850
-
851
- @property
852
- @pulumi.getter(name="validExitCodes")
853
- def valid_exit_codes(self) -> Optional[Sequence[int]]:
854
- """
855
- Valid exit codes for the PowerShell script. [Default: 0]
856
- """
857
- return pulumi.get(self, "valid_exit_codes")
858
-
859
-
860
- @pulumi.output_type
861
- class ImageTemplatePowerShellValidatorResponse(dict):
862
- """
863
- Runs the specified PowerShell script during the validation phase (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
864
- """
865
- @staticmethod
866
- def __key_warning(key: str):
867
- suggest = None
868
- if key == "runAsSystem":
869
- suggest = "run_as_system"
870
- elif key == "runElevated":
871
- suggest = "run_elevated"
872
- elif key == "scriptUri":
873
- suggest = "script_uri"
874
- elif key == "sha256Checksum":
875
- suggest = "sha256_checksum"
876
- elif key == "validExitCodes":
877
- suggest = "valid_exit_codes"
878
-
879
- if suggest:
880
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePowerShellValidatorResponse. Access the value via the '{suggest}' property getter instead.")
881
-
882
- def __getitem__(self, key: str) -> Any:
883
- ImageTemplatePowerShellValidatorResponse.__key_warning(key)
884
- return super().__getitem__(key)
885
-
886
- def get(self, key: str, default = None) -> Any:
887
- ImageTemplatePowerShellValidatorResponse.__key_warning(key)
888
- return super().get(key, default)
889
-
890
- def __init__(__self__, *,
891
- type: str,
892
- inline: Optional[Sequence[str]] = None,
893
- name: Optional[str] = None,
894
- run_as_system: Optional[bool] = None,
895
- run_elevated: Optional[bool] = None,
896
- script_uri: Optional[str] = None,
897
- sha256_checksum: Optional[str] = None,
898
- valid_exit_codes: Optional[Sequence[int]] = None):
899
- """
900
- Runs the specified PowerShell script during the validation phase (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
901
- :param str type: The type of validation you want to use on the Image. For example, "Shell" can be shell validation
902
- Expected value is 'PowerShell'.
903
- :param Sequence[str] inline: Array of PowerShell commands to execute
904
- :param str name: Friendly Name to provide context on what this validation step does
905
- :param bool run_as_system: If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
906
- :param bool run_elevated: If specified, the PowerShell script will be run with elevated privileges
907
- :param str script_uri: URI of the PowerShell script to be run for validation. It can be a github link, Azure Storage URI, etc
908
- :param str sha256_checksum: SHA256 checksum of the power shell script provided in the scriptUri field above
909
- :param Sequence[int] valid_exit_codes: Valid exit codes for the PowerShell script. [Default: 0]
910
- """
911
- pulumi.set(__self__, "type", 'PowerShell')
912
- if inline is not None:
913
- pulumi.set(__self__, "inline", inline)
914
- if name is not None:
915
- pulumi.set(__self__, "name", name)
916
- if run_as_system is None:
917
- run_as_system = False
918
- if run_as_system is not None:
919
- pulumi.set(__self__, "run_as_system", run_as_system)
920
- if run_elevated is None:
921
- run_elevated = False
922
- if run_elevated is not None:
923
- pulumi.set(__self__, "run_elevated", run_elevated)
924
- if script_uri is not None:
925
- pulumi.set(__self__, "script_uri", script_uri)
926
- if sha256_checksum is None:
927
- sha256_checksum = ''
928
- if sha256_checksum is not None:
929
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
930
- if valid_exit_codes is not None:
931
- pulumi.set(__self__, "valid_exit_codes", valid_exit_codes)
932
-
933
- @property
934
- @pulumi.getter
935
- def type(self) -> str:
936
- """
937
- The type of validation you want to use on the Image. For example, "Shell" can be shell validation
938
- Expected value is 'PowerShell'.
939
- """
940
- return pulumi.get(self, "type")
941
-
942
- @property
943
- @pulumi.getter
944
- def inline(self) -> Optional[Sequence[str]]:
945
- """
946
- Array of PowerShell commands to execute
947
- """
948
- return pulumi.get(self, "inline")
949
-
950
- @property
951
- @pulumi.getter
952
- def name(self) -> Optional[str]:
953
- """
954
- Friendly Name to provide context on what this validation step does
955
- """
956
- return pulumi.get(self, "name")
957
-
958
- @property
959
- @pulumi.getter(name="runAsSystem")
960
- def run_as_system(self) -> Optional[bool]:
961
- """
962
- If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
963
- """
964
- return pulumi.get(self, "run_as_system")
965
-
966
- @property
967
- @pulumi.getter(name="runElevated")
968
- def run_elevated(self) -> Optional[bool]:
969
- """
970
- If specified, the PowerShell script will be run with elevated privileges
971
- """
972
- return pulumi.get(self, "run_elevated")
973
-
974
- @property
975
- @pulumi.getter(name="scriptUri")
976
- def script_uri(self) -> Optional[str]:
977
- """
978
- URI of the PowerShell script to be run for validation. It can be a github link, Azure Storage URI, etc
979
- """
980
- return pulumi.get(self, "script_uri")
981
-
982
- @property
983
- @pulumi.getter(name="sha256Checksum")
984
- def sha256_checksum(self) -> Optional[str]:
985
- """
986
- SHA256 checksum of the power shell script provided in the scriptUri field above
987
- """
988
- return pulumi.get(self, "sha256_checksum")
989
-
990
- @property
991
- @pulumi.getter(name="validExitCodes")
992
- def valid_exit_codes(self) -> Optional[Sequence[int]]:
993
- """
994
- Valid exit codes for the PowerShell script. [Default: 0]
995
- """
996
- return pulumi.get(self, "valid_exit_codes")
997
-
998
-
999
- @pulumi.output_type
1000
- class ImageTemplatePropertiesResponseErrorHandling(dict):
1001
- """
1002
- Error handling options upon a build failure
1003
- """
1004
- @staticmethod
1005
- def __key_warning(key: str):
1006
- suggest = None
1007
- if key == "onCustomizerError":
1008
- suggest = "on_customizer_error"
1009
- elif key == "onValidationError":
1010
- suggest = "on_validation_error"
1011
-
1012
- if suggest:
1013
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePropertiesResponseErrorHandling. Access the value via the '{suggest}' property getter instead.")
1014
-
1015
- def __getitem__(self, key: str) -> Any:
1016
- ImageTemplatePropertiesResponseErrorHandling.__key_warning(key)
1017
- return super().__getitem__(key)
1018
-
1019
- def get(self, key: str, default = None) -> Any:
1020
- ImageTemplatePropertiesResponseErrorHandling.__key_warning(key)
1021
- return super().get(key, default)
1022
-
1023
- def __init__(__self__, *,
1024
- on_customizer_error: Optional[str] = None,
1025
- on_validation_error: Optional[str] = None):
1026
- """
1027
- Error handling options upon a build failure
1028
- :param str on_customizer_error: If there is a customizer error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a customizer error and this field is set to 'abort', the build VM will be preserved.
1029
- :param str on_validation_error: If there is a validation error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a validation error and this field is set to 'abort', the build VM will be preserved.
1030
- """
1031
- if on_customizer_error is None:
1032
- on_customizer_error = 'cleanup'
1033
- if on_customizer_error is not None:
1034
- pulumi.set(__self__, "on_customizer_error", on_customizer_error)
1035
- if on_validation_error is None:
1036
- on_validation_error = 'cleanup'
1037
- if on_validation_error is not None:
1038
- pulumi.set(__self__, "on_validation_error", on_validation_error)
1039
-
1040
- @property
1041
- @pulumi.getter(name="onCustomizerError")
1042
- def on_customizer_error(self) -> Optional[str]:
1043
- """
1044
- If there is a customizer error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a customizer error and this field is set to 'abort', the build VM will be preserved.
1045
- """
1046
- return pulumi.get(self, "on_customizer_error")
1047
-
1048
- @property
1049
- @pulumi.getter(name="onValidationError")
1050
- def on_validation_error(self) -> Optional[str]:
1051
- """
1052
- If there is a validation error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a validation error and this field is set to 'abort', the build VM will be preserved.
1053
- """
1054
- return pulumi.get(self, "on_validation_error")
1055
-
1056
-
1057
- @pulumi.output_type
1058
- class ImageTemplatePropertiesResponseOptimize(dict):
1059
- """
1060
- Specifies optimization to be performed on image.
1061
- """
1062
- @staticmethod
1063
- def __key_warning(key: str):
1064
- suggest = None
1065
- if key == "vmBoot":
1066
- suggest = "vm_boot"
1067
-
1068
- if suggest:
1069
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePropertiesResponseOptimize. Access the value via the '{suggest}' property getter instead.")
1070
-
1071
- def __getitem__(self, key: str) -> Any:
1072
- ImageTemplatePropertiesResponseOptimize.__key_warning(key)
1073
- return super().__getitem__(key)
1074
-
1075
- def get(self, key: str, default = None) -> Any:
1076
- ImageTemplatePropertiesResponseOptimize.__key_warning(key)
1077
- return super().get(key, default)
1078
-
1079
- def __init__(__self__, *,
1080
- vm_boot: Optional['outputs.ImageTemplatePropertiesResponseVmBoot'] = None):
1081
- """
1082
- Specifies optimization to be performed on image.
1083
- :param 'ImageTemplatePropertiesResponseVmBoot' vm_boot: Optimization is applied on the image for a faster VM boot.
1084
- """
1085
- if vm_boot is not None:
1086
- pulumi.set(__self__, "vm_boot", vm_boot)
1087
-
1088
- @property
1089
- @pulumi.getter(name="vmBoot")
1090
- def vm_boot(self) -> Optional['outputs.ImageTemplatePropertiesResponseVmBoot']:
1091
- """
1092
- Optimization is applied on the image for a faster VM boot.
1093
- """
1094
- return pulumi.get(self, "vm_boot")
1095
-
1096
-
1097
- @pulumi.output_type
1098
- class ImageTemplatePropertiesResponseValidate(dict):
1099
- """
1100
- Configuration options and list of validations to be performed on the resulting image.
1101
- """
1102
- @staticmethod
1103
- def __key_warning(key: str):
1104
- suggest = None
1105
- if key == "continueDistributeOnFailure":
1106
- suggest = "continue_distribute_on_failure"
1107
- elif key == "inVMValidations":
1108
- suggest = "in_vm_validations"
1109
- elif key == "sourceValidationOnly":
1110
- suggest = "source_validation_only"
1111
-
1112
- if suggest:
1113
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplatePropertiesResponseValidate. Access the value via the '{suggest}' property getter instead.")
1114
-
1115
- def __getitem__(self, key: str) -> Any:
1116
- ImageTemplatePropertiesResponseValidate.__key_warning(key)
1117
- return super().__getitem__(key)
1118
-
1119
- def get(self, key: str, default = None) -> Any:
1120
- ImageTemplatePropertiesResponseValidate.__key_warning(key)
1121
- return super().get(key, default)
1122
-
1123
- def __init__(__self__, *,
1124
- continue_distribute_on_failure: Optional[bool] = None,
1125
- in_vm_validations: Optional[Sequence[Any]] = None,
1126
- source_validation_only: Optional[bool] = None):
1127
- """
1128
- Configuration options and list of validations to be performed on the resulting image.
1129
- :param bool continue_distribute_on_failure: If validation fails and this field is set to false, output image(s) will not be distributed. This is the default behavior. If validation fails and this field is set to true, output image(s) will still be distributed. Please use this option with caution as it may result in bad images being distributed for use. In either case (true or false), the end to end image run will be reported as having failed in case of a validation failure. [Note: This field has no effect if validation succeeds.]
1130
- :param Sequence[Union['ImageTemplateFileValidatorResponse', 'ImageTemplatePowerShellValidatorResponse', 'ImageTemplateShellValidatorResponse']] in_vm_validations: List of validations to be performed.
1131
- :param bool source_validation_only: If this field is set to true, the image specified in the 'source' section will directly be validated. No separate build will be run to generate and then validate a customized image.
1132
- """
1133
- if continue_distribute_on_failure is None:
1134
- continue_distribute_on_failure = False
1135
- if continue_distribute_on_failure is not None:
1136
- pulumi.set(__self__, "continue_distribute_on_failure", continue_distribute_on_failure)
1137
- if in_vm_validations is not None:
1138
- pulumi.set(__self__, "in_vm_validations", in_vm_validations)
1139
- if source_validation_only is None:
1140
- source_validation_only = False
1141
- if source_validation_only is not None:
1142
- pulumi.set(__self__, "source_validation_only", source_validation_only)
1143
-
1144
- @property
1145
- @pulumi.getter(name="continueDistributeOnFailure")
1146
- def continue_distribute_on_failure(self) -> Optional[bool]:
1147
- """
1148
- If validation fails and this field is set to false, output image(s) will not be distributed. This is the default behavior. If validation fails and this field is set to true, output image(s) will still be distributed. Please use this option with caution as it may result in bad images being distributed for use. In either case (true or false), the end to end image run will be reported as having failed in case of a validation failure. [Note: This field has no effect if validation succeeds.]
1149
- """
1150
- return pulumi.get(self, "continue_distribute_on_failure")
1151
-
1152
- @property
1153
- @pulumi.getter(name="inVMValidations")
1154
- def in_vm_validations(self) -> Optional[Sequence[Any]]:
1155
- """
1156
- List of validations to be performed.
1157
- """
1158
- return pulumi.get(self, "in_vm_validations")
1159
-
1160
- @property
1161
- @pulumi.getter(name="sourceValidationOnly")
1162
- def source_validation_only(self) -> Optional[bool]:
1163
- """
1164
- If this field is set to true, the image specified in the 'source' section will directly be validated. No separate build will be run to generate and then validate a customized image.
1165
- """
1166
- return pulumi.get(self, "source_validation_only")
1167
-
1168
-
1169
- @pulumi.output_type
1170
- class ImageTemplatePropertiesResponseVmBoot(dict):
1171
- """
1172
- Optimization is applied on the image for a faster VM boot.
1173
- """
1174
- def __init__(__self__, *,
1175
- state: Optional[str] = None):
1176
- """
1177
- Optimization is applied on the image for a faster VM boot.
1178
- :param str state: Enabling this field will improve VM boot time by optimizing the final customized image output.
1179
- """
1180
- if state is not None:
1181
- pulumi.set(__self__, "state", state)
1182
-
1183
- @property
1184
- @pulumi.getter
1185
- def state(self) -> Optional[str]:
1186
- """
1187
- Enabling this field will improve VM boot time by optimizing the final customized image output.
1188
- """
1189
- return pulumi.get(self, "state")
1190
-
1191
-
1192
- @pulumi.output_type
1193
- class ImageTemplateRestartCustomizerResponse(dict):
1194
- """
1195
- Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner
1196
- """
1197
- @staticmethod
1198
- def __key_warning(key: str):
1199
- suggest = None
1200
- if key == "restartCheckCommand":
1201
- suggest = "restart_check_command"
1202
- elif key == "restartCommand":
1203
- suggest = "restart_command"
1204
- elif key == "restartTimeout":
1205
- suggest = "restart_timeout"
1206
-
1207
- if suggest:
1208
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateRestartCustomizerResponse. Access the value via the '{suggest}' property getter instead.")
1209
-
1210
- def __getitem__(self, key: str) -> Any:
1211
- ImageTemplateRestartCustomizerResponse.__key_warning(key)
1212
- return super().__getitem__(key)
1213
-
1214
- def get(self, key: str, default = None) -> Any:
1215
- ImageTemplateRestartCustomizerResponse.__key_warning(key)
1216
- return super().get(key, default)
1217
-
1218
- def __init__(__self__, *,
1219
- type: str,
1220
- name: Optional[str] = None,
1221
- restart_check_command: Optional[str] = None,
1222
- restart_command: Optional[str] = None,
1223
- restart_timeout: Optional[str] = None):
1224
- """
1225
- Reboots a VM and waits for it to come back online (Windows). Corresponds to Packer windows-restart provisioner
1226
- :param str type: The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1227
- Expected value is 'WindowsRestart'.
1228
- :param str name: Friendly Name to provide context on what this customization step does
1229
- :param str restart_check_command: Command to check if restart succeeded [Default: '']
1230
- :param str restart_command: Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
1231
- :param str restart_timeout: Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
1232
- """
1233
- pulumi.set(__self__, "type", 'WindowsRestart')
1234
- if name is not None:
1235
- pulumi.set(__self__, "name", name)
1236
- if restart_check_command is not None:
1237
- pulumi.set(__self__, "restart_check_command", restart_check_command)
1238
- if restart_command is not None:
1239
- pulumi.set(__self__, "restart_command", restart_command)
1240
- if restart_timeout is not None:
1241
- pulumi.set(__self__, "restart_timeout", restart_timeout)
1242
-
1243
- @property
1244
- @pulumi.getter
1245
- def type(self) -> str:
1246
- """
1247
- The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1248
- Expected value is 'WindowsRestart'.
1249
- """
1250
- return pulumi.get(self, "type")
1251
-
1252
- @property
1253
- @pulumi.getter
1254
- def name(self) -> Optional[str]:
1255
- """
1256
- Friendly Name to provide context on what this customization step does
1257
- """
1258
- return pulumi.get(self, "name")
1259
-
1260
- @property
1261
- @pulumi.getter(name="restartCheckCommand")
1262
- def restart_check_command(self) -> Optional[str]:
1263
- """
1264
- Command to check if restart succeeded [Default: '']
1265
- """
1266
- return pulumi.get(self, "restart_check_command")
1267
-
1268
- @property
1269
- @pulumi.getter(name="restartCommand")
1270
- def restart_command(self) -> Optional[str]:
1271
- """
1272
- Command to execute the restart [Default: 'shutdown /r /f /t 0 /c "packer restart"']
1273
- """
1274
- return pulumi.get(self, "restart_command")
1275
-
1276
- @property
1277
- @pulumi.getter(name="restartTimeout")
1278
- def restart_timeout(self) -> Optional[str]:
1279
- """
1280
- Restart timeout specified as a string of magnitude and unit, e.g. '5m' (5 minutes) or '2h' (2 hours) [Default: '5m']
1281
- """
1282
- return pulumi.get(self, "restart_timeout")
1283
-
1284
-
1285
- @pulumi.output_type
1286
- class ImageTemplateSharedImageDistributorResponse(dict):
1287
- """
1288
- Distribute via Azure Compute Gallery.
1289
- """
1290
- @staticmethod
1291
- def __key_warning(key: str):
1292
- suggest = None
1293
- if key == "galleryImageId":
1294
- suggest = "gallery_image_id"
1295
- elif key == "runOutputName":
1296
- suggest = "run_output_name"
1297
- elif key == "artifactTags":
1298
- suggest = "artifact_tags"
1299
- elif key == "excludeFromLatest":
1300
- suggest = "exclude_from_latest"
1301
- elif key == "replicationRegions":
1302
- suggest = "replication_regions"
1303
- elif key == "storageAccountType":
1304
- suggest = "storage_account_type"
1305
- elif key == "targetRegions":
1306
- suggest = "target_regions"
1307
-
1308
- if suggest:
1309
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateSharedImageDistributorResponse. Access the value via the '{suggest}' property getter instead.")
1310
-
1311
- def __getitem__(self, key: str) -> Any:
1312
- ImageTemplateSharedImageDistributorResponse.__key_warning(key)
1313
- return super().__getitem__(key)
1314
-
1315
- def get(self, key: str, default = None) -> Any:
1316
- ImageTemplateSharedImageDistributorResponse.__key_warning(key)
1317
- return super().get(key, default)
1318
-
1319
- def __init__(__self__, *,
1320
- gallery_image_id: str,
1321
- run_output_name: str,
1322
- type: str,
1323
- artifact_tags: Optional[Mapping[str, str]] = None,
1324
- exclude_from_latest: Optional[bool] = None,
1325
- replication_regions: Optional[Sequence[str]] = None,
1326
- storage_account_type: Optional[str] = None,
1327
- target_regions: Optional[Sequence['outputs.TargetRegionResponse']] = None,
1328
- versioning: Optional[Any] = None):
1329
- """
1330
- Distribute via Azure Compute Gallery.
1331
- :param str gallery_image_id: Resource Id of the Azure Compute Gallery image
1332
- :param str run_output_name: The name to be used for the associated RunOutput.
1333
- :param str type: Type of distribution.
1334
- Expected value is 'SharedImage'.
1335
- :param Mapping[str, str] artifact_tags: Tags that will be applied to the artifact once it has been created/updated by the distributor.
1336
- :param bool exclude_from_latest: Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
1337
- :param Sequence[str] replication_regions: [Deprecated] A list of regions that the image will be replicated to. This list can be specified only if targetRegions is not specified. This field is deprecated - use targetRegions instead.
1338
- :param str storage_account_type: [Deprecated] Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). This field can be specified only if replicationRegions is specified. This field is deprecated - use targetRegions instead.
1339
- :param Sequence['TargetRegionResponse'] target_regions: The target regions where the distributed Image Version is going to be replicated to. This object supersedes replicationRegions and can be specified only if replicationRegions is not specified.
1340
- :param Union['DistributeVersionerLatestResponse', 'DistributeVersionerSourceResponse'] versioning: Describes how to generate new x.y.z version number for distribution.
1341
- """
1342
- pulumi.set(__self__, "gallery_image_id", gallery_image_id)
1343
- pulumi.set(__self__, "run_output_name", run_output_name)
1344
- pulumi.set(__self__, "type", 'SharedImage')
1345
- if artifact_tags is not None:
1346
- pulumi.set(__self__, "artifact_tags", artifact_tags)
1347
- if exclude_from_latest is None:
1348
- exclude_from_latest = False
1349
- if exclude_from_latest is not None:
1350
- pulumi.set(__self__, "exclude_from_latest", exclude_from_latest)
1351
- if replication_regions is not None:
1352
- pulumi.set(__self__, "replication_regions", replication_regions)
1353
- if storage_account_type is not None:
1354
- pulumi.set(__self__, "storage_account_type", storage_account_type)
1355
- if target_regions is not None:
1356
- pulumi.set(__self__, "target_regions", target_regions)
1357
- if versioning is not None:
1358
- pulumi.set(__self__, "versioning", versioning)
1359
-
1360
- @property
1361
- @pulumi.getter(name="galleryImageId")
1362
- def gallery_image_id(self) -> str:
1363
- """
1364
- Resource Id of the Azure Compute Gallery image
1365
- """
1366
- return pulumi.get(self, "gallery_image_id")
1367
-
1368
- @property
1369
- @pulumi.getter(name="runOutputName")
1370
- def run_output_name(self) -> str:
1371
- """
1372
- The name to be used for the associated RunOutput.
1373
- """
1374
- return pulumi.get(self, "run_output_name")
1375
-
1376
- @property
1377
- @pulumi.getter
1378
- def type(self) -> str:
1379
- """
1380
- Type of distribution.
1381
- Expected value is 'SharedImage'.
1382
- """
1383
- return pulumi.get(self, "type")
1384
-
1385
- @property
1386
- @pulumi.getter(name="artifactTags")
1387
- def artifact_tags(self) -> Optional[Mapping[str, str]]:
1388
- """
1389
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
1390
- """
1391
- return pulumi.get(self, "artifact_tags")
1392
-
1393
- @property
1394
- @pulumi.getter(name="excludeFromLatest")
1395
- def exclude_from_latest(self) -> Optional[bool]:
1396
- """
1397
- Flag that indicates whether created image version should be excluded from latest. Omit to use the default (false).
1398
- """
1399
- return pulumi.get(self, "exclude_from_latest")
1400
-
1401
- @property
1402
- @pulumi.getter(name="replicationRegions")
1403
- def replication_regions(self) -> Optional[Sequence[str]]:
1404
- """
1405
- [Deprecated] A list of regions that the image will be replicated to. This list can be specified only if targetRegions is not specified. This field is deprecated - use targetRegions instead.
1406
- """
1407
- return pulumi.get(self, "replication_regions")
1408
-
1409
- @property
1410
- @pulumi.getter(name="storageAccountType")
1411
- def storage_account_type(self) -> Optional[str]:
1412
- """
1413
- [Deprecated] Storage account type to be used to store the shared image. Omit to use the default (Standard_LRS). This field can be specified only if replicationRegions is specified. This field is deprecated - use targetRegions instead.
1414
- """
1415
- return pulumi.get(self, "storage_account_type")
1416
-
1417
- @property
1418
- @pulumi.getter(name="targetRegions")
1419
- def target_regions(self) -> Optional[Sequence['outputs.TargetRegionResponse']]:
1420
- """
1421
- The target regions where the distributed Image Version is going to be replicated to. This object supersedes replicationRegions and can be specified only if replicationRegions is not specified.
1422
- """
1423
- return pulumi.get(self, "target_regions")
1424
-
1425
- @property
1426
- @pulumi.getter
1427
- def versioning(self) -> Optional[Any]:
1428
- """
1429
- Describes how to generate new x.y.z version number for distribution.
1430
- """
1431
- return pulumi.get(self, "versioning")
1432
-
1433
-
1434
- @pulumi.output_type
1435
- class ImageTemplateSharedImageVersionSourceResponse(dict):
1436
- """
1437
- Describes an image source that is an image version in an Azure Compute Gallery or a Direct Shared Gallery.
1438
- """
1439
- @staticmethod
1440
- def __key_warning(key: str):
1441
- suggest = None
1442
- if key == "exactVersion":
1443
- suggest = "exact_version"
1444
- elif key == "imageVersionId":
1445
- suggest = "image_version_id"
1446
-
1447
- if suggest:
1448
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateSharedImageVersionSourceResponse. Access the value via the '{suggest}' property getter instead.")
1449
-
1450
- def __getitem__(self, key: str) -> Any:
1451
- ImageTemplateSharedImageVersionSourceResponse.__key_warning(key)
1452
- return super().__getitem__(key)
1453
-
1454
- def get(self, key: str, default = None) -> Any:
1455
- ImageTemplateSharedImageVersionSourceResponse.__key_warning(key)
1456
- return super().get(key, default)
1457
-
1458
- def __init__(__self__, *,
1459
- exact_version: str,
1460
- image_version_id: str,
1461
- type: str):
1462
- """
1463
- Describes an image source that is an image version in an Azure Compute Gallery or a Direct Shared Gallery.
1464
- :param str exact_version: Exact ARM resource id of the image version. This readonly field differs from the image version Id in 'imageVersionId' only if the version name specified in 'imageVersionId' field is 'latest'.
1465
- :param str image_version_id: ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
1466
- :param str type: Specifies the type of source image you want to start with.
1467
- Expected value is 'SharedImageVersion'.
1468
- """
1469
- pulumi.set(__self__, "exact_version", exact_version)
1470
- pulumi.set(__self__, "image_version_id", image_version_id)
1471
- pulumi.set(__self__, "type", 'SharedImageVersion')
1472
-
1473
- @property
1474
- @pulumi.getter(name="exactVersion")
1475
- def exact_version(self) -> str:
1476
- """
1477
- Exact ARM resource id of the image version. This readonly field differs from the image version Id in 'imageVersionId' only if the version name specified in 'imageVersionId' field is 'latest'.
1478
- """
1479
- return pulumi.get(self, "exact_version")
1480
-
1481
- @property
1482
- @pulumi.getter(name="imageVersionId")
1483
- def image_version_id(self) -> str:
1484
- """
1485
- ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
1486
- """
1487
- return pulumi.get(self, "image_version_id")
1488
-
1489
- @property
1490
- @pulumi.getter
1491
- def type(self) -> str:
1492
- """
1493
- Specifies the type of source image you want to start with.
1494
- Expected value is 'SharedImageVersion'.
1495
- """
1496
- return pulumi.get(self, "type")
1497
-
1498
-
1499
- @pulumi.output_type
1500
- class ImageTemplateShellCustomizerResponse(dict):
1501
- """
1502
- Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
1503
- """
1504
- @staticmethod
1505
- def __key_warning(key: str):
1506
- suggest = None
1507
- if key == "scriptUri":
1508
- suggest = "script_uri"
1509
- elif key == "sha256Checksum":
1510
- suggest = "sha256_checksum"
1511
-
1512
- if suggest:
1513
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateShellCustomizerResponse. Access the value via the '{suggest}' property getter instead.")
1514
-
1515
- def __getitem__(self, key: str) -> Any:
1516
- ImageTemplateShellCustomizerResponse.__key_warning(key)
1517
- return super().__getitem__(key)
1518
-
1519
- def get(self, key: str, default = None) -> Any:
1520
- ImageTemplateShellCustomizerResponse.__key_warning(key)
1521
- return super().get(key, default)
1522
-
1523
- def __init__(__self__, *,
1524
- type: str,
1525
- inline: Optional[Sequence[str]] = None,
1526
- name: Optional[str] = None,
1527
- script_uri: Optional[str] = None,
1528
- sha256_checksum: Optional[str] = None):
1529
- """
1530
- Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
1531
- :param str type: The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1532
- Expected value is 'Shell'.
1533
- :param Sequence[str] inline: Array of shell commands to execute
1534
- :param str name: Friendly Name to provide context on what this customization step does
1535
- :param str script_uri: URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
1536
- :param str sha256_checksum: SHA256 checksum of the shell script provided in the scriptUri field
1537
- """
1538
- pulumi.set(__self__, "type", 'Shell')
1539
- if inline is not None:
1540
- pulumi.set(__self__, "inline", inline)
1541
- if name is not None:
1542
- pulumi.set(__self__, "name", name)
1543
- if script_uri is not None:
1544
- pulumi.set(__self__, "script_uri", script_uri)
1545
- if sha256_checksum is None:
1546
- sha256_checksum = ''
1547
- if sha256_checksum is not None:
1548
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
1549
-
1550
- @property
1551
- @pulumi.getter
1552
- def type(self) -> str:
1553
- """
1554
- The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1555
- Expected value is 'Shell'.
1556
- """
1557
- return pulumi.get(self, "type")
1558
-
1559
- @property
1560
- @pulumi.getter
1561
- def inline(self) -> Optional[Sequence[str]]:
1562
- """
1563
- Array of shell commands to execute
1564
- """
1565
- return pulumi.get(self, "inline")
1566
-
1567
- @property
1568
- @pulumi.getter
1569
- def name(self) -> Optional[str]:
1570
- """
1571
- Friendly Name to provide context on what this customization step does
1572
- """
1573
- return pulumi.get(self, "name")
1574
-
1575
- @property
1576
- @pulumi.getter(name="scriptUri")
1577
- def script_uri(self) -> Optional[str]:
1578
- """
1579
- URI of the shell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
1580
- """
1581
- return pulumi.get(self, "script_uri")
1582
-
1583
- @property
1584
- @pulumi.getter(name="sha256Checksum")
1585
- def sha256_checksum(self) -> Optional[str]:
1586
- """
1587
- SHA256 checksum of the shell script provided in the scriptUri field
1588
- """
1589
- return pulumi.get(self, "sha256_checksum")
1590
-
1591
-
1592
- @pulumi.output_type
1593
- class ImageTemplateShellValidatorResponse(dict):
1594
- """
1595
- Runs the specified shell script during the validation phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
1596
- """
1597
- @staticmethod
1598
- def __key_warning(key: str):
1599
- suggest = None
1600
- if key == "scriptUri":
1601
- suggest = "script_uri"
1602
- elif key == "sha256Checksum":
1603
- suggest = "sha256_checksum"
1604
-
1605
- if suggest:
1606
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateShellValidatorResponse. Access the value via the '{suggest}' property getter instead.")
1607
-
1608
- def __getitem__(self, key: str) -> Any:
1609
- ImageTemplateShellValidatorResponse.__key_warning(key)
1610
- return super().__getitem__(key)
1611
-
1612
- def get(self, key: str, default = None) -> Any:
1613
- ImageTemplateShellValidatorResponse.__key_warning(key)
1614
- return super().get(key, default)
1615
-
1616
- def __init__(__self__, *,
1617
- type: str,
1618
- inline: Optional[Sequence[str]] = None,
1619
- name: Optional[str] = None,
1620
- script_uri: Optional[str] = None,
1621
- sha256_checksum: Optional[str] = None):
1622
- """
1623
- Runs the specified shell script during the validation phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
1624
- :param str type: The type of validation you want to use on the Image. For example, "Shell" can be shell validation
1625
- Expected value is 'Shell'.
1626
- :param Sequence[str] inline: Array of shell commands to execute
1627
- :param str name: Friendly Name to provide context on what this validation step does
1628
- :param str script_uri: URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc
1629
- :param str sha256_checksum: SHA256 checksum of the shell script provided in the scriptUri field
1630
- """
1631
- pulumi.set(__self__, "type", 'Shell')
1632
- if inline is not None:
1633
- pulumi.set(__self__, "inline", inline)
1634
- if name is not None:
1635
- pulumi.set(__self__, "name", name)
1636
- if script_uri is not None:
1637
- pulumi.set(__self__, "script_uri", script_uri)
1638
- if sha256_checksum is None:
1639
- sha256_checksum = ''
1640
- if sha256_checksum is not None:
1641
- pulumi.set(__self__, "sha256_checksum", sha256_checksum)
1642
-
1643
- @property
1644
- @pulumi.getter
1645
- def type(self) -> str:
1646
- """
1647
- The type of validation you want to use on the Image. For example, "Shell" can be shell validation
1648
- Expected value is 'Shell'.
1649
- """
1650
- return pulumi.get(self, "type")
1651
-
1652
- @property
1653
- @pulumi.getter
1654
- def inline(self) -> Optional[Sequence[str]]:
1655
- """
1656
- Array of shell commands to execute
1657
- """
1658
- return pulumi.get(self, "inline")
1659
-
1660
- @property
1661
- @pulumi.getter
1662
- def name(self) -> Optional[str]:
1663
- """
1664
- Friendly Name to provide context on what this validation step does
1665
- """
1666
- return pulumi.get(self, "name")
1667
-
1668
- @property
1669
- @pulumi.getter(name="scriptUri")
1670
- def script_uri(self) -> Optional[str]:
1671
- """
1672
- URI of the shell script to be run for validation. It can be a github link, Azure Storage URI, etc
1673
- """
1674
- return pulumi.get(self, "script_uri")
1675
-
1676
- @property
1677
- @pulumi.getter(name="sha256Checksum")
1678
- def sha256_checksum(self) -> Optional[str]:
1679
- """
1680
- SHA256 checksum of the shell script provided in the scriptUri field
1681
- """
1682
- return pulumi.get(self, "sha256_checksum")
1683
-
1684
-
1685
- @pulumi.output_type
1686
- class ImageTemplateVhdDistributorResponse(dict):
1687
- """
1688
- Distribute via VHD in a storage account.
1689
- """
1690
- @staticmethod
1691
- def __key_warning(key: str):
1692
- suggest = None
1693
- if key == "runOutputName":
1694
- suggest = "run_output_name"
1695
- elif key == "artifactTags":
1696
- suggest = "artifact_tags"
1697
-
1698
- if suggest:
1699
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateVhdDistributorResponse. Access the value via the '{suggest}' property getter instead.")
1700
-
1701
- def __getitem__(self, key: str) -> Any:
1702
- ImageTemplateVhdDistributorResponse.__key_warning(key)
1703
- return super().__getitem__(key)
1704
-
1705
- def get(self, key: str, default = None) -> Any:
1706
- ImageTemplateVhdDistributorResponse.__key_warning(key)
1707
- return super().get(key, default)
1708
-
1709
- def __init__(__self__, *,
1710
- run_output_name: str,
1711
- type: str,
1712
- artifact_tags: Optional[Mapping[str, str]] = None,
1713
- uri: Optional[str] = None):
1714
- """
1715
- Distribute via VHD in a storage account.
1716
- :param str run_output_name: The name to be used for the associated RunOutput.
1717
- :param str type: Type of distribution.
1718
- Expected value is 'VHD'.
1719
- :param Mapping[str, str] artifact_tags: Tags that will be applied to the artifact once it has been created/updated by the distributor.
1720
- :param str uri: Optional Azure Storage URI for the distributed VHD blob. Omit to use the default (empty string) in which case VHD would be published to the storage account in the staging resource group.
1721
- """
1722
- pulumi.set(__self__, "run_output_name", run_output_name)
1723
- pulumi.set(__self__, "type", 'VHD')
1724
- if artifact_tags is not None:
1725
- pulumi.set(__self__, "artifact_tags", artifact_tags)
1726
- if uri is not None:
1727
- pulumi.set(__self__, "uri", uri)
1728
-
1729
- @property
1730
- @pulumi.getter(name="runOutputName")
1731
- def run_output_name(self) -> str:
1732
- """
1733
- The name to be used for the associated RunOutput.
1734
- """
1735
- return pulumi.get(self, "run_output_name")
1736
-
1737
- @property
1738
- @pulumi.getter
1739
- def type(self) -> str:
1740
- """
1741
- Type of distribution.
1742
- Expected value is 'VHD'.
1743
- """
1744
- return pulumi.get(self, "type")
1745
-
1746
- @property
1747
- @pulumi.getter(name="artifactTags")
1748
- def artifact_tags(self) -> Optional[Mapping[str, str]]:
1749
- """
1750
- Tags that will be applied to the artifact once it has been created/updated by the distributor.
1751
- """
1752
- return pulumi.get(self, "artifact_tags")
1753
-
1754
- @property
1755
- @pulumi.getter
1756
- def uri(self) -> Optional[str]:
1757
- """
1758
- Optional Azure Storage URI for the distributed VHD blob. Omit to use the default (empty string) in which case VHD would be published to the storage account in the staging resource group.
1759
- """
1760
- return pulumi.get(self, "uri")
1761
-
1762
-
1763
- @pulumi.output_type
1764
- class ImageTemplateVmProfileResponse(dict):
1765
- """
1766
- Describes the virtual machines used to build and validate images
1767
- """
1768
- @staticmethod
1769
- def __key_warning(key: str):
1770
- suggest = None
1771
- if key == "osDiskSizeGB":
1772
- suggest = "os_disk_size_gb"
1773
- elif key == "userAssignedIdentities":
1774
- suggest = "user_assigned_identities"
1775
- elif key == "vmSize":
1776
- suggest = "vm_size"
1777
- elif key == "vnetConfig":
1778
- suggest = "vnet_config"
1779
-
1780
- if suggest:
1781
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateVmProfileResponse. Access the value via the '{suggest}' property getter instead.")
1782
-
1783
- def __getitem__(self, key: str) -> Any:
1784
- ImageTemplateVmProfileResponse.__key_warning(key)
1785
- return super().__getitem__(key)
1786
-
1787
- def get(self, key: str, default = None) -> Any:
1788
- ImageTemplateVmProfileResponse.__key_warning(key)
1789
- return super().get(key, default)
1790
-
1791
- def __init__(__self__, *,
1792
- os_disk_size_gb: Optional[int] = None,
1793
- user_assigned_identities: Optional[Sequence[str]] = None,
1794
- vm_size: Optional[str] = None,
1795
- vnet_config: Optional['outputs.VirtualNetworkConfigResponse'] = None):
1796
- """
1797
- Describes the virtual machines used to build and validate images
1798
- :param int os_disk_size_gb: Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
1799
- :param Sequence[str] user_assigned_identities: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.
1800
- :param str vm_size: Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
1801
- :param 'VirtualNetworkConfigResponse' vnet_config: Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.
1802
- """
1803
- if os_disk_size_gb is None:
1804
- os_disk_size_gb = 0
1805
- if os_disk_size_gb is not None:
1806
- pulumi.set(__self__, "os_disk_size_gb", os_disk_size_gb)
1807
- if user_assigned_identities is not None:
1808
- pulumi.set(__self__, "user_assigned_identities", user_assigned_identities)
1809
- if vm_size is None:
1810
- vm_size = ''
1811
- if vm_size is not None:
1812
- pulumi.set(__self__, "vm_size", vm_size)
1813
- if vnet_config is not None:
1814
- pulumi.set(__self__, "vnet_config", vnet_config)
1815
-
1816
- @property
1817
- @pulumi.getter(name="osDiskSizeGB")
1818
- def os_disk_size_gb(self) -> Optional[int]:
1819
- """
1820
- Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.
1821
- """
1822
- return pulumi.get(self, "os_disk_size_gb")
1823
-
1824
- @property
1825
- @pulumi.getter(name="userAssignedIdentities")
1826
- def user_assigned_identities(self) -> Optional[Sequence[str]]:
1827
- """
1828
- Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.
1829
- """
1830
- return pulumi.get(self, "user_assigned_identities")
1831
-
1832
- @property
1833
- @pulumi.getter(name="vmSize")
1834
- def vm_size(self) -> Optional[str]:
1835
- """
1836
- Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).
1837
- """
1838
- return pulumi.get(self, "vm_size")
1839
-
1840
- @property
1841
- @pulumi.getter(name="vnetConfig")
1842
- def vnet_config(self) -> Optional['outputs.VirtualNetworkConfigResponse']:
1843
- """
1844
- Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.
1845
- """
1846
- return pulumi.get(self, "vnet_config")
1847
-
1848
-
1849
- @pulumi.output_type
1850
- class ImageTemplateWindowsUpdateCustomizerResponse(dict):
1851
- """
1852
- Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update)
1853
- """
1854
- @staticmethod
1855
- def __key_warning(key: str):
1856
- suggest = None
1857
- if key == "searchCriteria":
1858
- suggest = "search_criteria"
1859
- elif key == "updateLimit":
1860
- suggest = "update_limit"
1861
-
1862
- if suggest:
1863
- pulumi.log.warn(f"Key '{key}' not found in ImageTemplateWindowsUpdateCustomizerResponse. Access the value via the '{suggest}' property getter instead.")
1864
-
1865
- def __getitem__(self, key: str) -> Any:
1866
- ImageTemplateWindowsUpdateCustomizerResponse.__key_warning(key)
1867
- return super().__getitem__(key)
1868
-
1869
- def get(self, key: str, default = None) -> Any:
1870
- ImageTemplateWindowsUpdateCustomizerResponse.__key_warning(key)
1871
- return super().get(key, default)
1872
-
1873
- def __init__(__self__, *,
1874
- type: str,
1875
- filters: Optional[Sequence[str]] = None,
1876
- name: Optional[str] = None,
1877
- search_criteria: Optional[str] = None,
1878
- update_limit: Optional[int] = None):
1879
- """
1880
- Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update)
1881
- :param str type: The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1882
- Expected value is 'WindowsUpdate'.
1883
- :param Sequence[str] filters: Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
1884
- :param str name: Friendly Name to provide context on what this customization step does
1885
- :param str search_criteria: Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
1886
- :param int update_limit: Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
1887
- """
1888
- pulumi.set(__self__, "type", 'WindowsUpdate')
1889
- if filters is not None:
1890
- pulumi.set(__self__, "filters", filters)
1891
- if name is not None:
1892
- pulumi.set(__self__, "name", name)
1893
- if search_criteria is not None:
1894
- pulumi.set(__self__, "search_criteria", search_criteria)
1895
- if update_limit is None:
1896
- update_limit = 0
1897
- if update_limit is not None:
1898
- pulumi.set(__self__, "update_limit", update_limit)
1899
-
1900
- @property
1901
- @pulumi.getter
1902
- def type(self) -> str:
1903
- """
1904
- The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer
1905
- Expected value is 'WindowsUpdate'.
1906
- """
1907
- return pulumi.get(self, "type")
1908
-
1909
- @property
1910
- @pulumi.getter
1911
- def filters(self) -> Optional[Sequence[str]]:
1912
- """
1913
- Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.
1914
- """
1915
- return pulumi.get(self, "filters")
1916
-
1917
- @property
1918
- @pulumi.getter
1919
- def name(self) -> Optional[str]:
1920
- """
1921
- Friendly Name to provide context on what this customization step does
1922
- """
1923
- return pulumi.get(self, "name")
1924
-
1925
- @property
1926
- @pulumi.getter(name="searchCriteria")
1927
- def search_criteria(self) -> Optional[str]:
1928
- """
1929
- Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.
1930
- """
1931
- return pulumi.get(self, "search_criteria")
1932
-
1933
- @property
1934
- @pulumi.getter(name="updateLimit")
1935
- def update_limit(self) -> Optional[int]:
1936
- """
1937
- Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000)
1938
- """
1939
- return pulumi.get(self, "update_limit")
1940
-
1941
-
1942
- @pulumi.output_type
1943
- class PlatformImagePurchasePlanResponse(dict):
1944
- """
1945
- Purchase plan configuration for platform image.
1946
- """
1947
- @staticmethod
1948
- def __key_warning(key: str):
1949
- suggest = None
1950
- if key == "planName":
1951
- suggest = "plan_name"
1952
- elif key == "planProduct":
1953
- suggest = "plan_product"
1954
- elif key == "planPublisher":
1955
- suggest = "plan_publisher"
1956
-
1957
- if suggest:
1958
- pulumi.log.warn(f"Key '{key}' not found in PlatformImagePurchasePlanResponse. Access the value via the '{suggest}' property getter instead.")
1959
-
1960
- def __getitem__(self, key: str) -> Any:
1961
- PlatformImagePurchasePlanResponse.__key_warning(key)
1962
- return super().__getitem__(key)
1963
-
1964
- def get(self, key: str, default = None) -> Any:
1965
- PlatformImagePurchasePlanResponse.__key_warning(key)
1966
- return super().get(key, default)
1967
-
1968
- def __init__(__self__, *,
1969
- plan_name: str,
1970
- plan_product: str,
1971
- plan_publisher: str):
1972
- """
1973
- Purchase plan configuration for platform image.
1974
- :param str plan_name: Name of the purchase plan.
1975
- :param str plan_product: Product of the purchase plan.
1976
- :param str plan_publisher: Publisher of the purchase plan.
1977
- """
1978
- pulumi.set(__self__, "plan_name", plan_name)
1979
- pulumi.set(__self__, "plan_product", plan_product)
1980
- pulumi.set(__self__, "plan_publisher", plan_publisher)
1981
-
1982
- @property
1983
- @pulumi.getter(name="planName")
1984
- def plan_name(self) -> str:
1985
- """
1986
- Name of the purchase plan.
1987
- """
1988
- return pulumi.get(self, "plan_name")
1989
-
1990
- @property
1991
- @pulumi.getter(name="planProduct")
1992
- def plan_product(self) -> str:
1993
- """
1994
- Product of the purchase plan.
1995
- """
1996
- return pulumi.get(self, "plan_product")
1997
-
1998
- @property
1999
- @pulumi.getter(name="planPublisher")
2000
- def plan_publisher(self) -> str:
2001
- """
2002
- Publisher of the purchase plan.
2003
- """
2004
- return pulumi.get(self, "plan_publisher")
2005
-
2006
-
2007
- @pulumi.output_type
2008
- class ProvisioningErrorResponse(dict):
2009
- """
2010
- Describes the error happened when create or update an image template
2011
- """
2012
- @staticmethod
2013
- def __key_warning(key: str):
2014
- suggest = None
2015
- if key == "provisioningErrorCode":
2016
- suggest = "provisioning_error_code"
2017
-
2018
- if suggest:
2019
- pulumi.log.warn(f"Key '{key}' not found in ProvisioningErrorResponse. Access the value via the '{suggest}' property getter instead.")
2020
-
2021
- def __getitem__(self, key: str) -> Any:
2022
- ProvisioningErrorResponse.__key_warning(key)
2023
- return super().__getitem__(key)
2024
-
2025
- def get(self, key: str, default = None) -> Any:
2026
- ProvisioningErrorResponse.__key_warning(key)
2027
- return super().get(key, default)
2028
-
2029
- def __init__(__self__, *,
2030
- message: Optional[str] = None,
2031
- provisioning_error_code: Optional[str] = None):
2032
- """
2033
- Describes the error happened when create or update an image template
2034
- :param str message: Verbose error message about the provisioning failure
2035
- :param str provisioning_error_code: Error code of the provisioning failure
2036
- """
2037
- if message is not None:
2038
- pulumi.set(__self__, "message", message)
2039
- if provisioning_error_code is not None:
2040
- pulumi.set(__self__, "provisioning_error_code", provisioning_error_code)
2041
-
2042
- @property
2043
- @pulumi.getter
2044
- def message(self) -> Optional[str]:
2045
- """
2046
- Verbose error message about the provisioning failure
2047
- """
2048
- return pulumi.get(self, "message")
2049
-
2050
- @property
2051
- @pulumi.getter(name="provisioningErrorCode")
2052
- def provisioning_error_code(self) -> Optional[str]:
2053
- """
2054
- Error code of the provisioning failure
2055
- """
2056
- return pulumi.get(self, "provisioning_error_code")
2057
-
2058
-
2059
- @pulumi.output_type
2060
- class SystemDataResponse(dict):
2061
- """
2062
- Metadata pertaining to creation and last modification of the resource.
2063
- """
2064
- @staticmethod
2065
- def __key_warning(key: str):
2066
- suggest = None
2067
- if key == "createdAt":
2068
- suggest = "created_at"
2069
- elif key == "createdBy":
2070
- suggest = "created_by"
2071
- elif key == "createdByType":
2072
- suggest = "created_by_type"
2073
- elif key == "lastModifiedAt":
2074
- suggest = "last_modified_at"
2075
- elif key == "lastModifiedBy":
2076
- suggest = "last_modified_by"
2077
- elif key == "lastModifiedByType":
2078
- suggest = "last_modified_by_type"
2079
-
2080
- if suggest:
2081
- pulumi.log.warn(f"Key '{key}' not found in SystemDataResponse. Access the value via the '{suggest}' property getter instead.")
2082
-
2083
- def __getitem__(self, key: str) -> Any:
2084
- SystemDataResponse.__key_warning(key)
2085
- return super().__getitem__(key)
2086
-
2087
- def get(self, key: str, default = None) -> Any:
2088
- SystemDataResponse.__key_warning(key)
2089
- return super().get(key, default)
2090
-
2091
- def __init__(__self__, *,
2092
- created_at: Optional[str] = None,
2093
- created_by: Optional[str] = None,
2094
- created_by_type: Optional[str] = None,
2095
- last_modified_at: Optional[str] = None,
2096
- last_modified_by: Optional[str] = None,
2097
- last_modified_by_type: Optional[str] = None):
2098
- """
2099
- Metadata pertaining to creation and last modification of the resource.
2100
- :param str created_at: The timestamp of resource creation (UTC).
2101
- :param str created_by: The identity that created the resource.
2102
- :param str created_by_type: The type of identity that created the resource.
2103
- :param str last_modified_at: The timestamp of resource last modification (UTC)
2104
- :param str last_modified_by: The identity that last modified the resource.
2105
- :param str last_modified_by_type: The type of identity that last modified the resource.
2106
- """
2107
- if created_at is not None:
2108
- pulumi.set(__self__, "created_at", created_at)
2109
- if created_by is not None:
2110
- pulumi.set(__self__, "created_by", created_by)
2111
- if created_by_type is not None:
2112
- pulumi.set(__self__, "created_by_type", created_by_type)
2113
- if last_modified_at is not None:
2114
- pulumi.set(__self__, "last_modified_at", last_modified_at)
2115
- if last_modified_by is not None:
2116
- pulumi.set(__self__, "last_modified_by", last_modified_by)
2117
- if last_modified_by_type is not None:
2118
- pulumi.set(__self__, "last_modified_by_type", last_modified_by_type)
2119
-
2120
- @property
2121
- @pulumi.getter(name="createdAt")
2122
- def created_at(self) -> Optional[str]:
2123
- """
2124
- The timestamp of resource creation (UTC).
2125
- """
2126
- return pulumi.get(self, "created_at")
2127
-
2128
- @property
2129
- @pulumi.getter(name="createdBy")
2130
- def created_by(self) -> Optional[str]:
2131
- """
2132
- The identity that created the resource.
2133
- """
2134
- return pulumi.get(self, "created_by")
2135
-
2136
- @property
2137
- @pulumi.getter(name="createdByType")
2138
- def created_by_type(self) -> Optional[str]:
2139
- """
2140
- The type of identity that created the resource.
2141
- """
2142
- return pulumi.get(self, "created_by_type")
2143
-
2144
- @property
2145
- @pulumi.getter(name="lastModifiedAt")
2146
- def last_modified_at(self) -> Optional[str]:
2147
- """
2148
- The timestamp of resource last modification (UTC)
2149
- """
2150
- return pulumi.get(self, "last_modified_at")
2151
-
2152
- @property
2153
- @pulumi.getter(name="lastModifiedBy")
2154
- def last_modified_by(self) -> Optional[str]:
2155
- """
2156
- The identity that last modified the resource.
2157
- """
2158
- return pulumi.get(self, "last_modified_by")
2159
-
2160
- @property
2161
- @pulumi.getter(name="lastModifiedByType")
2162
- def last_modified_by_type(self) -> Optional[str]:
2163
- """
2164
- The type of identity that last modified the resource.
2165
- """
2166
- return pulumi.get(self, "last_modified_by_type")
2167
-
2168
-
2169
- @pulumi.output_type
2170
- class TargetRegionResponse(dict):
2171
- """
2172
- Describes the target region information.
2173
- """
2174
- @staticmethod
2175
- def __key_warning(key: str):
2176
- suggest = None
2177
- if key == "replicaCount":
2178
- suggest = "replica_count"
2179
- elif key == "storageAccountType":
2180
- suggest = "storage_account_type"
2181
-
2182
- if suggest:
2183
- pulumi.log.warn(f"Key '{key}' not found in TargetRegionResponse. Access the value via the '{suggest}' property getter instead.")
2184
-
2185
- def __getitem__(self, key: str) -> Any:
2186
- TargetRegionResponse.__key_warning(key)
2187
- return super().__getitem__(key)
2188
-
2189
- def get(self, key: str, default = None) -> Any:
2190
- TargetRegionResponse.__key_warning(key)
2191
- return super().get(key, default)
2192
-
2193
- def __init__(__self__, *,
2194
- name: str,
2195
- replica_count: Optional[int] = None,
2196
- storage_account_type: Optional[str] = None):
2197
- """
2198
- Describes the target region information.
2199
- :param str name: The name of the region.
2200
- :param int replica_count: The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
2201
- :param str storage_account_type: Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
2202
- """
2203
- pulumi.set(__self__, "name", name)
2204
- if replica_count is None:
2205
- replica_count = 1
2206
- if replica_count is not None:
2207
- pulumi.set(__self__, "replica_count", replica_count)
2208
- if storage_account_type is not None:
2209
- pulumi.set(__self__, "storage_account_type", storage_account_type)
2210
-
2211
- @property
2212
- @pulumi.getter
2213
- def name(self) -> str:
2214
- """
2215
- The name of the region.
2216
- """
2217
- return pulumi.get(self, "name")
2218
-
2219
- @property
2220
- @pulumi.getter(name="replicaCount")
2221
- def replica_count(self) -> Optional[int]:
2222
- """
2223
- The number of replicas of the Image Version to be created in this region. Omit to use the default (1).
2224
- """
2225
- return pulumi.get(self, "replica_count")
2226
-
2227
- @property
2228
- @pulumi.getter(name="storageAccountType")
2229
- def storage_account_type(self) -> Optional[str]:
2230
- """
2231
- Specifies the storage account type to be used to store the image in this region. Omit to use the default (Standard_LRS).
2232
- """
2233
- return pulumi.get(self, "storage_account_type")
2234
-
2235
-
2236
- @pulumi.output_type
2237
- class TriggerStatusResponse(dict):
2238
- """
2239
- Describes the status of a trigger
2240
- """
2241
- def __init__(__self__, *,
2242
- code: str,
2243
- message: str,
2244
- time: str):
2245
- """
2246
- Describes the status of a trigger
2247
- :param str code: The status code.
2248
- :param str message: The detailed status message, including for alerts and error messages.
2249
- :param str time: The time of the status.
2250
- """
2251
- pulumi.set(__self__, "code", code)
2252
- pulumi.set(__self__, "message", message)
2253
- pulumi.set(__self__, "time", time)
2254
-
2255
- @property
2256
- @pulumi.getter
2257
- def code(self) -> str:
2258
- """
2259
- The status code.
2260
- """
2261
- return pulumi.get(self, "code")
2262
-
2263
- @property
2264
- @pulumi.getter
2265
- def message(self) -> str:
2266
- """
2267
- The detailed status message, including for alerts and error messages.
2268
- """
2269
- return pulumi.get(self, "message")
2270
-
2271
- @property
2272
- @pulumi.getter
2273
- def time(self) -> str:
2274
- """
2275
- The time of the status.
2276
- """
2277
- return pulumi.get(self, "time")
2278
-
2279
-
2280
- @pulumi.output_type
2281
- class UserAssignedIdentityResponse(dict):
2282
- """
2283
- User assigned identity properties
2284
- """
2285
- @staticmethod
2286
- def __key_warning(key: str):
2287
- suggest = None
2288
- if key == "clientId":
2289
- suggest = "client_id"
2290
- elif key == "principalId":
2291
- suggest = "principal_id"
2292
-
2293
- if suggest:
2294
- pulumi.log.warn(f"Key '{key}' not found in UserAssignedIdentityResponse. Access the value via the '{suggest}' property getter instead.")
2295
-
2296
- def __getitem__(self, key: str) -> Any:
2297
- UserAssignedIdentityResponse.__key_warning(key)
2298
- return super().__getitem__(key)
2299
-
2300
- def get(self, key: str, default = None) -> Any:
2301
- UserAssignedIdentityResponse.__key_warning(key)
2302
- return super().get(key, default)
2303
-
2304
- def __init__(__self__, *,
2305
- client_id: str,
2306
- principal_id: str):
2307
- """
2308
- User assigned identity properties
2309
- :param str client_id: The client ID of the assigned identity.
2310
- :param str principal_id: The principal ID of the assigned identity.
2311
- """
2312
- pulumi.set(__self__, "client_id", client_id)
2313
- pulumi.set(__self__, "principal_id", principal_id)
2314
-
2315
- @property
2316
- @pulumi.getter(name="clientId")
2317
- def client_id(self) -> str:
2318
- """
2319
- The client ID of the assigned identity.
2320
- """
2321
- return pulumi.get(self, "client_id")
2322
-
2323
- @property
2324
- @pulumi.getter(name="principalId")
2325
- def principal_id(self) -> str:
2326
- """
2327
- The principal ID of the assigned identity.
2328
- """
2329
- return pulumi.get(self, "principal_id")
2330
-
2331
-
2332
- @pulumi.output_type
2333
- class VirtualNetworkConfigResponse(dict):
2334
- """
2335
- Virtual Network configuration.
2336
- """
2337
- @staticmethod
2338
- def __key_warning(key: str):
2339
- suggest = None
2340
- if key == "containerInstanceSubnetId":
2341
- suggest = "container_instance_subnet_id"
2342
- elif key == "proxyVmSize":
2343
- suggest = "proxy_vm_size"
2344
- elif key == "subnetId":
2345
- suggest = "subnet_id"
2346
-
2347
- if suggest:
2348
- pulumi.log.warn(f"Key '{key}' not found in VirtualNetworkConfigResponse. Access the value via the '{suggest}' property getter instead.")
2349
-
2350
- def __getitem__(self, key: str) -> Any:
2351
- VirtualNetworkConfigResponse.__key_warning(key)
2352
- return super().__getitem__(key)
2353
-
2354
- def get(self, key: str, default = None) -> Any:
2355
- VirtualNetworkConfigResponse.__key_warning(key)
2356
- return super().get(key, default)
2357
-
2358
- def __init__(__self__, *,
2359
- container_instance_subnet_id: Optional[str] = None,
2360
- proxy_vm_size: Optional[str] = None,
2361
- subnet_id: Optional[str] = None):
2362
- """
2363
- Virtual Network configuration.
2364
- :param str container_instance_subnet_id: Resource id of a pre-existing subnet on which Azure Container Instance will be deployed for Isolated Builds. This field may be specified only if `subnetId` is also specified and must be on the same Virtual Network as the subnet specified in `subnetId`.
2365
- :param str proxy_vm_size: Size of the proxy virtual machine used to pass traffic to the build VM and validation VM. This must not be specified if `containerInstanceSubnetId` is specified because no proxy virtual machine is deployed in that case. Omit or specify empty string to use the default (Standard_A1_v2).
2366
- :param str subnet_id: Resource id of a pre-existing subnet on which the build VM and validation VM will be deployed
2367
- """
2368
- if container_instance_subnet_id is not None:
2369
- pulumi.set(__self__, "container_instance_subnet_id", container_instance_subnet_id)
2370
- if proxy_vm_size is None:
2371
- proxy_vm_size = ''
2372
- if proxy_vm_size is not None:
2373
- pulumi.set(__self__, "proxy_vm_size", proxy_vm_size)
2374
- if subnet_id is not None:
2375
- pulumi.set(__self__, "subnet_id", subnet_id)
2376
-
2377
- @property
2378
- @pulumi.getter(name="containerInstanceSubnetId")
2379
- def container_instance_subnet_id(self) -> Optional[str]:
2380
- """
2381
- Resource id of a pre-existing subnet on which Azure Container Instance will be deployed for Isolated Builds. This field may be specified only if `subnetId` is also specified and must be on the same Virtual Network as the subnet specified in `subnetId`.
2382
- """
2383
- return pulumi.get(self, "container_instance_subnet_id")
2384
-
2385
- @property
2386
- @pulumi.getter(name="proxyVmSize")
2387
- def proxy_vm_size(self) -> Optional[str]:
2388
- """
2389
- Size of the proxy virtual machine used to pass traffic to the build VM and validation VM. This must not be specified if `containerInstanceSubnetId` is specified because no proxy virtual machine is deployed in that case. Omit or specify empty string to use the default (Standard_A1_v2).
2390
- """
2391
- return pulumi.get(self, "proxy_vm_size")
2392
-
2393
- @property
2394
- @pulumi.getter(name="subnetId")
2395
- def subnet_id(self) -> Optional[str]:
2396
- """
2397
- Resource id of a pre-existing subnet on which the build VM and validation VM will be deployed
2398
- """
2399
- return pulumi.get(self, "subnet_id")
2400
-
2401
-