Skip to content

Commit

Permalink
Re-generate Python SDK.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilcobmsft committed Feb 7, 2018
1 parent a960ec4 commit a6d7711
Show file tree
Hide file tree
Showing 28 changed files with 251 additions and 1,007 deletions.
8 changes: 2 additions & 6 deletions src/subscription/azext_subscription/subscription/__init__.py
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

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',
]
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand All @@ -28,6 +24,7 @@ class ErrorResponse(Model):
}

def __init__(self, code=None, message=None):
super(ErrorResponse, self).__init__()
self.code = code
self.message = message

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand All @@ -18,7 +14,7 @@ class Operation(Model):
:param name: Operation name: {provider}/{resource}/{operation}
:type name: str
:param display: The object that represents the operation.
:type display: ~azure.mgmt.subscription.models.OperationDisplay
:type display: ~subscriptiondefinitions.models.OperationDisplay
"""

_attribute_map = {
Expand All @@ -27,5 +23,6 @@ class Operation(Model):
}

def __init__(self, name=None, display=None):
super(Operation, self).__init__()
self.name = name
self.display = display
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# 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.
Expand Down Expand Up @@ -31,6 +27,7 @@ class OperationDisplay(Model):
}

def __init__(self, provider=None, resource=None, operation=None):
super(OperationDisplay, self).__init__()
self.provider = provider
self.resource = resource
self.operation = operation
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

This file was deleted.

This file was deleted.

Loading

0 comments on commit a6d7711

Please sign in to comment.