Compartilhar via


ComputePoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

DataLakeAnalyticsAccountManagementClient's

<xref:compute_policies> attribute.

Inheritance
builtins.object
ComputePoliciesOperations

Constructor

ComputePoliciesOperations(*args, **kwargs)

Methods

create_or_update

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.

delete

Deletes the specified compute policy from the specified Data Lake Analytics account.

get

Gets the specified Data Lake Analytics compute policy.

list_by_account

Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies.

update

Updates the specified compute policy.

create_or_update

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.

create_or_update(resource_group_name: str, account_name: str, compute_policy_name: str, parameters: _models.CreateOrUpdateComputePolicyParameters, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ComputePolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

compute_policy_name
Required
str

The name of the compute policy to create or update. Required.

parameters
Required

Parameters supplied to create or update the compute policy. The max degree of parallelism per job property, min priority per job property, or both must be present. Is either a model type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

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

ComputePolicy or the result of cls(response)

Exceptions

Type Description

delete

Deletes the specified compute policy from the specified Data Lake Analytics account.

delete(resource_group_name: str, account_name: str, compute_policy_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

compute_policy_name
Required
str

The name of the compute policy to delete. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the specified Data Lake Analytics compute policy.

get(resource_group_name: str, account_name: str, compute_policy_name: str, **kwargs: Any) -> ComputePolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

compute_policy_name
Required
str

The name of the compute policy to retrieve. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

ComputePolicy or the result of cls(response)

Exceptions

Type Description

list_by_account

Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies.

list_by_account(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[ComputePolicy]

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. 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 ComputePolicy or the result of cls(response)

Exceptions

Type Description

update

Updates the specified compute policy.

update(resource_group_name: str, account_name: str, compute_policy_name: str, parameters: _models.UpdateComputePolicyParameters | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ComputePolicy

Parameters

Name Description
resource_group_name
Required
str

The name of the Azure resource group. Required.

account_name
Required
str

The name of the Data Lake Analytics account. Required.

compute_policy_name
Required
str

The name of the compute policy to update. Required.

parameters
Required

Parameters supplied to update the compute policy. Is either a model type or a IO type. Default value is None.

Keyword-Only Parameters

Name Description
content_type
str

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

ComputePolicy or the result of cls(response)

Exceptions

Type Description

Attributes

models

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