Skip to content

Commit

Permalink
CodeGen from PR 31063 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge a44a9e6d8e82cdda0c71d34bef7b0ca07067b47e into e86928846c2ed989d11cba4f9096819cce9c5baa
  • Loading branch information
SDKAuto committed Oct 25, 2024
1 parent 260412c commit aaae5fd
Show file tree
Hide file tree
Showing 121 changed files with 6,664 additions and 458 deletions.
4 changes: 2 additions & 2 deletions sdk/hybridcompute/azure-mgmt-hybridcompute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "c3f246bece34c122def67e59945e634490f205fe",
"commit": "e716a94c05aae27ecffcb15485ff424b45fa26ae",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/hybridcompute/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/azure-sdk-for-python/sdk --tag=package-2024-07 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"autorest_command": "autorest specification/hybridcompute/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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/hybridcompute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class HybridComputeManagementClientConfiguration: # pylint: disable=too-many-in
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-07-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-09-10-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-07-10")
api_version: str = kwargs.pop("api_version", "2024-09-10-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@
from ._serialization import Deserializer, Serializer
from .operations import (
ExtensionMetadataOperations,
GatewaysOperations,
HybridComputeManagementClientOperationsMixin,
LicenseProfilesOperations,
LicensesOperations,
MachineExtensionsOperations,
MachineRunCommandsOperations,
MachinesOperations,
NetworkProfileOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
PrivateLinkScopesOperations,
SettingsOperations,
)

if TYPE_CHECKING:
Expand All @@ -57,6 +60,12 @@ class HybridComputeManagementClient(
:vartype operations: azure.mgmt.hybridcompute.operations.Operations
:ivar network_profile: NetworkProfileOperations operations
:vartype network_profile: azure.mgmt.hybridcompute.operations.NetworkProfileOperations
:ivar machine_run_commands: MachineRunCommandsOperations operations
:vartype machine_run_commands: azure.mgmt.hybridcompute.operations.MachineRunCommandsOperations
:ivar gateways: GatewaysOperations operations
:vartype gateways: azure.mgmt.hybridcompute.operations.GatewaysOperations
:ivar settings: SettingsOperations operations
:vartype settings: azure.mgmt.hybridcompute.operations.SettingsOperations
:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes: azure.mgmt.hybridcompute.operations.PrivateLinkScopesOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
Expand All @@ -75,8 +84,8 @@ class HybridComputeManagementClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-07-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-09-10-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -129,6 +138,11 @@ def __init__(
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.network_profile = NetworkProfileOperations(self._client, self._config, self._serialize, self._deserialize)
self.machine_run_commands = MachineRunCommandsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize)
self.settings = SettingsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)
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 = "9.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class HybridComputeManagementClientConfiguration: # pylint: disable=too-many-in
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-07-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-09-10-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-07-10")
api_version: str = kwargs.pop("api_version", "2024-09-10-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@
from ._configuration import HybridComputeManagementClientConfiguration
from .operations import (
ExtensionMetadataOperations,
GatewaysOperations,
HybridComputeManagementClientOperationsMixin,
LicenseProfilesOperations,
LicensesOperations,
MachineExtensionsOperations,
MachineRunCommandsOperations,
MachinesOperations,
NetworkProfileOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
PrivateLinkScopesOperations,
SettingsOperations,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -59,6 +62,13 @@ class HybridComputeManagementClient(
:vartype operations: azure.mgmt.hybridcompute.aio.operations.Operations
:ivar network_profile: NetworkProfileOperations operations
:vartype network_profile: azure.mgmt.hybridcompute.aio.operations.NetworkProfileOperations
:ivar machine_run_commands: MachineRunCommandsOperations operations
:vartype machine_run_commands:
azure.mgmt.hybridcompute.aio.operations.MachineRunCommandsOperations
:ivar gateways: GatewaysOperations operations
:vartype gateways: azure.mgmt.hybridcompute.aio.operations.GatewaysOperations
:ivar settings: SettingsOperations operations
:vartype settings: azure.mgmt.hybridcompute.aio.operations.SettingsOperations
:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes:
azure.mgmt.hybridcompute.aio.operations.PrivateLinkScopesOperations
Expand All @@ -78,8 +88,8 @@ class HybridComputeManagementClient(
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-07-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-09-10-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -132,6 +142,11 @@ def __init__(
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.network_profile = NetworkProfileOperations(self._client, self._config, self._serialize, self._deserialize)
self.machine_run_commands = MachineRunCommandsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.gateways = GatewaysOperations(self._client, self._config, self._serialize, self._deserialize)
self.settings = SettingsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
from ._extension_metadata_operations import ExtensionMetadataOperations
from ._operations import Operations
from ._network_profile_operations import NetworkProfileOperations
from ._machine_run_commands_operations import MachineRunCommandsOperations
from ._gateways_operations import GatewaysOperations
from ._settings_operations import SettingsOperations
from ._private_link_scopes_operations import PrivateLinkScopesOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
Expand All @@ -32,6 +35,9 @@
"ExtensionMetadataOperations",
"Operations",
"NetworkProfileOperations",
"MachineRunCommandsOperations",
"GatewaysOperations",
"SettingsOperations",
"PrivateLinkScopesOperations",
"PrivateLinkResourcesOperations",
"PrivateEndpointConnectionsOperations",
Expand Down
Loading

0 comments on commit aaae5fd

Please sign in to comment.