Skip to content

Commit

Permalink
[AutoRelease] t2-compute-2021-07-08-85328 (Azure#19715)
Browse files Browse the repository at this point in the history
* CodeGen from PR 14638 in Azure/azure-rest-api-specs
Move RestorePoint properties into new properties bag for restore point (Azure#14638)

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
2 people authored and rakshith91 committed Jul 16, 2021
1 parent 471b3f4 commit a919309
Show file tree
Hide file tree
Showing 77 changed files with 3,720 additions and 8,159 deletions.
12 changes: 12 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 22.0.0 (2021-07-08)

**Features**

- Model RestorePointSourceMetadata has a new parameter location
- Added operation DiskRestorePointOperations.begin_revoke_access
- Added operation DiskRestorePointOperations.begin_grant_access

**Breaking changes**

- Model PublicIPAddressSku has a new signature

## 21.0.0 (2021-05-25)

**Features**
Expand Down
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": "667035454422aae6bb54cb5b3d68e8b9d3318150",
"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 @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "21.0.0"
VERSION = "22.0.0"
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 = "22.0.0"
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 = "22.0.0"
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 a919309

Please sign in to comment.