Skip to content

Commit c67b320

Browse files
author
SDKAuto
committed
CodeGen from PR 32748 in Azure/azure-rest-api-specs
Merge f5e74328bb3aeb8445a96b1f74e4d78553a4c7bb into f6848c909282e981f186df3c3b27f6d5ec5864d2
1 parent 08e7c8a commit c67b320

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+32007
-28101
lines changed

sdk/compute/azure-mgmt-compute/_meta.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "898ea5c3fac1ef8041ef6339ae00072058b06285",
2+
"commit": "2e1ad421b7a902cf38038c132f19aa9a624b6b09",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
66
"@autorest/[email protected]",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/compute/resource-manager/readme.md",
1111
"package-2024-03-02-only": "2024-07-16 12:23:13 -0400 602fb5144a226577186e35845422c11db9067cf8 Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json",
1212
"package-2024-03-01-only": "2024-06-05 15:03:47 -0700 491e00d17f24909ecf5e1030b3833bed51224e92 Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json",

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/aio/operations/_operations.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20140,7 +20140,8 @@ async def get_next(next_link=None):
2014020140

2014120141
if response.status_code not in [200]:
2014220142
map_error(status_code=response.status_code, response=response, error_map=error_map)
20143-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
20143+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
20144+
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2014420145

2014520146
return pipeline_response
2014620147

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@
6969
DiskImageEncryption,
7070
DiskInstanceView,
7171
EncryptionImages,
72+
ErrorAdditionalInfo,
73+
ErrorDetail,
74+
ErrorResponse,
7275
ExtendedLocation,
7376
Gallery,
7477
GalleryApplication,
@@ -467,6 +470,9 @@
467470
"DiskImageEncryption",
468471
"DiskInstanceView",
469472
"EncryptionImages",
473+
"ErrorAdditionalInfo",
474+
"ErrorDetail",
475+
"ErrorResponse",
470476
"ExtendedLocation",
471477
"Gallery",
472478
"GalleryApplication",

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py

