Skip to content

Commit

Permalink
CodeGen from PR 19764 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
add to description of OS state (Azure#19764)
  • Loading branch information
SDKAuto committed Jul 25, 2022
1 parent 70a3186 commit ea3e9d1
Show file tree
Hide file tree
Showing 41 changed files with 53 additions and 55 deletions.
4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/python@5.16.0",
"@autorest/modelerfour@4.19.3"
],
"commit": "fda2db441da3f1fab31bb235e97da3e33c8e3903",
"commit": "4247c95fc3ad41ed7689647caec3cd004a069681",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
"readme": "specification/compute/resource-manager/readme.md"
}
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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.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 = "27.2.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# --------------------------------------------------------------------------

import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from typing import Dict, List, Optional, TYPE_CHECKING, Union

import msrest.serialization

Expand Down Expand Up @@ -2721,7 +2721,7 @@ class SharingProfile(msrest.serialization.Model):
:vartype groups: list[~azure.mgmt.compute.v2021_10_01.models.SharingProfileGroup]
:ivar community_gallery_info: Information of community gallery if current gallery is shared to
community.
:vartype community_gallery_info: any
:vartype community_gallery_info: ~azure.mgmt.compute.v2021_10_01.models.CommunityGalleryInfo
"""

_validation = {
Expand All @@ -2731,14 +2731,14 @@ class SharingProfile(msrest.serialization.Model):
_attribute_map = {
'permissions': {'key': 'permissions', 'type': 'str'},
'groups': {'key': 'groups', 'type': '[SharingProfileGroup]'},
'community_gallery_info': {'key': 'communityGalleryInfo', 'type': 'object'},
'community_gallery_info': {'key': 'communityGalleryInfo', 'type': 'CommunityGalleryInfo'},
}

def __init__(
self,
*,
permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None,
community_gallery_info: Optional[Any] = None,
community_gallery_info: Optional["_models.CommunityGalleryInfo"] = None,
**kwargs
):
"""
Expand All @@ -2749,7 +2749,7 @@ def __init__(
~azure.mgmt.compute.v2021_10_01.models.GallerySharingPermissionTypes
:keyword community_gallery_info: Information of community gallery if current gallery is shared
to community.
:paramtype community_gallery_info: any
:paramtype community_gallery_info: ~azure.mgmt.compute.v2021_10_01.models.CommunityGalleryInfo
"""
super(SharingProfile, self).__init__(**kwargs)
self.permissions = permissions
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 = "27.2.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ async def begin_restart( # pylint: disable=inconsistent-return-statements
"""Restart the dedicated host. The operation will complete successfully once the dedicated host
has restarted and is running. To determine the health of VMs deployed on the dedicated host
after the restart check the Resource Health Center in the Azure Portal. Please refer to
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more
details.
https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,7 @@ def begin_restart( # pylint: disable=inconsistent-return-statements
"""Restart the dedicated host. The operation will complete successfully once the dedicated host
has restarted and is running. To determine the health of VMs deployed on the dedicated host
after the restart check the Resource Health Center in the Azure Portal. Please refer to
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more
details.
https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
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 = "27.2.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 = "27.2.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# --------------------------------------------------------------------------

import datetime
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from typing import Dict, List, Optional, TYPE_CHECKING, Union

import msrest.serialization

Expand Down Expand Up @@ -3798,7 +3798,7 @@ class SharingProfile(msrest.serialization.Model):
:vartype groups: list[~azure.mgmt.compute.v2022_01_03.models.SharingProfileGroup]
:ivar community_gallery_info: Information of community gallery if current gallery is shared to
community.
:vartype community_gallery_info: any
:vartype community_gallery_info: ~azure.mgmt.compute.v2022_01_03.models.CommunityGalleryInfo
"""

_validation = {
Expand All @@ -3808,14 +3808,14 @@ class SharingProfile(msrest.serialization.Model):
_attribute_map = {
'permissions': {'key': 'permissions', 'type': 'str'},
'groups': {'key': 'groups', 'type': '[SharingProfileGroup]'},
'community_gallery_info': {'key': 'communityGalleryInfo', 'type': 'object'},
'community_gallery_info': {'key': 'communityGalleryInfo', 'type': 'CommunityGalleryInfo'},
}

def __init__(
self,
*,
permissions: Optional[Union[str, "_models.GallerySharingPermissionTypes"]] = None,
community_gallery_info: Optional[Any] = None,
community_gallery_info: Optional["_models.CommunityGalleryInfo"] = None,
**kwargs
):
"""
Expand All @@ -3827,7 +3827,7 @@ def __init__(
~azure.mgmt.compute.v2022_01_03.models.GallerySharingPermissionTypes
:keyword community_gallery_info: Information of community gallery if current gallery is shared
to community.
:paramtype community_gallery_info: any
:paramtype community_gallery_info: ~azure.mgmt.compute.v2022_01_03.models.CommunityGalleryInfo
"""
super(SharingProfile, self).__init__(**kwargs)
self.permissions = permissions
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 = "27.2.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,7 @@ async def begin_restart( # pylint: disable=inconsistent-return-statements
"""Restart the dedicated host. The operation will complete successfully once the dedicated host
has restarted and is running. To determine the health of VMs deployed on the dedicated host
after the restart check the Resource Health Center in the Azure Portal. Please refer to
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more
details.
https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
TWO_THOUSAND_TWENTY11_01 = "2020-11-01"

class OperatingSystemStateTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The OS State.
"""The OS State. For managed images, use Generalized.
"""

#: Generalized image. Needs to be provisioned during deployment time.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3296,7 +3296,8 @@ class ImageOSDisk(ImageDisk):
values are: :code:`<br>`:code:`<br>` **Windows** :code:`<br>`:code:`<br>` **Linux**. Known
values are: "Windows", "Linux".
:vartype os_type: str or ~azure.mgmt.compute.v2022_03_01.models.OperatingSystemTypes
:ivar os_state: Required. The OS State. Known values are: "Generalized", "Specialized".
:ivar os_state: Required. The OS State. For managed images, use Generalized. Known values are:
"Generalized", "Specialized".
:vartype os_state: str or ~azure.mgmt.compute.v2022_03_01.models.OperatingSystemStateTypes
"""

Expand Down Expand Up @@ -3362,7 +3363,8 @@ def __init__(
values are: :code:`<br>`:code:`<br>` **Windows** :code:`<br>`:code:`<br>` **Linux**. Known
values are: "Windows", "Linux".
:paramtype os_type: str or ~azure.mgmt.compute.v2022_03_01.models.OperatingSystemTypes
:keyword os_state: Required. The OS State. Known values are: "Generalized", "Specialized".
:keyword os_state: Required. The OS State. For managed images, use Generalized. Known values
are: "Generalized", "Specialized".
:paramtype os_state: str or ~azure.mgmt.compute.v2022_03_01.models.OperatingSystemStateTypes
"""
super(ImageOSDisk, self).__init__(snapshot=snapshot, managed_disk=managed_disk, blob_uri=blob_uri, caching=caching, disk_size_gb=disk_size_gb, storage_account_type=storage_account_type, disk_encryption_set=disk_encryption_set, **kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,7 @@ def begin_restart( # pylint: disable=inconsistent-return-statements
"""Restart the dedicated host. The operation will complete successfully once the dedicated host
has restarted and is running. To determine the health of VMs deployed on the dedicated host
after the restart check the Resource Health Center in the Azure Portal. Please refer to
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview for more
details.
https://docs.microsoft.com/azure/service-health/resource-health-overview for more details.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
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 = "27.2.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 = "27.2.0"
VERSION = "1.0.0b1"

0 comments on commit ea3e9d1

Please sign in to comment.