Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-mgmt-hdinsightcontainers] [HDInsight on AKS] Az support on Cluster and ClusterPool #7129

Closed
wants to merge 1 commit into from
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/hdinsight/azure-mgmt-hdinsightcontainers/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "92de53a5f1e0e03c94b40475d2135d97148ed014",
"commit": "c1aa8ef5944c867d520330cd12751bdec5b351b8",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.13.7",
"@autorest/python@6.13.16",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/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-preview-2023-11 --use=@autorest/python@6.13.7 --use=@autorest/modelerfour@4.27.0 --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/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.13.16 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/hdinsight/resource-manager/Microsoft.HDInsight/HDInsightOnAks/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class HDInsightContainersMgmtClientConfiguration: # pylint: disable=too-many-in
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-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", "2023-11-01-preview")
api_version: str = kwargs.pop("api_version", "2024-05-01")

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 @@ -22,8 +22,11 @@
AvailableClusterVersionsOperations,
ClusterAvailableUpgradesOperations,
ClusterJobsOperations,
ClusterLibrariesOperations,
ClusterPoolAvailableUpgradesOperations,
ClusterPoolUpgradeHistoriesOperations,
ClusterPoolsOperations,
ClusterUpgradeHistoriesOperations,
ClustersOperations,
LocationsOperations,
Operations,
Expand All @@ -42,11 +45,17 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
:ivar cluster_pool_available_upgrades: ClusterPoolAvailableUpgradesOperations operations
:vartype cluster_pool_available_upgrades:
azure.mgmt.hdinsightcontainers.operations.ClusterPoolAvailableUpgradesOperations
:ivar cluster_pool_upgrade_histories: ClusterPoolUpgradeHistoriesOperations operations
:vartype cluster_pool_upgrade_histories:
azure.mgmt.hdinsightcontainers.operations.ClusterPoolUpgradeHistoriesOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.hdinsightcontainers.operations.ClustersOperations
:ivar cluster_available_upgrades: ClusterAvailableUpgradesOperations operations
:vartype cluster_available_upgrades:
azure.mgmt.hdinsightcontainers.operations.ClusterAvailableUpgradesOperations
:ivar cluster_upgrade_histories: ClusterUpgradeHistoriesOperations operations
:vartype cluster_upgrade_histories:
azure.mgmt.hdinsightcontainers.operations.ClusterUpgradeHistoriesOperations
:ivar cluster_jobs: ClusterJobsOperations operations
:vartype cluster_jobs: azure.mgmt.hdinsightcontainers.operations.ClusterJobsOperations
:ivar locations: LocationsOperations operations
Expand All @@ -59,14 +68,17 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
:ivar available_cluster_versions: AvailableClusterVersionsOperations operations
:vartype available_cluster_versions:
azure.mgmt.hdinsightcontainers.operations.AvailableClusterVersionsOperations
:ivar cluster_libraries: ClusterLibrariesOperations operations
:vartype cluster_libraries:
azure.mgmt.hdinsightcontainers.operations.ClusterLibrariesOperations
: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.
: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 "2023-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-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
Retry-After header is present.
Expand Down Expand Up @@ -110,10 +122,16 @@ def __init__(
self.cluster_pool_available_upgrades = ClusterPoolAvailableUpgradesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_pool_upgrade_histories = ClusterPoolUpgradeHistoriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.cluster_available_upgrades = ClusterAvailableUpgradesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_upgrade_histories = ClusterUpgradeHistoriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_jobs = ClusterJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
Expand All @@ -123,6 +141,9 @@ def __init__(
self.available_cluster_versions = AvailableClusterVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_libraries = ClusterLibrariesOperations(
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 @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b2"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class HDInsightContainersMgmtClientConfiguration: # pylint: disable=too-many-in
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-01". 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", "2023-11-01-preview")
api_version: str = kwargs.pop("api_version", "2024-05-01")

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 @@ -22,8 +22,11 @@
AvailableClusterVersionsOperations,
ClusterAvailableUpgradesOperations,
ClusterJobsOperations,
ClusterLibrariesOperations,
ClusterPoolAvailableUpgradesOperations,
ClusterPoolUpgradeHistoriesOperations,
ClusterPoolsOperations,
ClusterUpgradeHistoriesOperations,
ClustersOperations,
LocationsOperations,
Operations,
Expand All @@ -42,11 +45,17 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
:ivar cluster_pool_available_upgrades: ClusterPoolAvailableUpgradesOperations operations
:vartype cluster_pool_available_upgrades:
azure.mgmt.hdinsightcontainers.aio.operations.ClusterPoolAvailableUpgradesOperations
:ivar cluster_pool_upgrade_histories: ClusterPoolUpgradeHistoriesOperations operations
:vartype cluster_pool_upgrade_histories:
azure.mgmt.hdinsightcontainers.aio.operations.ClusterPoolUpgradeHistoriesOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.hdinsightcontainers.aio.operations.ClustersOperations
:ivar cluster_available_upgrades: ClusterAvailableUpgradesOperations operations
:vartype cluster_available_upgrades:
azure.mgmt.hdinsightcontainers.aio.operations.ClusterAvailableUpgradesOperations
:ivar cluster_upgrade_histories: ClusterUpgradeHistoriesOperations operations
:vartype cluster_upgrade_histories:
azure.mgmt.hdinsightcontainers.aio.operations.ClusterUpgradeHistoriesOperations
:ivar cluster_jobs: ClusterJobsOperations operations
:vartype cluster_jobs: azure.mgmt.hdinsightcontainers.aio.operations.ClusterJobsOperations
:ivar locations: LocationsOperations operations
Expand All @@ -59,14 +68,17 @@ class HDInsightContainersMgmtClient: # pylint: disable=client-accepts-api-versi
:ivar available_cluster_versions: AvailableClusterVersionsOperations operations
:vartype available_cluster_versions:
azure.mgmt.hdinsightcontainers.aio.operations.AvailableClusterVersionsOperations
:ivar cluster_libraries: ClusterLibrariesOperations operations
:vartype cluster_libraries:
azure.mgmt.hdinsightcontainers.aio.operations.ClusterLibrariesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. The value must be an UUID. 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 "2023-11-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-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
Retry-After header is present.
Expand Down Expand Up @@ -110,10 +122,16 @@ def __init__(
self.cluster_pool_available_upgrades = ClusterPoolAvailableUpgradesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_pool_upgrade_histories = ClusterPoolUpgradeHistoriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.cluster_available_upgrades = ClusterAvailableUpgradesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_upgrade_histories = ClusterUpgradeHistoriesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_jobs = ClusterJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
Expand All @@ -123,6 +141,9 @@ def __init__(
self.available_cluster_versions = AvailableClusterVersionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.cluster_libraries = ClusterLibrariesOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(
self, request: HttpRequest, *, stream: bool = False, **kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

from ._cluster_pools_operations import ClusterPoolsOperations
from ._cluster_pool_available_upgrades_operations import ClusterPoolAvailableUpgradesOperations
from ._cluster_pool_upgrade_histories_operations import ClusterPoolUpgradeHistoriesOperations
from ._clusters_operations import ClustersOperations
from ._cluster_available_upgrades_operations import ClusterAvailableUpgradesOperations
from ._cluster_upgrade_histories_operations import ClusterUpgradeHistoriesOperations
from ._cluster_jobs_operations import ClusterJobsOperations
from ._locations_operations import LocationsOperations
from ._operations import Operations
from ._available_cluster_pool_versions_operations import AvailableClusterPoolVersionsOperations
from ._available_cluster_versions_operations import AvailableClusterVersionsOperations
from ._cluster_libraries_operations import ClusterLibrariesOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand All @@ -23,13 +26,16 @@
__all__ = [
"ClusterPoolsOperations",
"ClusterPoolAvailableUpgradesOperations",
"ClusterPoolUpgradeHistoriesOperations",
"ClustersOperations",
"ClusterAvailableUpgradesOperations",
"ClusterUpgradeHistoriesOperations",
"ClusterJobsOperations",
"LocationsOperations",
"Operations",
"AvailableClusterPoolVersionsOperations",
"AvailableClusterVersionsOperations",
"ClusterLibrariesOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
import urllib.parse

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -29,6 +30,10 @@
from ..._vendor import _convert_request
from ...operations._available_cluster_pool_versions_operations import build_list_by_location_request

if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -69,7 +74,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncIterable["_mode
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ClusterPoolVersionsListResult] = kwargs.pop("cls", None)

error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
import urllib.parse

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -29,6 +30,10 @@
from ..._vendor import _convert_request
from ...operations._available_cluster_versions_operations import build_list_by_location_request

if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -69,7 +74,7 @@ def list_by_location(self, location: str, **kwargs: Any) -> AsyncIterable["_mode
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ClusterVersionsListResult] = kwargs.pop("cls", None)

error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar
import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, Type, TypeVar
import urllib.parse

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand All @@ -29,6 +30,10 @@
from ..._vendor import _convert_request
from ...operations._cluster_available_upgrades_operations import build_list_request

if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -77,7 +82,7 @@ def list(
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
cls: ClsType[_models.ClusterAvailableUpgradeList] = kwargs.pop("cls", None)

error_map = {
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
Expand Down
Loading