Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-compute] Remove Provisioning Details from RestorePoint #7396

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
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 = "23.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -723,7 +721,6 @@
'RestorePointCollectionListResult',
'RestorePointCollectionSourceProperties',
'RestorePointCollectionUpdate',
'RestorePointProvisioningDetails',
'RestorePointSourceMetadata',
'RestorePointSourceVMDataDisk',
'RestorePointSourceVMOSDisk',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -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__(
Expand All @@ -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):
Expand Down Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 = {
Expand All @@ -4842,21 +4839,22 @@ 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)
self.exclude_disks = exclude_disks
self.source_metadata = None
self.provisioning_state = None
self.consistency_mode = None
self.provisioning_details = None
self.time_created = time_created


class RestorePointCollection(Resource):
Expand Down Expand Up @@ -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.

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 = "23.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -773,7 +771,6 @@
'RestorePointCollectionListResult',
'RestorePointCollectionSourceProperties',
'RestorePointCollectionUpdate',
'RestorePointProvisioningDetails',
'RestorePointSourceMetadata',
'RestorePointSourceVMDataDisk',
'RestorePointSourceVMOSDisk',
Expand Down
Loading