Source code for azure.mgmt.resource.managedapplications.models.plan_py3

# 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


[docs]class Plan(Model): """Plan for the managed application. All required parameters must be populated in order to send to Azure. :param name: Required. The plan name. :type name: str :param publisher: Required. The publisher ID. :type publisher: str :param product: Required. The product code. :type product: str :param promotion_code: The promotion code. :type promotion_code: str :param version: Required. The plan's version. :type version: str """ _validation = { 'name': {'required': True}, 'publisher': {'required': True}, 'product': {'required': True}, 'version': {'required': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'publisher': {'key': 'publisher', 'type': 'str'}, 'product': {'key': 'product', 'type': 'str'}, 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, 'version': {'key': 'version', 'type': 'str'}, } def __init__(self, *, name: str, publisher: str, product: str, version: str, promotion_code: str=None, **kwargs) -> None: super(Plan, self).__init__(**kwargs) self.name = name self.publisher = publisher self.product = product self.promotion_code = promotion_code self.version = version