-
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 billing/resource-manager] [Hub Generated] Review request for …
…Microsoft.Billing to add version preview/2018-11-01-preview (#5778) * Generated from 0cf3d3049b2c2fe52143981946a792cfac342bb3 removing CreatAzureSubscriptions request parameter as per feedback. * Generated from f6c11061a7a800a0d91a044b48e9a9e81998552b fixing model validation failure. skuid should be settable for creation requests.
- Loading branch information
1 parent
4def6c8
commit 87ea734
Showing
6 changed files
with
211 additions
and
9 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
46 changes: 46 additions & 0 deletions
46
...lling/azure-mgmt-billing/azure/mgmt/billing/models/billing_profile_creation_parameters.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,46 @@ | ||
# 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 BillingProfileCreationParameters(Model): | ||
"""The parameters for creating a new billing profile. | ||
:param display_name: The billing profile name. | ||
:type display_name: str | ||
:param po_number: Purchase order number. | ||
:type po_number: str | ||
:param address: Billing address. | ||
:type address: ~azure.mgmt.billing.models.Address | ||
:param invoice_email_opt_in: If the billing profile is opted in to receive | ||
invoices via email. | ||
:type invoice_email_opt_in: bool | ||
:param enable_azure_sk_us: Azure skus to enable for this billing profile.. | ||
:type enable_azure_sk_us: | ||
list[~azure.mgmt.billing.models.EnabledAzureSKUs] | ||
""" | ||
|
||
_attribute_map = { | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'po_number': {'key': 'poNumber', 'type': 'str'}, | ||
'address': {'key': 'address', 'type': 'Address'}, | ||
'invoice_email_opt_in': {'key': 'invoiceEmailOptIn', 'type': 'bool'}, | ||
'enable_azure_sk_us': {'key': 'enableAzureSKUs', 'type': '[EnabledAzureSKUs]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(BillingProfileCreationParameters, self).__init__(**kwargs) | ||
self.display_name = kwargs.get('display_name', None) | ||
self.po_number = kwargs.get('po_number', None) | ||
self.address = kwargs.get('address', None) | ||
self.invoice_email_opt_in = kwargs.get('invoice_email_opt_in', None) | ||
self.enable_azure_sk_us = kwargs.get('enable_azure_sk_us', None) |
46 changes: 46 additions & 0 deletions
46
...g/azure-mgmt-billing/azure/mgmt/billing/models/billing_profile_creation_parameters_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,46 @@ | ||
# 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 BillingProfileCreationParameters(Model): | ||
"""The parameters for creating a new billing profile. | ||
:param display_name: The billing profile name. | ||
:type display_name: str | ||
:param po_number: Purchase order number. | ||
:type po_number: str | ||
:param address: Billing address. | ||
:type address: ~azure.mgmt.billing.models.Address | ||
:param invoice_email_opt_in: If the billing profile is opted in to receive | ||
invoices via email. | ||
:type invoice_email_opt_in: bool | ||
:param enable_azure_sk_us: Azure skus to enable for this billing profile.. | ||
:type enable_azure_sk_us: | ||
list[~azure.mgmt.billing.models.EnabledAzureSKUs] | ||
""" | ||
|
||
_attribute_map = { | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'po_number': {'key': 'poNumber', 'type': 'str'}, | ||
'address': {'key': 'address', 'type': 'Address'}, | ||
'invoice_email_opt_in': {'key': 'invoiceEmailOptIn', 'type': 'bool'}, | ||
'enable_azure_sk_us': {'key': 'enableAzureSKUs', 'type': '[EnabledAzureSKUs]'}, | ||
} | ||
|
||
def __init__(self, *, display_name: str=None, po_number: str=None, address=None, invoice_email_opt_in: bool=None, enable_azure_sk_us=None, **kwargs) -> None: | ||
super(BillingProfileCreationParameters, self).__init__(**kwargs) | ||
self.display_name = display_name | ||
self.po_number = po_number | ||
self.address = address | ||
self.invoice_email_opt_in = invoice_email_opt_in | ||
self.enable_azure_sk_us = enable_azure_sk_us |
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
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