SnapshotPoliciesOperations Class

SnapshotPoliciesOperations 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
SnapshotPoliciesOperations

Constructor

SnapshotPoliciesOperations(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

begin_delete

Delete snapshot policy.

begin_update

Patch a snapshot policy.

create

Create a snapshot policy.

get

Get a snapshot Policy.

list

List snapshot policy.

list_volumes

Get volumes for snapshot policy.

Get volumes associated with snapshot policy.

begin_delete

Delete snapshot policy.

begin_delete(resource_group_name: str, account_name: str, snapshot_policy_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

snapshot_policy_name
str
Required

The name of the snapshot policy.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_update

Patch a snapshot policy.

begin_update(resource_group_name: str, account_name: str, snapshot_policy_name: str, body: _models.SnapshotPolicyPatch, **kwargs: Any) -> LROPoller[_models.SnapshotPolicy]

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

snapshot_policy_name
str
Required

The name of the snapshot policy.

body
SnapshotPolicyPatch
Required

Snapshot policy object supplied in the body of the operation.

cls
callable

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either SnapshotPolicy or the result of cls(response)

Return type

Exceptions

create

Create a snapshot policy.

create(resource_group_name: str, account_name: str, snapshot_policy_name: str, body: _models.SnapshotPolicy, **kwargs: Any) -> _models.SnapshotPolicy

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

snapshot_policy_name
str
Required

The name of the snapshot policy.

body
SnapshotPolicy
Required

Snapshot policy object supplied in the body of the operation.

cls
callable

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

Returns

SnapshotPolicy, or the result of cls(response)

Return type

Exceptions

get

Get a snapshot Policy.

get(resource_group_name: str, account_name: str, snapshot_policy_name: str, **kwargs: Any) -> _models.SnapshotPolicy

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

snapshot_policy_name
str
Required

The name of the snapshot policy.

cls
callable

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

Returns

SnapshotPolicy, or the result of cls(response)

Return type

Exceptions

list

List snapshot policy.

list(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[_models.SnapshotPoliciesList]

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

cls
callable

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

Returns

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

Return type

Exceptions

list_volumes

Get volumes for snapshot policy.

Get volumes associated with snapshot policy.

list_volumes(resource_group_name: str, account_name: str, snapshot_policy_name: str, **kwargs: Any) -> _models.SnapshotPolicyVolumeList

Parameters

resource_group_name
str
Required

The name of the resource group.

account_name
str
Required

The name of the NetApp account.

snapshot_policy_name
str
Required

The name of the snapshot policy.

cls
callable

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

Returns

SnapshotPolicyVolumeList, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.netapp.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\netapp\\models\\__init__.py'>