Share via


QueryTextsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MySQLManagementClient's

<xref:query_texts> attribute.

Constructor

QueryTextsOperations(*args, **kwargs)

Methods

get

Retrieve the Query-Store query texts for the queryId.

list_by_server

Retrieve the Query-Store query texts for specified queryIds.

get

Retrieve the Query-Store query texts for the queryId.

get(resource_group_name: str, server_name: str, query_id: str, **kwargs: Any) -> QueryText

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

server_name
Required
str

The name of the server. Required.

query_id
Required
str

The Query-Store query identifier. Required.

Returns

Type Description

QueryText or the result of cls(response)

Exceptions

Type Description

list_by_server

Retrieve the Query-Store query texts for specified queryIds.

list_by_server(resource_group_name: str, server_name: str, query_ids: list[str], **kwargs: Any) -> ItemPaged[QueryText]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

server_name
Required
str

The name of the server. Required.

query_ids
Required

The query identifiers. Required.

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.rdbms.mysql.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv198\\Lib\\site-packages\\azure\\mgmt\\rdbms\\mysql\\models\\__init__.py'>