DatabasePrincipalAssignmentsOperations Class

DatabasePrincipalAssignmentsOperations async 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
DatabasePrincipalAssignmentsOperations

Constructor

DatabasePrincipalAssignmentsOperations(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_create_or_update

Creates a Kusto cluster database principalAssignment.

begin_delete

Deletes a Kusto principalAssignment.

check_name_availability

Checks that the database principal assignment is valid and is not already in use.

get

Gets a Kusto cluster database principalAssignment.

list

Lists all Kusto cluster database principalAssignments.

begin_create_or_update

Creates a Kusto cluster database principalAssignment.

async begin_create_or_update(resource_group_name: str, cluster_name: str, database_name: str, principal_assignment_name: str, parameters: azure.mgmt.kusto.models._models_py3.DatabasePrincipalAssignment, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.kusto.models._models_py3.DatabasePrincipalAssignment]

Parameters

resource_group_name
str
Required

The name of the resource group containing the Kusto cluster.

cluster_name
str
Required

The name of the Kusto cluster.

database_name
str
Required

The name of the database in the Kusto cluster.

principal_assignment_name
str
Required

The name of the Kusto principalAssignment.

parameters
<xref:kusto_management_client.models.DatabasePrincipalAssignment>
Required

The Kusto principalAssignments parameters supplied for 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 AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either DatabasePrincipalAssignment or the result of cls(response)

Return type

AsyncLROPoller[<xref:kusto_management_client.models.DatabasePrincipalAssignment>]

Exceptions

begin_delete

Deletes a Kusto principalAssignment.

async begin_delete(resource_group_name: str, cluster_name: str, database_name: str, principal_assignment_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group containing the Kusto cluster.

cluster_name
str
Required

The name of the Kusto cluster.

database_name
str
Required

The name of the database in the Kusto cluster.

principal_assignment_name
str
Required

The name of the Kusto principalAssignment.

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 AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. 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 AsyncLROPoller that returns either None or the result of cls(response)

Return type

Exceptions

check_name_availability

Checks that the database principal assignment is valid and is not already in use.

async check_name_availability(resource_group_name: str, cluster_name: str, database_name: str, principal_assignment_name: azure.mgmt.kusto.models._models_py3.DatabasePrincipalAssignmentCheckNameRequest, **kwargs: Any) -> azure.mgmt.kusto.models._models_py3.CheckNameResult

Parameters

resource_group_name
str
Required

The name of the resource group containing the Kusto cluster.

cluster_name
str
Required

The name of the Kusto cluster.

database_name
str
Required

The name of the database in the Kusto cluster.

principal_assignment_name
<xref:kusto_management_client.models.DatabasePrincipalAssignmentCheckNameRequest>
Required

The name of the resource.

cls
callable

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

Returns

CheckNameResult, or the result of cls(response)

Return type

<xref:kusto_management_client.models.CheckNameResult>

Exceptions

get

Gets a Kusto cluster database principalAssignment.

async get(resource_group_name: str, cluster_name: str, database_name: str, principal_assignment_name: str, **kwargs: Any) -> azure.mgmt.kusto.models._models_py3.DatabasePrincipalAssignment

Parameters

resource_group_name
str
Required

The name of the resource group containing the Kusto cluster.

cluster_name
str
Required

The name of the Kusto cluster.

database_name
str
Required

The name of the database in the Kusto cluster.

principal_assignment_name
str
Required

The name of the Kusto principalAssignment.

cls
callable

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

Returns

DatabasePrincipalAssignment, or the result of cls(response)

Return type

<xref:kusto_management_client.models.DatabasePrincipalAssignment>

Exceptions

list

Lists all Kusto cluster database principalAssignments.

list(resource_group_name: str, cluster_name: str, database_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.kusto.models._models_py3.DatabasePrincipalAssignmentListResult]

Parameters

resource_group_name
str
Required

The name of the resource group containing the Kusto cluster.

cluster_name
str
Required

The name of the Kusto cluster.

database_name
str
Required

The name of the database in the Kusto cluster.

cls
callable

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

Returns

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

Return type

AsyncItemPaged[<xref:kusto_management_client.models.DatabasePrincipalAssignmentListResult>]

Exceptions

Attributes

models

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