File: site_cloneability.py

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (48 lines) | stat: -rw-r--r-- 2,235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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 SiteCloneability(Model):
    """Represents whether or not an app is cloneable.

    :param result: Name of app. Possible values include: 'Cloneable',
     'PartiallyCloneable', 'NotCloneable'
    :type result: str or ~azure.mgmt.web.models.CloneAbilityResult
    :param blocking_features: List of features enabled on app that prevent
     cloning.
    :type blocking_features:
     list[~azure.mgmt.web.models.SiteCloneabilityCriterion]
    :param unsupported_features: List of features enabled on app that are
     non-blocking but cannot be cloned. The app can still be cloned
     but the features in this list will not be set up on cloned app.
    :type unsupported_features:
     list[~azure.mgmt.web.models.SiteCloneabilityCriterion]
    :param blocking_characteristics: List of blocking application
     characteristics.
    :type blocking_characteristics:
     list[~azure.mgmt.web.models.SiteCloneabilityCriterion]
    """

    _attribute_map = {
        'result': {'key': 'result', 'type': 'CloneAbilityResult'},
        'blocking_features': {'key': 'blockingFeatures', 'type': '[SiteCloneabilityCriterion]'},
        'unsupported_features': {'key': 'unsupportedFeatures', 'type': '[SiteCloneabilityCriterion]'},
        'blocking_characteristics': {'key': 'blockingCharacteristics', 'type': '[SiteCloneabilityCriterion]'},
    }

    def __init__(self, **kwargs):
        super(SiteCloneability, self).__init__(**kwargs)
        self.result = kwargs.get('result', None)
        self.blocking_features = kwargs.get('blocking_features', None)
        self.unsupported_features = kwargs.get('unsupported_features', None)
        self.blocking_characteristics = kwargs.get('blocking_characteristics', None)