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
1 change: 1 addition & 0 deletions sdk/kusto/azure-mgmt-kusto/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
2 changes: 1 addition & 1 deletion sdk/kusto/azure-mgmt-kusto/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Kusto Management Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from .data_connection_validation_list_result_py3 import DataConnectionValidationListResult
from .cluster_check_name_request_py3 import ClusterCheckNameRequest
from .database_check_name_request_py3 import DatabaseCheckNameRequest
from .data_connection_check_name_request_py3 import DataConnectionCheckNameRequest
from .check_name_result_py3 import CheckNameResult
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
Expand Down Expand Up @@ -58,6 +59,7 @@
from .data_connection_validation_list_result import DataConnectionValidationListResult
from .cluster_check_name_request import ClusterCheckNameRequest
from .database_check_name_request import DatabaseCheckNameRequest
from .data_connection_check_name_request import DataConnectionCheckNameRequest
from .check_name_result import CheckNameResult
from .operation_display import OperationDisplay
from .operation import Operation
Expand All @@ -76,10 +78,12 @@
State,
ProvisioningState,
AzureSkuName,
AzureSkuTier,
AzureScaleType,
DataFormat,
DatabasePrincipalRole,
DatabasePrincipalType,
Reason,
)

__all__ = [
Expand All @@ -103,6 +107,7 @@
'DataConnectionValidationListResult',
'ClusterCheckNameRequest',
'DatabaseCheckNameRequest',
'DataConnectionCheckNameRequest',
'CheckNameResult',
'OperationDisplay',
'Operation',
Expand All @@ -120,8 +125,10 @@
'State',
'ProvisioningState',
'AzureSkuName',
'AzureSkuTier',
'AzureScaleType',
'DataFormat',
'DatabasePrincipalRole',
'DatabasePrincipalType',
'Reason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class AzureCapacity(Model):
:param scale_type: Required. Scale type. Possible values include:
'automatic', 'manual', 'none'
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType
:param minimum: Required. Minimum allowed capacity.
:param minimum: Required. Minimum allowed instances count.
:type minimum: int
:param maximum: Required. Maximum allowed capacity.
:param maximum: Required. Maximum allowed instances count.
:type maximum: int
:param default: Required. The default capacity that would be used.
:type default: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class AzureCapacity(Model):
:param scale_type: Required. Scale type. Possible values include:
'automatic', 'manual', 'none'
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType
:param minimum: Required. Minimum allowed capacity.
:param minimum: Required. Minimum allowed instances count.
:type minimum: int
:param maximum: Required. Maximum allowed capacity.
:param maximum: Required. Maximum allowed instances count.
:type maximum: int
:param default: Required. The default capacity that would be used.
:type default: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AzureResourceSku(Model):
:type resource_type: str
:param sku: The SKU details.
:type sku: ~azure.mgmt.kusto.models.AzureSku
:param capacity: The SKU capacity.
:param capacity: The number of instances of the cluster.
:type capacity: ~azure.mgmt.kusto.models.AzureCapacity
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AzureResourceSku(Model):
:type resource_type: str
:param sku: The SKU details.
:type sku: ~azure.mgmt.kusto.models.AzureSku
:param capacity: The SKU capacity.
:param capacity: The number of instances of the cluster.
:type capacity: ~azure.mgmt.kusto.models.AzureCapacity
"""

Expand Down
22 changes: 11 additions & 11 deletions sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@
class AzureSku(Model):
"""Azure SKU definition.

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

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

:param name: Required. SKU name. Possible values include: 'D13_v2',
'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
:param name: Required. SKU name. Possible values include:
'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS',
'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2',
'Standard_D14_v2', 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2',
'Standard_D12_v2', 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
:param capacity: SKU capacity.
:param capacity: The number of instances of the cluster.
:type capacity: int
:ivar tier: Required. SKU tier. Default value: "Standard" .
:vartype tier: str
:param tier: Required. SKU tier. Possible values include: 'Basic',
'Standard'
:type tier: str or ~azure.mgmt.kusto.models.AzureSkuTier
"""

_validation = {
'name': {'required': True},
'tier': {'required': True, 'constant': True},
'tier': {'required': True},
}

_attribute_map = {
Expand All @@ -40,9 +41,8 @@ class AzureSku(Model):
'tier': {'key': 'tier', 'type': 'str'},
}

tier = "Standard"

def __init__(self, **kwargs):
super(AzureSku, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.capacity = kwargs.get('capacity', None)
self.tier = kwargs.get('tier', None)
24 changes: 12 additions & 12 deletions sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,24 @@
class AzureSku(Model):
"""Azure SKU definition.

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

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

:param name: Required. SKU name. Possible values include: 'D13_v2',
'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
:param name: Required. SKU name. Possible values include:
'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS',
'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2',
'Standard_D14_v2', 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2',
'Standard_D12_v2', 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
:param capacity: SKU capacity.
:param capacity: The number of instances of the cluster.
:type capacity: int
:ivar tier: Required. SKU tier. Default value: "Standard" .
:vartype tier: str
:param tier: Required. SKU tier. Possible values include: 'Basic',
'Standard'
:type tier: str or ~azure.mgmt.kusto.models.AzureSkuTier
"""

_validation = {
'name': {'required': True},
'tier': {'required': True, 'constant': True},
'tier': {'required': True},
}

_attribute_map = {
Expand All @@ -40,9 +41,8 @@ class AzureSku(Model):
'tier': {'key': 'tier', 'type': 'str'},
}

tier = "Standard"

def __init__(self, *, name, capacity: int=None, **kwargs) -> None:
def __init__(self, *, name, tier, capacity: int=None, **kwargs) -> None:
super(AzureSku, self).__init__(**kwargs)
self.name = name
self.capacity = capacity
self.tier = tier
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@ class CheckNameResult(Model):
:param message: Message indicating an unavailable name due to a conflict,
or a description of the naming rules that are violated.
:type message: str
:param reason: Message providing the reason why the given name is invalid.
Possible values include: 'Invalid', 'AlreadyExists'
:type reason: str or ~azure.mgmt.kusto.models.Reason
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'reason': {'key': 'reason', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CheckNameResult, self).__init__(**kwargs)
self.name_available = kwargs.get('name_available', None)
self.name = kwargs.get('name', None)
self.message = kwargs.get('message', None)
self.reason = kwargs.get('reason', None)
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,21 @@ class CheckNameResult(Model):
:param message: Message indicating an unavailable name due to a conflict,
or a description of the naming rules that are violated.
:type message: str
:param reason: Message providing the reason why the given name is invalid.
Possible values include: 'Invalid', 'AlreadyExists'
:type reason: str or ~azure.mgmt.kusto.models.Reason
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'reason': {'key': 'reason', 'type': 'str'},
}

def __init__(self, *, name_available: bool=None, name: str=None, message: str=None, **kwargs) -> None:
def __init__(self, *, name_available: bool=None, name: str=None, message: str=None, reason=None, **kwargs) -> None:
super(CheckNameResult, self).__init__(**kwargs)
self.name_available = name_available
self.name = name
self.message = message
self.reason = reason
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 DataConnectionCheckNameRequest(Model):
"""The result returned from a data connections check name availability
request.

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

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

:param name: Required. Data Connection name.
:type name: str
:ivar type: Required. The type of resource,
Microsoft.Kusto/clusters/databases/dataConnections. Default value:
"Microsoft.Kusto/clusters/databases/dataConnections" .
:vartype type: str
"""

_validation = {
'name': {'required': True},
'type': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

type = "Microsoft.Kusto/clusters/databases/dataConnections"

def __init__(self, **kwargs):
super(DataConnectionCheckNameRequest, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 DataConnectionCheckNameRequest(Model):
"""The result returned from a data connections check name availability
request.

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

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

:param name: Required. Data Connection name.
:type name: str
:ivar type: Required. The type of resource,
Microsoft.Kusto/clusters/databases/dataConnections. Default value:
"Microsoft.Kusto/clusters/databases/dataConnections" .
:vartype type: str
"""

_validation = {
'name': {'required': True},
'type': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

type = "Microsoft.Kusto/clusters/databases/dataConnections"

def __init__(self, *, name: str, **kwargs) -> None:
super(DataConnectionCheckNameRequest, self).__init__(**kwargs)
self.name = name
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,24 @@ class ProvisioningState(str, Enum):

class AzureSkuName(str, Enum):

d13_v2 = "D13_v2"
d14_v2 = "D14_v2"
l8 = "L8"
l16 = "L16"
d11_v2 = "D11_v2"
d12_v2 = "D12_v2"
l4 = "L4"
standard_ds13_v21_tb_ps = "Standard_DS13_v2+1TB_PS"
standard_ds13_v22_tb_ps = "Standard_DS13_v2+2TB_PS"
standard_ds14_v23_tb_ps = "Standard_DS14_v2+3TB_PS"
standard_ds14_v24_tb_ps = "Standard_DS14_v2+4TB_PS"
standard_d13_v2 = "Standard_D13_v2"
standard_d14_v2 = "Standard_D14_v2"
standard_l8s = "Standard_L8s"
standard_l16s = "Standard_L16s"
standard_d11_v2 = "Standard_D11_v2"
standard_d12_v2 = "Standard_D12_v2"
standard_l4s = "Standard_L4s"
dev_no_sla_standard_d11_v2 = "Dev(No SLA)_Standard_D11_v2"


class AzureSkuTier(str, Enum):

basic = "Basic"
standard = "Standard"


class AzureScaleType(str, Enum):
Expand Down Expand Up @@ -82,3 +93,9 @@ class DatabasePrincipalType(str, Enum):
app = "App"
group = "Group"
user = "User"


class Reason(str, Enum):

invalid = "Invalid"
already_exists = "AlreadyExists"
Loading