Skip to content

Commit

Permalink
CodeGen from PR 22933 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge ee7d54cd2ef61c40618d282fde5ff9a97b63f2fb into 2ac8dec9cbc4ad4db7537de603339f069d482078
  • Loading branch information
SDKAuto committed Mar 24, 2023
1 parent cf33834 commit ff8738a
Show file tree
Hide file tree
Showing 65 changed files with 3,597 additions and 837 deletions.
6 changes: 3 additions & 3 deletions sdk/hybridcompute/azure-mgmt-hybridcompute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "270d3cd664cca3ddc8511f92d3851a715e2c61db",
"commit": "7cd5fb37a5f139f031ad28a629258b685caf787f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.16",
"@autorest/python@6.4.3",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/hybridcompute/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 --tag=package-2022-03 --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/hybridcompute/resource-manager/readme.md --generate-sample=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.4.3 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/hybridcompute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ class HybridComputeManagementClientConfiguration(Configuration): # pylint: disa
: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 "2022-03-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-03-15-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:
super(HybridComputeManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-03-10"] = kwargs.pop("api_version", "2022-03-10")
api_version: Literal["2023-03-15-preview"] = kwargs.pop("api_version", "2023-03-15-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 @@ -16,9 +16,13 @@
from ._configuration import HybridComputeManagementClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
AgentVersionOperations,
ExtensionMetadataOperations,
HybridComputeManagementClientOperationsMixin,
HybridIdentityMetadataOperations,
MachineExtensionsOperations,
MachinesOperations,
NetworkProfileOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Expand All @@ -39,8 +43,17 @@ class HybridComputeManagementClient(
:vartype machines: azure.mgmt.hybridcompute.operations.MachinesOperations
:ivar machine_extensions: MachineExtensionsOperations operations
:vartype machine_extensions: azure.mgmt.hybridcompute.operations.MachineExtensionsOperations
:ivar extension_metadata: ExtensionMetadataOperations operations
:vartype extension_metadata: azure.mgmt.hybridcompute.operations.ExtensionMetadataOperations
: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 hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.hybridcompute.operations.HybridIdentityMetadataOperations
:ivar agent_version: AgentVersionOperations operations
:vartype agent_version: azure.mgmt.hybridcompute.operations.AgentVersionOperations
:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes: azure.mgmt.hybridcompute.operations.PrivateLinkScopesOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
Expand All @@ -55,8 +68,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 "2022-03-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-03-15-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 All @@ -72,7 +85,7 @@ def __init__(
self._config = HybridComputeManagementClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand All @@ -82,7 +95,15 @@ def __init__(
self.machine_extensions = MachineExtensionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_metadata = ExtensionMetadataOperations(
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.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.agent_version = AgentVersionOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -122,5 +143,5 @@ def __enter__(self) -> "HybridComputeManagementClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
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 = "8.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ class HybridComputeManagementClientConfiguration(Configuration): # pylint: disa
: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 "2022-03-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-03-15-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:
super(HybridComputeManagementClientConfiguration, self).__init__(**kwargs)
api_version: Literal["2022-03-10"] = kwargs.pop("api_version", "2022-03-10")
api_version: Literal["2023-03-15-preview"] = kwargs.pop("api_version", "2023-03-15-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 @@ -16,9 +16,13 @@
from .._serialization import Deserializer, Serializer
from ._configuration import HybridComputeManagementClientConfiguration
from .operations import (
AgentVersionOperations,
ExtensionMetadataOperations,
HybridComputeManagementClientOperationsMixin,
HybridIdentityMetadataOperations,
MachineExtensionsOperations,
MachinesOperations,
NetworkProfileOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Expand All @@ -40,8 +44,18 @@ class HybridComputeManagementClient(
:ivar machine_extensions: MachineExtensionsOperations operations
:vartype machine_extensions:
azure.mgmt.hybridcompute.aio.operations.MachineExtensionsOperations
:ivar extension_metadata: ExtensionMetadataOperations operations
:vartype extension_metadata:
azure.mgmt.hybridcompute.aio.operations.ExtensionMetadataOperations
: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 hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.hybridcompute.aio.operations.HybridIdentityMetadataOperations
:ivar agent_version: AgentVersionOperations operations
:vartype agent_version: azure.mgmt.hybridcompute.aio.operations.AgentVersionOperations
:ivar private_link_scopes: PrivateLinkScopesOperations operations
:vartype private_link_scopes:
azure.mgmt.hybridcompute.aio.operations.PrivateLinkScopesOperations
Expand All @@ -57,8 +71,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 "2022-03-10". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-03-15-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 All @@ -74,7 +88,7 @@ def __init__(
self._config = HybridComputeManagementClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
)
self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand All @@ -84,7 +98,15 @@ def __init__(
self.machine_extensions = MachineExtensionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.extension_metadata = ExtensionMetadataOperations(
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.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.agent_version = AgentVersionOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_scopes = PrivateLinkScopesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -124,5 +146,5 @@ async def __aenter__(self) -> "HybridComputeManagementClient":
await self._client.__aenter__()
return self

async def __aexit__(self, *exc_details) -> None:
async def __aexit__(self, *exc_details: Any) -> None:
await self._client.__aexit__(*exc_details)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
from ._machines_operations import MachinesOperations
from ._machine_extensions_operations import MachineExtensionsOperations
from ._hybrid_compute_management_client_operations import HybridComputeManagementClientOperationsMixin
from ._extension_metadata_operations import ExtensionMetadataOperations
from ._operations import Operations
from ._network_profile_operations import NetworkProfileOperations
from ._hybrid_identity_metadata_operations import HybridIdentityMetadataOperations
from ._agent_version_operations import AgentVersionOperations
from ._private_link_scopes_operations import PrivateLinkScopesOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
Expand All @@ -22,7 +26,11 @@
"MachinesOperations",
"MachineExtensionsOperations",
"HybridComputeManagementClientOperationsMixin",
"ExtensionMetadataOperations",
"Operations",
"NetworkProfileOperations",
"HybridIdentityMetadataOperations",
"AgentVersionOperations",
"PrivateLinkScopesOperations",
"PrivateLinkResourcesOperations",
"PrivateEndpointConnectionsOperations",
Expand Down
Loading

0 comments on commit ff8738a

Please sign in to comment.