Skip to content
Merged
Prev Previous commit
Next Next commit
Generated from 7a5b7c3085a95f87c2e25177e4790f7fabd59b58
[Storage] Add back ManagmentPolicy on 2018-03-01-preview
  • Loading branch information
AutorestCI committed Sep 13, 2018
commit c2297a3010e338f7189d515b3e43a9afe5c49b75
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
from .legal_hold_py3 import LegalHold
from .list_container_item_py3 import ListContainerItem
from .list_container_items_py3 import ListContainerItems
from .storage_account_management_policies_py3 import StorageAccountManagementPolicies
from .management_policies_rules_set_parameter_py3 import ManagementPoliciesRulesSetParameter
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .dimension import Dimension
Expand Down Expand Up @@ -101,6 +103,8 @@
from .legal_hold import LegalHold
from .list_container_item import ListContainerItem
from .list_container_items import ListContainerItems
from .storage_account_management_policies import StorageAccountManagementPolicies
from .management_policies_rules_set_parameter import ManagementPoliciesRulesSetParameter
from .operation_paged import OperationPaged
from .sku_paged import SkuPaged
from .storage_account_paged import StorageAccountPaged
Expand Down Expand Up @@ -180,6 +184,8 @@
'LegalHold',
'ListContainerItem',
'ListContainerItems',
'StorageAccountManagementPolicies',
'ManagementPoliciesRulesSetParameter',
'OperationPaged',
'SkuPaged',
'StorageAccountPaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ManagementPoliciesRulesSetParameter(Model):
"""The Storage Account ManagementPolicies Rules, in JSON format. See more
details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

:param policy: The Storage Account ManagementPolicies Rules, in JSON
format. See more details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
:type policy: object
"""

_attribute_map = {
'policy': {'key': 'properties.policy', 'type': 'object'},
}

def __init__(self, **kwargs):
super(ManagementPoliciesRulesSetParameter, self).__init__(**kwargs)
self.policy = kwargs.get('policy', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ManagementPoliciesRulesSetParameter(Model):
"""The Storage Account ManagementPolicies Rules, in JSON format. See more
details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

:param policy: The Storage Account ManagementPolicies Rules, in JSON
format. See more details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
:type policy: object
"""

_attribute_map = {
'policy': {'key': 'properties.policy', 'type': 'object'},
}

def __init__(self, *, policy=None, **kwargs) -> None:
super(ManagementPoliciesRulesSetParameter, self).__init__(**kwargs)
self.policy = policy
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource


class StorageAccountManagementPolicies(Resource):
"""The Get Storage Account ManagementPolicies operation response.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param policy: The Storage Account ManagementPolicies Rules, in JSON
format. See more details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
:type policy: object
:ivar last_modified_time: Returns the date and time the ManagementPolicies
was last modified.
:vartype last_modified_time: datetime
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'last_modified_time': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'policy': {'key': 'properties.policy', 'type': 'object'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
}

def __init__(self, **kwargs):
super(StorageAccountManagementPolicies, self).__init__(**kwargs)
self.policy = kwargs.get('policy', None)
self.last_modified_time = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .resource_py3 import Resource


class StorageAccountManagementPolicies(Resource):
"""The Get Storage Account ManagementPolicies operation response.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param policy: The Storage Account ManagementPolicies Rules, in JSON
format. See more details in:
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
:type policy: object
:ivar last_modified_time: Returns the date and time the ManagementPolicies
was last modified.
:vartype last_modified_time: datetime
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'last_modified_time': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'policy': {'key': 'properties.policy', 'type': 'object'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
}

def __init__(self, *, policy=None, **kwargs) -> None:
super(StorageAccountManagementPolicies, self).__init__(**kwargs)
self.policy = policy
self.last_modified_time = None
Loading