+96-6
Original file line numberDiff line numberDiff line change
@@ -2835,6 +2835,98 @@ def __init__(
28352835
self.data_disk_images = data_disk_images
28362836

28372837

2838+
class ErrorAdditionalInfo(_serialization.Model):
2839+
"""The resource management error additional info.
2840+
2841+
Variables are only populated by the server, and will be ignored when sending a request.
2842+
2843+
:ivar type: The additional info type.
2844+
:vartype type: str
2845+
:ivar info: The additional info.
2846+
:vartype info: JSON
2847+
"""
2848+
2849+
_validation = {
2850+
"type": {"readonly": True},
2851+
"info": {"readonly": True},
2852+
}
2853+
2854+
_attribute_map = {
2855+
"type": {"key": "type", "type": "str"},
2856+
"info": {"key": "info", "type": "object"},
2857+
}
2858+
2859+
def __init__(self, **kwargs: Any) -> None:
2860+
""" """
2861+
super().__init__(**kwargs)
2862+
self.type = None
2863+
self.info = None
2864+
2865+
2866+
class ErrorDetail(_serialization.Model):
2867+
"""The error detail.
2868+
2869+
Variables are only populated by the server, and will be ignored when sending a request.
2870+
2871+
:ivar code: The error code.
2872+
:vartype code: str
2873+
:ivar message: The error message.
2874+
:vartype message: str
2875+
:ivar target: The error target.
2876+
:vartype target: str
2877+
:ivar details: The error details.
2878+
:vartype details: list[~azure.mgmt.compute.v2021_07_01.models.ErrorDetail]
2879+
:ivar additional_info: The error additional info.
2880+
:vartype additional_info: list[~azure.mgmt.compute.v2021_07_01.models.ErrorAdditionalInfo]
2881+
"""
2882+
2883+
_validation = {
2884+
"code": {"readonly": True},
2885+
"message": {"readonly": True},
2886+
"target": {"readonly": True},
2887+
"details": {"readonly": True},
2888+
"additional_info": {"readonly": True},
2889+
}
2890+
2891+
_attribute_map = {
2892+
"code": {"key": "code", "type": "str"},
2893+
"message": {"key": "message", "type": "str"},
2894+
"target": {"key": "target", "type": "str"},
2895+
"details": {"key": "details", "type": "[ErrorDetail]"},
2896+
"additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"},
2897+
}
2898+
2899+
def __init__(self, **kwargs: Any) -> None:
2900+
""" """
2901+
super().__init__(**kwargs)
2902+
self.code = None
2903+
self.message = None
2904+
self.target = None
2905+
self.details = None
2906+
self.additional_info = None
2907+
2908+
2909+
class ErrorResponse(_serialization.Model):
2910+
"""Common error response for all Azure Resource Manager APIs to return error details for failed
2911+
operations. (This also follows the OData error response format.).
2912+
2913+
:ivar error: The error object.
2914+
:vartype error: ~azure.mgmt.compute.v2021_07_01.models.ErrorDetail
2915+
"""
2916+
2917+
_attribute_map = {
2918+
"error": {"key": "error", "type": "ErrorDetail"},
2919+
}
2920+
2921+
def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None:
2922+
"""
2923+
:keyword error: The error object.
2924+
:paramtype error: ~azure.mgmt.compute.v2021_07_01.models.ErrorDetail
2925+
"""
2926+
super().__init__(**kwargs)
2927+
self.error = error
2928+
2929+
28382930
class ExtendedLocation(_serialization.Model):
28392931
"""The complex type of the extended location.
28402932

@@ -7725,10 +7817,9 @@ class ResourceSkusResult(_serialization.Model):
77257817

77267818
All required parameters must be populated in order to send to server.
77277819

7728-
:ivar value: The list of skus available for the subscription. Required.
7820+
:ivar value: The ResourceSku items on this page. Required.
77297821
:vartype value: list[~azure.mgmt.compute.v2021_07_01.models.ResourceSku]
7730-
:ivar next_link: The URI to fetch the next page of Resource Skus. Call ListNext() with this URI
7731-
to fetch the next page of Resource Skus.
7822+
:ivar next_link: The link to the next page of items.
77327823
:vartype next_link: str
77337824
"""
77347825

@@ -7743,10 +7834,9 @@ class ResourceSkusResult(_serialization.Model):
77437834

77447835
def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None:
77457836
"""
7746-
:keyword value: The list of skus available for the subscription. Required.
7837+
:keyword value: The ResourceSku items on this page. Required.
77477838
:paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.ResourceSku]
7748-
:keyword next_link: The URI to fetch the next page of Resource Skus. Call ListNext() with this
7749-
URI to fetch the next page of Resource Skus.
7839+
:keyword next_link: The link to the next page of items.
77507840
:paramtype next_link: str
77517841
"""
77527842
super().__init__(**kwargs)

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_operations.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -26782,7 +26782,8 @@ def get_next(next_link=None):
2678226782

2678326783
if response.status_code not in [200]:
2678426784
map_error(status_code=response.status_code, response=response, error_map=error_map)
26785-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
26785+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
26786+
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
2678626787

