forked from Azure/azure-cli-extensions
-
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.
- Loading branch information
1 parent
a960ec4
commit a6d7711
Showing
28 changed files
with
251 additions
and
1,007 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,18 +1,14 @@ | ||
# 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 .subscription_definitions_client import SubscriptionDefinitionsClient | ||
from .version import VERSION | ||
|
||
__all__ = ['SubscriptionClient'] | ||
__all__ = ['SubscriptionDefinitionsClient'] | ||
|
||
__version__ = VERSION | ||
|
32 changes: 4 additions & 28 deletions
32
src/subscription/azext_subscription/subscription/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 |
---|---|---|
@@ -1,46 +1,22 @@ | ||
# 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_definition import SubscriptionDefinition | ||
from .subscription_definition_list import SubscriptionDefinitionList | ||
from .operation_display import OperationDisplay | ||
from .operation import Operation | ||
from .operation_list_result import OperationListResult | ||
from .error_response import ErrorResponse, ErrorResponseException | ||
from .location import Location | ||
from .subscription_policies import SubscriptionPolicies | ||
from .subscription import Subscription | ||
from .tenant_id_description import TenantIdDescription | ||
from .operation_paged import OperationPaged | ||
from .subscription_definition_paged import SubscriptionDefinitionPaged | ||
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__ = [ | ||
'SubscriptionDefinition', | ||
'SubscriptionDefinitionList', | ||
'OperationDisplay', | ||
'Operation', | ||
'OperationListResult', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'Location', | ||
'SubscriptionPolicies', | ||
'Subscription', | ||
'TenantIdDescription', | ||
'OperationPaged', | ||
'SubscriptionDefinitionPaged', | ||
'LocationPaged', | ||
'SubscriptionPaged', | ||
'TenantIdDescriptionPaged', | ||
'SubscriptionState', | ||
'SpendingLimit', | ||
] |
31 changes: 31 additions & 0 deletions
31
src/subscription/azext_subscription/subscription/models/billing_context.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,31 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 BillingContext(Model): | ||
"""Billing Context. | ||
:param commercial_subscription_id: The project and commercial subscription | ||
under which to create a subscription definition. | ||
:type commercial_subscription_id: str | ||
:param offer_type: The offer type of the subscription. For example, | ||
MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement | ||
devTest) are available. | ||
:type offer_type: str | ||
""" | ||
|
||
_attribute_map = { | ||
'commercial_subscription_id': {'key': 'commercialSubscriptionId', 'type': 'str'}, | ||
'offer_type': {'key': 'offerType', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, commercial_subscription_id=None, offer_type=None): | ||
super(BillingContext, self).__init__() | ||
self.commercial_subscription_id = commercial_subscription_id | ||
self.offer_type = offer_type |
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
60 changes: 0 additions & 60 deletions
60
src/subscription/azext_subscription/subscription/models/location.py
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/subscription/azext_subscription/subscription/models/location_paged.py
This file was deleted.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
src/subscription/azext_subscription/subscription/models/operation_list_result.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,30 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# 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 OperationListResult(Model): | ||
"""Result of the request to list operations. It contains a list of operations | ||
and a URL link to get the next set of results. | ||
:param value: List of operations. | ||
:type value: list[~subscriptiondefinitions.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=None, next_link=None): | ||
super(OperationListResult, self).__init__() | ||
self.value = value | ||
self.next_link = next_link |
27 changes: 0 additions & 27 deletions
27
src/subscription/azext_subscription/subscription/models/operation_paged.py
This file was deleted.
Oops, something went wrong.
63 changes: 0 additions & 63 deletions
63
src/subscription/azext_subscription/subscription/models/subscription.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.