Skip to content

Commit d9c7ed0

Browse files
azure-sdk-automation[bot]azure-sdkChenxiJiang333Copilot
authored
Refresh azure-mgmt-sqlvirtualmachine after migrate to Typespec (#48149)
* Configurations: 'specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine/tspconfig.yaml', API Version: 2023-10-01, SDK Release Type: stable, and CommitSHA: 'cf49df24bee763924bb4d9abceebe4fd1916a6ad' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6585898 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md * Update _version.py * Optimize changelog and set version to 1.0.0 for azure-mgmt-sqlvirtualmachine Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add live tests for azure-mgmt-sqlvirtualmachine * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <azuresdk@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7182b9e commit d9c7ed0

18 files changed

Lines changed: 232 additions & 171 deletions

sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2026-07-20)
4+
5+
### Other Changes
6+
7+
- First GA
8+
39
## 1.0.0b7 (2026-07-07)
410

511
### Features Added

sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"apiVersions": {
44
"Microsoft.SqlVirtualMachine": "2023-10-01"
55
},
6-
"commit": "a7bdbe741c0ef1f1b159d8569b173757bd823ae9",
6+
"commit": "cf49df24bee763924bb4d9abceebe4fd1916a6ad",
77
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
88
"typespec_src": "specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine",
9-
"emitterVersion": "0.63.2",
10-
"httpClientPythonVersion": "^0.34.0"
9+
"emitterVersion": "0.63.3",
10+
"httpClientPythonVersion": "^0.34.2"
1111
}

sdk/sql/azure-mgmt-sqlvirtualmachine/api.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2026,30 +2026,6 @@ namespace azure.mgmt.sqlvirtualmachine.types
20262026
run_disk_config_rules: bool
20272027

20282028

2029-
class azure.mgmt.sqlvirtualmachine.types.ErrorAdditionalInfo(TypedDict, total=False):
2030-
key "info": Any
2031-
key "type": str
2032-
info: Any
2033-
type: str
2034-
2035-
2036-
class azure.mgmt.sqlvirtualmachine.types.ErrorDetail(TypedDict, total=False):
2037-
key "code": str
2038-
key "message": str
2039-
key "target": str
2040-
additionalInfo: list[ErrorAdditionalInfo]
2041-
additional_info: list[ErrorAdditionalInfo]
2042-
code: str
2043-
details: list[ErrorDetail]
2044-
message: str
2045-
target: str
2046-
2047-
2048-
class azure.mgmt.sqlvirtualmachine.types.ErrorResponse(TypedDict, total=False):
2049-
key "error": ForwardRef('ErrorDetail', module='types')
2050-
error: ErrorDetail
2051-
2052-
20532029
class azure.mgmt.sqlvirtualmachine.types.KeyVaultCredentialSettings(TypedDict, total=False):
20542030
key "azureKeyVaultUrl": str
20552031
key "credentialName": str
@@ -2083,27 +2059,6 @@ namespace azure.mgmt.sqlvirtualmachine.types
20832059
sql_virtual_machine_instance: str
20842060

20852061

2086-
class azure.mgmt.sqlvirtualmachine.types.Operation(TypedDict, total=False):
2087-
key "display": ForwardRef('OperationDisplay', module='types')
2088-
key "name": str
2089-
key "origin": Union[str, OperationOrigin]
2090-
display: OperationDisplay
2091-
name: str
2092-
origin: Union[str, OperationOrigin]
2093-
properties: dict[str, Any]
2094-
2095-
2096-
class azure.mgmt.sqlvirtualmachine.types.OperationDisplay(TypedDict, total=False):
2097-
key "description": str
2098-
key "operation": str
2099-
key "provider": str
2100-
key "resource": str
2101-
description: str
2102-
operation: str
2103-
provider: str
2104-
resource: str
2105-
2106-
21072062
class azure.mgmt.sqlvirtualmachine.types.PrivateIPAddress(TypedDict, total=False):
21082063
key "ipAddress": str
21092064
key "subnetResourceId": str
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
apiMdSha256: 4bc0c7ae08b300bf1b7f48fa671c54907cf6ad7409dd5834022dcc4b30684e25
1+
apiMdSha256: 1ef6f3166f23f1774ef20543671d8801c80347869077d96a6a417f2743740cfd
22
parserVersion: 0.3.28
33
pythonVersion: 3.13.14

