forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR web/resource-manager] Update available stacks API (Azure#1995)
* 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
1 parent
d838bf9
commit 965f881
Showing
19 changed files
with
1,183 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
azure-mgmt-web/azure/mgmt/web/models/application_stack_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
41
azure-mgmt-web/azure/mgmt/web/models/stack_major_version.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
37
azure-mgmt-web/azure/mgmt/web/models/stack_minor_version.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.