-
Notifications
You must be signed in to change notification settings - Fork 234
/
azure.mgmt.billing.aio.operations.ProductsOperations.yml
353 lines (328 loc) · 12.3 KB
/
azure.mgmt.billing.aio.operations.ProductsOperations.yml
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
51
52
53
54
55
56
57
58
59
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
### YamlMime:PythonClass
uid: azure.mgmt.billing.aio.operations.ProductsOperations
name: ProductsOperations
fullName: azure.mgmt.billing.aio.operations.ProductsOperations
module: azure.mgmt.billing.aio.operations
inheritances:
- builtins.object
summary: 'ProductsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client
instance that
instantiates it for you and attaches it as an attribute.'
constructor:
syntax: ProductsOperations(client, config, serializer, deserializer)
parameters:
- name: client
description: Client for service requests.
isRequired: true
- name: config
description: Configuration of service client.
isRequired: true
- name: serializer
description: An object model serializer.
isRequired: true
- name: deserializer
description: An object model deserializer.
isRequired: true
variables:
- description: Alias to model classes used in this operation group.
name: models
methods:
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.get
name: get
summary: 'Gets a product by ID. The operation is supported only for billing accounts
with agreement type
Microsoft Customer Agreement.'
signature: 'async get(billing_account_name: str, product_name: str, **kwargs) ->
Product'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: product_name
description: The ID that uniquely identifies a product.
isRequired: true
types:
- <xref:str>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: Product, or the result of cls(response)
types:
- <xref:azure.mgmt.billing.models.Product>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.list_by_billing_account
name: list_by_billing_account
summary: 'Lists the products for a billing account. These don''t include products
billed based on usage.
The operation is supported for billing accounts with agreement type Microsoft
Customer
Agreement or Microsoft Partner Agreement.'
signature: 'list_by_billing_account(billing_account_name: str, filter: str | None
= None, **kwargs) -> AsyncIterable[ProductsListResult]'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: filter
description: 'May be used to filter by product type. The filter supports ''eq'',
''lt'', ''gt'',
''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or
''not''. Tag filter is a key
value pair string where key and value are separated by a colon (:).'
defaultValue: None
types:
- <xref:str>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: An iterator like instance of either ProductsListResult or the result
of cls(response)
types:
- <xref:azure.core.async_paging.AsyncItemPaged>[<xref:azure.mgmt.billing.models.ProductsListResult>]
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.list_by_billing_profile
name: list_by_billing_profile
summary: 'Lists the products for a billing profile. These don''t include products
billed based on usage.
The operation is supported for billing accounts with agreement type Microsoft
Customer
Agreement or Microsoft Partner Agreement.'
signature: 'list_by_billing_profile(billing_account_name: str, billing_profile_name:
str, filter: str | None = None, **kwargs) -> AsyncIterable[ProductsListResult]'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: billing_profile_name
description: The ID that uniquely identifies a billing profile.
isRequired: true
types:
- <xref:str>
- name: filter
description: 'May be used to filter by product type. The filter supports ''eq'',
''lt'', ''gt'',
''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or
''not''. Tag filter is a key
value pair string where key and value are separated by a colon (:).'
defaultValue: None
types:
- <xref:str>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: An iterator like instance of either ProductsListResult or the result
of cls(response)
types:
- <xref:azure.core.async_paging.AsyncItemPaged>[<xref:azure.mgmt.billing.models.ProductsListResult>]
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.list_by_customer
name: list_by_customer
summary: 'Lists the products for a customer. These don''t include products billed
based on usage.The
operation is supported only for billing accounts with agreement type Microsoft
Partner
Agreement.'
signature: 'list_by_customer(billing_account_name: str, customer_name: str, **kwargs)
-> AsyncIterable[ProductsListResult]'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: customer_name
description: The ID that uniquely identifies a customer.
isRequired: true
types:
- <xref:str>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: An iterator like instance of either ProductsListResult or the result
of cls(response)
types:
- <xref:azure.core.async_paging.AsyncItemPaged>[<xref:azure.mgmt.billing.models.ProductsListResult>]
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.list_by_invoice_section
name: list_by_invoice_section
summary: 'Lists the products for an invoice section. These don''t include products
billed based on usage.
The operation is supported only for billing accounts with agreement type Microsoft
Customer
Agreement.'
signature: 'list_by_invoice_section(billing_account_name: str, billing_profile_name:
str, invoice_section_name: str, filter: str | None = None, **kwargs) -> AsyncIterable[ProductsListResult]'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: billing_profile_name
description: The ID that uniquely identifies a billing profile.
isRequired: true
types:
- <xref:str>
- name: invoice_section_name
description: The ID that uniquely identifies an invoice section.
isRequired: true
types:
- <xref:str>
- name: filter
description: 'May be used to filter by product type. The filter supports ''eq'',
''lt'', ''gt'',
''le'', ''ge'', and ''and''. It does not currently support ''ne'', ''or'', or
''not''. Tag filter is a key
value pair string where key and value are separated by a colon (:).'
defaultValue: None
types:
- <xref:str>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: An iterator like instance of either ProductsListResult or the result
of cls(response)
types:
- <xref:azure.core.async_paging.AsyncItemPaged>[<xref:azure.mgmt.billing.models.ProductsListResult>]
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.move
name: move
summary: 'Moves a product''s charges to a new invoice section. The new invoice section
must belong to the
same billing profile as the existing invoice section. This operation is supported
only for
products that are purchased with a recurring charge and for billing accounts with
agreement
type Microsoft Customer Agreement.'
signature: 'async move(billing_account_name: str, product_name: str, parameters:
TransferProductRequestProperties, **kwargs) -> Product | None'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: product_name
description: The ID that uniquely identifies a product.
isRequired: true
types:
- <xref:str>
- name: parameters
description: Request parameters that are provided to the move product operation.
isRequired: true
types:
- <xref:azure.mgmt.billing.models.TransferProductRequestProperties>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: Product, or the result of cls(response)
types:
- <xref:azure.mgmt.billing.models.Product>
- <xref:None>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.update
name: update
summary: 'Updates the properties of a Product. Currently, auto renew can be updated.
The operation is
supported only for billing accounts with agreement type Microsoft Customer Agreement.'
signature: 'async update(billing_account_name: str, product_name: str, parameters:
Product, **kwargs) -> Product'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: product_name
description: The ID that uniquely identifies a product.
isRequired: true
types:
- <xref:str>
- name: parameters
description: Request parameters that are provided to the update product operation.
isRequired: true
types:
- <xref:azure.mgmt.billing.models.Product>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: Product, or the result of cls(response)
types:
- <xref:azure.mgmt.billing.models.Product>
exceptions:
- type: azure.core.exceptions.HttpResponseError
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.validate_move
name: validate_move
summary: 'Validates if a product''s charges can be moved to a new invoice section.
This operation is
supported only for products that are purchased with a recurring charge and for
billing accounts
with agreement type Microsoft Customer Agreement.'
signature: 'async validate_move(billing_account_name: str, product_name: str, parameters:
TransferProductRequestProperties, **kwargs) -> ValidateProductTransferEligibilityResult'
parameters:
- name: billing_account_name
description: The ID that uniquely identifies a billing account.
isRequired: true
types:
- <xref:str>
- name: product_name
description: The ID that uniquely identifies a product.
isRequired: true
types:
- <xref:str>
- name: parameters
description: 'Request parameters that are provided to the validate move eligibility
operation.'
isRequired: true
types:
- <xref:azure.mgmt.billing.models.TransferProductRequestProperties>
keywordOnlyParameters:
- name: cls
description: A custom type or function that will be passed the direct response
types:
- <xref:callable>
return:
description: ValidateProductTransferEligibilityResult, or the result of cls(response)
types:
- <xref:azure.mgmt.billing.models.ValidateProductTransferEligibilityResult>
exceptions:
- type: azure.core.exceptions.HttpResponseError
attributes:
- uid: azure.mgmt.billing.aio.operations.ProductsOperations.models
name: models
signature: models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>