Skip to content

Commit 47acc05

Browse files
Azure CLI BotSDKAuto
andauthored
[AutoRelease] t2-compute-2021-07-08-85328 (Azure#19715)
* 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 <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
1 parent 92d947c commit 47acc05

File tree

77 files changed

+3720
-8159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3720
-8159
lines changed

sdk/compute/azure-mgmt-compute/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 22.0.0 (2021-07-08)
4+
5+
**Features**
6+
7+
- Model RestorePointSourceMetadata has a new parameter location
8+
- Added operation DiskRestorePointOperations.begin_revoke_access
9+
- Added operation DiskRestorePointOperations.begin_grant_access
10+
11+
**Breaking changes**
12+
13+
- Model PublicIPAddressSku has a new signature
14+
315
## 21.0.0 (2021-05-25)
416

517
**Features**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.4.2",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].1",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "f69f2e8053ac8ae352b11c33655234dea4cf4cfd",
7+
"commit": "667035454422aae6bb54cb5b3d68e8b9d3318150",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"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].0 --use=@autorest/[email protected].1 --version=3.4.2",
9+
"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].1 --use=@autorest/[email protected].2 --version=3.4.2",
1010
"readme": "specification/compute/resource-manager/readme.md"
1111
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "21.0.0"
8+
VERSION = "22.0.0"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.0.0"
9+
VERSION = "22.0.0"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models.py

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
class AdditionalUnattendContent(msrest.serialization.Model):
1313
"""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.
1414
15-
Variables are only populated by the server, and will be ignored when sending a request.
16-
17-
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
18-
value: "OobeSystem".
19-
:vartype pass_name: str
20-
:ivar component_name: The component name. Currently, the only allowable value is
21-
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
22-
:vartype component_name: str
15+
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
16+
acceptable values to pass in are None and "OobeSystem". The default value is None.
17+
:type pass_name: str
18+
:param component_name: The component name. Currently, the only allowable value is
19+
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
20+
"Microsoft-Windows-Shell-Setup". The default value is None.
21+
:type component_name: str
2322
:param setting_name: Specifies the name of the setting to which the content applies. Possible
2423
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
2524
"FirstLogonCommands".
@@ -30,26 +29,20 @@ class AdditionalUnattendContent(msrest.serialization.Model):
3029
:type content: str
3130
"""
3231

33-
_validation = {
34-
'pass_name': {'constant': True},
35-
'component_name': {'constant': True},
36-
}
37-
3832
_attribute_map = {
3933
'pass_name': {'key': 'passName', 'type': 'str'},
4034
'component_name': {'key': 'componentName', 'type': 'str'},
4135
'setting_name': {'key': 'settingName', 'type': 'str'},
4236
'content': {'key': 'content', 'type': 'str'},
4337
}
4438

45-
pass_name = "OobeSystem"
46-
component_name = "Microsoft-Windows-Shell-Setup"
47-
4839
def __init__(
4940
self,
5041
**kwargs
5142
):
5243
super(AdditionalUnattendContent, self).__init__(**kwargs)
44+
self.pass_name = kwargs.get('pass_name', None)
45+
self.component_name = kwargs.get('component_name', None)
5346
self.setting_name = kwargs.get('setting_name', None)
5447
self.content = kwargs.get('content', None)
5548

@@ -1281,7 +1274,7 @@ class Usage(msrest.serialization.Model):
12811274
12821275
All required parameters must be populated in order to send to Azure.
12831276
1284-
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
1277+
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
12851278
:vartype unit: str
12861279
:param current_value: Required. The current usage of the resource.
12871280
:type current_value: int

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/models/_models_py3.py

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717
class AdditionalUnattendContent(msrest.serialization.Model):
1818
"""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.
1919
20-
Variables are only populated by the server, and will be ignored when sending a request.
21-
22-
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
23-
value: "OobeSystem".
24-
:vartype pass_name: str
25-
:ivar component_name: The component name. Currently, the only allowable value is
26-
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
27-
:vartype component_name: str
20+
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
21+
acceptable values to pass in are None and "OobeSystem". The default value is None.
22+
:type pass_name: str
23+
:param component_name: The component name. Currently, the only allowable value is
24+
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
25+
"Microsoft-Windows-Shell-Setup". The default value is None.
26+
:type component_name: str
2827
:param setting_name: Specifies the name of the setting to which the content applies. Possible
2928
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
3029
"FirstLogonCommands".
@@ -35,29 +34,25 @@ class AdditionalUnattendContent(msrest.serialization.Model):
3534
:type content: str
3635
"""
3736

38-
_validation = {
39-
'pass_name': {'constant': True},
40-
'component_name': {'constant': True},
41-
}
42-
4337
_attribute_map = {
4438
'pass_name': {'key': 'passName', 'type': 'str'},
4539
'component_name': {'key': 'componentName', 'type': 'str'},
4640
'setting_name': {'key': 'settingName', 'type': 'str'},
4741
'content': {'key': 'content', 'type': 'str'},
4842
}
4943

50-
pass_name = "OobeSystem"
51-
component_name = "Microsoft-Windows-Shell-Setup"
52-
5344
def __init__(
5445
self,
5546
*,
47+
pass_name: Optional[str] = None,
48+
component_name: Optional[str] = None,
5649
setting_name: Optional[Union[str, "SettingNames"]] = None,
5750
content: Optional[str] = None,
5851
**kwargs
5952
):
6053
super(AdditionalUnattendContent, self).__init__(**kwargs)
54+
self.pass_name = pass_name
55+
self.component_name = component_name
6156
self.setting_name = setting_name
6257
self.content = content
6358

@@ -1415,7 +1410,7 @@ class Usage(msrest.serialization.Model):
14151410
14161411
All required parameters must be populated in order to send to Azure.
14171412
1418-
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
1413+
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
14191414
:vartype unit: str
14201415
:param current_value: Required. The current usage of the resource.
14211416
:type current_value: int

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.0.0"
9+
VERSION = "22.0.0"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/models/_models.py

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
class AdditionalUnattendContent(msrest.serialization.Model):
1313
"""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.
1414
15-
Variables are only populated by the server, and will be ignored when sending a request.
16-
17-
:ivar pass_name: The pass name. Currently, the only allowable value is OobeSystem. Default
18-
value: "OobeSystem".
19-
:vartype pass_name: str
20-
:ivar component_name: The component name. Currently, the only allowable value is
21-
Microsoft-Windows-Shell-Setup. Default value: "Microsoft-Windows-Shell-Setup".
22-
:vartype component_name: str
15+
:param pass_name: The pass name. Currently, the only allowable value is OobeSystem. The only
16+
acceptable values to pass in are None and "OobeSystem". The default value is None.
17+
:type pass_name: str
18+
:param component_name: The component name. Currently, the only allowable value is
19+
Microsoft-Windows-Shell-Setup. The only acceptable values to pass in are None and
20+
"Microsoft-Windows-Shell-Setup". The default value is None.
21+
:type component_name: str
2322
:param setting_name: Specifies the name of the setting to which the content applies. Possible
2423
values are: FirstLogonCommands and AutoLogon. Possible values include: "AutoLogon",
2524
"FirstLogonCommands".
@@ -30,26 +29,20 @@ class AdditionalUnattendContent(msrest.serialization.Model):
3029
:type content: str
3130
"""
3231

33-
_validation = {
34-
'pass_name': {'constant': True},
35-
'component_name': {'constant': True},
36-
}
37-
3832
_attribute_map = {
3933
'pass_name': {'key': 'passName', 'type': 'str'},
4034
'component_name': {'key': 'componentName', 'type': 'str'},
4135
'setting_name': {'key': 'settingName', 'type': 'str'},
4236
'content': {'key': 'content', 'type': 'str'},
4337
}
4438

45-
pass_name = "OobeSystem"
46-
component_name = "Microsoft-Windows-Shell-Setup"
47-
4839
def __init__(
4940
self,
5041
**kwargs
5142
):
5243
super(AdditionalUnattendContent, self).__init__(**kwargs)
44+
self.pass_name = kwargs.get('pass_name', None)
45+
self.component_name = kwargs.get('component_name', None)
5346
self.setting_name = kwargs.get('setting_name', None)
5447
self.content = kwargs.get('content', None)
5548

@@ -1283,7 +1276,7 @@ class Usage(msrest.serialization.Model):
12831276
12841277
All required parameters must be populated in order to send to Azure.
12851278
1286-
:ivar unit: Required. An enum describing the unit of usage measurement. Default value: "Count".
1279+
:ivar unit: An enum describing the unit of usage measurement. Has constant value: "Count".
12871280
:vartype unit: str
12881281
:param current_value: Required. The current usage of the resource.
12891282
:type current_value: int
@@ -1912,16 +1905,15 @@ class VirtualMachineIdentity(msrest.serialization.Model):
19121905
:vartype principal_id: str
19131906
:ivar tenant_id: The tenant id associated with the virtual machine.
19141907
:vartype tenant_id: str
1915-
:ivar type: The type of identity used for the virtual machine. Currently, the only supported
1916-
type is 'SystemAssigned', which implicitly creates an identity. Default value:
1917-
"SystemAssigned".
1918-
:vartype type: str
1908+
:param type: The type of identity used for the virtual machine. Currently, the only supported
1909+
type is 'SystemAssigned', which implicitly creates an identity. The only acceptable values to
1910+
pass in are None and "SystemAssigned". The default value is None.
1911+
:type type: str
19191912
"""
19201913

19211914
_validation = {
19221915
'principal_id': {'readonly': True},
19231916
'tenant_id': {'readonly': True},
1924-
'type': {'constant': True},
19251917
}
19261918

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

1933-
type = "SystemAssigned"
1934-
19351925
def __init__(
19361926
self,
19371927
**kwargs
19381928
):
19391929
super(VirtualMachineIdentity, self).__init__(**kwargs)
19401930
self.principal_id = None
19411931
self.tenant_id = None
1932+
self.type = kwargs.get('type', None)
19421933

19431934

19441935
class VirtualMachineImageResource(SubResource):
@@ -2263,16 +2254,15 @@ class VirtualMachineScaleSetIdentity(msrest.serialization.Model):
22632254
:vartype principal_id: str
22642255
:ivar tenant_id: The tenant id associated with the virtual machine scale set.
22652256
:vartype tenant_id: str
2266-
:ivar type: The type of identity used for the virtual machine scale set. Currently, the only
2267-
supported type is 'SystemAssigned', which implicitly creates an identity. Default value:
2268-
"SystemAssigned".
2269-
:vartype type: str
2257+
:param type: The type of identity used for the virtual machine scale set. Currently, the only
2258+
supported type is 'SystemAssigned', which implicitly creates an identity. The only acceptable
2259+
values to pass in are None and "SystemAssigned". The default value is None.
2260+
:type type: str
22702261
"""
22712262

22722263
_validation = {
22732264
'principal_id': {'readonly': True},
22742265
'tenant_id': {'readonly': True},
2275-
'type': {'constant': True},
22762266
}
22772267

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

2284-
type = "SystemAssigned"
2285-
22862274
def __init__(
22872275
self,
22882276
**kwargs
22892277
):
22902278
super(VirtualMachineScaleSetIdentity, self).__init__(**kwargs)
22912279
self.principal_id = None
22922280
self.tenant_id = None
2281+
self.type = kwargs.get('type', None)
22932282

22942283

22952284
class VirtualMachineScaleSetInstanceView(msrest.serialization.Model):

0 commit comments

Comments
 (0)