|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from .resource import Resource |
| 13 | + |
| 14 | + |
| 15 | +class App(Resource): |
| 16 | + """The IoT Central application. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + All required parameters must be populated in order to send to Azure. |
| 22 | +
|
| 23 | + :ivar id: The ARM resource identifier. |
| 24 | + :vartype id: str |
| 25 | + :ivar name: The ARM resource name. |
| 26 | + :vartype name: str |
| 27 | + :ivar type: The resource type. |
| 28 | + :vartype type: str |
| 29 | + :param location: Required. The resource location. |
| 30 | + :type location: str |
| 31 | + :param tags: The resource tags. |
| 32 | + :type tags: dict[str, str] |
| 33 | + :ivar application_id: The ID of the application. |
| 34 | + :vartype application_id: str |
| 35 | + :param display_name: The display name of the application. |
| 36 | + :type display_name: str |
| 37 | + :param subdomain: The subdomain of the application. |
| 38 | + :type subdomain: str |
| 39 | + :param template: The ID of the application template, which is a blueprint |
| 40 | + that defines the characteristics and behaviors of an application. |
| 41 | + Optional; if not specified, defaults to a blank blueprint and allows the |
| 42 | + application to be defined from scratch. |
| 43 | + :type template: str |
| 44 | + :param sku: Required. A valid instance SKU. |
| 45 | + :type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo |
| 46 | + """ |
| 47 | + |
| 48 | + _validation = { |
| 49 | + 'id': {'readonly': True}, |
| 50 | + 'name': {'readonly': True, 'pattern': r'^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,99}[a-zA-Z0-9]$'}, |
| 51 | + 'type': {'readonly': True}, |
| 52 | + 'location': {'required': True}, |
| 53 | + 'application_id': {'readonly': True}, |
| 54 | + 'display_name': {'pattern': r'^.{1,200}$'}, |
| 55 | + 'subdomain': {'pattern': r'^[a-z0-9-]{1,63}$'}, |
| 56 | + 'sku': {'required': True}, |
| 57 | + } |
| 58 | + |
| 59 | + _attribute_map = { |
| 60 | + 'id': {'key': 'id', 'type': 'str'}, |
| 61 | + 'name': {'key': 'name', 'type': 'str'}, |
| 62 | + 'type': {'key': 'type', 'type': 'str'}, |
| 63 | + 'location': {'key': 'location', 'type': 'str'}, |
| 64 | + 'tags': {'key': 'tags', 'type': '{str}'}, |
| 65 | + 'application_id': {'key': 'properties.applicationId', 'type': 'str'}, |
| 66 | + 'display_name': {'key': 'properties.displayName', 'type': 'str'}, |
| 67 | + 'subdomain': {'key': 'properties.subdomain', 'type': 'str'}, |
| 68 | + 'template': {'key': 'properties.template', 'type': 'str'}, |
| 69 | + 'sku': {'key': 'sku', 'type': 'AppSkuInfo'}, |
| 70 | + } |
| 71 | + |
| 72 | + def __init__(self, **kwargs): |
| 73 | + super(App, self).__init__(**kwargs) |
| 74 | + self.application_id = None |
| 75 | + self.display_name = kwargs.get('display_name', None) |
| 76 | + self.subdomain = kwargs.get('subdomain', None) |
| 77 | + self.template = kwargs.get('template', None) |
| 78 | + self.sku = kwargs.get('sku', None) |
0 commit comments