Source code for azure.mgmt.resource.features.v2015_12_01.models._models_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 typing import List, Optional

import msrest.serialization


[docs]class FeatureOperationsListResult(msrest.serialization.Model): """List of previewed features. :param value: The array of features. :type value: list[~azure.mgmt.resource.features.v2015_12_01.models.FeatureResult] :param next_link: The URL to use for getting the next set of results. :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[FeatureResult]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["FeatureResult"]] = None, next_link: Optional[str] = None, **kwargs ): super(FeatureOperationsListResult, self).__init__(**kwargs) self.value = value self.next_link = next_link
[docs]class FeatureProperties(msrest.serialization.Model): """Information about feature. :param state: The registration state of the feature for the subscription. :type state: str """ _attribute_map = { 'state': {'key': 'state', 'type': 'str'}, } def __init__( self, *, state: Optional[str] = None, **kwargs ): super(FeatureProperties, self).__init__(**kwargs) self.state = state
[docs]class FeatureResult(msrest.serialization.Model): """Previewed feature information. :param name: The name of the feature. :type name: str :param properties: Properties of the previewed feature. :type properties: ~azure.mgmt.resource.features.v2015_12_01.models.FeatureProperties :param id: The resource ID of the feature. :type id: str :param type: The resource type of the feature. :type type: str """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'FeatureProperties'}, 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, *, name: Optional[str] = None, properties: Optional["FeatureProperties"] = None, id: Optional[str] = None, type: Optional[str] = None, **kwargs ): super(FeatureResult, self).__init__(**kwargs) self.name = name self.properties = properties self.id = id self.type = type
[docs]class Operation(msrest.serialization.Model): """Microsoft.Features operation. :param name: Operation name: {provider}/{resource}/{operation}. :type name: str :param display: The object that represents the operation. :type display: ~azure.mgmt.resource.features.v2015_12_01.models.OperationDisplay """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, } def __init__( self, *, name: Optional[str] = None, display: Optional["OperationDisplay"] = None, **kwargs ): super(Operation, self).__init__(**kwargs) self.name = name self.display = display
[docs]class OperationDisplay(msrest.serialization.Model): """The object that represents the operation. :param provider: Service provider: Microsoft.Features. :type provider: str :param resource: Resource on which the operation is performed: Profile, endpoint, etc. :type resource: str :param operation: Operation type: Read, write, delete, etc. :type operation: str """ _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, 'operation': {'key': 'operation', 'type': 'str'}, } def __init__( self, *, provider: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, **kwargs ): super(OperationDisplay, self).__init__(**kwargs) self.provider = provider self.resource = resource self.operation = operation
[docs]class OperationListResult(msrest.serialization.Model): """Result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results. :param value: List of Microsoft.Features operations. :type value: list[~azure.mgmt.resource.features.v2015_12_01.models.Operation] :param next_link: URL to get the next set of operation list results if there are any. :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Operation]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["Operation"]] = None, next_link: Optional[str] = None, **kwargs ): super(OperationListResult, self).__init__(**kwargs) self.value = value self.next_link = next_link