azure-mgmt-imagebuilder 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. azure-mgmt-imagebuilder-1.3.0/CHANGELOG.md +152 -0
  2. azure-mgmt-imagebuilder-1.3.0/LICENSE +21 -0
  3. azure-mgmt-imagebuilder-1.3.0/MANIFEST.in +8 -0
  4. azure-mgmt-imagebuilder-1.3.0/PKG-INFO +242 -0
  5. azure-mgmt-imagebuilder-1.3.0/README.md +61 -0
  6. azure-mgmt-imagebuilder-1.3.0/_meta.json +11 -0
  7. azure-mgmt-imagebuilder-1.3.0/azure/__init__.py +1 -0
  8. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/__init__.py +1 -0
  9. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/__init__.py +26 -0
  10. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_configuration.py +67 -0
  11. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_image_builder_client.py +99 -0
  12. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_patch.py +31 -0
  13. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_serialization.py +2006 -0
  14. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_vendor.py +16 -0
  15. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/_version.py +9 -0
  16. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/__init__.py +23 -0
  17. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/_configuration.py +67 -0
  18. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/_image_builder_client.py +99 -0
  19. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/_patch.py +31 -0
  20. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/operations/__init__.py +23 -0
  21. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/operations/_operations.py +133 -0
  22. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/operations/_patch.py +20 -0
  23. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/operations/_triggers_operations.py +581 -0
  24. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/aio/operations/_virtual_machine_image_templates_operations.py +1256 -0
  25. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/models/__init__.py +143 -0
  26. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/models/_image_builder_client_enums.py +105 -0
  27. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/models/_models_py3.py +2645 -0
  28. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/models/_patch.py +20 -0
  29. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/operations/__init__.py +23 -0
  30. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/operations/_operations.py +155 -0
  31. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/operations/_patch.py +20 -0
  32. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/operations/_triggers_operations.py +712 -0
  33. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/operations/_virtual_machine_image_templates_operations.py +1562 -0
  34. azure-mgmt-imagebuilder-1.3.0/azure/mgmt/imagebuilder/py.typed +1 -0
  35. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/PKG-INFO +242 -0
  36. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/SOURCES.txt +43 -0
  37. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/dependency_links.txt +1 -0
  38. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/not-zip-safe +1 -0
  39. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/requires.txt +6 -0
  40. azure-mgmt-imagebuilder-1.3.0/azure_mgmt_imagebuilder.egg-info/top_level.txt +1 -0
  41. azure-mgmt-imagebuilder-1.3.0/setup.cfg +4 -0
  42. azure-mgmt-imagebuilder-1.3.0/setup.py +83 -0
  43. azure-mgmt-imagebuilder-1.3.0/tests/conftest.py +50 -0
  44. azure-mgmt-imagebuilder-1.3.0/tests/disable_test_cli_mgmt_imagebuilder.py +130 -0
  45. azure-mgmt-imagebuilder-1.3.0/tests/test_cli_mgmt_imagebuilder.py +24 -0
