Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"commit": "898ea5c3fac1ef8041ef6339ae00072058b06285",
"commit": "38c9c56602b0a03b0828e3269c402a5018347216",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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",
"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",
"readme": "specification/compute/resource-manager/readme.md",
"package-2024-03-02-only": "2024-07-16 12:23:13 -0400 602fb5144a226577186e35845422c11db9067cf8 Microsoft.Compute/DiskRP/stable/2024-03-02/snapshot.json",
"package-2024-03-01-only": "2024-06-05 15:03:47 -0700 491e00d17f24909ecf5e1030b3833bed51224e92 Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -20140,7 +20140,8 @@ async def get_next(next_link=None):

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

return pipeline_response

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
DiskImageEncryption,
DiskInstanceView,
EncryptionImages,
ErrorAdditionalInfo,
ErrorDetail,
ErrorResponse,
ExtendedLocation,
Gallery,
GalleryApplication,
Expand Down Expand Up @@ -467,6 +470,9 @@
"DiskImageEncryption",
"DiskInstanceView",
"EncryptionImages",
"ErrorAdditionalInfo",
"ErrorDetail",
"ErrorResponse",
"ExtendedLocation",
"Gallery",
"GalleryApplication",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2835,6 +2835,98 @@ def __init__(
self.data_disk_images = data_disk_images


class ErrorAdditionalInfo(_serialization.Model):
"""The resource management error additional info.

Variables are only populated by the server, and will be ignored when sending a request.

:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: JSON
"""

_validation = {
"type": {"readonly": True},
"info": {"readonly": True},
}

_attribute_map = {
"type": {"key": "type", "type": "str"},
"info": {"key": "info", "type": "object"},
}

def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.type = None
self.info = None


class ErrorDetail(_serialization.Model):
"""The error detail.

Variables are only populated by the server, and will be ignored when sending a request.

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list[~azure.mgmt.compute.v2021_07_01.models.ErrorDetail]
:ivar additional_info: The error additional info.
:vartype additional_info: list[~azure.mgmt.compute.v2021_07_01.models.ErrorAdditionalInfo]
"""

_validation = {
"code": {"readonly": True},
"message": {"readonly": True},
"target": {"readonly": True},
"details": {"readonly": True},
"additional_info": {"readonly": True},
}

_attribute_map = {
"code": {"key": "code", "type": "str"},
"message": {"key": "message", "type": "str"},
"target": {"key": "target", "type": "str"},
"details": {"key": "details", "type": "[ErrorDetail]"},
"additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"},
}

def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.details = None
self.additional_info = None


class ErrorResponse(_serialization.Model):
"""Common error response for all Azure Resource Manager APIs to return error details for failed
operations. (This also follows the OData error response format.).

:ivar error: The error object.
:vartype error: ~azure.mgmt.compute.v2021_07_01.models.ErrorDetail
"""

_attribute_map = {
"error": {"key": "error", "type": "ErrorDetail"},
}

def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None:
"""
:keyword error: The error object.
:paramtype error: ~azure.mgmt.compute.v2021_07_01.models.ErrorDetail
"""
super().__init__(**kwargs)
self.error = error


