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
3 changes: 3 additions & 0 deletions azure-mgmt-devspaces/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

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-01-01-preview'
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)
25 changes: 14 additions & 11 deletions azure-mgmt-devspaces/azure/mgmt/devspaces/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,59 @@
# --------------------------------------------------------------------------

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 .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
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 .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 .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',
'OrchestratorSpecificConnectionDetails',
'ControllerConnectionDetails',
'ControllerConnectionDetailsList',
'TrackedResource',
'ResourceProviderOperationDisplay',
'ResourceProviderOperationDefinition',
'Resource',
'KubernetesConnectionDetails',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'ControllerPaged',
'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
12 changes: 6 additions & 6 deletions azure-mgmt-devspaces/azure/mgmt/devspaces/models/controller.py
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 @@ -20,31 +20,21 @@ class ControllerConnectionDetails(Model):

: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 @@ -20,31 +20,21 @@ class ControllerConnectionDetails(Model):

: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
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 @@ -76,10 +76,10 @@ class Controller(TrackedResource):
'sku': {'key': 'sku', 'type': 'Sku'},
}

def __init__(self, *, host_suffix: str, target_container_host_resource_id: str, target_container_host_credentials_base64: str, sku, tags=None, location: str=None, **kwargs) -> None:
def __init__(self, *, target_container_host_resource_id: str, target_container_host_credentials_base64: str, sku, tags=None, location: str=None, **kwargs) -> None:
super(Controller, self).__init__(tags=tags, location=location, **kwargs)
self.provisioning_state = None
self.host_suffix = host_suffix
self.host_suffix = None
self.data_plane_fqdn = None
self.target_container_host_resource_id = target_container_host_resource_id
self.target_container_host_credentials_base64 = target_container_host_credentials_base64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ProvisioningState(str, Enum):
updating = "Updating"
creating = "Creating"
deleting = "Deleting"
deleted = "Deleted"


class SkuTier(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class KubernetesConnectionDetails(OrchestratorSpecificConnectionDetails):
"""KubernetesConnectionDetails.
"""Contains information used to connect to a Kubernetes cluster.

All required parameters must be populated in order to send to Azure.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class KubernetesConnectionDetails(OrchestratorSpecificConnectionDetails):
"""KubernetesConnectionDetails.
"""Contains information used to connect to a Kubernetes cluster.

All required parameters must be populated in order to send to Azure.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


class OrchestratorSpecificConnectionDetails(Model):
"""OrchestratorSpecificConnectionDetails.
"""Base class for types that supply values used to connect to container
orchestrators.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: KubernetesConnectionDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@


class OrchestratorSpecificConnectionDetails(Model):
"""OrchestratorSpecificConnectionDetails.
"""Base class for types that supply values used to connect to container
orchestrators.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: KubernetesConnectionDetails
Expand Down
Loading