Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
from .operations.billing_account_billing_role_assignment_operations import BillingAccountBillingRoleAssignmentOperations
from .operations.invoice_section_billing_role_assignment_operations import InvoiceSectionBillingRoleAssignmentOperations
from .operations.billing_profile_billing_role_assignment_operations import BillingProfileBillingRoleAssignmentOperations
from .operations.agreements_operations import AgreementsOperations
from . import models


Expand Down Expand Up @@ -181,6 +182,8 @@ class BillingManagementClient(SDKClient):
:vartype invoice_section_billing_role_assignment: azure.mgmt.billing.operations.InvoiceSectionBillingRoleAssignmentOperations
:ivar billing_profile_billing_role_assignment: BillingProfileBillingRoleAssignment operations
:vartype billing_profile_billing_role_assignment: azure.mgmt.billing.operations.BillingProfileBillingRoleAssignmentOperations
:ivar agreements: Agreements operations
:vartype agreements: azure.mgmt.billing.operations.AgreementsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -283,6 +286,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.billing_profile_billing_role_assignment = BillingProfileBillingRoleAssignmentOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agreements = AgreementsOperations(
self._client, self.config, self._serialize, self._deserialize)

def update_auto_renew_for_billing_account(
self, billing_account_name, product_name, auto_renew=None, custom_headers=None, raw=False, **operation_config):
Expand Down
9 changes: 9 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
from .billing_permissions_list_result_py3 import BillingPermissionsListResult
from .billing_role_definition_py3 import BillingRoleDefinition
from .billing_role_definition_list_result_py3 import BillingRoleDefinitionListResult
from .participants_py3 import Participants
from .agreement_py3 import Agreement
from .agreement_list_result_py3 import AgreementListResult
except (SyntaxError, ImportError):
from .initiate_transfer_request import InitiateTransferRequest
from .product_details import ProductDetails
Expand Down Expand Up @@ -127,6 +130,9 @@
from .billing_permissions_list_result import BillingPermissionsListResult
from .billing_role_definition import BillingRoleDefinition
from .billing_role_definition_list_result import BillingRoleDefinitionListResult
from .participants import Participants
from .agreement import Agreement
from .agreement_list_result import AgreementListResult
from .payment_method_paged import PaymentMethodPaged
from .billing_subscription_summary_paged import BillingSubscriptionSummaryPaged
from .product_summary_paged import ProductSummaryPaged
Expand Down Expand Up @@ -207,6 +213,9 @@
'BillingPermissionsListResult',
'BillingRoleDefinition',
'BillingRoleDefinitionListResult',
'Participants',
'Agreement',
'AgreementListResult',
'PaymentMethodPaged',
'BillingSubscriptionSummaryPaged',
'ProductSummaryPaged',
Expand Down
66 changes: 66 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/models/agreement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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 .resource import Resource


