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

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

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

billing_account_name
str
Required

The ID that uniquely identifies a billing account.

filter
str
default value: None

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

orderby
str
default value: None

May be used to sort order by reservation properties.

refresh_summary
str
default value: None

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

selected_state
str
default value: None

The selected provisioning state.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ReservationsListResult or the result of cls(response)

Return type

Exceptions

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

billing_account_name
str
Required

The ID that uniquely identifies a billing account.

billing_profile_name
str
Required

The ID that uniquely identifies a billing profile.

filter
str
default value: None

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

orderby
str
default value: None

May be used to sort order by reservation properties.

refresh_summary
str
default value: None

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

selected_state
str
default value: None

The selected provisioning state.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either ReservationsListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

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