|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from .resource import Resource |
| 13 | + |
| 14 | + |
| 15 | +class BlobServiceProperties(Resource): |
| 16 | + """The properties of a storage account’s Blob service. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + :ivar id: Fully qualified resource Id for the resource. Ex - |
| 22 | + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| 23 | + :vartype id: str |
| 24 | + :ivar name: The name of the resource |
| 25 | + :vartype name: str |
| 26 | + :ivar type: The type of the resource. Ex- |
| 27 | + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. |
| 28 | + :vartype type: str |
| 29 | + :param cors: Specifies CORS rules for the Blob service. You can include up |
| 30 | + to five CorsRule elements in the request. If no CorsRule elements are |
| 31 | + included in the request body, all CORS rules will be deleted, and CORS |
| 32 | + will be disabled for the Blob service. |
| 33 | + :type cors: ~azure.mgmt.storage.v2018_07_01.models.CorsRules |
| 34 | + :param default_service_version: DefaultServiceVersion indicates the |
| 35 | + default version to use for requests to the Blob service if an incoming |
| 36 | + request’s version is not specified. Possible values include version |
| 37 | + 2008-10-27 and all more recent versions. |
| 38 | + :type default_service_version: str |
| 39 | + :param delete_retention_policy: The blob service properties for soft |
| 40 | + delete. |
| 41 | + :type delete_retention_policy: |
| 42 | + ~azure.mgmt.storage.v2018_07_01.models.DeleteRetentionPolicy |
| 43 | + """ |
| 44 | + |
| 45 | + _validation = { |
| 46 | + 'id': {'readonly': True}, |
| 47 | + 'name': {'readonly': True}, |
| 48 | + 'type': {'readonly': True}, |
| 49 | + } |
| 50 | + |
| 51 | + _attribute_map = { |
| 52 | + 'id': {'key': 'id', 'type': 'str'}, |
| 53 | + 'name': {'key': 'name', 'type': 'str'}, |
| 54 | + 'type': {'key': 'type', 'type': 'str'}, |
| 55 | + 'cors': {'key': 'properties.cors', 'type': 'CorsRules'}, |
| 56 | + 'default_service_version': {'key': 'properties.defaultServiceVersion', 'type': 'str'}, |
| 57 | + 'delete_retention_policy': {'key': 'properties.deleteRetentionPolicy', 'type': 'DeleteRetentionPolicy'}, |
| 58 | + } |
| 59 | + |
| 60 | + def __init__(self, **kwargs): |
| 61 | + super(BlobServiceProperties, self).__init__(**kwargs) |
| 62 | + self.cors = kwargs.get('cors', None) |
| 63 | + self.default_service_version = kwargs.get('default_service_version', None) |
| 64 | + self.delete_retention_policy = kwargs.get('delete_retention_policy', None) |
0 commit comments