InstructionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:instructions> attribute.
- Inheritance
-
builtins.objectInstructionsOperations
Constructor
InstructionsOperations(*args, **kwargs)
Methods
get |
Get the instruction by name. These are custom billing instructions and are only applicable for certain customers. |
list_by_billing_profile |
Lists the instructions by billing profile id. |
put |
Creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers. |
get
Get the instruction by name. These are custom billing instructions and are only applicable for certain customers.
get(billing_account_name: str, billing_profile_name: str, instruction_name: str, **kwargs: Any) -> Instruction
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
instruction_name
Required
|
Instruction Name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Instruction or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_billing_profile
Lists the instructions by billing profile id.
list_by_billing_profile(billing_account_name: str, billing_profile_name: str, **kwargs: Any) -> Iterable[Instruction]
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either Instruction or the result of cls(response) |
Exceptions
Type | Description |
---|---|
put
Creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers.
put(billing_account_name: str, billing_profile_name: str, instruction_name: str, parameters: _models.Instruction, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Instruction
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
instruction_name
Required
|
Instruction Name. Required. |
parameters
Required
|
Instruction or
IO
The new instruction. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Instruction or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>
Azure SDK for Python