Class: Azure::Consumption::Mgmt::V2018_11_01_preview::Models::BillingAccount
- Inherits:
-
Resource
- Object
- Resource
- Azure::Consumption::Mgmt::V2018_11_01_preview::Models::BillingAccount
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb
Overview
A billing account resource.
Instance Attribute Summary collapse
-
#account_type ⇒ Enum
'CommerceRoot', 'Enrollment'.
-
#address ⇒ Address
The address associated with billing account.
-
#agreements ⇒ String
Agreements associated with billing account.
-
#billing_profiles ⇒ Array<BillingProfile>
billing account.
-
#company ⇒ String
The Company this billing account belongs to.
-
#country ⇒ String
The country associated with billing account.
-
#default_currency ⇒ String
The ISO currency, for example, USD.
-
#departments ⇒ Array<Department>
enrollment.
-
#enrollment_accounts ⇒ Array<EnrollmentAccount>
enrollment.
-
#enrollment_details ⇒ Enrollment
enrollment.
-
#invoice_sections ⇒ Array<InvoiceSection>
billing account.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BillingAccount class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#account_type ⇒ Enum
'CommerceRoot', 'Enrollment'
20 21 22 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 20 def account_type @account_type end |
#address ⇒ Address
Returns The address associated with billing account.
23 24 25 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 23 def address @address end |
#agreements ⇒ String
Returns Agreements associated with billing account.
32 33 34 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 32 def agreements @agreements end |
#billing_profiles ⇒ Array<BillingProfile>
billing account.
40 41 42 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 40 def billing_profiles @billing_profiles end |
#company ⇒ String
Returns The Company this billing account belongs to.
16 17 18 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 16 def company @company end |
#country ⇒ String
Returns The country associated with billing account.
29 30 31 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 29 def country @country end |
#default_currency ⇒ String
Returns The ISO currency, for example, USD.
26 27 28 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 26 def default_currency @default_currency end |
#departments ⇒ Array<Department>
enrollment.
49 50 51 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 49 def departments @departments end |
#enrollment_accounts ⇒ Array<EnrollmentAccount>
enrollment.
53 54 55 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 53 def enrollment_accounts @enrollment_accounts end |
#enrollment_details ⇒ Enrollment
enrollment. By default this is not populated, unless it's specified in $expand.
45 46 47 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 45 def enrollment_details @enrollment_details end |
#invoice_sections ⇒ Array<InvoiceSection>
billing account.
36 37 38 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 36 def invoice_sections @invoice_sections end |
Class Method Details
.mapper ⇒ Object
Mapper for BillingAccount class as Ruby Hash. This will be used for serialization/deserialization.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/2018-11-01-preview/generated/azure_mgmt_consumption/models/billing_account.rb', line 60 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'BillingAccount', type: { name: 'Composite', class_name: 'BillingAccount', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, read_only: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, company: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.company', type: { name: 'String' } }, account_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accountType', type: { name: 'String' } }, address: { client_side_validation: true, required: false, serialized_name: 'properties.address', type: { name: 'Composite', class_name: 'Address' } }, default_currency: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.defaultCurrency', type: { name: 'String' } }, country: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.country', type: { name: 'String' } }, agreements: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.agreements', type: { name: 'String' } }, invoice_sections: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.invoiceSections', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'InvoiceSectionElementType', type: { name: 'Composite', class_name: 'InvoiceSection' } } } }, billing_profiles: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.billingProfiles', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'BillingProfileElementType', type: { name: 'Composite', class_name: 'BillingProfile' } } } }, enrollment_details: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.enrollmentDetails', type: { name: 'Composite', class_name: 'Enrollment' } }, departments: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.departments', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DepartmentElementType', type: { name: 'Composite', class_name: 'Department' } } } }, enrollment_accounts: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.enrollmentAccounts', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'EnrollmentAccountElementType', type: { name: 'Composite', class_name: 'EnrollmentAccount' } } } } } } } end |