Skip to content

Commit

Permalink
Generated from 77e81ca1cbde6642d36fc2d0a3e8415171d459a0 (#2221)
Browse files Browse the repository at this point in the history
Minor tweaks for consistency with other APIs in same swagger.
  • Loading branch information
AutorestCI authored Mar 20, 2018
1 parent 75736f9 commit ddf96ef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .enrollment_account_result import EnrollmentAccountResult
from .enrollment_account import EnrollmentAccount
from .enrollment_account_list_result import EnrollmentAccountListResult
from .billing_period import BillingPeriod
from .download_url import DownloadUrl
Expand All @@ -24,7 +24,7 @@
from .operation_paged import OperationPaged

__all__ = [
'EnrollmentAccountResult',
'EnrollmentAccount',
'EnrollmentAccountListResult',
'BillingPeriod',
'DownloadUrl',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .resource import Resource


class EnrollmentAccountResult(Resource):
class EnrollmentAccount(Resource):
"""An enrollment account resource.
Variables are only populated by the server, and will be ignored when
Expand Down Expand Up @@ -43,5 +43,5 @@ class EnrollmentAccountResult(Resource):
}

def __init__(self):
super(EnrollmentAccountResult, self).__init__()
super(EnrollmentAccount, self).__init__()
self.principal_name = None
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,22 @@ class EnrollmentAccountListResult(Model):
sending a request.
:ivar value: The list of enrollment accounts.
:vartype value: list[~azure.mgmt.billing.models.EnrollmentAccountResult]
:vartype value: list[~azure.mgmt.billing.models.EnrollmentAccount]
:ivar next_link: The link (url) to the next page of results.
:vartype next_link: str
"""

_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[EnrollmentAccountResult]'},
'value': {'key': 'value', 'type': '[EnrollmentAccount]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self):
super(EnrollmentAccountListResult, self).__init__()
self.value = None
self.next_link = None
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def get(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: EnrollmentAccountResult or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.billing.models.EnrollmentAccountResult or
:return: EnrollmentAccount or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.billing.models.EnrollmentAccount or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorResponseException<azure.mgmt.billing.models.ErrorResponseException>`
Expand Down Expand Up @@ -135,7 +135,7 @@ def get(
deserialized = None

if response.status_code == 200:
deserialized = self._deserialize('EnrollmentAccountResult', response)
deserialized = self._deserialize('EnrollmentAccount', response)

if raw:
client_raw_response = ClientRawResponse(deserialized, response)
Expand Down

0 comments on commit ddf96ef

Please sign in to comment.