@@ -0,0 +1,152 @@
1
+ # Release History
2
+
3
+ ## 1.3.0 (2023-12-18)
4
+
5
+ ### Features Added
6
+
7
+ - Model ImageTemplate has a new parameter error_handling
8
+ - Model ImageTemplateUpdateParameters has a new parameter properties
9
+
10
+ ## 1.2.0 (2023-04-20)
11
+
12
+ ### Features Added
13
+
14
+ - Added operation group TriggersOperations
15
+ - Model ImageTemplate has a new parameter optimize
16
+ - Model ImageTemplateSharedImageDistributor has a new parameter target_regions
17
+ - Model ImageTemplateSharedImageDistributor has a new parameter versioning
18
+ - Model ImageTemplateSharedImageVersionSource has a new parameter exact_version
19
+ - Model ImageTemplateVhdDistributor has a new parameter uri
20
+
21
+ ## 1.2.0b1 (2022-11-28)
22
+
23
+ ### Other Changes
24
+
25
+ - Added generated samples in github repo
26
+ - Drop support for python<3.7.0
27
+
28
+ ## 1.1.0 (2022-06-07)
29
+
30
+ **Features**
31
+
32
+ - Model ImageTemplate has a new parameter exact_staging_resource_group
33
+ - Model ImageTemplate has a new parameter staging_resource_group
34
+ - Model ImageTemplate has a new parameter validate
35
+ - Model Resource has a new parameter system_data
36
+ - Model RunOutput has a new parameter system_data
37
+ - Model TrackedResource has a new parameter system_data
38
+
39
+ ## 1.0.0 (2021-12-07)
40
+
41
+ **Features**
42
+
43
+ - Model ImageTemplate has a new parameter system_data
44
+ - Model VirtualNetworkConfig has a new parameter proxy_vm_size
45
+ - Model ImageTemplateVmProfile has a new parameter user_assigned_identities
46
+ - Model ImageTemplatePlatformImageSource has a new parameter exact_version
47
+
48
+ **Breaking changes**
49
+
50
+ - Model Resource no longer has parameter tags
51
+ - Model Resource no longer has parameter location
52
+
53
+ ## 1.0.0b1 (2021-05-25)
54
+
55
+ This is beta preview version.
56
+
57
+ This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
58
+
59
+ **General breaking changes**
60
+
61
+ - Credential system has been completly revamped:
62
+
63
+ - `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported, use the `azure-identity` classes instead: https://pypi.org/project/azure-identity/
64
+ - `credentials` parameter has been renamed `credential`
65
+
66
+ - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of
67
+ supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)
68
+ - You can't import a `version` module anymore, use `__version__` instead
69
+ - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`.
70
+ - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed).
71
+ - Most of the operation kwarg have changed. Some of the most noticeable:
72
+
73
+ - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user
74
+ - For a complete set of
75
+ supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)
76
+
77
+ **General new features**
78
+
79
+ - Type annotations support using `typing`. SDKs are mypy ready.
80
+ - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client.
81
+ - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview.
82
+
83
+ ## 0.4.0 (2020-05-07)
84
+
85
+ **Features**
86
+
87
+ - Model Operation has a new parameter is_data_action
88
+ - Model ImageTemplateSharedImageDistributor has a new parameter exclude_from_latest
89
+ - Model ImageTemplateSharedImageDistributor has a new parameter storage_account_type
90
+ - Model ImageTemplatePlatformImageSource has a new parameter plan_info
91
+ - Model ImageTemplateVmProfile has a new parameter vnet_config
92
+ - Model ImageTemplateVmProfile has a new parameter os_disk_size_gb
93
+ - Added operation VirtualMachineImageTemplatesOperations.cancel
94
+
95
+ **Breaking changes**
96
+
97
+ - Parameter identity of model ImageTemplate is now required
98
+
99
+ ## 0.3.0 (2019-11-19)
100
+
101
+ **Features**
102
+
103
+ - Model ImageTemplatePowerShellCustomizer has a new parameter
104
+ run_elevated
105
+ - Model ImageTemplatePowerShellCustomizer has a new parameter
106
+ sha256_checksum
107
+ - Model ImageTemplate has a new parameter vm_profile
108
+ - Model ImageTemplateFileCustomizer has a new parameter
109
+ sha256_checksum
110
+ - Model ImageTemplateShellCustomizer has a new parameter
111
+ sha256_checksum
112
+
113
+ **General breaking changes**
114
+
115
+ This version uses a next-generation code generator that *might*
116
+ introduce breaking changes if from some import. In summary, some modules
117
+ were incorrectly visible/importable and have been renamed. This fixed
118
+ several issues caused by usage of classes that were not supposed to be
119
+ used in the first place.
120
+
121
+ - ImageBuilderClient cannot be imported from
122
+ `azure.mgmt.imagebuilder.image_builder_client` anymore (import
123
+ from `azure.mgmt.imagebuilder` works like before)
124
+ - ImageBuilderClientConfiguration import has been moved from
125
+ `azure.mgmt.imagebuilder.image_builder_client` to
126
+ `azure.mgmt.imagebuilder`
127
+ - A model `MyClass` from a "models" sub-module cannot be imported
128
+ anymore using `azure.mgmt.imagebuilder.models.my_class` (import
129
+ from `azure.mgmt.imagebuilder.models` works like before)
130
+ - An operation class `MyClassOperations` from an `operations`
131
+ sub-module cannot be imported anymore using
132
+ `azure.mgmt.imagebuilder.operations.my_class_operations` (import
133
+ from `azure.mgmt.imagebuilder.operations` works like before)
134
+
135
+ Last but not least, HTTP connection pooling is now enabled by default.
136
+ You should always use a client as a context manager, or call close(), or
137
+ use no more than one client per process.
138
+
139
+ ## 0.2.1 (2019-04-25)
140
+
141
+ **Bugfixes**
142
+
143
+ - Add missing build_timeout_in_minutes
144
+ - Fix some regexp checking
145
+
146
+ ## 0.2.0 (2019-04-12)
147
+
148
+ - New API version 2019-05-01-preview
149
+
150
+ ## 0.1.0 (2019-04-09)
151
+
152
+ - Initial Release
@@ -0,0 +1,21 @@
1
+ Copyright (c) Microsoft Corporation.
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ include _meta.json
2
+ recursive-include tests *.py *.json
3
+ recursive-include samples *.py *.md
4
+ include *.md
5
+ include azure/__init__.py
6
+ include azure/mgmt/__init__.py
7
+ include LICENSE
8
+ include azure/mgmt/imagebuilder/py.typed
@@ -0,0 +1,242 @@
1
+ Metadata-Version: 2.1
2
+ Name: azure-mgmt-imagebuilder
3
+ Version: 1.3.0
4
+ Summary: Microsoft Azure Image Builder Client Library for Python
5
+ Home-page: https://github.com/Azure/azure-sdk-for-python
6
+ Author: Microsoft Corporation
7
+ Author-email: azpysdkhelp@microsoft.com
8
+ License: MIT License
9
+ Keywords: azure,azure sdk
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Programming Language :: Python
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.7
15
+ Classifier: Programming Language :: Python :: 3.8
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: License :: OSI Approved :: MIT License
20
+ Requires-Python: >=3.7
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: isodate<1.0.0,>=0.6.1
24
+ Requires-Dist: azure-common~=1.1
25
+ Requires-Dist: azure-mgmt-core<2.0.0,>=1.3.2
26
+ Requires-Dist: typing-extensions>=4.3.0; python_version < "3.8.0"
27
+
28
+ # Microsoft Azure SDK for Python
29
+
30
+ This is the Microsoft Azure Image Builder Client Library.
31
+ This package has been tested with Python 3.7+.
32
+ For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
33
+
34
+ ## _Disclaimer_
35
+
36
+ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
37
+
38
+ ## Getting started
39
+
40
+ ### Prerequisites
41
+
42
+ - Python 3.7+ is required to use this package.
43
+ - [Azure subscription](https://azure.microsoft.com/free/)
44
+
45
+ ### Install the package
46
+
47
+ ```bash
48
+ pip install azure-mgmt-imagebuilder
49
+ pip install azure-identity
50
+ ```
51
+
52
+ ### Authentication
53
+
54
+ By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
55
+
56
+ - `AZURE_CLIENT_ID` for Azure client ID.
57
+ - `AZURE_TENANT_ID` for Azure tenant ID.
58
+ - `AZURE_CLIENT_SECRET` for Azure client secret.
59
+
60
+ In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
61
+
62
+ With above configuration, client can be authenticated by following code:
63
+
64
+ ```python
65
+ from azure.identity import DefaultAzureCredential
66
+ from azure.mgmt.imagebuilder import ImageBuilderClient
67
+ import os
68
+
69
+ sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
70
+ client = ImageBuilderClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
71
+ ```
72
+
73
+ ## Examples
74
+
75
+ Code samples for this package can be found at:
76
+ - [Search Image Builder](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
77
+ - [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
78
+
79
+
80
+ ## Troubleshooting
81
+
82
+ ## Next steps
83
+
84
+ ## Provide Feedback
85
+
86
+ If you encounter any bugs or have suggestions, please file an issue in the
87
+ [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
88
+ section of the project.
89
+
90
+
91
+ # Release History
92
+
93
+ ## 1.3.0 (2023-12-18)
94
+
95
+ ### Features Added
96
+
97
+ - Model ImageTemplate has a new parameter error_handling
98
+ - Model ImageTemplateUpdateParameters has a new parameter properties
99
+
100
+ ## 1.2.0 (2023-04-20)
101
+
102
+ ### Features Added
103
+
104
+ - Added operation group TriggersOperations
105
+ - Model ImageTemplate has a new parameter optimize
106
+ - Model ImageTemplateSharedImageDistributor has a new parameter target_regions
107
+ - Model ImageTemplateSharedImageDistributor has a new parameter versioning
108
+ - Model ImageTemplateSharedImageVersionSource has a new parameter exact_version
109
+ - Model ImageTemplateVhdDistributor has a new parameter uri
110
+
111
+ ## 1.2.0b1 (2022-11-28)
112
+
113
+ ### Other Changes
114
+
115
+ - Added generated samples in github repo
116
+ - Drop support for python<3.7.0
117
+
118
+ ## 1.1.0 (2022-06-07)
119
+
120
+ **Features**
121
+
122
+ - Model ImageTemplate has a new parameter exact_staging_resource_group
123
+ - Model ImageTemplate has a new parameter staging_resource_group
124
+ - Model ImageTemplate has a new parameter validate
125
+ - Model Resource has a new parameter system_data
126
+ - Model RunOutput has a new parameter system_data
127
+ - Model TrackedResource has a new parameter system_data
128
+
129
+ ## 1.0.0 (2021-12-07)
130
+
131
+ **Features**
132
+
133
+ - Model ImageTemplate has a new parameter system_data
134
+ - Model VirtualNetworkConfig has a new parameter proxy_vm_size
135
+ - Model ImageTemplateVmProfile has a new parameter user_assigned_identities
136
+ - Model ImageTemplatePlatformImageSource has a new parameter exact_version
137
+
138
+ **Breaking changes**
139
+
140
+ - Model Resource no longer has parameter tags
141
+ - Model Resource no longer has parameter location
142
+
143
+ ## 1.0.0b1 (2021-05-25)
144
+
145
+ This is beta preview version.
146
+
147
+ This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
148
+
149
+ **General breaking changes**
150
+
151
+ - Credential system has been completly revamped:
152
+
153
+ - `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported, use the `azure-identity` classes instead: https://pypi.org/project/azure-identity/
154
+ - `credentials` parameter has been renamed `credential`
155
+
156
+ - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of
157
+ supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)
158
+ - You can't import a `version` module anymore, use `__version__` instead
159
+ - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`.
160
+ - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed).
161
+ - Most of the operation kwarg have changed. Some of the most noticeable:
162
+
163
+ - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user
164
+ - For a complete set of
165
+ supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies)
166
+
167
+ **General new features**
168
+
169
+ - Type annotations support using `typing`. SDKs are mypy ready.
170
+ - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client.
171
+ - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview.
172
+
173
+ ## 0.4.0 (2020-05-07)
174
+
175
+ **Features**
176
+
177
+ - Model Operation has a new parameter is_data_action
178
+ - Model ImageTemplateSharedImageDistributor has a new parameter exclude_from_latest
179
+ - Model ImageTemplateSharedImageDistributor has a new parameter storage_account_type
180
+ - Model ImageTemplatePlatformImageSource has a new parameter plan_info
181
+ - Model ImageTemplateVmProfile has a new parameter vnet_config
182
+ - Model ImageTemplateVmProfile has a new parameter os_disk_size_gb
183
+ - Added operation VirtualMachineImageTemplatesOperations.cancel
184
+
185
+ **Breaking changes**
186
+
187
+ - Parameter identity of model ImageTemplate is now required
188
+
189
+ ## 0.3.0 (2019-11-19)
190
+
191
+ **Features**
192
+
193
+ - Model ImageTemplatePowerShellCustomizer has a new parameter
194
+ run_elevated
195
+ - Model ImageTemplatePowerShellCustomizer has a new parameter
196
+ sha256_checksum
197
+ - Model ImageTemplate has a new parameter vm_profile
198
+ - Model ImageTemplateFileCustomizer has a new parameter
199
+ sha256_checksum
200
+ - Model ImageTemplateShellCustomizer has a new parameter
201
+ sha256_checksum
202
+
203
+ **General breaking changes**
204
+
205
+ This version uses a next-generation code generator that *might*
206
+ introduce breaking changes if from some import. In summary, some modules
207
+ were incorrectly visible/importable and have been renamed. This fixed
208
+ several issues caused by usage of classes that were not supposed to be
209
+ used in the first place.
210
+
211
+ - ImageBuilderClient cannot be imported from
212
+ `azure.mgmt.imagebuilder.image_builder_client` anymore (import
213
+ from `azure.mgmt.imagebuilder` works like before)
214
+ - ImageBuilderClientConfiguration import has been moved from
215
+ `azure.mgmt.imagebuilder.image_builder_client` to
216
+ `azure.mgmt.imagebuilder`
217
+ - A model `MyClass` from a "models" sub-module cannot be imported
218
+ anymore using `azure.mgmt.imagebuilder.models.my_class` (import
219
+ from `azure.mgmt.imagebuilder.models` works like before)
220
+ - An operation class `MyClassOperations` from an `operations`
221
+ sub-module cannot be imported anymore using
222
+ `azure.mgmt.imagebuilder.operations.my_class_operations` (import
223
+ from `azure.mgmt.imagebuilder.operations` works like before)
224
+
225
+ Last but not least, HTTP connection pooling is now enabled by default.
226
+ You should always use a client as a context manager, or call close(), or
227
+ use no more than one client per process.
228
+
229
+ ## 0.2.1 (2019-04-25)
230
+
231
+ **Bugfixes**
232
+
233
+ - Add missing build_timeout_in_minutes
234
+ - Fix some regexp checking
235
+
236
+ ## 0.2.0 (2019-04-12)
237
+
238
+ - New API version 2019-05-01-preview
239
+
240
+ ## 0.1.0 (2019-04-09)
241
+
242
+ - Initial Release
@@ -0,0 +1,61 @@
1
+ # Microsoft Azure SDK for Python
2
+
3
+ This is the Microsoft Azure Image Builder Client Library.
4
+ This package has been tested with Python 3.7+.
5
+ For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6
+
7
+ ## _Disclaimer_
8
+
9
+ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10
+
11
+ ## Getting started
12
+
13
+ ### Prerequisites
14
+
15
+ - Python 3.7+ is required to use this package.
16
+ - [Azure subscription](https://azure.microsoft.com/free/)
17
+
18
+ ### Install the package
19
+
20
+ ```bash
21
+ pip install azure-mgmt-imagebuilder
22
+ pip install azure-identity
23
+ ```
24
+
25
+ ### Authentication
26
+
27
+ By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
28
+
29
+ - `AZURE_CLIENT_ID` for Azure client ID.
30
+ - `AZURE_TENANT_ID` for Azure tenant ID.
31
+ - `AZURE_CLIENT_SECRET` for Azure client secret.
32
+
33
+ In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34
+
35
+ With above configuration, client can be authenticated by following code:
36
+
37
+ ```python
38
+ from azure.identity import DefaultAzureCredential
39
+ from azure.mgmt.imagebuilder import ImageBuilderClient
40
+ import os
41
+
42
+ sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43
+ client = ImageBuilderClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44
+ ```
45
+
46
+ ## Examples
47
+
48
+ Code samples for this package can be found at:
49
+ - [Search Image Builder](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50
+ - [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51
+
52
+
53
+ ## Troubleshooting
54
+
55
+ ## Next steps
56
+
57
+ ## Provide Feedback
58
+
59
+ If you encounter any bugs or have suggestions, please file an issue in the
60
+ [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
61
+ section of the project.
@@ -0,0 +1,11 @@
1
+ {
2
+ "commit": "9c7722c82ca6c894e3d5931f074c4f025598af08",
3
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs",
4
+ "autorest": "3.9.7",
5
+ "use": [
6
+ "@autorest/python@6.7.1",
7
+ "@autorest/modelerfour@4.26.2"
8
+ ],
9
+ "autorest_command": "autorest specification/imagebuilder/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
10
+ "readme": "specification/imagebuilder/resource-manager/readme.md"
11
+ }
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1 @@
1
+ __path__ = __import__("pkgutil").extend_path(__path__, __name__)
@@ -0,0 +1,26 @@
1
+ # coding=utf-8
2
+ # --------------------------------------------------------------------------
3
+ # Copyright (c) Microsoft Corporation. All rights reserved.
4
+ # Licensed under the MIT License. See License.txt in the project root for license information.
5
+ # Code generated by Microsoft (R) AutoRest Code Generator.
6
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ # --------------------------------------------------------------------------
8
+
9
+ from ._image_builder_client import ImageBuilderClient
10
+ from ._version import VERSION
11
+
12
+ __version__ = VERSION
13
+
14
+ try:
15
+ from ._patch import __all__ as _patch_all
16
+ from ._patch import * # pylint: disable=unused-wildcard-import
17
+ except ImportError:
18
+ _patch_all = []
19
+ from ._patch import patch_sdk as _patch_sdk
20
+
21
+ __all__ = [
22
+ "ImageBuilderClient",
23
+ ]
24
+ __all__.extend([p for p in _patch_all if p not in __all__])
25
+
26
+ _patch_sdk()
@@ -0,0 +1,67 @@
1
+ # coding=utf-8
2
+ # --------------------------------------------------------------------------
3
+ # Copyright (c) Microsoft Corporation. All rights reserved.
4
+ # Licensed under the MIT License. See License.txt in the project root for license information.
5
+ # Code generated by Microsoft (R) AutoRest Code Generator.
6
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ # --------------------------------------------------------------------------
8
+
9
+ from typing import Any, TYPE_CHECKING
10
+
11
+ from azure.core.configuration import Configuration
12
+ from azure.core.pipeline import policies
13
+ from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
14
+
15
+ from ._version import VERSION
16
+
17
+ if TYPE_CHECKING:
18
+ # pylint: disable=unused-import,ungrouped-imports
19
+ from azure.core.credentials import TokenCredential
20
+
21
+
22
+ class ImageBuilderClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
23
+ """Configuration for ImageBuilderClient.
24
+
25
+ Note that all parameters used to create this instance are saved as instance
26
+ attributes.
27
+
28
+ :param credential: Credential needed for the client to connect to Azure. Required.
29
+ :type credential: ~azure.core.credentials.TokenCredential
30
+ :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
31
+ subscription. The subscription Id forms part of the URI for every service call. Required.
32
+ :type subscription_id: str
33
+ :keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
34
+ default value may result in unsupported behavior.
35
+ :paramtype api_version: str
36
+ """
37
+
38
+ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
39
+ super(ImageBuilderClientConfiguration, self).__init__(**kwargs)
40
+ api_version: str = kwargs.pop("api_version", "2023-07-01")
41
+
42
+ if credential is None:
43
+ raise ValueError("Parameter 'credential' must not be None.")
44
+ if subscription_id is None:
45
+ raise ValueError("Parameter 'subscription_id' must not be None.")
46
+
47
+ self.credential = credential
48
+ self.subscription_id = subscription_id
49
+ self.api_version = api_version
50
+ self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
51
+ kwargs.setdefault("sdk_moniker", "mgmt-imagebuilder/{}".format(VERSION))
52
+ self._configure(**kwargs)
53
+
54
+ def _configure(self, **kwargs: Any) -> None:
55
+ self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
56
+ self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
57
+ self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
58
+ self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
59
+ self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
60
+ self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
61
+ self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
62
+ self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
63
+ self.authentication_policy = kwargs.get("authentication_policy")
64
+ if self.credential and not self.authentication_policy:
65
+ self.authentication_policy = ARMChallengeAuthenticationPolicy(
66
+ self.credential, *self.credential_scopes, **kwargs
67
+ )