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 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/[email protected].1",
"@autorest/[email protected].4",
"@autorest/[email protected]"
],
"commit": "e34a41692e241c432c775a81207f24c631b82b7c",
"commit": "118afe03a6f0faf5aeb17c10cfb7a0d3f03cfdad",
"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].1 --use=@autorest/[email protected] --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].4 --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/azurestackhci/resource-manager/readme.md"
}
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 = "2021-01-01-preview"
self.api_version = "2021-09-01"
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,6 +1,6 @@
{
"chosen_version": "2021-01-01-preview",
"total_api_version_list": ["2021-01-01-preview"],
"chosen_version": "2021-09-01",
"total_api_version_list": ["2021-09-01"],
"client": {
"name": "AzureStackHCIClient",
"filename": "_azure_stack_hci_client",
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 = "6.1.0b1"
VERSION = "1.0.0b1"
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 = "2021-01-01-preview"
self.api_version = "2021-09-01"
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 @@ -65,7 +65,7 @@ def list_by_cluster(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -144,7 +144,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -211,7 +211,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -266,7 +266,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -127,7 +127,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -201,7 +201,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -263,7 +263,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -330,7 +330,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -394,7 +394,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def list_by_arc_setting(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -152,7 +152,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -205,7 +205,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -349,7 +349,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -488,7 +488,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-01-01-preview"
api_version = "2021-09-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ._models_py3 import ArcSetting
from ._models_py3 import ArcSettingList
from ._models_py3 import Cluster
from ._models_py3 import ClusterDesiredProperties
from ._models_py3 import ClusterList
from ._models_py3 import ClusterNode
from ._models_py3 import ClusterPatch
Expand All @@ -31,6 +32,7 @@
from ._models import ArcSetting # type: ignore
from ._models import ArcSettingList # type: ignore
from ._models import Cluster # type: ignore
from ._models import ClusterDesiredProperties # type: ignore
from ._models import ClusterList # type: ignore
from ._models import ClusterNode # type: ignore
from ._models import ClusterPatch # type: ignore
Expand All @@ -53,18 +55,22 @@
ActionType,
ArcSettingAggregateState,
CreatedByType,
DiagnosticLevel,
ExtensionAggregateState,
ImdsAttestation,
NodeArcState,
NodeExtensionState,
Origin,
ProvisioningState,
Status,
WindowsServerSubscription,
)

__all__ = [
'ArcSetting',
'ArcSettingList',
'Cluster',
'ClusterDesiredProperties',
'ClusterList',
'ClusterNode',
'ClusterPatch',
Expand All @@ -85,10 +91,13 @@
'ActionType',
'ArcSettingAggregateState',
'CreatedByType',
'DiagnosticLevel',
'ExtensionAggregateState',
'ImdsAttestation',
'NodeArcState',
'NodeExtensionState',
'Origin',
'ProvisioningState',
'Status',
'WindowsServerSubscription',
]
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"

class DiagnosticLevel(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Desired level of diagnostic data emitted by the cluster.
"""

OFF = "Off"
REQUIRED = "Required"
REQUIRED_AND_OPTIONAL = "RequiredAndOptional"

class ExtensionAggregateState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Aggregate state of Arc Extensions across the nodes in this HCI cluster.
"""
Expand All @@ -81,6 +89,13 @@ class ExtensionAggregateState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum
PARTIALLY_CONNECTED = "PartiallyConnected"
IN_PROGRESS = "InProgress"

class ImdsAttestation(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""IMDS attestation status of the cluster.
"""

DISABLED = "Disabled"
ENABLED = "Enabled"

class NodeArcState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""State of Arc agent in this node.
"""
Expand Down Expand Up @@ -143,3 +158,10 @@ class Status(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
NOT_CONNECTED_RECENTLY = "NotConnectedRecently"
DISCONNECTED = "Disconnected"
ERROR = "Error"

class WindowsServerSubscription(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Desired state of Windows Server Subscription.
"""

DISABLED = "Disabled"
ENABLED = "Enabled"
Loading