Skip to content

Commit

Permalink
CodeGen from PR 14223 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Compute 2021 03 release (Azure#14223)

* initial copy of files

* API version updates

* Deep deletion feature (Azure#14232)

* Deep deletion feature

* Deep deletion cleanup

* Deep deletion cleanup 2

* Scheduled Events feature (Azure#14233)

* Scheduled Events feature

* Scheduled Events feature example

* PatchSetting Assessment Mode Windows + Linux (Azure#14234)

* PatchSetting assessment feature

* PatchSetting assessment feature cleanup

* Patchsetting example

* Patchsetting example 2

* Patchsetting example 3

* Patchsetting example 4

* Patchsetting example 5

* Add network interface config schema to VM Network profile (Azure#14235)

* NIC feature

* NIC example

* Restore point and User Data features (Azure#14243)

* Restore point and User Data features

* Restore Point cleanup

* Restore point ex 1

* restore point ex2

* restore point ex 3

* REstore point ex 4

* restore point ex 5

* restore point ex 6

* restore point ex 7

* restore point ex 8

* restore point ex 9

* restore point ex 10

* restore point ex 11

* restore point readme

* user data feature cloudservice

* user data ex 1

* user data ex 2

* user data ex 3

* user data ex 4

* user data ex 5

* Fix broken links (Azure#14244)

* Remove unnecessary examples

* fix conflict

Co-authored-by: arcturusZhang <ufo54153@gmail.com>
  • Loading branch information
SDKAuto and ArcturusZhang committed Jun 18, 2021
1 parent b37aa44 commit c75b6f5
Show file tree
Hide file tree
Showing 117 changed files with 456 additions and 968 deletions.
8 changes: 4 additions & 4 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.0",
"@autorest/modelerfour@4.19.1"
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "f69f2e8053ac8ae352b11c33655234dea4cf4cfd",
"commit": "aa62339078c075d81aa1019c62450805f750e2d7",
"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/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2",
"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/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/compute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# --------------------------------------------------------------------------

from ._compute_management_client import ComputeManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['ComputeManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class ComputeManagementClientConfiguration(Configuration):
"""Configuration for ComputeManagementClient.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class ComputeManagementClientConfiguration(Configuration):
"""Configuration for ComputeManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
class AdditionalUnattendContent(msrest.serialization.Model):
"""Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
value: "OobeSystem".
:vartype pass_name: str
:ivar component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
:vartype component_name: str
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
acceptable values to pass in are None and "OobeSystem". The default value is None.
:type pass_name: str
:param component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
"Microsoft-Windows-Shell-Setup". The default value is None.
:type component_name: str
:param setting_name: Specifies the name of the setting to which the content applies. Possible
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
"FirstLogonCommands".
Expand All @@ -30,26 +29,20 @@ class AdditionalUnattendContent(msrest.serialization.Model):
:type content: str
"""

_validation = {
'pass_name': {'constant': True},
'component_name': {'constant': True},
}

_attribute_map = {
'pass_name': {'key': 'passName', 'type': 'str'},
'component_name': {'key': 'componentName', 'type': 'str'},
'setting_name': {'key': 'settingName', 'type': 'str'},
'content': {'key': 'content', 'type': 'str'},
}

pass_name = "OobeSystem"
component_name = "Microsoft-Windows-Shell-Setup"

def __init__(
self,
**kwargs
):
super(AdditionalUnattendContent, self).__init__(**kwargs)
self.pass_name = kwargs.get('pass_name', None)
self.component_name = kwargs.get('component_name', None)
self.setting_name = kwargs.get('setting_name', None)
self.content = kwargs.get('content', None)

Expand Down Expand Up @@ -1281,7 +1274,7 @@ class Usage(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
:vartype unit: str
:param current_value: Required. The current usage of the resource.
:type current_value: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
class AdditionalUnattendContent(msrest.serialization.Model):
"""Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
value: "OobeSystem".
:vartype pass_name: str
:ivar component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
:vartype component_name: str
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
acceptable values to pass in are None and "OobeSystem". The default value is None.
:type pass_name: str
:param component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
"Microsoft-Windows-Shell-Setup". The default value is None.
:type component_name: str
:param setting_name: Specifies the name of the setting to which the content applies. Possible
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
"FirstLogonCommands".
Expand All @@ -35,29 +34,25 @@ class AdditionalUnattendContent(msrest.serialization.Model):
:type content: str
"""

_validation = {
'pass_name': {'constant': True},
'component_name': {'constant': True},
}

_attribute_map = {
'pass_name': {'key': 'passName', 'type': 'str'},
'component_name': {'key': 'componentName', 'type': 'str'},
'setting_name': {'key': 'settingName', 'type': 'str'},
'content': {'key': 'content', 'type': 'str'},
}

pass_name = "OobeSystem"
component_name = "Microsoft-Windows-Shell-Setup"

def __init__(
self,
*,
pass_name: Optional[str] = None,
component_name: Optional[str] = None,
setting_name: Optional[Union[str, "SettingNames"]] = None,
content: Optional[str] = None,
**kwargs
):
super(AdditionalUnattendContent, self).__init__(**kwargs)
self.pass_name = pass_name
self.component_name = component_name
self.setting_name = setting_name
self.content = content

Expand Down Expand Up @@ -1415,7 +1410,7 @@ class Usage(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
:vartype unit: str
:param current_value: Required. The current usage of the resource.
:type current_value: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# --------------------------------------------------------------------------

from ._compute_management_client import ComputeManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['ComputeManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class ComputeManagementClientConfiguration(Configuration):
"""Configuration for ComputeManagementClient.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential

VERSION = "unknown"

class ComputeManagementClientConfiguration(Configuration):
"""Configuration for ComputeManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
class AdditionalUnattendContent(msrest.serialization.Model):
"""Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
value: "OobeSystem".
:vartype pass_name: str
:ivar component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
:vartype component_name: str
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
acceptable values to pass in are None and "OobeSystem". The default value is None.
:type pass_name: str
:param component_name: The component name. Currently, the only allowable value is
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
"Microsoft-Windows-Shell-Setup". The default value is None.
:type component_name: str
:param setting_name: Specifies the name of the setting to which the content applies. Possible
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
"FirstLogonCommands".
Expand All @@ -30,26 +29,20 @@ class AdditionalUnattendContent(msrest.serialization.Model):
:type content: str
"""

_validation = {
'pass_name': {'constant': True},
'component_name': {'constant': True},
}

_attribute_map = {
'pass_name': {'key': 'passName', 'type': 'str'},
'component_name': {'key': 'componentName', 'type': 'str'},
'setting_name': {'key': 'settingName', 'type': 'str'},
'content': {'key': 'content', 'type': 'str'},
}

pass_name = "OobeSystem"
component_name = "Microsoft-Windows-Shell-Setup"

def __init__(
self,
**kwargs
):
super(AdditionalUnattendContent, self).__init__(**kwargs)
self.pass_name = kwargs.get('pass_name', None)
self.component_name = kwargs.get('component_name', None)
self.setting_name = kwargs.get('setting_name', None)
self.content = kwargs.get('content', None)

Expand Down Expand Up @@ -1283,7 +1276,7 @@ class Usage(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
:vartype unit: str
:param current_value: Required. The current usage of the resource.
:type current_value: int
Expand Down Expand Up @@ -1912,16 +1905,15 @@ class VirtualMachineIdentity(msrest.serialization.Model):
:vartype principal_id: str
:ivar tenant_id: The tenant id associated with the virtual machine.
:vartype tenant_id: str
:ivar type: The type of identity used for the virtual machine. Currently, the only supported
type is 'SystemAssigned', which implicitly creates an identity. Default value:
"SystemAssigned".
:vartype type: str
:param type: The type of identity used for the virtual machine. Currently, the only supported
type is 'SystemAssigned', which implicitly creates an identity. The only acceptable values to
pass in are None and "SystemAssigned". The default value is None.
:type type: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
'type': {'constant': True},
}

_attribute_map = {
Expand All @@ -1930,15 +1922,14 @@ class VirtualMachineIdentity(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
}

type = "SystemAssigned"

def __init__(
self,
**kwargs
):
super(VirtualMachineIdentity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = kwargs.get('type', None)


class VirtualMachineImageResource(SubResource):
Expand Down Expand Up @@ -2263,16 +2254,15 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model):
:vartype principal_id: str
:ivar tenant_id: The tenant id associated with the virtual machine scale set.
:vartype tenant_id: str
:ivar type: The type of identity used for the virtual machine scale set. Currently, the only
supported type is 'SystemAssigned', which implicitly creates an identity. Default value:
"SystemAssigned".
:vartype type: str
:param type: The type of identity used for the virtual machine scale set. Currently, the only
supported type is 'SystemAssigned', which implicitly creates an identity. The only acceptable
values to pass in are None and "SystemAssigned". The default value is None.
:type type: str
"""

_validation = {
'principal_id': {'readonly': True},
'tenant_id': {'readonly': True},
'type': {'constant': True},
}

_attribute_map = {
Expand All @@ -2281,15 +2271,14 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model):
'type': {'key': 'type', 'type': 'str'},
}

type = "SystemAssigned"

def __init__(
self,
**kwargs
):
super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = kwargs.get('type', None)


class VirtualMachineScaleSetInstanceView(msrest.serialization.Model):
Expand Down
Loading

0 comments on commit c75b6f5

Please sign in to comment.