class ExtendedLocation(_serialization.Model):
"""The complex type of the extended location.

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

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

:ivar value: The list of skus available for the subscription. Required.
:ivar value: The ResourceSku items on this page. Required.
:vartype value: list[~azure.mgmt.compute.v2021_07_01.models.ResourceSku]
:ivar next_link: The URI to fetch the next page of Resource Skus. Call ListNext() with this URI
to fetch the next page of Resource Skus.
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""

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

def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The list of skus available for the subscription. Required.
:keyword value: The ResourceSku items on this page. Required.
:paramtype value: list[~azure.mgmt.compute.v2021_07_01.models.ResourceSku]
:keyword next_link: The URI to fetch the next page of Resource Skus. Call ListNext() with this
URI to fetch the next page of Resource Skus.
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26782,7 +26782,8 @@ def get_next(next_link=None):

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

return pipeline_response

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "34.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,6 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes

:ivar galleries: GalleriesOperations operations
:vartype galleries: azure.mgmt.compute.v2023_07_03.operations.GalleriesOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.compute.v2023_07_03.operations.GalleryImagesOperations
:ivar gallery_image_versions: GalleryImageVersionsOperations operations
:vartype gallery_image_versions:
azure.mgmt.compute.v2023_07_03.operations.GalleryImageVersionsOperations
:ivar gallery_applications: GalleryApplicationsOperations operations
:vartype gallery_applications:
azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationsOperations
:ivar gallery_application_versions: GalleryApplicationVersionsOperations operations
:vartype gallery_application_versions:
azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationVersionsOperations
:ivar gallery_sharing_profile: GallerySharingProfileOperations operations
:vartype gallery_sharing_profile:
azure.mgmt.compute.v2023_07_03.operations.GallerySharingProfileOperations
:ivar shared_galleries: SharedGalleriesOperations operations
:vartype shared_galleries: azure.mgmt.compute.v2023_07_03.operations.SharedGalleriesOperations
:ivar shared_gallery_images: SharedGalleryImagesOperations operations
:vartype shared_gallery_images:
azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImagesOperations
:ivar shared_gallery_image_versions: SharedGalleryImageVersionsOperations operations
:vartype shared_gallery_image_versions:
azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImageVersionsOperations
:ivar community_galleries: CommunityGalleriesOperations operations
:vartype community_galleries:
azure.mgmt.compute.v2023_07_03.operations.CommunityGalleriesOperations
Expand All @@ -73,10 +51,31 @@ class ComputeManagementClient: # pylint: disable=too-many-instance-attributes
:ivar community_gallery_image_versions: CommunityGalleryImageVersionsOperations operations
:vartype community_gallery_image_versions:
azure.mgmt.compute.v2023_07_03.operations.CommunityGalleryImageVersionsOperations
:ivar shared_galleries: SharedGalleriesOperations operations
:vartype shared_galleries: azure.mgmt.compute.v2023_07_03.operations.SharedGalleriesOperations
:ivar shared_gallery_images: SharedGalleryImagesOperations operations
:vartype shared_gallery_images:
azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImagesOperations
:ivar shared_gallery_image_versions: SharedGalleryImageVersionsOperations operations
:vartype shared_gallery_image_versions:
azure.mgmt.compute.v2023_07_03.operations.SharedGalleryImageVersionsOperations
:ivar gallery_applications: GalleryApplicationsOperations operations
:vartype gallery_applications:
azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationsOperations
:ivar gallery_application_versions: GalleryApplicationVersionsOperations operations
:vartype gallery_application_versions:
azure.mgmt.compute.v2023_07_03.operations.GalleryApplicationVersionsOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.compute.v2023_07_03.operations.GalleryImagesOperations
:ivar gallery_image_versions: GalleryImageVersionsOperations operations
:vartype gallery_image_versions:
azure.mgmt.compute.v2023_07_03.operations.GalleryImageVersionsOperations
:ivar gallery_sharing_profile: GallerySharingProfileOperations operations
:vartype gallery_sharing_profile:
azure.mgmt.compute.v2023_07_03.operations.GallerySharingProfileOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
Expand Down Expand Up @@ -124,37 +123,37 @@ def __init__(
self.galleries = GalleriesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.gallery_images = GalleryImagesOperations(
self.community_galleries = CommunityGalleriesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.gallery_image_versions = GalleryImageVersionsOperations(
self.community_gallery_images = CommunityGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.gallery_applications = GalleryApplicationsOperations(
self.community_gallery_image_versions = CommunityGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.gallery_application_versions = GalleryApplicationVersionsOperations(
self.shared_galleries = SharedGalleriesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.gallery_sharing_profile = GallerySharingProfileOperations(
self.shared_gallery_images = SharedGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.shared_galleries = SharedGalleriesOperations(
self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.shared_gallery_images = SharedGalleryImagesOperations(
self.gallery_applications = GalleryApplicationsOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations(
self.gallery_application_versions = GalleryApplicationVersionsOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.community_galleries = CommunityGalleriesOperations(
self.gallery_images = GalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.community_gallery_images = CommunityGalleryImagesOperations(
self.gallery_image_versions = GalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)
self.community_gallery_image_versions = CommunityGalleryImageVersionsOperations(
self.gallery_sharing_profile = GallerySharingProfileOperations(
self._client, self._config, self._serialize, self._deserialize, "2023-07-03"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class ComputeManagementClientConfiguration: # pylint: disable=too-many-instance

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-07-03". Note that overriding this
default value may result in unsupported behavior.
Expand Down
Loading