ReservationsOperations Class

ReservationsOperations 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.

Inheritance
builtins.object
ReservationsOperations

Constructor

ReservationsOperations(client, config, serializer, deserializer)

Parameters

Name Description
client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

Name Description
models

Alias to model classes used in this operation group.

Methods

list_by_billing_account

Lists the reservations for a billing account and the roll up counts of reservations group by provisioning states.

list_by_billing_profile

Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.

list_by_billing_account

Lists the reservations for a billing account and the roll up counts of reservations group by provisioning states.

list_by_billing_account(billing_account_name: str, filter: str | None = None, orderby: str | None = None, refresh_summary: str | None = None, selected_state: str | None = None, **kwargs: Any) -> Iterable['_models.ReservationsListResult']

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account.

filter
str

May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'.

default value: None
orderby
str

May be used to sort order by reservation properties.

default value: None
refresh_summary
str

To indicate whether to refresh the roll up counts of the reservations group by provisioning states.

default value: None
selected_state
str

The selected provisioning state.

default value: None

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 ReservationsListResult or the result of cls(response)

Exceptions

Type Description

list_by_billing_profile

Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.

list_by_billing_profile(billing_account_name: str, billing_profile_name: str, filter: str | None = None, orderby: str | None = None, refresh_summary: str | None = None, selected_state: str | None = None, **kwargs: Any) -> Iterable['_models.ReservationsListResult']

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account.

billing_profile_name
Required
str

The ID that uniquely identifies a billing profile.

filter
str

May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'.

default value: None
orderby
str

May be used to sort order by reservation properties.

default value: None
refresh_summary
str

To indicate whether to refresh the roll up counts of the reservations group by provisioning state.

default value: None
selected_state
str

The selected provisioning state.

default value: None

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 ReservationsListResult or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>