Skip to content

Commit

Permalink
[AutoPR web/resource-manager] Update logicAppsManagementClient.json t…
Browse files Browse the repository at this point in the history
…o current offerings (#2289)

* Generated from a708b01ae8047043514cb507bebd12838177c896

PR Updates

* Generated from d8ef07295ba7ceb1c9a3d1bbd15f5507dbd59a45

PR Updates
  • Loading branch information
AutorestCI authored Mar 29, 2018
1 parent 787e77b commit b6c1ca5
Show file tree
Hide file tree
Showing 10 changed files with 761 additions and 4 deletions.
10 changes: 10 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
from .localizable_string import LocalizableString
from .csm_usage_quota import CsmUsageQuota
from .error_entity import ErrorEntity
from .default_error_response_error_details_item import DefaultErrorResponseErrorDetailsItem
from .default_error_response_error import DefaultErrorResponseError
from .default_error_response import DefaultErrorResponse, DefaultErrorResponseException
from .operation import Operation
from .resource_metric_property import ResourceMetricProperty
from .resource_metric_value import ResourceMetricValue
Expand All @@ -123,6 +126,7 @@
from .application_stack import ApplicationStack
from .recommendation import Recommendation
from .recommendation_rule import RecommendationRule
from .resource_health_metadata import ResourceHealthMetadata
from .csm_move_resource_envelope import CsmMoveResourceEnvelope
from .geo_region import GeoRegion
from .hosting_environment_deployment_info import HostingEnvironmentDeploymentInfo
Expand Down Expand Up @@ -226,6 +230,7 @@
from .detector_definition_paged import DetectorDefinitionPaged
from .application_stack_paged import ApplicationStackPaged
from .recommendation_paged import RecommendationPaged
from .resource_health_metadata_paged import ResourceHealthMetadataPaged
from .source_control_paged import SourceControlPaged
from .geo_region_paged import GeoRegionPaged
from .identifier_paged import IdentifierPaged
Expand Down Expand Up @@ -413,6 +418,9 @@
'LocalizableString',
'CsmUsageQuota',
'ErrorEntity',
'DefaultErrorResponseErrorDetailsItem',
'DefaultErrorResponseError',
'DefaultErrorResponse', 'DefaultErrorResponseException',
'Operation',
'ResourceMetricProperty',
'ResourceMetricValue',
Expand All @@ -437,6 +445,7 @@
'ApplicationStack',
'Recommendation',
'RecommendationRule',
'ResourceHealthMetadata',
'CsmMoveResourceEnvelope',
'GeoRegion',
'HostingEnvironmentDeploymentInfo',
Expand Down Expand Up @@ -540,6 +549,7 @@
'DetectorDefinitionPaged',
'ApplicationStackPaged',
'RecommendationPaged',
'ResourceHealthMetadataPaged',
'SourceControlPaged',
'GeoRegionPaged',
'IdentifierPaged',
Expand Down
48 changes: 48 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/default_error_response.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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
from msrest.exceptions import HttpOperationError


class DefaultErrorResponse(Model):
"""App Service error response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar error: Error model.
:vartype error: ~azure.mgmt.web.models.DefaultErrorResponseError
"""

_validation = {
'error': {'readonly': True},
}

_attribute_map = {
'error': {'key': 'error', 'type': 'DefaultErrorResponseError'},
}

def __init__(self):
super(DefaultErrorResponse, self).__init__()
self.error = None


class DefaultErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'DefaultErrorResponse'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(DefaultErrorResponseException, self).__init__(deserialize, response, 'DefaultErrorResponse', *args)
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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


class DefaultErrorResponseError(Model):
"""Error model.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar code: Standardized string to programmatically identify the error.
:vartype code: str
:ivar message: Detailed error description and debugging information.
:vartype message: str
:ivar target: Detailed error description and debugging information.
:vartype target: str
:param details:
:type details:
list[~azure.mgmt.web.models.DefaultErrorResponseErrorDetailsItem]
:ivar innererror: More information to debug error.
:vartype innererror: str
"""

_validation = {
'code': {'required': True, 'readonly': True},
'message': {'required': True, 'readonly': True},
'target': {'readonly': True},
'innererror': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[DefaultErrorResponseErrorDetailsItem]'},
'innererror': {'key': 'innererror', 'type': 'str'},
}

def __init__(self, details=None):
super(DefaultErrorResponseError, self).__init__()
self.code = None
self.message = None
self.target = None
self.details = details
self.innererror = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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


class DefaultErrorResponseErrorDetailsItem(Model):
"""Detailed errors.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar code: Standardized string to programmatically identify the error.
:vartype code: str
:ivar message: Detailed error description and debugging information.
:vartype message: str
:ivar target: Detailed error description and debugging information.
:vartype target: str
"""

_validation = {
'code': {'required': True, 'readonly': True},
'message': {'required': True, 'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}

def __init__(self):
super(DefaultErrorResponseErrorDetailsItem, self).__init__()
self.code = None
self.message = None
self.target = None
54 changes: 54 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/resource_health_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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 ResourceHealthMetadata(ProxyOnlyResource):
"""Used for getting ResourceHealthCheck settings.
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 category: The category that the resource matches in the RHC Policy
File
:type category: str
:param signal_availability: Is there a health signal for the resource
:type signal_availability: bool
"""

_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'},
'category': {'key': 'properties.category', 'type': 'str'},
'signal_availability': {'key': 'properties.signalAvailability', 'type': 'bool'},
}

def __init__(self, kind=None, category=None, signal_availability=None):
super(ResourceHealthMetadata, self).__init__(kind=kind)
self.category = category
self.signal_availability = signal_availability
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class ResourceHealthMetadataPaged(Paged):
"""
A paging container for iterating over a list of :class:`ResourceHealthMetadata <azure.mgmt.web.models.ResourceHealthMetadata>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ResourceHealthMetadata]'}
}

def __init__(self, *args, **kwargs):

super(ResourceHealthMetadataPaged, self).__init__(*args, **kwargs)
2 changes: 2 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from .diagnostics_operations import DiagnosticsOperations
from .provider_operations import ProviderOperations
from .recommendations_operations import RecommendationsOperations
from .resource_health_metadata_operations import ResourceHealthMetadataOperations
from .web_apps_operations import WebAppsOperations
from .app_service_environments_operations import AppServiceEnvironmentsOperations
from .app_service_plans_operations import AppServicePlansOperations
Expand All @@ -34,6 +35,7 @@
'DiagnosticsOperations',
'ProviderOperations',
'RecommendationsOperations',
'ResourceHealthMetadataOperations',
'WebAppsOperations',
'AppServiceEnvironmentsOperations',
'AppServicePlansOperations',
Expand Down
Loading

0 comments on commit b6c1ca5

Please sign in to comment.