-
Notifications
You must be signed in to change notification settings - Fork 2.8k
/
subscription_creation_parameters.py
50 lines (44 loc) · 2.13 KB
/
subscription_creation_parameters.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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 SubscriptionCreationParameters(Model):
"""Subscription Creation Parameters required to create a new Azure
subscription.
:param display_name: The display name of the subscription.
:type display_name: str
:param billing_profile_id: The ARM id of the billing profile.
:type billing_profile_id: str
:param sku_id: The commerce id of the sku.
:type sku_id: str
:param cost_center: optional customer cost center
:type cost_center: str
:param owner: rbac owner of the subscription
:type owner: ~azure.mgmt.subscription.models.AdPrincipal
:param additional_parameters: Additional, untyped parameters to support
custom subscription creation scenarios.
:type additional_parameters: dict[str, object]
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'billing_profile_id': {'key': 'billingProfileId', 'type': 'str'},
'sku_id': {'key': 'skuId', 'type': 'str'},
'cost_center': {'key': 'costCenter', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'AdPrincipal'},
'additional_parameters': {'key': 'additionalParameters', 'type': '{object}'},
}
def __init__(self, **kwargs):
super(SubscriptionCreationParameters, self).__init__(**kwargs)
self.display_name = kwargs.get('display_name', None)
self.billing_profile_id = kwargs.get('billing_profile_id', None)
self.sku_id = kwargs.get('sku_id', None)
self.cost_center = kwargs.get('cost_center', None)
self.owner = kwargs.get('owner', None)
self.additional_parameters = kwargs.get('additional_parameters', None)