diff --git a/sdk/compute/azure-mgmt-compute/_meta.json b/sdk/compute/azure-mgmt-compute/_meta.json index 7f1ebd4c7888..321ae38321e2 100644 --- a/sdk/compute/azure-mgmt-compute/_meta.json +++ b/sdk/compute/azure-mgmt-compute/_meta.json @@ -4,7 +4,7 @@ "@autorest/python@5.8.4", "@autorest/modelerfour@4.19.2" ], - "commit": "3eaa729b3686f20817145e771a8ab707c739dbbd", + "commit": "5520578bb70141fd7a46217e73415ff0762b7521", "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.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/compute/resource-manager/readme.md" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_09_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_09_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_05_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_10_01_preview/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py index 5f2c0f57de29..d01dcbbd51e0 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/__init__.py @@ -124,7 +124,6 @@ from ._models_py3 import RestorePointCollectionListResult from ._models_py3 import RestorePointCollectionSourceProperties from ._models_py3 import RestorePointCollectionUpdate - from ._models_py3 import RestorePointProvisioningDetails from ._models_py3 import RestorePointSourceMetadata from ._models_py3 import RestorePointSourceVMDataDisk from ._models_py3 import RestorePointSourceVMOSDisk @@ -390,7 +389,6 @@ from ._models import RestorePointCollectionListResult # type: ignore from ._models import RestorePointCollectionSourceProperties # type: ignore from ._models import RestorePointCollectionUpdate # type: ignore - from ._models import RestorePointProvisioningDetails # type: ignore from ._models import RestorePointSourceMetadata # type: ignore from ._models import RestorePointSourceVMDataDisk # type: ignore from ._models import RestorePointSourceVMOSDisk # type: ignore @@ -723,7 +721,6 @@ 'RestorePointCollectionListResult', 'RestorePointCollectionSourceProperties', 'RestorePointCollectionUpdate', - 'RestorePointProvisioningDetails', 'RestorePointSourceMetadata', 'RestorePointSourceVMDataDisk', 'RestorePointSourceVMOSDisk', diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py index 7aaf0d22ba00..8fcd1fdc3557 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models.py @@ -4413,10 +4413,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_03_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_03_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -4426,7 +4424,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -4437,7 +4434,7 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( @@ -4449,7 +4446,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = kwargs.get('time_created', None) class RestorePointCollection(Resource): @@ -4611,38 +4608,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = kwargs.get('creation_time', None) - self.total_used_size_in_bytes = kwargs.get('total_used_size_in_bytes', None) - self.status_code = kwargs.get('status_code', None) - self.status_message = kwargs.get('status_message', None) - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py index 4263e8291154..41d1dc1d22a7 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/models/_models_py3.py @@ -4818,10 +4818,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_03_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_03_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -4831,7 +4829,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -4842,13 +4839,14 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( self, *, exclude_disks: Optional[List["ApiEntityReference"]] = None, + time_created: Optional[datetime.datetime] = None, **kwargs ): super(RestorePoint, self).__init__(**kwargs) @@ -4856,7 +4854,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = time_created class RestorePointCollection(Resource): @@ -5030,43 +5028,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - *, - creation_time: Optional[datetime.datetime] = None, - total_used_size_in_bytes: Optional[int] = None, - status_code: Optional[int] = None, - status_message: Optional[str] = None, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = creation_time - self.total_used_size_in_bytes = total_used_size_in_bytes - self.status_code = status_code - self.status_message = status_message - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py index 72303e98a92c..32d3ef936761 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/__init__.py @@ -136,7 +136,6 @@ from ._models_py3 import RestorePointCollectionListResult from ._models_py3 import RestorePointCollectionSourceProperties from ._models_py3 import RestorePointCollectionUpdate - from ._models_py3 import RestorePointProvisioningDetails from ._models_py3 import RestorePointSourceMetadata from ._models_py3 import RestorePointSourceVMDataDisk from ._models_py3 import RestorePointSourceVMOSDisk @@ -413,7 +412,6 @@ from ._models import RestorePointCollectionListResult # type: ignore from ._models import RestorePointCollectionSourceProperties # type: ignore from ._models import RestorePointCollectionUpdate # type: ignore - from ._models import RestorePointProvisioningDetails # type: ignore from ._models import RestorePointSourceMetadata # type: ignore from ._models import RestorePointSourceVMDataDisk # type: ignore from ._models import RestorePointSourceVMOSDisk # type: ignore @@ -773,7 +771,6 @@ 'RestorePointCollectionListResult', 'RestorePointCollectionSourceProperties', 'RestorePointCollectionUpdate', - 'RestorePointProvisioningDetails', 'RestorePointSourceMetadata', 'RestorePointSourceVMDataDisk', 'RestorePointSourceVMOSDisk', diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models.py index 1ead4747378c..ffa5ab64f5bb 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models.py @@ -5243,10 +5243,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_04_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_04_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -5256,7 +5254,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -5267,7 +5264,7 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( @@ -5279,7 +5276,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = kwargs.get('time_created', None) class RestorePointCollection(Resource): @@ -5441,38 +5438,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = kwargs.get('creation_time', None) - self.total_used_size_in_bytes = kwargs.get('total_used_size_in_bytes', None) - self.status_code = kwargs.get('status_code', None) - self.status_message = kwargs.get('status_message', None) - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py index 33a2c7938a7e..f0f2442153ad 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/models/_models_py3.py @@ -5736,10 +5736,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_04_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_04_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -5749,7 +5747,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -5760,13 +5757,14 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( self, *, exclude_disks: Optional[List["ApiEntityReference"]] = None, + time_created: Optional[datetime.datetime] = None, **kwargs ): super(RestorePoint, self).__init__(**kwargs) @@ -5774,7 +5772,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = time_created class RestorePointCollection(Resource): @@ -5948,43 +5946,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - *, - creation_time: Optional[datetime.datetime] = None, - total_used_size_in_bytes: Optional[int] = None, - status_code: Optional[int] = None, - status_message: Optional[str] = None, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = creation_time - self.total_used_size_in_bytes = total_used_size_in_bytes - self.status_code = status_code - self.status_message = status_message - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py index 2960d05ed5c3..e5754a47ce68 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "23.1.0" +VERSION = "1.0.0b1" diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/__init__.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/__init__.py index 6b70bd5eb824..6817351de81f 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/__init__.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/__init__.py @@ -156,7 +156,6 @@ from ._models_py3 import RestorePointCollectionListResult from ._models_py3 import RestorePointCollectionSourceProperties from ._models_py3 import RestorePointCollectionUpdate - from ._models_py3 import RestorePointProvisioningDetails from ._models_py3 import RestorePointSourceMetadata from ._models_py3 import RestorePointSourceVMDataDisk from ._models_py3 import RestorePointSourceVMOSDisk @@ -462,7 +461,6 @@ from ._models import RestorePointCollectionListResult # type: ignore from ._models import RestorePointCollectionSourceProperties # type: ignore from ._models import RestorePointCollectionUpdate # type: ignore - from ._models import RestorePointProvisioningDetails # type: ignore from ._models import RestorePointSourceMetadata # type: ignore from ._models import RestorePointSourceVMDataDisk # type: ignore from ._models import RestorePointSourceVMOSDisk # type: ignore @@ -857,7 +855,6 @@ 'RestorePointCollectionListResult', 'RestorePointCollectionSourceProperties', 'RestorePointCollectionUpdate', - 'RestorePointProvisioningDetails', 'RestorePointSourceMetadata', 'RestorePointSourceVMDataDisk', 'RestorePointSourceVMOSDisk', diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models.py index 67b8d6119e4f..e273053a5ee2 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models.py @@ -6009,10 +6009,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_07_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_07_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -6022,7 +6020,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -6033,7 +6030,7 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( @@ -6045,7 +6042,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = kwargs.get('time_created', None) class RestorePointCollection(Resource): @@ -6207,38 +6204,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = kwargs.get('creation_time', None) - self.total_used_size_in_bytes = kwargs.get('total_used_size_in_bytes', None) - self.status_code = kwargs.get('status_code', None) - self.status_message = kwargs.get('status_message', None) - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation. diff --git a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py index 9a9e58ab2298..e049a351d005 100644 --- a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py +++ b/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/models/_models_py3.py @@ -6549,10 +6549,8 @@ class RestorePoint(ProxyResource): https://aka.ms/RestorePoints for more details. Possible values include: "CrashConsistent", "FileSystemConsistent", "ApplicationConsistent". :vartype consistency_mode: str or ~azure.mgmt.compute.v2021_07_01.models.ConsistencyModeTypes - :ivar provisioning_details: Gets the provisioning details set by the server during Create - restore point operation. - :vartype provisioning_details: - ~azure.mgmt.compute.v2021_07_01.models.RestorePointProvisioningDetails + :param time_created: Gets the creation time of the restore point. + :type time_created: ~datetime.datetime """ _validation = { @@ -6562,7 +6560,6 @@ class RestorePoint(ProxyResource): 'source_metadata': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'consistency_mode': {'readonly': True}, - 'provisioning_details': {'readonly': True}, } _attribute_map = { @@ -6573,13 +6570,14 @@ class RestorePoint(ProxyResource): 'source_metadata': {'key': 'properties.sourceMetadata', 'type': 'RestorePointSourceMetadata'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'consistency_mode': {'key': 'properties.consistencyMode', 'type': 'str'}, - 'provisioning_details': {'key': 'properties.provisioningDetails', 'type': 'RestorePointProvisioningDetails'}, + 'time_created': {'key': 'properties.timeCreated', 'type': 'iso-8601'}, } def __init__( self, *, exclude_disks: Optional[List["ApiEntityReference"]] = None, + time_created: Optional[datetime.datetime] = None, **kwargs ): super(RestorePoint, self).__init__(**kwargs) @@ -6587,7 +6585,7 @@ def __init__( self.source_metadata = None self.provisioning_state = None self.consistency_mode = None - self.provisioning_details = None + self.time_created = time_created class RestorePointCollection(Resource): @@ -6761,43 +6759,6 @@ def __init__( self.restore_points = None -class RestorePointProvisioningDetails(msrest.serialization.Model): - """Restore Point Provisioning details. - - :param creation_time: Gets the creation time of the restore point. - :type creation_time: ~datetime.datetime - :param total_used_size_in_bytes: Gets the total size of the data in all the disks which are - part of the restore point. - :type total_used_size_in_bytes: long - :param status_code: Gets the status of the Create restore point operation. - :type status_code: int - :param status_message: Gets the status message of the Create restore point operation. - :type status_message: str - """ - - _attribute_map = { - 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, - 'total_used_size_in_bytes': {'key': 'totalUsedSizeInBytes', 'type': 'long'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - } - - def __init__( - self, - *, - creation_time: Optional[datetime.datetime] = None, - total_used_size_in_bytes: Optional[int] = None, - status_code: Optional[int] = None, - status_message: Optional[str] = None, - **kwargs - ): - super(RestorePointProvisioningDetails, self).__init__(**kwargs) - self.creation_time = creation_time - self.total_used_size_in_bytes = total_used_size_in_bytes - self.status_code = status_code - self.status_message = status_message - - class RestorePointSourceMetadata(msrest.serialization.Model): """Describes the properties of the Virtual Machine for which the restore point was created. The properties provided are a subset and the snapshot of the overall Virtual Machine properties captured at the time of the restore point creation.