Skip to content

Commit

Permalink
CodeGen from PR 16315 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Update readme.md (Azure#16315)
  • Loading branch information
SDKAuto committed Oct 8, 2021
1 parent bd9a0ce commit fa14940
Show file tree
Hide file tree
Showing 41 changed files with 1,217 additions and 26 deletions.
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "d5ad9431bbc19c34090d97209eb497167db32879",
"commit": "a9c7d15ec5a5f2348e4a62650821eaac04328750",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/compute/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,45 @@ def cloud_services_update_domain(self):
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_galleries(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleriesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleriesOperations>`
"""
api_version = self._get_api_version('community_galleries')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_galleries'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_image_versions(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImageVersionsOperations>`
"""
api_version = self._get_api_version('community_gallery_image_versions')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleryImageVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_image_versions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_images(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImagesOperations<azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImagesOperations>`
"""
api_version = self._get_api_version('community_gallery_images')
if api_version == '2021-07-01':
from .v2021_07_01.operations import CommunityGalleryImagesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_images'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def dedicated_host_groups(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,45 @@ def cloud_services_update_domain(self):
raise ValueError("API version {} does not have operation group 'cloud_services_update_domain'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_galleries(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleriesOperations<azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleriesOperations>`
"""
api_version = self._get_api_version('community_galleries')
if api_version == '2021-07-01':
from ..v2021_07_01.aio.operations import CommunityGalleriesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_galleries'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_image_versions(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImageVersionsOperations<azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleryImageVersionsOperations>`
"""
api_version = self._get_api_version('community_gallery_image_versions')
if api_version == '2021-07-01':
from ..v2021_07_01.aio.operations import CommunityGalleryImageVersionsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_image_versions'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def community_gallery_images(self):
"""Instance depends on the API version:
* 2021-07-01: :class:`CommunityGalleryImagesOperations<azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleryImagesOperations>`
"""
api_version = self._get_api_version('community_gallery_images')
if api_version == '2021-07-01':
from ..v2021_07_01.aio.operations import CommunityGalleryImagesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'community_gallery_images'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def dedicated_host_groups(self):
"""Instance depends on the API version:
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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.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 = "23.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
from .operations import SharedGalleriesOperations
from .operations import SharedGalleryImagesOperations
from .operations import SharedGalleryImageVersionsOperations
from .operations import CommunityGalleriesOperations
from .operations import CommunityGalleryImagesOperations
from .operations import CommunityGalleryImageVersionsOperations
from . import models


Expand Down Expand Up @@ -133,6 +136,12 @@ class ComputeManagementClient(object):
:vartype shared_gallery_images: azure.mgmt.compute.v2021_07_01.operations.SharedGalleryImagesOperations
:ivar shared_gallery_image_versions: SharedGalleryImageVersionsOperations operations
:vartype shared_gallery_image_versions: azure.mgmt.compute.v2021_07_01.operations.SharedGalleryImageVersionsOperations
:ivar community_galleries: CommunityGalleriesOperations operations
:vartype community_galleries: azure.mgmt.compute.v2021_07_01.operations.CommunityGalleriesOperations
:ivar community_gallery_images: CommunityGalleryImagesOperations operations
:vartype community_gallery_images: azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImagesOperations
:ivar community_gallery_image_versions: CommunityGalleryImageVersionsOperations operations
:vartype community_gallery_image_versions: azure.mgmt.compute.v2021_07_01.operations.CommunityGalleryImageVersionsOperations
:param credential: Credential needed for the client to connect to Azure.
: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.
Expand Down Expand Up @@ -231,6 +240,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_galleries = CommunityGalleriesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_gallery_images = CommunityGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_gallery_image_versions = CommunityGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@
"gallery_sharing_profile": "GallerySharingProfileOperations",
"shared_galleries": "SharedGalleriesOperations",
"shared_gallery_images": "SharedGalleryImagesOperations",
"shared_gallery_image_versions": "SharedGalleryImageVersionsOperations"
"shared_gallery_image_versions": "SharedGalleryImageVersionsOperations",
"community_galleries": "CommunityGalleriesOperations",
"community_gallery_images": "CommunityGalleryImagesOperations",
"community_gallery_image_versions": "CommunityGalleryImageVersionsOperations"
}
}
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 = "23.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
from .operations import SharedGalleriesOperations
from .operations import SharedGalleryImagesOperations
from .operations import SharedGalleryImageVersionsOperations
from .operations import CommunityGalleriesOperations
from .operations import CommunityGalleryImagesOperations
from .operations import CommunityGalleryImageVersionsOperations
from .. import models


Expand Down Expand Up @@ -131,6 +134,12 @@ class ComputeManagementClient(object):
:vartype shared_gallery_images: azure.mgmt.compute.v2021_07_01.aio.operations.SharedGalleryImagesOperations
:ivar shared_gallery_image_versions: SharedGalleryImageVersionsOperations operations
:vartype shared_gallery_image_versions: azure.mgmt.compute.v2021_07_01.aio.operations.SharedGalleryImageVersionsOperations
:ivar community_galleries: CommunityGalleriesOperations operations
:vartype community_galleries: azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleriesOperations
:ivar community_gallery_images: CommunityGalleryImagesOperations operations
:vartype community_gallery_images: azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleryImagesOperations
:ivar community_gallery_image_versions: CommunityGalleryImageVersionsOperations operations
:vartype community_gallery_image_versions: azure.mgmt.compute.v2021_07_01.aio.operations.CommunityGalleryImageVersionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -228,6 +237,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.shared_gallery_image_versions = SharedGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_galleries = CommunityGalleriesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_gallery_images = CommunityGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.community_gallery_image_versions = CommunityGalleryImageVersionsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
from ._shared_galleries_operations import SharedGalleriesOperations
from ._shared_gallery_images_operations import SharedGalleryImagesOperations
from ._shared_gallery_image_versions_operations import SharedGalleryImageVersionsOperations
from ._community_galleries_operations import CommunityGalleriesOperations
from ._community_gallery_images_operations import CommunityGalleryImagesOperations
from ._community_gallery_image_versions_operations import CommunityGalleryImageVersionsOperations

__all__ = [
'Operations',
Expand Down Expand Up @@ -80,4 +83,7 @@
'SharedGalleriesOperations',
'SharedGalleryImagesOperations',
'SharedGalleryImageVersionsOperations',
'CommunityGalleriesOperations',
'CommunityGalleryImagesOperations',
'CommunityGalleryImageVersionsOperations',
]
Loading

0 comments on commit fa14940

Please sign in to comment.