-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR resources/resource-manager] Backfilling Microsoft.Resources a…
…nd subscriptions Swagger specs up to 2019-03-01 API version (#4754) * Generated from 358cc2fcac3711d666771326c3427f7db554d541 Updated config files * Packaging update of azure-mgmt-resource
- Loading branch information
1 parent
2123372
commit 8961d6f
Showing
28 changed files
with
1,353 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.rst | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.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
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
18 changes: 18 additions & 0 deletions
18
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/__init__.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,18 @@ | ||
# 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 .subscription_client import SubscriptionClient | ||
from .version import VERSION | ||
|
||
__all__ = ['SubscriptionClient'] | ||
|
||
__version__ = VERSION | ||
|
48 changes: 48 additions & 0 deletions
48
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/__init__.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,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. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from .location_py3 import Location | ||
from .subscription_policies_py3 import SubscriptionPolicies | ||
from .subscription_py3 import Subscription | ||
from .tenant_id_description_py3 import TenantIdDescription | ||
from .operation_display_py3 import OperationDisplay | ||
from .operation_py3 import Operation | ||
except (SyntaxError, ImportError): | ||
from .location import Location | ||
from .subscription_policies import SubscriptionPolicies | ||
from .subscription import Subscription | ||
from .tenant_id_description import TenantIdDescription | ||
from .operation_display import OperationDisplay | ||
from .operation import Operation | ||
from .operation_paged import OperationPaged | ||
from .location_paged import LocationPaged | ||
from .subscription_paged import SubscriptionPaged | ||
from .tenant_id_description_paged import TenantIdDescriptionPaged | ||
from .subscription_client_enums import ( | ||
SubscriptionState, | ||
SpendingLimit, | ||
) | ||
|
||
__all__ = [ | ||
'Location', | ||
'SubscriptionPolicies', | ||
'Subscription', | ||
'TenantIdDescription', | ||
'OperationDisplay', | ||
'Operation', | ||
'OperationPaged', | ||
'LocationPaged', | ||
'SubscriptionPaged', | ||
'TenantIdDescriptionPaged', | ||
'SubscriptionState', | ||
'SpendingLimit', | ||
] |
61 changes: 61 additions & 0 deletions
61
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location.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,61 @@ | ||
# 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 Location(Model): | ||
"""Location information. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: The fully qualified ID of the location. For example, | ||
/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. | ||
:vartype id: str | ||
:ivar subscription_id: The subscription ID. | ||
:vartype subscription_id: str | ||
:ivar name: The location name. | ||
:vartype name: str | ||
:ivar display_name: The display name of the location. | ||
:vartype display_name: str | ||
:ivar latitude: The latitude of the location. | ||
:vartype latitude: str | ||
:ivar longitude: The longitude of the location. | ||
:vartype longitude: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'subscription_id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'display_name': {'readonly': True}, | ||
'latitude': {'readonly': True}, | ||
'longitude': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'latitude': {'key': 'latitude', 'type': 'str'}, | ||
'longitude': {'key': 'longitude', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Location, self).__init__(**kwargs) | ||
self.id = None | ||
self.subscription_id = None | ||
self.name = None | ||
self.display_name = None | ||
self.latitude = None | ||
self.longitude = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_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 LocationPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`Location <azure.mgmt.resource.subscriptions.v2018_06_01.models.Location>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[Location]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(LocationPaged, self).__init__(*args, **kwargs) |
61 changes: 61 additions & 0 deletions
61
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/location_py3.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,61 @@ | ||
# 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 Location(Model): | ||
"""Location information. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: The fully qualified ID of the location. For example, | ||
/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. | ||
:vartype id: str | ||
:ivar subscription_id: The subscription ID. | ||
:vartype subscription_id: str | ||
:ivar name: The location name. | ||
:vartype name: str | ||
:ivar display_name: The display name of the location. | ||
:vartype display_name: str | ||
:ivar latitude: The latitude of the location. | ||
:vartype latitude: str | ||
:ivar longitude: The longitude of the location. | ||
:vartype longitude: str | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'subscription_id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'display_name': {'readonly': True}, | ||
'latitude': {'readonly': True}, | ||
'longitude': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'latitude': {'key': 'latitude', 'type': 'str'}, | ||
'longitude': {'key': 'longitude', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(Location, self).__init__(**kwargs) | ||
self.id = None | ||
self.subscription_id = None | ||
self.name = None | ||
self.display_name = None | ||
self.latitude = None | ||
self.longitude = None |
33 changes: 33 additions & 0 deletions
33
azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation.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,33 @@ | ||
# 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 Operation(Model): | ||
"""Microsoft.Resources operation. | ||
:param name: Operation name: {provider}/{resource}/{operation} | ||
:type name: str | ||
:param display: The object that represents the operation. | ||
:type display: | ||
~azure.mgmt.resource.subscriptions.v2018_06_01.models.OperationDisplay | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'display': {'key': 'display', 'type': 'OperationDisplay'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(Operation, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.display = kwargs.get('display', None) |
41 changes: 41 additions & 0 deletions
41
...e-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/models/operation_display.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 OperationDisplay(Model): | ||
"""The object that represents the operation. | ||
:param provider: Service provider: Microsoft.Resources | ||
: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 | ||
:param description: Description of the operation. | ||
:type description: str | ||
""" | ||
|
||
_attribute_map = { | ||
'provider': {'key': 'provider', 'type': 'str'}, | ||
'resource': {'key': 'resource', 'type': 'str'}, | ||
'operation': {'key': 'operation', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(OperationDisplay, self).__init__(**kwargs) | ||
self.provider = kwargs.get('provider', None) | ||
self.resource = kwargs.get('resource', None) | ||
self.operation = kwargs.get('operation', None) | ||
self.description = kwargs.get('description', None) |
Oops, something went wrong.