AccessPoliciesOperations Class

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

Constructor

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

create_or_update

Create or update an access policy in the specified environment.

delete

Deletes the access policy with the specified name in the specified subscription, resource group, and environment.

get

Gets the access policy with the specified name in the specified environment.

list_by_environment

Lists all the available access policies associated with the environment.

update

Updates the access policy with the specified name in the specified subscription, resource group, and environment.

create_or_update

Create or update an access policy in the specified environment.

async create_or_update(resource_group_name: str, environment_name: str, access_policy_name: str, parameters: azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyCreateOrUpdateParameters, **kwargs) -> azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyResource

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

environment_name
str
Required

The name of the Time Series Insights environment associated with the specified resource group.

access_policy_name
str
Required

Name of the access policy.

parameters
AccessPolicyCreateOrUpdateParameters
Required

Parameters for creating an access policy.

cls
callable

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

Returns

AccessPolicyResource, or the result of cls(response)

Return type

Exceptions

delete

Deletes the access policy with the specified name in the specified subscription, resource group, and environment.

async delete(resource_group_name: str, environment_name: str, access_policy_name: str, **kwargs) -> None

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

environment_name
str
Required

The name of the Time Series Insights environment associated with the specified resource group.

access_policy_name
str
Required

The name of the Time Series Insights access policy associated with the specified environment.

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets the access policy with the specified name in the specified environment.

async get(resource_group_name: str, environment_name: str, access_policy_name: str, **kwargs) -> azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyResource

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

environment_name
str
Required

The name of the Time Series Insights environment associated with the specified resource group.

access_policy_name
str
Required

The name of the Time Series Insights access policy associated with the specified environment.

cls
callable

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

Returns

AccessPolicyResource, or the result of cls(response)

Return type

Exceptions

list_by_environment

Lists all the available access policies associated with the environment.

async list_by_environment(resource_group_name: str, environment_name: str, **kwargs) -> azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyListResponse

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

environment_name
str
Required

The name of the Time Series Insights environment associated with the specified resource group.

cls
callable

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

Returns

AccessPolicyListResponse, or the result of cls(response)

Return type

Exceptions

update

Updates the access policy with the specified name in the specified subscription, resource group, and environment.

async update(resource_group_name: str, environment_name: str, access_policy_name: str, access_policy_update_parameters: azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyUpdateParameters, **kwargs) -> azure.mgmt.timeseriesinsights.models._models_py3.AccessPolicyResource

Parameters

resource_group_name
str
Required

Name of an Azure Resource group.

environment_name
str
Required

The name of the Time Series Insights environment associated with the specified resource group.

access_policy_name
str
Required

The name of the Time Series Insights access policy associated with the specified environment.

access_policy_update_parameters
AccessPolicyUpdateParameters
Required

Request object that contains the updated information for the access policy.

cls
callable

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

Returns

AccessPolicyResource, or the result of cls(response)

Return type

Exceptions

Attributes

models

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