Skip to content

Commit

Permalink
[AutoPR web/resource-manager] Update available stacks API (Azure#1995)
Browse files Browse the repository at this point in the history
* Generated from 5289a6ba455730a1d6185c1e494f6101c0591ada

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs

* Generated from 5289a6ba455730a1d6185c1e494f6101c0591ada

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 21, 2018
1 parent d838bf9 commit 965f881
Show file tree
Hide file tree
Showing 19 changed files with 1,183 additions and 531 deletions.
8 changes: 8 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
from .diagnostic_analysis import DiagnosticAnalysis
from .diagnostic_category import DiagnosticCategory
from .diagnostic_detector_response import DiagnosticDetectorResponse
from .stack_minor_version import StackMinorVersion
from .stack_major_version import StackMajorVersion
from .application_stack import ApplicationStack
from .recommendation import Recommendation
from .recommendation_rule import RecommendationRule
from .csm_move_resource_envelope import CsmMoveResourceEnvelope
Expand Down Expand Up @@ -221,6 +224,7 @@
from .diagnostic_category_paged import DiagnosticCategoryPaged
from .analysis_definition_paged import AnalysisDefinitionPaged
from .detector_definition_paged import DetectorDefinitionPaged
from .application_stack_paged import ApplicationStackPaged
from .source_control_paged import SourceControlPaged
from .geo_region_paged import GeoRegionPaged
from .identifier_paged import IdentifierPaged
Expand Down Expand Up @@ -426,6 +430,9 @@
'DiagnosticAnalysis',
'DiagnosticCategory',
'DiagnosticDetectorResponse',
'StackMinorVersion',
'StackMajorVersion',
'ApplicationStack',
'Recommendation',
'RecommendationRule',
'CsmMoveResourceEnvelope',
Expand Down Expand Up @@ -529,6 +536,7 @@
'DiagnosticCategoryPaged',
'AnalysisDefinitionPaged',
'DetectorDefinitionPaged',
'ApplicationStackPaged',
'SourceControlPaged',
'GeoRegionPaged',
'IdentifierPaged',
Expand Down
44 changes: 44 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/application_stack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 ApplicationStack(Model):
"""Application stack.
:param name: Application stack name.
:type name: str
:param display: Application stack display name.
:type display: str
:param dependency: Application stack dependency.
:type dependency: str
:param major_versions: List of major versions available.
:type major_versions: list[~azure.mgmt.web.models.StackMajorVersion]
:param frameworks: List of frameworks associated with application stack.
:type frameworks: list[~azure.mgmt.web.models.ApplicationStack]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'str'},
'dependency': {'key': 'dependency', 'type': 'str'},
'major_versions': {'key': 'majorVersions', 'type': '[StackMajorVersion]'},
'frameworks': {'key': 'frameworks', 'type': '[ApplicationStack]'},
}

def __init__(self, name=None, display=None, dependency=None, major_versions=None, frameworks=None):
super(ApplicationStack, self).__init__()
self.name = name
self.display = display
self.dependency = dependency
self.major_versions = major_versions
self.frameworks = frameworks
27 changes: 27 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/application_stack_paged.py
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 ApplicationStackPaged(Paged):
"""
A paging container for iterating over a list of :class:`ApplicationStack <azure.mgmt.web.models.ApplicationStack>` object
"""

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

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

super(ApplicationStackPaged, self).__init__(*args, **kwargs)
41 changes: 41 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/stack_major_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 StackMajorVersion(Model):
"""Application stack major version.
:param display_version: Application stack major version (display only).
:type display_version: str
:param runtime_version: Application stack major version (runtime only).
:type runtime_version: str
:param is_default: <code>true</code> if this is the default major version;
otherwise, <code>false</code>.
:type is_default: bool
:param minor_versions: Minor versions associated with the major version.
:type minor_versions: list[~azure.mgmt.web.models.StackMinorVersion]
"""

_attribute_map = {
'display_version': {'key': 'displayVersion', 'type': 'str'},
'runtime_version': {'key': 'runtimeVersion', 'type': 'str'},
'is_default': {'key': 'isDefault', 'type': 'bool'},
'minor_versions': {'key': 'minorVersions', 'type': '[StackMinorVersion]'},
}

def __init__(self, display_version=None, runtime_version=None, is_default=None, minor_versions=None):
super(StackMajorVersion, self).__init__()
self.display_version = display_version
self.runtime_version = runtime_version
self.is_default = is_default
self.minor_versions = minor_versions
37 changes: 37 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/stack_minor_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 StackMinorVersion(Model):
"""Application stack minor version.
:param display_version: Application stack minor version (display only).
:type display_version: str
:param runtime_version: Application stack minor version (runtime only).
:type runtime_version: str
:param is_default: <code>true</code> if this is the default minor version;
otherwise, <code>false</code>.
:type is_default: bool
"""

_attribute_map = {
'display_version': {'key': 'displayVersion', 'type': 'str'},
'runtime_version': {'key': 'runtimeVersion', 'type': 'str'},
'is_default': {'key': 'isDefault', 'type': 'bool'},
}

def __init__(self, display_version=None, runtime_version=None, is_default=None):
super(StackMinorVersion, self).__init__()
self.display_version = display_version
self.runtime_version = runtime_version
self.is_default = is_default
Loading

0 comments on commit 965f881

Please sign in to comment.