Skip to content

Commit b9668ae

Browse files
author
SDKAuto
committed
CodeGen from PR 33466 in Azure/azure-rest-api-specs
Merge 1aa2dbd7cb35ee6674ea01d50271c094cc7f6832 into e278de5e90b0fee9cddd99ac3a5b30e1f3f6f137
1 parent 8d3bb37 commit b9668ae

File tree

193 files changed

+19518
-4026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+19518
-4026
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a83c34348fbd25ad79a05e36816b91da0122b583",
2+
"commit": "7b403a482e46131865ccc89c7dccc5284cec90eb",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.19",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/oracle/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.19 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/oracle/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/oracle/resource-manager/readme.md"
1111
}

sdk/oracledatabase/azure-mgmt-oracledatabase/azure/mgmt/oracledatabase/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._oracle_database_mgmt_client import OracleDatabaseMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._oracle_database_mgmt_client import OracleDatabaseMgmtClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"OracleDatabaseMgmtClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/oracledatabase/azure-mgmt-oracledatabase/azure/mgmt/oracledatabase/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class OracleDatabaseMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class OracleDatabaseMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for OracleDatabaseMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class OracleDatabaseMgmtClientConfiguration: # pylint: disable=too-many-instanc
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-09-01")
36+
api_version: str = kwargs.pop("api_version", "2025-03-01")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/oracledatabase/azure-mgmt-oracledatabase/azure/mgmt/oracledatabase/_oracle_database_mgmt_client.py

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -30,6 +31,11 @@
3031
DbSystemShapesOperations,
3132
DnsPrivateViewsOperations,
3233
DnsPrivateZonesOperations,
34+
ExadbVmClustersOperations,
35+
ExascaleDbNodesOperations,
36+
ExascaleDbStorageVaultsOperations,
37+
FlexComponentsOperations,
38+
GiMinorVersionsOperations,
3339
GiVersionsOperations,
3440
Operations,
3541
OracleSubscriptionsOperations,
@@ -38,11 +44,10 @@
3844
)
3945

4046
if TYPE_CHECKING:
41-
# pylint: disable=unused-import,ungrouped-imports
4247
from azure.core.credentials import TokenCredential
4348

4449

45-
class OracleDatabaseMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50+
class OracleDatabaseMgmtClient: # pylint: disable=too-many-instance-attributes
4651
"""OracleDatabaseMgmtClient.
4752
4853
:ivar operations: Operations operations
@@ -55,6 +60,11 @@ class OracleDatabaseMgmtClient: # pylint: disable=client-accepts-api-version-ke
5560
azure.mgmt.oracledatabase.operations.CloudExadataInfrastructuresOperations
5661
:ivar cloud_vm_clusters: CloudVmClustersOperations operations
5762
:vartype cloud_vm_clusters: azure.mgmt.oracledatabase.operations.CloudVmClustersOperations
63+
:ivar exadb_vm_clusters: ExadbVmClustersOperations operations
64+
:vartype exadb_vm_clusters: azure.mgmt.oracledatabase.operations.ExadbVmClustersOperations
65+
:ivar exascale_db_storage_vaults: ExascaleDbStorageVaultsOperations operations
66+
:vartype exascale_db_storage_vaults:
67+
azure.mgmt.oracledatabase.operations.ExascaleDbStorageVaultsOperations
5868
:ivar autonomous_database_character_sets: AutonomousDatabaseCharacterSetsOperations operations
5969
:vartype autonomous_database_character_sets:
6070
azure.mgmt.oracledatabase.operations.AutonomousDatabaseCharacterSetsOperations
@@ -71,8 +81,12 @@ class OracleDatabaseMgmtClient: # pylint: disable=client-accepts-api-version-ke
7181
:vartype dns_private_views: azure.mgmt.oracledatabase.operations.DnsPrivateViewsOperations
7282
:ivar dns_private_zones: DnsPrivateZonesOperations operations
7383
:vartype dns_private_zones: azure.mgmt.oracledatabase.operations.DnsPrivateZonesOperations
84+
:ivar flex_components: FlexComponentsOperations operations
85+
:vartype flex_components: azure.mgmt.oracledatabase.operations.FlexComponentsOperations
7486
:ivar gi_versions: GiVersionsOperations operations
7587
:vartype gi_versions: azure.mgmt.oracledatabase.operations.GiVersionsOperations
88+
:ivar gi_minor_versions: GiMinorVersionsOperations operations
89+
:vartype gi_minor_versions: azure.mgmt.oracledatabase.operations.GiMinorVersionsOperations
7690
:ivar system_versions: SystemVersionsOperations operations
7791
:vartype system_versions: azure.mgmt.oracledatabase.operations.SystemVersionsOperations
7892
:ivar oracle_subscriptions: OracleSubscriptionsOperations operations
@@ -88,13 +102,15 @@ class OracleDatabaseMgmtClient: # pylint: disable=client-accepts-api-version-ke
88102
:ivar virtual_network_addresses: VirtualNetworkAddressesOperations operations
89103
:vartype virtual_network_addresses:
90104
azure.mgmt.oracledatabase.operations.VirtualNetworkAddressesOperations
105+
:ivar exascale_db_nodes: ExascaleDbNodesOperations operations
106+
:vartype exascale_db_nodes: azure.mgmt.oracledatabase.operations.ExascaleDbNodesOperations
91107
:param credential: Credential needed for the client to connect to Azure. Required.
92108
:type credential: ~azure.core.credentials.TokenCredential
93109
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
94110
:type subscription_id: str
95111
:param base_url: Service URL. Default value is "https://management.azure.com".
96112
:type base_url: str
97-
:keyword api_version: Api Version. Default value is "2023-09-01". Note that overriding this
113+
:keyword api_version: Api Version. Default value is "2025-03-01". Note that overriding this
98114
default value may result in unsupported behavior.
99115
:paramtype api_version: str
100116
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -145,6 +161,12 @@ def __init__(
145161
self.cloud_vm_clusters = CloudVmClustersOperations(
146162
self._client, self._config, self._serialize, self._deserialize
147163
)
164+
self.exadb_vm_clusters = ExadbVmClustersOperations(
165+
self._client, self._config, self._serialize, self._deserialize
166+
)
167+
self.exascale_db_storage_vaults = ExascaleDbStorageVaultsOperations(
168+
self._client, self._config, self._serialize, self._deserialize
169+
)
148170
self.autonomous_database_character_sets = AutonomousDatabaseCharacterSetsOperations(
149171
self._client, self._config, self._serialize, self._deserialize
150172
)
@@ -161,7 +183,11 @@ def __init__(
161183
self.dns_private_zones = DnsPrivateZonesOperations(
162184
self._client, self._config, self._serialize, self._deserialize
163185
)
186+
self.flex_components = FlexComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
164187
self.gi_versions = GiVersionsOperations(self._client, self._config, self._serialize, self._deserialize)
188+
self.gi_minor_versions = GiMinorVersionsOperations(
189+
self._client, self._config, self._serialize, self._deserialize
190+
)
165191
self.system_versions = SystemVersionsOperations(self._client, self._config, self._serialize, self._deserialize)
166192
self.oracle_subscriptions = OracleSubscriptionsOperations(
167193
self._client, self._config, self._serialize, self._deserialize
@@ -174,6 +200,9 @@ def __init__(
174200
self.virtual_network_addresses = VirtualNetworkAddressesOperations(
175201
self._client, self._config, self._serialize, self._deserialize
176202
)
203+
self.exascale_db_nodes = ExascaleDbNodesOperations(
204+
self._client, self._config, self._serialize, self._deserialize
205+
)
177206

178207
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
179208
"""Runs the network request through the client's chained policies.
@@ -200,7 +229,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
200229
def close(self) -> None:
201230
self._client.close()
202231

203-
def __enter__(self) -> "OracleDatabaseMgmtClient":
232+
def __enter__(self) -> Self:
204233
self._client.__enter__()
205234
return self
206235

0 commit comments

Comments
 (0)