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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
# 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 .proxy_only_resource import ProxyOnlyResource
class PremierAddOnOffer(ProxyOnlyResource):
"""Premier add-on offer.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource Name.
:vartype name: str
:param kind: Kind of resource.
:type kind: str
:ivar type: Resource type.
:vartype type: str
:param sku: Premier add on SKU.
:type sku: str
:param product: Premier add on offer Product.
:type product: str
:param vendor: Premier add on offer Vendor.
:type vendor: str
:param promo_code_required: <code>true</code> if promotion code is
required; otherwise, <code>false</code>.
:type promo_code_required: bool
:param quota: Premier add on offer Quota.
:type quota: int
:param web_hosting_plan_restrictions: App Service plans this offer is
restricted to. Possible values include: 'None', 'Free', 'Shared', 'Basic',
'Standard', 'Premium'
:type web_hosting_plan_restrictions: str or
~azure.mgmt.web.models.AppServicePlanRestrictions
:param privacy_policy_url: Privacy policy URL.
:type privacy_policy_url: str
:param legal_terms_url: Legal terms URL.
:type legal_terms_url: str
:param marketplace_publisher: Marketplace publisher.
:type marketplace_publisher: str
:param marketplace_offer: Marketplace offer.
:type marketplace_offer: str
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'sku': {'key': 'properties.sku', 'type': 'str'},
'product': {'key': 'properties.product', 'type': 'str'},
'vendor': {'key': 'properties.vendor', 'type': 'str'},
'promo_code_required': {'key': 'properties.promoCodeRequired', 'type': 'bool'},
'quota': {'key': 'properties.quota', 'type': 'int'},
'web_hosting_plan_restrictions': {'key': 'properties.webHostingPlanRestrictions', 'type': 'AppServicePlanRestrictions'},
'privacy_policy_url': {'key': 'properties.privacyPolicyUrl', 'type': 'str'},
'legal_terms_url': {'key': 'properties.legalTermsUrl', 'type': 'str'},
'marketplace_publisher': {'key': 'properties.marketplacePublisher', 'type': 'str'},
'marketplace_offer': {'key': 'properties.marketplaceOffer', 'type': 'str'},
}
def __init__(self, **kwargs):
super(PremierAddOnOffer, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.product = kwargs.get('product', None)
self.vendor = kwargs.get('vendor', None)
self.promo_code_required = kwargs.get('promo_code_required', None)
self.quota = kwargs.get('quota', None)
self.web_hosting_plan_restrictions = kwargs.get('web_hosting_plan_restrictions', None)
self.privacy_policy_url = kwargs.get('privacy_policy_url', None)
self.legal_terms_url = kwargs.get('legal_terms_url', None)
self.marketplace_publisher = kwargs.get('marketplace_publisher', None)
self.marketplace_offer = kwargs.get('marketplace_offer', None)
|