Skip to content
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
9 changes: 0 additions & 9 deletions azure-mgmt-devspaces/HISTORY.rst

This file was deleted.

1 change: 0 additions & 1 deletion azure-mgmt-devspaces/MANIFEST.in

This file was deleted.

23 changes: 23 additions & 0 deletions sdk/aks/azure-mgmt-devspaces/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.. :changelog:

Release History
===============

0.2.0 (2019-05-23)
++++++++++++++++++

**Features**

- Model ControllerUpdateParameters has a new parameter target_container_host_credentials_base64
- Added operation group ContainerHostMappingsOperations

**Breaking changes**

- Operation ControllersOperations.list_connection_details has a new signature
- Operation ControllersOperations.update has a new signature
- Model ControllerConnectionDetails has a new signature

0.1.0 (2018-07-12)
++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions sdk/aks/azure-mgmt-devspaces/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.controllers_operations import ControllersOperations
from .operations.container_host_mappings_operations import ContainerHostMappingsOperations
from .operations.operations import Operations
from .operations.controllers_operations import ControllersOperations
from . import models


Expand Down Expand Up @@ -56,10 +57,12 @@ class DevSpacesManagementClient(SDKClient):
:ivar config: Configuration for client.
:vartype config: DevSpacesManagementClientConfiguration

