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 49 50 51 52 53 54 55 56 57
|
# 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 Sku(Model):
"""The resource model definition representing SKU.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the SKU. Ex - P3. It is typically a
letter+number code
:type name: str
:param tier: This field is required to be implemented by the Resource
Provider if the service has more than one tier, but is not required on a
PUT.
:type tier: str
:param size: The SKU size. When the name field is the combination of tier
and some other value, this would be the standalone code.
:type size: str
:param family: If the service has different generations of hardware, for
the same SKU, then that can be captured here.
:type family: str
:param capacity: If the SKU supports scale out/in then the capacity
integer should be included. If scale out/in is not possible for the
resource this may be omitted.
:type capacity: int
"""
_validation = {
'name': {'required': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'tier': {'key': 'tier', 'type': 'str'},
'size': {'key': 'size', 'type': 'str'},
'family': {'key': 'family', 'type': 'str'},
'capacity': {'key': 'capacity', 'type': 'int'},
}
def __init__(self, **kwargs):
super(Sku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.tier = kwargs.get('tier', None)
self.size = kwargs.get('size', None)
self.family = kwargs.get('family', None)
self.capacity = kwargs.get('capacity', None)
|