class Agreement(Resource):
"""An agreement resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:ivar agreement_link: The link to the agreement.
:vartype agreement_link: str
:ivar effective_date: Effective date.
:vartype effective_date: datetime
:ivar expiration_date: Expiration date.
:vartype expiration_date: datetime
:param participants: Participants or signer of the agreement.
:type participants: list[~azure.mgmt.billing.models.Participants]
:ivar status: The agreement status
:vartype status: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'agreement_link': {'readonly': True},
'effective_date': {'readonly': True},
'expiration_date': {'readonly': True},
'status': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'agreement_link': {'key': 'properties.agreementLink', 'type': 'str'},
'effective_date': {'key': 'properties.effectiveDate', 'type': 'iso-8601'},
'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'},
'participants': {'key': 'properties.participants', 'type': '[Participants]'},
'status': {'key': 'properties.status', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Agreement, self).__init__(**kwargs)
self.agreement_link = None
self.effective_date = None
self.expiration_date = None
self.participants = kwargs.get('participants', None)
self.status = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 AgreementListResult(Model):
"""Result of listing agreements.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: The list of agreements.
:vartype value: list[~azure.mgmt.billing.models.Agreement]
: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': '[Agreement]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AgreementListResult, self).__init__(**kwargs)
self.value = None
self.next_link = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 AgreementListResult(Model):
"""Result of listing agreements.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: The list of agreements.
:vartype value: list[~azure.mgmt.billing.models.Agreement]
: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': '[Agreement]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(AgreementListResult, self).__init__(**kwargs)
self.value = None
self.next_link = None
66 changes: 66 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/models/agreement_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# 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 .resource_py3 import Resource


class Agreement(Resource):
"""An agreement resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:ivar agreement_link: The link to the agreement.
:vartype agreement_link: str
:ivar effective_date: Effective date.
:vartype effective_date: datetime
:ivar expiration_date: Expiration date.
:vartype expiration_date: datetime
:param participants: Participants or signer of the agreement.
:type participants: list[~azure.mgmt.billing.models.Participants]
:ivar status: The agreement status
:vartype status: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'agreement_link': {'readonly': True},
'effective_date': {'readonly': True},
'expiration_date': {'readonly': True},
'status': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'agreement_link': {'key': 'properties.agreementLink', 'type': 'str'},
'effective_date': {'key': 'properties.effectiveDate', 'type': 'iso-8601'},
'expiration_date': {'key': 'properties.expirationDate', 'type': 'iso-8601'},
'participants': {'key': 'properties.participants', 'type': '[Participants]'},
'status': {'key': 'properties.status', 'type': 'str'},
}

def __init__(self, *, participants=None, **kwargs) -> None:
super(Agreement, self).__init__(**kwargs)
self.agreement_link = None
self.effective_date = None
self.expiration_date = None
self.participants = participants
self.status = None
45 changes: 45 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/models/participants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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 Participants(Model):
"""Details about the participant or signer.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar status: The signing status
:vartype status: str
:ivar status_date: The date when status got changed.
:vartype status_date: datetime
:ivar email: The email address of the participant or signer.
:vartype email: str
"""

_validation = {
'status': {'readonly': True},
'status_date': {'readonly': True},
'email': {'readonly': True},
}

_attribute_map = {
'status': {'key': 'status', 'type': 'str'},
'status_date': {'key': 'statusDate', 'type': 'iso-8601'},
'email': {'key': 'email', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Participants, self).__init__(**kwargs)
self.status = None
self.status_date = None
self.email = None
45 changes: 45 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/models/participants_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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 Participants(Model):
"""Details about the participant or signer.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar status: The signing status
:vartype status: str
:ivar status_date: The date when status got changed.
:vartype status_date: datetime
:ivar email: The email address of the participant or signer.
:vartype email: str
"""

_validation = {
'status': {'readonly': True},
'status_date': {'readonly': True},
'email': {'readonly': True},
}

_attribute_map = {
'status': {'key': 'status', 'type': 'str'},
'status_date': {'key': 'statusDate', 'type': 'iso-8601'},
'email': {'key': 'email', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(Participants, self).__init__(**kwargs)
self.status = None
self.status_date = None
self.email = None
2 changes: 2 additions & 0 deletions azure-mgmt-billing/azure/mgmt/billing/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
from .billing_account_billing_role_assignment_operations import BillingAccountBillingRoleAssignmentOperations
from .invoice_section_billing_role_assignment_operations import InvoiceSectionBillingRoleAssignmentOperations
from .billing_profile_billing_role_assignment_operations import BillingProfileBillingRoleAssignmentOperations
from .agreements_operations import AgreementsOperations

__all__ = [
'BillingAccountsOperations',
Expand Down Expand Up @@ -93,4 +94,5 @@
'BillingAccountBillingRoleAssignmentOperations',
'InvoiceSectionBillingRoleAssignmentOperations',
'BillingProfileBillingRoleAssignmentOperations',
'AgreementsOperations',
]
Loading