Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.0.0 (2026-07-20)

### Other Changes

- First GA

## 1.0.0b7 (2026-07-07)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"apiVersions": {
"Microsoft.SqlVirtualMachine": "2023-10-01"
},
"commit": "a7bdbe741c0ef1f1b159d8569b173757bd823ae9",
"commit": "cf49df24bee763924bb4d9abceebe4fd1916a6ad",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine",
"emitterVersion": "0.63.2",
"httpClientPythonVersion": "^0.34.0"
"emitterVersion": "0.63.3",
"httpClientPythonVersion": "^0.34.2"
}
45 changes: 0 additions & 45 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2026,30 +2026,6 @@ namespace azure.mgmt.sqlvirtualmachine.types
run_disk_config_rules: bool


class azure.mgmt.sqlvirtualmachine.types.ErrorAdditionalInfo(TypedDict, total=False):
key "info": Any
key "type": str
info: Any
type: str


class azure.mgmt.sqlvirtualmachine.types.ErrorDetail(TypedDict, total=False):
key "code": str
key "message": str
key "target": str
additionalInfo: list[ErrorAdditionalInfo]
additional_info: list[ErrorAdditionalInfo]
code: str
details: list[ErrorDetail]
message: str
target: str


class azure.mgmt.sqlvirtualmachine.types.ErrorResponse(TypedDict, total=False):
key "error": ForwardRef('ErrorDetail', module='types')
error: ErrorDetail


class azure.mgmt.sqlvirtualmachine.types.KeyVaultCredentialSettings(TypedDict, total=False):
key "azureKeyVaultUrl": str
key "credentialName": str
Expand Down Expand Up @@ -2083,27 +2059,6 @@ namespace azure.mgmt.sqlvirtualmachine.types
sql_virtual_machine_instance: str


class azure.mgmt.sqlvirtualmachine.types.Operation(TypedDict, total=False):
key "display": ForwardRef('OperationDisplay', module='types')
key "name": str
key "origin": Union[str, OperationOrigin]
display: OperationDisplay
name: str
origin: Union[str, OperationOrigin]
properties: dict[str, Any]


class azure.mgmt.sqlvirtualmachine.types.OperationDisplay(TypedDict, total=False):
key "description": str
key "operation": str
key "provider": str
key "resource": str
description: str
operation: str
provider: str
resource: str


class azure.mgmt.sqlvirtualmachine.types.PrivateIPAddress(TypedDict, total=False):
key "ipAddress": str
key "subnetResourceId": str
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/azure-mgmt-sqlvirtualmachine/api.metadata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiMdSha256: 4bc0c7ae08b300bf1b7f48fa671c54907cf6ad7409dd5834022dcc4b30684e25
apiMdSha256: 1ef6f3166f23f1774ef20543671d8801c80347869077d96a6a417f2743740cfd
parserVersion: 0.3.28
pythonVersion: 3.13.14
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@
"azure.mgmt.sqlvirtualmachine.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot",
"azure.mgmt.sqlvirtualmachine.aio.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot"
},
"CrossLanguageVersion": "1b8fa6253c13"
"CrossLanguageVersion": "eeff62122fe4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool:

def keys(self) -> typing.KeysView[str]:
"""
:returns: a set-like object providing a view on D's keys
:returns: a set-like object providing a view on the mapping's keys
:rtype: ~typing.KeysView
"""
return self._data.keys()

def values(self) -> typing.ValuesView[typing.Any]:
"""
:returns: an object providing a view on D's values
:returns: an object providing a view on the mapping's values
:rtype: ~typing.ValuesView
"""
return self._data.values()

def items(self) -> typing.ItemsView[str, typing.Any]:
"""
:returns: set-like object providing a view on D's items
:returns: a set-like object providing a view on the mapping's items
:rtype: ~typing.ItemsView
"""
return self._data.items()
Expand All @@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
Get the value for key if key is in the dictionary, else default.
:param str key: The key to look up.
:param any default: The value to return if key is not in the dictionary. Defaults to None
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
try:
Expand Down Expand Up @@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]:
Removes and returns some (key, value) pair
:returns: The (key, value) pair.
:rtype: tuple
:raises KeyError: if D is empty.
:raises KeyError: if the dictionary is empty.
"""
return self._data.popitem()

def clear(self) -> None:
"""
Remove all items from D.
Remove all items from the dictionary.
"""
self._data.clear()

def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
"""
Updates D from mapping/iterable E and F.
Update the dictionary from a mapping or an iterable of key-value pairs.
:param any args: Either a mapping object or an iterable of key-value pairs.
"""
self._data.update(*args, **kwargs)
Comment thread
ChenxiJiang333 marked this conversation as resolved.
Expand All @@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint

def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
"""
Same as calling D.get(k, d), and setting D[k]=d if k not found
Return the value for key if key is in the dictionary; otherwise set the key to
default and return default.
:param str key: The key to look up.
:param any default: The value to set if key is not in the dictionary
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
if default is _UNSET:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b7"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
FullBackupFrequencyType,
IdentityType,
LeastPrivilegeMode,
OperationOrigin,
OsType,
ReadableSecondary,
Role,
Comment thread
ChenxiJiang333 marked this conversation as resolved.
Expand Down Expand Up @@ -348,59 +347,6 @@ class DiskConfigAssessmentRequest(TypedDict, total=False):
"""Boolean to run disk config Assessment. Use false to fetch past Assessment."""


