Skip to content

Commit

Permalink
CodeGen from PR 15058 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 1cd5d041e7837fd0710e032624616ad69ab14786 into 21ee3aaa2c628e344b29f0fb3921fb4cccf982b2
  • Loading branch information
SDKAuto committed Jul 1, 2021
1 parent ac73303 commit 0b52d71
Show file tree
Hide file tree
Showing 53 changed files with 990 additions and 640 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": "1135686e7da278b2b5ae84d9822b0d339b242ed5",
"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 @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "21.0.0"
VERSION = "1.0.0b1"
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 @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "21.0.0"
VERSION = "1.0.0b1"
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 0b52d71

Please sign in to comment.