sdk/sql/azure-mgmt-sqlvirtualmachine/apiview-properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@
122122
"azure.mgmt.sqlvirtualmachine.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot",
123123
"azure.mgmt.sqlvirtualmachine.aio.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot"
124124
},
125-
"CrossLanguageVersion": "1b8fa6253c13"
125+
"CrossLanguageVersion": "eeff62122fe4"
126126
}

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_utils/model_base.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool:
458458

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

466466
def values(self) -> typing.ValuesView[typing.Any]:
467467
"""
468-
:returns: an object providing a view on D's values
468+
:returns: an object providing a view on the mapping's values
469469
:rtype: ~typing.ValuesView
470470
"""
471471
return self._data.values()
472472

473473
def items(self) -> typing.ItemsView[str, typing.Any]:
474474
"""
475-
:returns: set-like object providing a view on D's items
475+
:returns: a set-like object providing a view on the mapping's items
476476
:rtype: ~typing.ItemsView
477477
"""
478478
return self._data.items()
@@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
482482
Get the value for key if key is in the dictionary, else default.
483483
:param str key: The key to look up.
484484
:param any default: The value to return if key is not in the dictionary. Defaults to None
485-
:returns: D[k] if k in D, else d.
485+
:returns: The value for key if key is in the dictionary, else default.
486486
:rtype: any
487487
"""
488488
try:
@@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]:
517517
Removes and returns some (key, value) pair
518518
:returns: The (key, value) pair.
519519
:rtype: tuple
520-
:raises KeyError: if D is empty.
520+
:raises KeyError: if the dictionary is empty.
521521
"""
522522
return self._data.popitem()
523523

524524
def clear(self) -> None:
525525
"""
526-
Remove all items from D.
526+
Remove all items from the dictionary.
527527
"""
528528
self._data.clear()
529529

530530
def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
531531
"""
532-
Updates D from mapping/iterable E and F.
532+
Update the dictionary from a mapping or an iterable of key-value pairs.
533533
:param any args: Either a mapping object or an iterable of key-value pairs.
534534
"""
535535
self._data.update(*args, **kwargs)
@@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint
542542

543543
def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
544544
"""
545-
Same as calling D.get(k, d), and setting D[k]=d if k not found
545+
Return the value for key if key is in the dictionary; otherwise set the key to
546+
default and return default.
546547
:param str key: The key to look up.
547548
:param any default: The value to set if key is not in the dictionary
548-
:returns: D[k] if k in D, else d.
549+
:returns: The value for key if key is in the dictionary, else default.
549550
:rtype: any
550551
"""
551552
if default is _UNSET:

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b7"
9+
VERSION = "1.0.0"

sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/types.py

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
FullBackupFrequencyType,
3030
IdentityType,
3131
LeastPrivilegeMode,
32-
OperationOrigin,
3332
OsType,
3433
ReadableSecondary,
3534
Role,
@@ -348,59 +347,6 @@ class DiskConfigAssessmentRequest(TypedDict, total=False):
348347
"""Boolean to run disk config Assessment. Use false to fetch past Assessment."""
349348

350349

