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

[AutoRelease] t2-azurestackhci-2021-06-29-13246 #19561

Merged
merged 2 commits into from
Jun 29, 2021
Merged
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: 8 additions & 0 deletions sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 6.1.0b1 (2021-06-29)

**Features**

- Model Cluster has a new parameter cloud_management_endpoint
- Added operation group ArcSettingsOperations
- Added operation group ExtensionsOperations

## 6.0.0 (2021-05-20)

- GA release
Expand Down
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 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/[email protected].0",
"@autorest/[email protected].1"
"@autorest/[email protected].1",
"@autorest/[email protected].2"
],
"commit": "54692d5a0346c6040f14f5c836eaca598009c52d",
"commit": "e34a41692e241c432c775a81207f24c631b82b7c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
"autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].1 --use=@autorest/[email protected].2 --version=3.4.2",
"readme": "specification/azurestackhci/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,30 @@
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import AzureStackHCIClientConfiguration
from .operations import Operations
from .operations import ArcSettingsOperations
from .operations import ClustersOperations
from .operations import ExtensionsOperations
from .operations import Operations
from . import models


class AzureStackHCIClient(object):
"""Azure Stack HCI management service.

:ivar operations: Operations operations
:vartype operations: azure_stack_hci_client.operations.Operations
:ivar arc_settings: ArcSettingsOperations operations
:vartype arc_settings: azure_stack_hci_client.operations.ArcSettingsOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure_stack_hci_client.operations.ClustersOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure_stack_hci_client.operations.ExtensionsOperations
:ivar operations: Operations operations
:vartype operations: azure_stack_hci_client.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""

def __init__(
Expand All @@ -56,10 +63,14 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self.arc_settings = ArcSettingsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-10-01"
self.api_version = "2021-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurestackhci/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"chosen_version": "2020-10-01",
"total_api_version_list": ["2020-10-01"],
"chosen_version": "2021-01-01-preview",
"total_api_version_list": ["2021-01-01-preview"],
"client": {
"name": "AzureStackHCIClient",
"filename": "_azure_stack_hci_client",
"description": "Azure Stack HCI management service.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": false,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackHCIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackHCIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
Expand Down Expand Up @@ -98,7 +98,9 @@
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"operations": "Operations",
"clusters": "ClustersOperations"
"arc_settings": "ArcSettingsOperations",
"clusters": "ClustersOperations",
"extensions": "ExtensionsOperations",
"operations": "Operations"
}
}
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 = "6.0.0"
VERSION = "6.1.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,30 @@
from azure.core.credentials_async import AsyncTokenCredential

from ._configuration import AzureStackHCIClientConfiguration
from .operations import Operations
from .operations import ArcSettingsOperations
from .operations import ClustersOperations
from .operations import ExtensionsOperations
from .operations import Operations
from .. import models


class AzureStackHCIClient(object):
"""Azure Stack HCI management service.

:ivar operations: Operations operations
:vartype operations: azure_stack_hci_client.aio.operations.Operations
:ivar arc_settings: ArcSettingsOperations operations
:vartype arc_settings: azure_stack_hci_client.aio.operations.ArcSettingsOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure_stack_hci_client.aio.operations.ClustersOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure_stack_hci_client.aio.operations.ExtensionsOperations
:ivar operations: Operations operations
:vartype operations: azure_stack_hci_client.aio.operations.Operations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
:type subscription_id: str
:param str base_url: Service URL
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
"""

def __init__(
Expand All @@ -53,10 +60,14 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.operations = Operations(
self.arc_settings = ArcSettingsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-10-01"
self.api_version = "2021-01-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurestackhci/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._operations import Operations
from ._arc_settings_operations import ArcSettingsOperations
from ._clusters_operations import ClustersOperations
from ._extensions_operations import ExtensionsOperations
from ._operations import Operations

__all__ = [
'Operations',
'ArcSettingsOperations',
'ClustersOperations',
'ExtensionsOperations',
'Operations',
]
Loading