:ivar controllers: Controllers operations
:vartype controllers: azure.mgmt.devspaces.operations.ControllersOperations
:ivar container_host_mappings: ContainerHostMappings operations
:vartype container_host_mappings: azure.mgmt.devspaces.operations.ContainerHostMappingsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.devspaces.operations.Operations
:ivar controllers: Controllers operations
:vartype controllers: azure.mgmt.devspaces.operations.ControllersOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -76,11 +79,13 @@ def __init__(
super(DevSpacesManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-06-01-preview'
self.api_version = '2019-04-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.controllers = ControllersOperations(
self.container_host_mappings = ContainerHostMappingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.controllers = ControllersOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,62 @@
# --------------------------------------------------------------------------

try:
from .container_host_mapping_py3 import ContainerHostMapping
from .tracked_resource_py3 import TrackedResource
from .resource_provider_operation_display_py3 import ResourceProviderOperationDisplay
from .resource_provider_operation_definition_py3 import ResourceProviderOperationDefinition
from .sku_py3 import Sku
from .controller_py3 import Controller
from .controller_update_parameters_py3 import ControllerUpdateParameters
from .list_connection_details_parameters_py3 import ListConnectionDetailsParameters
from .orchestrator_specific_connection_details_py3 import OrchestratorSpecificConnectionDetails
from .controller_connection_details_py3 import ControllerConnectionDetails
from .controller_connection_details_list_py3 import ControllerConnectionDetailsList
from .tracked_resource_py3 import TrackedResource
from .resource_provider_operation_display_py3 import ResourceProviderOperationDisplay
from .resource_provider_operation_definition_py3 import ResourceProviderOperationDefinition
from .resource_py3 import Resource
from .kubernetes_connection_details_py3 import KubernetesConnectionDetails
from .error_details_py3 import ErrorDetails
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .dev_spaces_error_response_py3 import DevSpacesErrorResponse, DevSpacesErrorResponseException
except (SyntaxError, ImportError):
from .container_host_mapping import ContainerHostMapping
from .tracked_resource import TrackedResource
from .resource_provider_operation_display import ResourceProviderOperationDisplay
from .resource_provider_operation_definition import ResourceProviderOperationDefinition
from .sku import Sku
from .controller import Controller
from .controller_update_parameters import ControllerUpdateParameters
from .list_connection_details_parameters import ListConnectionDetailsParameters
from .orchestrator_specific_connection_details import OrchestratorSpecificConnectionDetails
from .controller_connection_details import ControllerConnectionDetails
from .controller_connection_details_list import ControllerConnectionDetailsList
from .tracked_resource import TrackedResource
from .resource_provider_operation_display import ResourceProviderOperationDisplay
from .resource_provider_operation_definition import ResourceProviderOperationDefinition
from .resource import Resource
from .kubernetes_connection_details import KubernetesConnectionDetails
from .error_details import ErrorDetails
from .error_response import ErrorResponse, ErrorResponseException
from .controller_paged import ControllerPaged
from .dev_spaces_error_response import DevSpacesErrorResponse, DevSpacesErrorResponseException
from .resource_provider_operation_definition_paged import ResourceProviderOperationDefinitionPaged
from .controller_paged import ControllerPaged
from .dev_spaces_management_client_enums import (
ProvisioningState,
SkuTier,
)

__all__ = [
'ContainerHostMapping',
'TrackedResource',
'ResourceProviderOperationDisplay',
'ResourceProviderOperationDefinition',
'Sku',
'Controller',
'ControllerUpdateParameters',
'ListConnectionDetailsParameters',
'OrchestratorSpecificConnectionDetails',
'ControllerConnectionDetails',
'ControllerConnectionDetailsList',
'TrackedResource',
'ResourceProviderOperationDisplay',
'ResourceProviderOperationDefinition',
'Resource',
'KubernetesConnectionDetails',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'ControllerPaged',
'DevSpacesErrorResponse', 'DevSpacesErrorResponseException',
'ResourceProviderOperationDefinitionPaged',
'ControllerPaged',
'ProvisioningState',
'SkuTier',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ContainerHostMapping(Model):
"""Container host mapping object specifying the Container host resource ID and
its associated Controller resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:param container_host_resource_id: ARM ID of the Container Host resource
:type container_host_resource_id: str
:ivar mapped_controller_resource_id: ARM ID of the mapped Controller
resource
:vartype mapped_controller_resource_id: str
"""

_validation = {
'mapped_controller_resource_id': {'readonly': True},
}

_attribute_map = {
'container_host_resource_id': {'key': 'containerHostResourceId', 'type': 'str'},
'mapped_controller_resource_id': {'key': 'mappedControllerResourceId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ContainerHostMapping, self).__init__(**kwargs)
self.container_host_resource_id = kwargs.get('container_host_resource_id', None)
self.mapped_controller_resource_id = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ContainerHostMapping(Model):
"""Container host mapping object specifying the Container host resource ID and
its associated Controller resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:param container_host_resource_id: ARM ID of the Container Host resource
:type container_host_resource_id: str
:ivar mapped_controller_resource_id: ARM ID of the mapped Controller
resource
:vartype mapped_controller_resource_id: str
"""

_validation = {
'mapped_controller_resource_id': {'readonly': True},
}

_attribute_map = {
'container_host_resource_id': {'key': 'containerHostResourceId', 'type': 'str'},
'mapped_controller_resource_id': {'key': 'mappedControllerResourceId', 'type': 'str'},
}

def __init__(self, *, container_host_resource_id: str=None, **kwargs) -> None:
super(ContainerHostMapping, self).__init__(**kwargs)
self.container_host_resource_id = container_host_resource_id
self.mapped_controller_resource_id = None
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ class Controller(TrackedResource):
:type location: str
:ivar provisioning_state: Provisioning state of the Azure Dev Spaces
Controller. Possible values include: 'Succeeded', 'Failed', 'Canceled',
'Updating', 'Creating', 'Deleting'
'Updating', 'Creating', 'Deleting', 'Deleted'
:vartype provisioning_state: str or
~azure.mgmt.devspaces.models.ProvisioningState
:param host_suffix: Required. DNS suffix for public endpoints running in
the Azure Dev Spaces Controller.
:type host_suffix: str
:ivar host_suffix: DNS suffix for public endpoints running in the Azure
Dev Spaces Controller.
:vartype host_suffix: str
:ivar data_plane_fqdn: DNS name for accessing DataPlane services
:vartype data_plane_fqdn: str
:param target_container_host_resource_id: Required. Resource ID of the
Expand All @@ -55,7 +55,7 @@ class Controller(TrackedResource):
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'host_suffix': {'required': True},
'host_suffix': {'readonly': True},
'data_plane_fqdn': {'readonly': True},
'target_container_host_resource_id': {'required': True},
'target_container_host_credentials_base64': {'required': True},
Expand All @@ -79,7 +79,7 @@ class Controller(TrackedResource):
def __init__(self, **kwargs):
super(Controller, self).__init__(**kwargs)
self.provisioning_state = None
self.host_suffix = kwargs.get('host_suffix', None)
self.host_suffix = None
self.data_plane_fqdn = None
self.target_container_host_resource_id = kwargs.get('target_container_host_resource_id', None)
self.target_container_host_credentials_base64 = kwargs.get('target_container_host_credentials_base64', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,15 @@
class ControllerConnectionDetails(Model):
"""ControllerConnectionDetails.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar auth_key: Authentication key for communicating with services.
:vartype auth_key: str
:ivar workspace_storage_account_name: Workspace storage account name.
:vartype workspace_storage_account_name: str
:ivar workspace_storage_sas_token: Workspace storage account SAS token.
:vartype workspace_storage_sas_token: str
:param orchestrator_specific_connection_details:
:type orchestrator_specific_connection_details:
~azure.mgmt.devspaces.models.OrchestratorSpecificConnectionDetails
"""

_validation = {
'auth_key': {'readonly': True},
'workspace_storage_account_name': {'readonly': True},
'workspace_storage_sas_token': {'readonly': True},
}

_attribute_map = {
'auth_key': {'key': 'authKey', 'type': 'str'},
'workspace_storage_account_name': {'key': 'workspaceStorageAccountName', 'type': 'str'},
'workspace_storage_sas_token': {'key': 'workspaceStorageSasToken', 'type': 'str'},
'orchestrator_specific_connection_details': {'key': 'orchestratorSpecificConnectionDetails', 'type': 'OrchestratorSpecificConnectionDetails'},
}

def __init__(self, **kwargs):
super(ControllerConnectionDetails, self).__init__(**kwargs)
self.auth_key = None
self.workspace_storage_account_name = None
self.workspace_storage_sas_token = None
self.orchestrator_specific_connection_details = kwargs.get('orchestrator_specific_connection_details', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,15 @@
class ControllerConnectionDetails(Model):
"""ControllerConnectionDetails.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar auth_key: Authentication key for communicating with services.
:vartype auth_key: str
:ivar workspace_storage_account_name: Workspace storage account name.
:vartype workspace_storage_account_name: str
:ivar workspace_storage_sas_token: Workspace storage account SAS token.
:vartype workspace_storage_sas_token: str
:param orchestrator_specific_connection_details:
:type orchestrator_specific_connection_details:
~azure.mgmt.devspaces.models.OrchestratorSpecificConnectionDetails
"""

_validation = {
'auth_key': {'readonly': True},
'workspace_storage_account_name': {'readonly': True},
'workspace_storage_sas_token': {'readonly': True},
}

_attribute_map = {
'auth_key': {'key': 'authKey', 'type': 'str'},
'workspace_storage_account_name': {'key': 'workspaceStorageAccountName', 'type': 'str'},
'workspace_storage_sas_token': {'key': 'workspaceStorageSasToken', 'type': 'str'},
'orchestrator_specific_connection_details': {'key': 'orchestratorSpecificConnectionDetails', 'type': 'OrchestratorSpecificConnectionDetails'},
}

def __init__(self, *, orchestrator_specific_connection_details=None, **kwargs) -> None:
super(ControllerConnectionDetails, self).__init__(**kwargs)
self.auth_key = None
self.workspace_storage_account_name = None
self.workspace_storage_sas_token = None
self.orchestrator_specific_connection_details = orchestrator_specific_connection_details
Loading