partnercenter/azext_partnercenter/models/offer.py (28 lines of code) (raw):
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from enum import Enum
from azure.core import CaseInsensitiveEnumMeta
from msrest.serialization import Model
class Offer(Model):
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'alias': {'key': 'alias', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'}
}
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.id = kwargs.get('id', None)
self.alias = kwargs.get('alias', None)
self.type = kwargs.get('type', None)
self.resource = kwargs.get('resource', None)
class OfferType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The offer types"""
SOFTWAREASASERVICE = "SoftwareAsAService"
AZUREAPPLICATION = "AzureApplication"
AZURETHIRDPARTYVIRTUALMACHINE = "AzureThirdPartyVirtualMachine"
AZURECONTAINER = "AzureContainer"
AZURECONSULTINGSERVICE = "AzureConsultingService"
AZUREDYNAMICS365FORCUSTOMERENGAGEMENT = "AzureDynamics365ForCustomerEngagement"
AZUREDYNAMICS365FOROPERATIONS = "AzureDynamics365ForOperations"
AZUREDYNAMICS365BUSINESSCENTRAL = "AzureDynamics365BusinessCentral"
AZUREIOTEDGEMODULE = "AzureIoTEdgeModule"
AZUREMANAGEDSERVICE = "AzureManagedService"
AZUREPOWERBIAPP = "AzurePowerBIApp"
AZUREPOWERBIVISUAL = "AzurePowerBIVisual"