Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "30d040e41a4cea0d31a6c7e56726ea2df17fdcc5",
"commit": "4eb2277323e6ed13e77f980b1939cf2bd7596c3b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md --generate-sample=True --generate-test=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.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md"
"autorest_command": "autorest specification/azurestackhci/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",
"readme": "specification/azurestackhci/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._azure_stack_hci_client import AzureStackHCIClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._azure_stack_hci_client import AzureStackHCIClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AzureStackHCIClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,31 @@
DeploymentSettingsOperations,
EdgeDevicesOperations,
ExtensionsOperations,
GalleryImagesOperations,
GuestAgentOperations,
GuestAgentsOperations,
HybridIdentityMetadataOperations,
LogicalNetworksOperations,
MarketplaceGalleryImagesOperations,
NetworkInterfacesOperations,
OffersOperations,
Operations,
PublishersOperations,
SecuritySettingsOperations,
SkusOperations,
StorageContainersOperations,
UpdateRunsOperations,
UpdateSummariesOperations,
UpdatesOperations,
VirtualHardDisksOperations,
VirtualMachineInstancesOperations,
)

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


class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class AzureStackHCIClient: # pylint: disable=too-many-instance-attributes
"""Azure Stack HCI management service.

:ivar arc_settings: ArcSettingsOperations operations
Expand All @@ -52,6 +61,15 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype edge_devices: azure.mgmt.azurestackhci.operations.EdgeDevicesOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure.mgmt.azurestackhci.operations.ExtensionsOperations
:ivar gallery_images: GalleryImagesOperations operations
:vartype gallery_images: azure.mgmt.azurestackhci.operations.GalleryImagesOperations
:ivar logical_networks: LogicalNetworksOperations operations
:vartype logical_networks: azure.mgmt.azurestackhci.operations.LogicalNetworksOperations
:ivar marketplace_gallery_images: MarketplaceGalleryImagesOperations operations
:vartype marketplace_gallery_images:
azure.mgmt.azurestackhci.operations.MarketplaceGalleryImagesOperations
:ivar network_interfaces: NetworkInterfacesOperations operations
:vartype network_interfaces: azure.mgmt.azurestackhci.operations.NetworkInterfacesOperations
:ivar offers: OffersOperations operations
:vartype offers: azure.mgmt.azurestackhci.operations.OffersOperations
:ivar operations: Operations operations
Expand All @@ -62,19 +80,33 @@ class AzureStackHCIClient: # pylint: disable=client-accepts-api-version-keyword
:vartype security_settings: azure.mgmt.azurestackhci.operations.SecuritySettingsOperations
:ivar skus: SkusOperations operations
:vartype skus: azure.mgmt.azurestackhci.operations.SkusOperations
:ivar storage_containers: StorageContainersOperations operations
:vartype storage_containers: azure.mgmt.azurestackhci.operations.StorageContainersOperations
:ivar update_runs: UpdateRunsOperations operations
:vartype update_runs: azure.mgmt.azurestackhci.operations.UpdateRunsOperations
:ivar update_summaries: UpdateSummariesOperations operations
:vartype update_summaries: azure.mgmt.azurestackhci.operations.UpdateSummariesOperations
:ivar updates: UpdatesOperations operations
:vartype updates: azure.mgmt.azurestackhci.operations.UpdatesOperations
:ivar virtual_hard_disks: VirtualHardDisksOperations operations
:vartype virtual_hard_disks: azure.mgmt.azurestackhci.operations.VirtualHardDisksOperations
:ivar virtual_machine_instances: VirtualMachineInstancesOperations operations
:vartype virtual_machine_instances:
azure.mgmt.azurestackhci.operations.VirtualMachineInstancesOperations
:ivar hybrid_identity_metadata: HybridIdentityMetadataOperations operations
:vartype hybrid_identity_metadata:
azure.mgmt.azurestackhci.operations.HybridIdentityMetadataOperations
:ivar guest_agent: GuestAgentOperations operations
:vartype guest_agent: azure.mgmt.azurestackhci.operations.GuestAgentOperations
:ivar guest_agents: GuestAgentsOperations operations
:vartype guest_agents: azure.mgmt.azurestackhci.operations.GuestAgentsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
: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-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". 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
Expand Down Expand Up @@ -122,18 +154,42 @@ def __init__(
)
self.edge_devices = EdgeDevicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.gallery_images = GalleryImagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.logical_networks = LogicalNetworksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.marketplace_gallery_images = MarketplaceGalleryImagesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.network_interfaces = NetworkInterfacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.offers = OffersOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.publishers = PublishersOperations(self._client, self._config, self._serialize, self._deserialize)
self.security_settings = SecuritySettingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.storage_containers = StorageContainersOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.update_runs = UpdateRunsOperations(self._client, self._config, self._serialize, self._deserialize)
self.update_summaries = UpdateSummariesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.updates = UpdatesOperations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_hard_disks = VirtualHardDisksOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.virtual_machine_instances = VirtualMachineInstancesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.hybrid_identity_metadata = HybridIdentityMetadataOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.guest_agent = GuestAgentOperations(self._client, self._config, self._serialize, self._deserialize)
self.guest_agents = GuestAgentsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@
from ._version import VERSION

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


class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class AzureStackHCIClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for AzureStackHCIClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2024-01-01". 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-04-01")
api_version: str = kwargs.pop("api_version", "2024-01-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading