Skip to content

Commit

Permalink
CodeGen from PR 30656 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e35f1839208bb5d32413feb86114597965e4d54a into 4cb5b94f8c1da3d1bcd56cde3fa62dfd5493e345
  • Loading branch information
SDKAuto committed Oct 17, 2024
1 parent bd66044 commit b9bb6ec
Show file tree
Hide file tree
Showing 135 changed files with 8,057 additions and 434 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": "48df7b54fc89fd4d9470c7697dc32ec6c6179f98",
"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,23 @@
from ._serialization import Deserializer, Serializer
from .operations import (
ExtensionMetadataOperations,
ExtensionMetadataV2Operations,
ExtensionPublisherOperations,
ExtensionTypeOperations,
GatewaysOperations,
HybridComputeManagementClientOperationsMixin,
LicenseProfilesOperations,
LicensesOperations,
MachineExtensionsOperations,
MachineRunCommandsOperations,
MachinesOperations,
NetworkProfileOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
PrivateLinkScopesOperations,
SettingsOperations,
)

if TYPE_CHECKING:
Expand All @@ -53,10 +59,23 @@ class HybridComputeManagementClient(
:vartype machine_extensions: azure.mgmt.hybridcompute.operations.MachineExtensionsOperations
:ivar extension_metadata: ExtensionMetadataOperations operations
:vartype extension_metadata: azure.mgmt.hybridcompute.operations.ExtensionMetadataOperations
:ivar extension_metadata_v2: ExtensionMetadataV2Operations operations
:vartype extension_metadata_v2:
azure.mgmt.hybridcompute.operations.ExtensionMetadataV2Operations
:ivar extension_type: ExtensionTypeOperations operations
:vartype extension_type: azure.mgmt.hybridcompute.operations.ExtensionTypeOperations
:ivar extension_publisher: ExtensionPublisherOperations operations
:vartype extension_publisher: azure.mgmt.hybridcompute.operations.ExtensionPublisherOperations
:ivar operations: Operations operations
: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 +94,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 @@ -127,8 +146,20 @@ def __init__(
self.extension_metadata = ExtensionMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_metadata_v2 = ExtensionMetadataV2Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_type = ExtensionTypeOperations(self._client, self._config, self._serialize, self._deserialize)
self.extension_publisher = ExtensionPublisherOperations(
self._client, self._config, self._serialize, self._deserialize
)
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,23 @@
from ._configuration import HybridComputeManagementClientConfiguration
from .operations import (
ExtensionMetadataOperations,
ExtensionMetadataV2Operations,
ExtensionPublisherOperations,
ExtensionTypeOperations,
GatewaysOperations,
HybridComputeManagementClientOperationsMixin,
LicenseProfilesOperations,
LicensesOperations,
MachineExtensionsOperations,
MachineRunCommandsOperations,
MachinesOperations,
NetworkProfileOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
PrivateLinkScopesOperations,
SettingsOperations,
)

if TYPE_CHECKING:
Expand All @@ -55,10 +61,25 @@ class HybridComputeManagementClient(
:ivar extension_metadata: ExtensionMetadataOperations operations
:vartype extension_metadata:
azure.mgmt.hybridcompute.aio.operations.ExtensionMetadataOperations
:ivar extension_metadata_v2: ExtensionMetadataV2Operations operations
:vartype extension_metadata_v2:
azure.mgmt.hybridcompute.aio.operations.ExtensionMetadataV2Operations
:ivar extension_type: ExtensionTypeOperations operations
:vartype extension_type: azure.mgmt.hybridcompute.aio.operations.ExtensionTypeOperations
:ivar extension_publisher: ExtensionPublisherOperations operations
:vartype extension_publisher:
azure.mgmt.hybridcompute.aio.operations.ExtensionPublisherOperations
:ivar operations: Operations operations
: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 +99,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 @@ -130,8 +151,20 @@ def __init__(
self.extension_metadata = ExtensionMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_metadata_v2 = ExtensionMetadataV2Operations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_type = ExtensionTypeOperations(self._client, self._config, self._serialize, self._deserialize)
self.extension_publisher = ExtensionPublisherOperations(
self._client, self._config, self._serialize, self._deserialize
)
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 @@ -12,8 +12,14 @@
from ._machine_extensions_operations import MachineExtensionsOperations
from ._hybrid_compute_management_client_operations import HybridComputeManagementClientOperationsMixin
from ._extension_metadata_operations import ExtensionMetadataOperations
from ._extension_metadata_v2_operations import ExtensionMetadataV2Operations
from ._extension_type_operations import ExtensionTypeOperations
from ._extension_publisher_operations import ExtensionPublisherOperations
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 @@ -30,8 +36,14 @@
"MachineExtensionsOperations",
"HybridComputeManagementClientOperationsMixin",
"ExtensionMetadataOperations",
"ExtensionMetadataV2Operations",
"ExtensionTypeOperations",
"ExtensionPublisherOperations",
"Operations",
"NetworkProfileOperations",
"MachineRunCommandsOperations",
"GatewaysOperations",
"SettingsOperations",
"PrivateLinkScopesOperations",
"PrivateLinkResourcesOperations",
"PrivateEndpointConnectionsOperations",
Expand Down
Loading

0 comments on commit b9bb6ec

Please sign in to comment.