BudgetsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:budgets> attribute.
Constructor
BudgetsOperations(*args, **kwargs)
Methods
| create_or_update |
The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation. |
| delete |
The operation to delete a budget. |
| get |
Gets the budget for the scope by budget name. |
| list |
Lists all budgets for the defined scope. |
create_or_update
The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.
create_or_update(scope: str, budget_name: str, parameters: _models.Budget, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Budget
Parameters
| Name | Description |
|---|---|
|
scope
Required
|
The fully qualified Azure Resource manager identifier of the resource. Required. |
|
budget_name
Required
|
Budget Name. Required. |
|
parameters
Required
|
Parameters supplied to the Create Budget operation. Is either a Budget type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
Budget. The Budget is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete
The operation to delete a budget.
delete(scope: str, budget_name: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
scope
Required
|
The fully qualified Azure Resource manager identifier of the resource. Required. |
|
budget_name
Required
|
Budget Name. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get
Gets the budget for the scope by budget name.
get(scope: str, budget_name: str, **kwargs: Any) -> Budget
Parameters
| Name | Description |
|---|---|
|
scope
Required
|
The fully qualified Azure Resource manager identifier of the resource. Required. |
|
budget_name
Required
|
Budget Name. Required. |
Returns
| Type | Description |
|---|---|
|
Budget. The Budget is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list
Lists all budgets for the defined scope.
list(scope: str, **kwargs: Any) -> ItemPaged[Budget]
Parameters
| Name | Description |
|---|---|
|
scope
Required
|
The fully qualified Azure Resource manager identifier of the resource. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of Budget |
Exceptions
| Type | Description |
|---|---|