class ErrorAdditionalInfo(TypedDict, total=False):
"""The resource management error additional info.

:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: Any
"""

type: str
"""The additional info type."""
info: Any
"""The additional info."""


class ErrorDetail(TypedDict, total=False):
"""The error detail.

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list["ErrorDetail"]
:ivar additional_info: The error additional info.
:vartype additional_info: list["ErrorAdditionalInfo"]
"""

code: str
"""The error code."""
message: str
"""The error message."""
target: str
"""The error target."""
details: list["ErrorDetail"]
"""The error details."""
additionalInfo: list["ErrorAdditionalInfo"]
"""The error additional info."""


class ErrorResponse(TypedDict, total=False):
"""Error response.

:ivar error: The error object.
:vartype error: "ErrorDetail"
"""

error: "ErrorDetail"
"""The error object."""


class KeyVaultCredentialSettings(TypedDict, total=False):
Comment thread
ChenxiJiang333 marked this conversation as resolved.
"""Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.

Expand Down Expand Up @@ -474,60 +420,6 @@ class MultiSubnetIpConfiguration(TypedDict, total=False):
listener. Required."""


class Operation(TypedDict, total=False):
"""Result of the request to list SQL operations.

:ivar name: The name of the operation being performed on this particular object.".
:vartype name: str
:ivar display: he localized display information for this particular operation / action.
:vartype display: "OperationDisplay"
:ivar origin: The intended executor of the operation.". Known values are: "user" and "system".
:vartype origin: Union[str, "OperationOrigin"]
:ivar properties: Additional descriptions for the operation.
:vartype properties: dict[str, Any]
"""

name: str
"""The name of the operation being performed on this particular object.\"."""
display: "OperationDisplay"
"""he localized display information for this particular operation / action."""
origin: Union[str, "OperationOrigin"]
"""The intended executor of the operation.\". Known values are: \"user\" and \"system\"."""
properties: dict[str, Any]
"""Additional descriptions for the operation."""


class OperationDisplay(TypedDict, total=False):
"""Display metadata associated with the operation.

:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
Monitoring Insights" or "Microsoft Compute".
:vartype provider: str
:ivar resource: The localized friendly name of the resource type related to this operation.
E.g. "Virtual Machines" or "Job Schedule Collections".
:vartype resource: str
:ivar operation: The concise, localized friendly name for the operation; suitable for
dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
:vartype operation: str
:ivar description: The short, localized friendly description of the operation; suitable for
tool tips and detailed views.
:vartype description: str
"""

provider: str
"""The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring
Insights\" or \"Microsoft Compute\"."""
resource: str
"""The localized friendly name of the resource type related to this operation. E.g. \"Virtual
Machines\" or \"Job Schedule Collections\"."""
operation: str
"""The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create
or Update Virtual Machine\", \"Restart Virtual Machine\"."""
description: str
"""The short, localized friendly description of the operation; suitable for tool tips and detailed
views."""


class PrivateIPAddress(TypedDict, total=False):
"""A private IP address bound to the availability group listener.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-e ../../../eng/tools/azure-sdk-tools
aiohttp
azure-identity
4 changes: 2 additions & 2 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ authors = [
description = "Microsoft Azure Sqlvirtualmachine Management Client Library for Python"
license = "MIT"
classifiers = [
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -79,7 +79,7 @@ package_name = "azure-mgmt-sqlvirtualmachine"
package_nspkg = "azure-mgmt-nspkg"
package_pprint_name = "Sql Virtual Machine Management"
package_doc_id = ""
is_stable = false
is_stable = true
is_arm = true
title = "SqlVirtualMachineManagementClient"
need_msrestazure = false
Expand Down
47 changes: 47 additions & 0 deletions sdk/sql/azure-mgmt-sqlvirtualmachine/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import os
import pytest
from dotenv import load_dotenv
Comment thread
ChenxiJiang333 marked this conversation as resolved.
from devtools_testutils import (
test_proxy,
add_general_regex_sanitizer,
add_body_key_sanitizer,
add_header_regex_sanitizer,
)

load_dotenv()


# For security, please avoid record sensitive identity information in recordings
@pytest.fixture(scope="session", autouse=True)
def add_sanitizers(test_proxy):
sqlvirtualmachinemanagement_subscription_id = os.environ.get(
"AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000"
)
sqlvirtualmachinemanagement_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000")
sqlvirtualmachinemanagement_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000")
sqlvirtualmachinemanagement_client_secret = os.environ.get(
"AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000"
)
add_general_regex_sanitizer(
regex=sqlvirtualmachinemanagement_subscription_id, value="00000000-0000-0000-0000-000000000000"
)
add_general_regex_sanitizer(
regex=sqlvirtualmachinemanagement_tenant_id, value="00000000-0000-0000-0000-000000000000"
)
add_general_regex_sanitizer(
regex=sqlvirtualmachinemanagement_client_id, value="00000000-0000-0000-0000-000000000000"
)
add_general_regex_sanitizer(
regex=sqlvirtualmachinemanagement_client_secret, value="00000000-0000-0000-0000-000000000000"
)
Comment thread
ChenxiJiang333 marked this conversation as resolved.

add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]")
add_header_regex_sanitizer(key="Cookie", value="cookie;")
add_body_key_sanitizer(json_path="$..access_token", value="access_token")
Loading
Loading