diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json b/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json index 855e09f59f87..edfdeba9e3ca 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.4.5", "use": [ - "@autorest/python@5.8.1", + "@autorest/python@5.8.4", "@autorest/modelerfour@4.19.2" ], - "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/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --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/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/azurestackhci/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py index 7bf8e4c73e83..4f36752440fb 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py @@ -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) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json index b1bed7064c61..cd4d5e7b652f 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json @@ -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", diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py index c096871cfd88..e5754a47ce68 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py @@ -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" diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py index d5dc0073a910..e00b97676baf 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py @@ -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) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py index 9c62aa2d29f4..ff61429b9d01 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py @@ -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): @@ -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 @@ -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" @@ -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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py index 527d5651a143..5c0e5251065a 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py @@ -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): @@ -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): @@ -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 @@ -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" @@ -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" @@ -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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py index 6a9801001e6b..f9588bab98e4 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py @@ -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): @@ -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 @@ -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" @@ -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" @@ -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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py index 019128f65482..d6f7154af712 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py @@ -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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py index 6675e25c8293..8bff1c1473d0 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py @@ -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 @@ -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 @@ -53,18 +55,22 @@ ActionType, ArcSettingAggregateState, CreatedByType, + DiagnosticLevel, ExtensionAggregateState, + ImdsAttestation, NodeArcState, NodeExtensionState, Origin, ProvisioningState, Status, + WindowsServerSubscription, ) __all__ = [ 'ArcSetting', 'ArcSettingList', 'Cluster', + 'ClusterDesiredProperties', 'ClusterList', 'ClusterNode', 'ClusterPatch', @@ -85,10 +91,13 @@ 'ActionType', 'ArcSettingAggregateState', 'CreatedByType', + 'DiagnosticLevel', 'ExtensionAggregateState', + 'ImdsAttestation', 'NodeArcState', 'NodeExtensionState', 'Origin', 'ProvisioningState', 'Status', + 'WindowsServerSubscription', ] diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py index 5b3ae6cc1a3c..da80edc08f7f 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py @@ -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. """ @@ -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. """ @@ -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" diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py index 4564c9472f42..f7569dabea02 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py @@ -274,6 +274,8 @@ class Cluster(TrackedResource): :type aad_client_id: str :param aad_tenant_id: Tenant id of cluster AAD identity. :type aad_tenant_id: str + :param desired_properties: Desired properties of the cluster. + :type desired_properties: ~azure_stack_hci_client.models.ClusterDesiredProperties :ivar reported_properties: Properties reported by cluster agent. :vartype reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties :ivar trial_days_remaining: Number of days remaining in the trial period. @@ -330,6 +332,7 @@ class Cluster(TrackedResource): 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, + 'desired_properties': {'key': 'properties.desiredProperties', 'type': 'ClusterDesiredProperties'}, 'reported_properties': {'key': 'properties.reportedProperties', 'type': 'ClusterReportedProperties'}, 'trial_days_remaining': {'key': 'properties.trialDaysRemaining', 'type': 'float'}, 'billing_model': {'key': 'properties.billingModel', 'type': 'str'}, @@ -355,6 +358,7 @@ def __init__( self.cloud_management_endpoint = kwargs.get('cloud_management_endpoint', None) self.aad_client_id = kwargs.get('aad_client_id', None) self.aad_tenant_id = kwargs.get('aad_tenant_id', None) + self.desired_properties = kwargs.get('desired_properties', None) self.reported_properties = None self.trial_days_remaining = None self.billing_model = None @@ -369,6 +373,32 @@ def __init__( self.last_modified_at = kwargs.get('last_modified_at', None) +class ClusterDesiredProperties(msrest.serialization.Model): + """Desired properties of the cluster. + + :param windows_server_subscription: Desired state of Windows Server Subscription. Possible + values include: "Disabled", "Enabled". + :type windows_server_subscription: str or + ~azure_stack_hci_client.models.WindowsServerSubscription + :param diagnostic_level: Desired level of diagnostic data emitted by the cluster. Possible + values include: "Off", "Required", "RequiredAndOptional". + :type diagnostic_level: str or ~azure_stack_hci_client.models.DiagnosticLevel + """ + + _attribute_map = { + 'windows_server_subscription': {'key': 'windowsServerSubscription', 'type': 'str'}, + 'diagnostic_level': {'key': 'diagnosticLevel', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ClusterDesiredProperties, self).__init__(**kwargs) + self.windows_server_subscription = kwargs.get('windows_server_subscription', None) + self.diagnostic_level = kwargs.get('diagnostic_level', None) + + class ClusterList(msrest.serialization.Model): """List of clusters. @@ -407,6 +437,10 @@ class ClusterNode(msrest.serialization.Model): :vartype name: str :ivar id: Id of the node in the cluster. :vartype id: float + :ivar windows_server_subscription: State of Windows Server Subscription. Possible values + include: "Disabled", "Enabled". + :vartype windows_server_subscription: str or + ~azure_stack_hci_client.models.WindowsServerSubscription :ivar manufacturer: Manufacturer of the cluster node hardware. :vartype manufacturer: str :ivar model: Model name of the cluster node hardware. @@ -426,6 +460,7 @@ class ClusterNode(msrest.serialization.Model): _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, + 'windows_server_subscription': {'readonly': True}, 'manufacturer': {'readonly': True}, 'model': {'readonly': True}, 'os_name': {'readonly': True}, @@ -438,6 +473,7 @@ class ClusterNode(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'float'}, + 'windows_server_subscription': {'key': 'windowsServerSubscription', 'type': 'str'}, 'manufacturer': {'key': 'manufacturer', 'type': 'str'}, 'model': {'key': 'model', 'type': 'str'}, 'os_name': {'key': 'osName', 'type': 'str'}, @@ -454,6 +490,7 @@ def __init__( super(ClusterNode, self).__init__(**kwargs) self.name = None self.id = None + self.windows_server_subscription = None self.manufacturer = None self.model = None self.os_name = None @@ -470,11 +507,20 @@ class ClusterPatch(msrest.serialization.Model): :type tags: dict[str, str] :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. :type cloud_management_endpoint: str + :param aad_client_id: App id of cluster AAD identity. + :type aad_client_id: str + :param aad_tenant_id: Tenant id of cluster AAD identity. + :type aad_tenant_id: str + :param desired_properties: Desired properties of the cluster. + :type desired_properties: ~azure_stack_hci_client.models.ClusterDesiredProperties """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, + 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, + 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, + 'desired_properties': {'key': 'properties.desiredProperties', 'type': 'ClusterDesiredProperties'}, } def __init__( @@ -484,6 +530,9 @@ def __init__( super(ClusterPatch, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) self.cloud_management_endpoint = kwargs.get('cloud_management_endpoint', None) + self.aad_client_id = kwargs.get('aad_client_id', None) + self.aad_tenant_id = kwargs.get('aad_tenant_id', None) + self.desired_properties = kwargs.get('desired_properties', None) class ClusterReportedProperties(msrest.serialization.Model): @@ -501,6 +550,12 @@ class ClusterReportedProperties(msrest.serialization.Model): :vartype nodes: list[~azure_stack_hci_client.models.ClusterNode] :ivar last_updated: Last time the cluster reported the data. :vartype last_updated: ~datetime.datetime + :ivar imds_attestation: IMDS attestation status of the cluster. Possible values include: + "Disabled", "Enabled". + :vartype imds_attestation: str or ~azure_stack_hci_client.models.ImdsAttestation + :param diagnostic_level: Level of diagnostic data emitted by the cluster. Possible values + include: "Off", "Required", "RequiredAndOptional". + :type diagnostic_level: str or ~azure_stack_hci_client.models.DiagnosticLevel """ _validation = { @@ -509,6 +564,7 @@ class ClusterReportedProperties(msrest.serialization.Model): 'cluster_version': {'readonly': True}, 'nodes': {'readonly': True}, 'last_updated': {'readonly': True}, + 'imds_attestation': {'readonly': True}, } _attribute_map = { @@ -517,6 +573,8 @@ class ClusterReportedProperties(msrest.serialization.Model): 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, 'nodes': {'key': 'nodes', 'type': '[ClusterNode]'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'imds_attestation': {'key': 'imdsAttestation', 'type': 'str'}, + 'diagnostic_level': {'key': 'diagnosticLevel', 'type': 'str'}, } def __init__( @@ -529,6 +587,8 @@ def __init__( self.cluster_version = None self.nodes = None self.last_updated = None + self.imds_attestation = None + self.diagnostic_level = kwargs.get('diagnostic_level', None) class ErrorAdditionalInfo(msrest.serialization.Model): diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py index cfede6b86641..6e12dac57850 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py @@ -289,6 +289,8 @@ class Cluster(TrackedResource): :type aad_client_id: str :param aad_tenant_id: Tenant id of cluster AAD identity. :type aad_tenant_id: str + :param desired_properties: Desired properties of the cluster. + :type desired_properties: ~azure_stack_hci_client.models.ClusterDesiredProperties :ivar reported_properties: Properties reported by cluster agent. :vartype reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties :ivar trial_days_remaining: Number of days remaining in the trial period. @@ -345,6 +347,7 @@ class Cluster(TrackedResource): 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, + 'desired_properties': {'key': 'properties.desiredProperties', 'type': 'ClusterDesiredProperties'}, 'reported_properties': {'key': 'properties.reportedProperties', 'type': 'ClusterReportedProperties'}, 'trial_days_remaining': {'key': 'properties.trialDaysRemaining', 'type': 'float'}, 'billing_model': {'key': 'properties.billingModel', 'type': 'str'}, @@ -367,6 +370,7 @@ def __init__( cloud_management_endpoint: Optional[str] = None, aad_client_id: Optional[str] = None, aad_tenant_id: Optional[str] = None, + desired_properties: Optional["ClusterDesiredProperties"] = None, created_by: Optional[str] = None, created_by_type: Optional[Union[str, "CreatedByType"]] = None, created_at: Optional[datetime.datetime] = None, @@ -382,6 +386,7 @@ def __init__( self.cloud_management_endpoint = cloud_management_endpoint self.aad_client_id = aad_client_id self.aad_tenant_id = aad_tenant_id + self.desired_properties = desired_properties self.reported_properties = None self.trial_days_remaining = None self.billing_model = None @@ -396,6 +401,35 @@ def __init__( self.last_modified_at = last_modified_at +class ClusterDesiredProperties(msrest.serialization.Model): + """Desired properties of the cluster. + + :param windows_server_subscription: Desired state of Windows Server Subscription. Possible + values include: "Disabled", "Enabled". + :type windows_server_subscription: str or + ~azure_stack_hci_client.models.WindowsServerSubscription + :param diagnostic_level: Desired level of diagnostic data emitted by the cluster. Possible + values include: "Off", "Required", "RequiredAndOptional". + :type diagnostic_level: str or ~azure_stack_hci_client.models.DiagnosticLevel + """ + + _attribute_map = { + 'windows_server_subscription': {'key': 'windowsServerSubscription', 'type': 'str'}, + 'diagnostic_level': {'key': 'diagnosticLevel', 'type': 'str'}, + } + + def __init__( + self, + *, + windows_server_subscription: Optional[Union[str, "WindowsServerSubscription"]] = None, + diagnostic_level: Optional[Union[str, "DiagnosticLevel"]] = None, + **kwargs + ): + super(ClusterDesiredProperties, self).__init__(**kwargs) + self.windows_server_subscription = windows_server_subscription + self.diagnostic_level = diagnostic_level + + class ClusterList(msrest.serialization.Model): """List of clusters. @@ -436,6 +470,10 @@ class ClusterNode(msrest.serialization.Model): :vartype name: str :ivar id: Id of the node in the cluster. :vartype id: float + :ivar windows_server_subscription: State of Windows Server Subscription. Possible values + include: "Disabled", "Enabled". + :vartype windows_server_subscription: str or + ~azure_stack_hci_client.models.WindowsServerSubscription :ivar manufacturer: Manufacturer of the cluster node hardware. :vartype manufacturer: str :ivar model: Model name of the cluster node hardware. @@ -455,6 +493,7 @@ class ClusterNode(msrest.serialization.Model): _validation = { 'name': {'readonly': True}, 'id': {'readonly': True}, + 'windows_server_subscription': {'readonly': True}, 'manufacturer': {'readonly': True}, 'model': {'readonly': True}, 'os_name': {'readonly': True}, @@ -467,6 +506,7 @@ class ClusterNode(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'float'}, + 'windows_server_subscription': {'key': 'windowsServerSubscription', 'type': 'str'}, 'manufacturer': {'key': 'manufacturer', 'type': 'str'}, 'model': {'key': 'model', 'type': 'str'}, 'os_name': {'key': 'osName', 'type': 'str'}, @@ -483,6 +523,7 @@ def __init__( super(ClusterNode, self).__init__(**kwargs) self.name = None self.id = None + self.windows_server_subscription = None self.manufacturer = None self.model = None self.os_name = None @@ -499,11 +540,20 @@ class ClusterPatch(msrest.serialization.Model): :type tags: dict[str, str] :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. :type cloud_management_endpoint: str + :param aad_client_id: App id of cluster AAD identity. + :type aad_client_id: str + :param aad_tenant_id: Tenant id of cluster AAD identity. + :type aad_tenant_id: str + :param desired_properties: Desired properties of the cluster. + :type desired_properties: ~azure_stack_hci_client.models.ClusterDesiredProperties """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, + 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, + 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, + 'desired_properties': {'key': 'properties.desiredProperties', 'type': 'ClusterDesiredProperties'}, } def __init__( @@ -511,11 +561,17 @@ def __init__( *, tags: Optional[Dict[str, str]] = None, cloud_management_endpoint: Optional[str] = None, + aad_client_id: Optional[str] = None, + aad_tenant_id: Optional[str] = None, + desired_properties: Optional["ClusterDesiredProperties"] = None, **kwargs ): super(ClusterPatch, self).__init__(**kwargs) self.tags = tags self.cloud_management_endpoint = cloud_management_endpoint + self.aad_client_id = aad_client_id + self.aad_tenant_id = aad_tenant_id + self.desired_properties = desired_properties class ClusterReportedProperties(msrest.serialization.Model): @@ -533,6 +589,12 @@ class ClusterReportedProperties(msrest.serialization.Model): :vartype nodes: list[~azure_stack_hci_client.models.ClusterNode] :ivar last_updated: Last time the cluster reported the data. :vartype last_updated: ~datetime.datetime + :ivar imds_attestation: IMDS attestation status of the cluster. Possible values include: + "Disabled", "Enabled". + :vartype imds_attestation: str or ~azure_stack_hci_client.models.ImdsAttestation + :param diagnostic_level: Level of diagnostic data emitted by the cluster. Possible values + include: "Off", "Required", "RequiredAndOptional". + :type diagnostic_level: str or ~azure_stack_hci_client.models.DiagnosticLevel """ _validation = { @@ -541,6 +603,7 @@ class ClusterReportedProperties(msrest.serialization.Model): 'cluster_version': {'readonly': True}, 'nodes': {'readonly': True}, 'last_updated': {'readonly': True}, + 'imds_attestation': {'readonly': True}, } _attribute_map = { @@ -549,10 +612,14 @@ class ClusterReportedProperties(msrest.serialization.Model): 'cluster_version': {'key': 'clusterVersion', 'type': 'str'}, 'nodes': {'key': 'nodes', 'type': '[ClusterNode]'}, 'last_updated': {'key': 'lastUpdated', 'type': 'iso-8601'}, + 'imds_attestation': {'key': 'imdsAttestation', 'type': 'str'}, + 'diagnostic_level': {'key': 'diagnosticLevel', 'type': 'str'}, } def __init__( self, + *, + diagnostic_level: Optional[Union[str, "DiagnosticLevel"]] = None, **kwargs ): super(ClusterReportedProperties, self).__init__(**kwargs) @@ -561,6 +628,8 @@ def __init__( self.cluster_version = None self.nodes = None self.last_updated = None + self.imds_attestation = None + self.diagnostic_level = diagnostic_level class ErrorAdditionalInfo(msrest.serialization.Model): diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py index f27601576940..b7d35a5add6f 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py @@ -70,7 +70,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): @@ -150,7 +150,7 @@ 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 @@ -218,7 +218,7 @@ 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" @@ -274,7 +274,7 @@ 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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py index 9e1231d58a23..c99f3c9df4df 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py @@ -62,7 +62,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): @@ -133,7 +133,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): @@ -208,7 +208,7 @@ 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 @@ -271,7 +271,7 @@ 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" @@ -339,7 +339,7 @@ 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" @@ -404,7 +404,7 @@ 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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py index 012182e3a12e..3d5dffcae622 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py @@ -74,7 +74,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): @@ -158,7 +158,7 @@ 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 @@ -212,7 +212,7 @@ 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" @@ -358,7 +358,7 @@ 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" @@ -499,7 +499,7 @@ 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 diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py index 8a40fa3d701c..b971c9188ad0 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py @@ -61,7 +61,7 @@ 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