351-
class ErrorAdditionalInfo(TypedDict, total=False):
352-
"""The resource management error additional info.
353-
354-
:ivar type: The additional info type.
355-
:vartype type: str
356-
:ivar info: The additional info.
357-
:vartype info: Any
358-
"""
359-
360-
type: str
361-
"""The additional info type."""
362-
info: Any
363-
"""The additional info."""
364-
365-
366-
class ErrorDetail(TypedDict, total=False):
367-
"""The error detail.
368-
369-
:ivar code: The error code.
370-
:vartype code: str
371-
:ivar message: The error message.
372-
:vartype message: str
373-
:ivar target: The error target.
374-
:vartype target: str
375-
:ivar details: The error details.
376-
:vartype details: list["ErrorDetail"]
377-
:ivar additional_info: The error additional info.
378-
:vartype additional_info: list["ErrorAdditionalInfo"]
379-
"""
380-
381-
code: str
382-
"""The error code."""
383-
message: str
384-
"""The error message."""
385-
target: str
386-
"""The error target."""
387-
details: list["ErrorDetail"]
388-
"""The error details."""
389-
additionalInfo: list["ErrorAdditionalInfo"]
390-
"""The error additional info."""
391-
392-
393-
class ErrorResponse(TypedDict, total=False):
394-
"""Error response.
395-
396-
:ivar error: The error object.
397-
:vartype error: "ErrorDetail"
398-
"""
399-
400-
error: "ErrorDetail"
401-
"""The error object."""
402-
403-
404350
class KeyVaultCredentialSettings(TypedDict, total=False):
405351
"""Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.
406352
@@ -474,60 +420,6 @@ class MultiSubnetIpConfiguration(TypedDict, total=False):
474420
listener. Required."""
475421

476422

477-
class Operation(TypedDict, total=False):
478-
"""Result of the request to list SQL operations.
479-
480-
:ivar name: The name of the operation being performed on this particular object.".
481-
:vartype name: str
482-
:ivar display: he localized display information for this particular operation / action.
483-
:vartype display: "OperationDisplay"
484-
:ivar origin: The intended executor of the operation.". Known values are: "user" and "system".
485-
:vartype origin: Union[str, "OperationOrigin"]
486-
:ivar properties: Additional descriptions for the operation.
487-
:vartype properties: dict[str, Any]
488-
"""
489-
490-
name: str
491-
"""The name of the operation being performed on this particular object.\"."""
492-
display: "OperationDisplay"
493-
"""he localized display information for this particular operation / action."""
494-
origin: Union[str, "OperationOrigin"]
495-
"""The intended executor of the operation.\". Known values are: \"user\" and \"system\"."""
496-
properties: dict[str, Any]
497-
"""Additional descriptions for the operation."""
498-
499-
500-
class OperationDisplay(TypedDict, total=False):
501-
"""Display metadata associated with the operation.
502-
503-
:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
504-
Monitoring Insights" or "Microsoft Compute".
505-
:vartype provider: str
506-
:ivar resource: The localized friendly name of the resource type related to this operation.
507-
E.g. "Virtual Machines" or "Job Schedule Collections".
508-
:vartype resource: str
509-
:ivar operation: The concise, localized friendly name for the operation; suitable for
510-
dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
511-
:vartype operation: str
512-
:ivar description: The short, localized friendly description of the operation; suitable for
513-
tool tips and detailed views.
514-
:vartype description: str
515-
"""
516-
517-
provider: str
518-
"""The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring
519-
Insights\" or \"Microsoft Compute\"."""
520-
resource: str
521-
"""The localized friendly name of the resource type related to this operation. E.g. \"Virtual
522-
Machines\" or \"Job Schedule Collections\"."""
523-
operation: str
524-
"""The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create
525-
or Update Virtual Machine\", \"Restart Virtual Machine\"."""
526-
description: str
527-
"""The short, localized friendly description of the operation; suitable for tool tips and detailed
528-
views."""
529-
530-
531423
class PrivateIPAddress(TypedDict, total=False):
532424
"""A private IP address bound to the availability group listener.
533425
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
-e ../../../eng/tools/azure-sdk-tools
22
aiohttp
3+
azure-identity

sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authors = [
1313
description = "Microsoft Azure Sqlvirtualmachine Management Client Library for Python"
1414
license = "MIT"
1515
classifiers = [
16-
"Development Status :: 4 - Beta",
16+
"Development Status :: 5 - Production/Stable",
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3 :: Only",
1919
"Programming Language :: Python :: 3",
@@ -79,7 +79,7 @@ package_name = "azure-mgmt-sqlvirtualmachine"
7979
package_nspkg = "azure-mgmt-nspkg"
8080
package_pprint_name = "Sql Virtual Machine Management"
8181
package_doc_id = ""
82-
is_stable = false
82+
is_stable = true
8383
is_arm = true
8484
title = "SqlVirtualMachineManagementClient"
8585
need_msrestazure = false

0 commit comments

Comments
 (0)