2678726788
return pipeline_response
2678826789

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_10_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_01_03/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_02/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_09_04/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_04_02/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_07_03/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2023_10_02/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_compute_management_client.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,21 @@
3333
class ComputeManagementClient:
3434
"""Compute Client.
3535
36-
:ivar disks: DisksOperations operations
37-
:vartype disks: azure.mgmt.compute.v2024_03_02.operations.DisksOperations
3836
:ivar disk_accesses: DiskAccessesOperations operations
3937
:vartype disk_accesses: azure.mgmt.compute.v2024_03_02.operations.DiskAccessesOperations
4038
:ivar disk_encryption_sets: DiskEncryptionSetsOperations operations
4139
:vartype disk_encryption_sets:
4240
azure.mgmt.compute.v2024_03_02.operations.DiskEncryptionSetsOperations
41+
:ivar disks: DisksOperations operations
42+
:vartype disks: azure.mgmt.compute.v2024_03_02.operations.DisksOperations
43+
:ivar snapshots: SnapshotsOperations operations
44+
:vartype snapshots: azure.mgmt.compute.v2024_03_02.operations.SnapshotsOperations
4345
:ivar disk_restore_point: DiskRestorePointOperations operations
4446
:vartype disk_restore_point:
4547
azure.mgmt.compute.v2024_03_02.operations.DiskRestorePointOperations
46-
:ivar snapshots: SnapshotsOperations operations
47-
:vartype snapshots: azure.mgmt.compute.v2024_03_02.operations.SnapshotsOperations
4848
:param credential: Credential needed for the client to connect to Azure. Required.
4949
:type credential: ~azure.core.credentials.TokenCredential
50-
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
51-
subscription. The subscription ID forms part of the URI for every service call. Required.
50+
:param subscription_id: The ID of the target subscription. Required.
5251
:type subscription_id: str
5352
:param base_url: Service URL. Default value is "https://management.azure.com".
5453
:type base_url: str
@@ -93,17 +92,17 @@ def __init__(
9392
self._serialize = Serializer(client_models)
9493
self._deserialize = Deserializer(client_models)
9594
self._serialize.client_side_validation = False
96-
self.disks = DisksOperations(self._client, self._config, self._serialize, self._deserialize, "2024-03-02")
9795
self.disk_accesses = DiskAccessesOperations(
9896
self._client, self._config, self._serialize, self._deserialize, "2024-03-02"
9997
)
10098
self.disk_encryption_sets = DiskEncryptionSetsOperations(
10199
self._client, self._config, self._serialize, self._deserialize, "2024-03-02"
102100
)
103-
self.disk_restore_point = DiskRestorePointOperations(
101+
self.disks = DisksOperations(self._client, self._config, self._serialize, self._deserialize, "2024-03-02")
102+
self.snapshots = SnapshotsOperations(
104103
self._client, self._config, self._serialize, self._deserialize, "2024-03-02"
105104
)
106-
self.snapshots = SnapshotsOperations(
105+
self.disk_restore_point = DiskRestorePointOperations(
107106
self._client, self._config, self._serialize, self._deserialize, "2024-03-02"
108107
)
109108

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_configuration.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class ComputeManagementClientConfiguration: # pylint: disable=too-many-instance
2525
2626
:param credential: Credential needed for the client to connect to Azure. Required.
2727
:type credential: ~azure.core.credentials.TokenCredential
28-
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
29-
subscription. The subscription ID forms part of the URI for every service call. Required.
28+
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
3130
:keyword api_version: Api Version. Default value is "2024-03-02". Note that overriding this
3231
default value may result in unsupported behavior.

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_metadata.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"subscription_id": {
2626
"signature": "subscription_id: str,",
27-
"description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.",
27+
"description": "The ID of the target subscription. Required.",
2828
"docstring_type": "str",
2929
"required": true,
3030
"method_location": "positional"
@@ -39,7 +39,7 @@
3939
},
4040
"subscription_id": {
4141
"signature": "subscription_id: str,",
42-
"description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.",
42+
"description": "The ID of the target subscription. Required.",
4343
"docstring_type": "str",
4444
"required": true
4545
}
@@ -105,10 +105,10 @@
105105
"async_imports": "{\"regular\": {\"sdkcore\": {\"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"sdkcore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
106106
},
107107
"operation_groups": {
108-
"disks": "DisksOperations",
109108
"disk_accesses": "DiskAccessesOperations",
110109
"disk_encryption_sets": "DiskEncryptionSetsOperations",
111-
"disk_restore_point": "DiskRestorePointOperations",
112-
"snapshots": "SnapshotsOperations"
110+
"disks": "DisksOperations",
111+
"snapshots": "SnapshotsOperations",
112+
"disk_restore_point": "DiskRestorePointOperations"
113113
}
114114
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2024_03_02/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "34.0.0"
9+
VERSION = "1.0.0b1"

0 commit comments

Comments
 (0)