Skip to content

[AutoPR azure-kusto/resource-manager] Add Kusto 2019-01-21 api version #4301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
19 changes: 0 additions & 19 deletions azure-mgmt-kusto/README.rst
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
10 changes: 5 additions & 5 deletions azure-mgmt-kusto/azure/mgmt/kusto/kusto_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .version import VERSION
from .operations.clusters_operations import ClustersOperations
from .operations.databases_operations import DatabasesOperations
from .operations.event_hub_connections_operations import EventHubConnectionsOperations
from .operations.data_connections_operations import DataConnectionsOperations
from .operations.operations import Operations
from . import models

Expand Down Expand Up @@ -64,8 +64,8 @@ class KustoManagementClient(SDKClient):
:vartype clusters: azure.mgmt.kusto.operations.ClustersOperations
:ivar databases: Databases operations
:vartype databases: azure.mgmt.kusto.operations.DatabasesOperations
:ivar event_hub_connections: EventHubConnections operations
:vartype event_hub_connections: azure.mgmt.kusto.operations.EventHubConnectionsOperations
:ivar data_connections: DataConnections operations
:vartype data_connections: azure.mgmt.kusto.operations.DataConnectionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.kusto.operations.Operations

Expand All @@ -86,15 +86,15 @@ def __init__(
super(KustoManagementClient, 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-09-07-preview'
self.api_version = '2019-01-21'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.clusters = ClustersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.databases = DatabasesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.event_hub_connections = EventHubConnectionsOperations(
self.data_connections = DataConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
37 changes: 20 additions & 17 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
from .azure_capacity_py3 import AzureCapacity
from .azure_resource_sku_py3 import AzureResourceSku
from .database_statistics_py3 import DatabaseStatistics
from .event_hub_connection_validation_py3 import EventHubConnectionValidation
from .cluster_py3 import Cluster
from .cluster_update_py3 import ClusterUpdate
from .database_py3 import Database
from .database_update_py3 import DatabaseUpdate
from .database_principal_py3 import DatabasePrincipal
from .event_hub_connection_update_py3 import EventHubConnectionUpdate
from .event_hub_connection_py3 import EventHubConnection
from .event_hub_connection_validation_result_py3 import EventHubConnectionValidationResult
from .database_principal_list_result_py3 import DatabasePrincipalListResult
from .data_connection_py3 import DataConnection
from .data_connection_validation_result_py3 import DataConnectionValidationResult
from .database_principal_list_request_py3 import DatabasePrincipalListRequest
from .event_hub_connection_validation_list_result_py3 import EventHubConnectionValidationListResult
from .data_connection_validation_py3 import DataConnectionValidation
from .event_hub_data_connection_py3 import EventHubDataConnection
from .event_grid_data_connection_py3 import EventGridDataConnection
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 .check_name_result_py3 import CheckNameResult
Expand All @@ -42,18 +43,19 @@
from .azure_capacity import AzureCapacity
from .azure_resource_sku import AzureResourceSku
from .database_statistics import DatabaseStatistics
from .event_hub_connection_validation import EventHubConnectionValidation
from .cluster import Cluster
from .cluster_update import ClusterUpdate
from .database import Database
from .database_update import DatabaseUpdate
from .database_principal import DatabasePrincipal
from .event_hub_connection_update import EventHubConnectionUpdate
from .event_hub_connection import EventHubConnection
from .event_hub_connection_validation_result import EventHubConnectionValidationResult
from .database_principal_list_result import DatabasePrincipalListResult
from .data_connection import DataConnection
from .data_connection_validation_result import DataConnectionValidationResult
from .database_principal_list_request import DatabasePrincipalListRequest
from .event_hub_connection_validation_list_result import EventHubConnectionValidationListResult
from .data_connection_validation import DataConnectionValidation
from .event_hub_data_connection import EventHubDataConnection
from .event_grid_data_connection import EventGridDataConnection
from .data_connection_validation_list_result import DataConnectionValidationListResult
from .cluster_check_name_request import ClusterCheckNameRequest
from .database_check_name_request import DatabaseCheckNameRequest
from .check_name_result import CheckNameResult
Expand All @@ -68,7 +70,7 @@
from .azure_resource_sku_paged import AzureResourceSkuPaged
from .database_paged import DatabasePaged
from .database_principal_paged import DatabasePrincipalPaged
from .event_hub_connection_paged import EventHubConnectionPaged
from .data_connection_paged import DataConnectionPaged
from .operation_paged import OperationPaged
from .kusto_management_client_enums import (
State,
Expand All @@ -86,18 +88,19 @@
'AzureCapacity',
'AzureResourceSku',
'DatabaseStatistics',
'EventHubConnectionValidation',
'Cluster',
'ClusterUpdate',
'Database',
'DatabaseUpdate',
'DatabasePrincipal',
'EventHubConnectionUpdate',
'EventHubConnection',
'EventHubConnectionValidationResult',
'DatabasePrincipalListResult',
'DataConnection',
'DataConnectionValidationResult',
'DatabasePrincipalListRequest',
'EventHubConnectionValidationListResult',
'DataConnectionValidation',
'EventHubDataConnection',
'EventGridDataConnection',
'DataConnectionValidationListResult',
'ClusterCheckNameRequest',
'DatabaseCheckNameRequest',
'CheckNameResult',
Expand All @@ -112,7 +115,7 @@
'AzureResourceSkuPaged',
'DatabasePaged',
'DatabasePrincipalPaged',
'EventHubConnectionPaged',
'DataConnectionPaged',
'OperationPaged',
'State',
'ProvisioningState',
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-kusto/azure/mgmt/kusto/models/azure_capacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class AzureCapacity(Model):
"""AzureCapacity.
"""Azure capacity definition.

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 AzureCapacity(Model):
"""AzureCapacity.
"""Azure capacity definition.

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 AzureResourceSku(Model):
"""AzureResourceSku.
"""Azure resource SKU definition.

:param resource_type: Resource Namespace and Type.
:type resource_type: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class AzureResourceSku(Model):
"""AzureResourceSku.
"""Azure resource SKU definition.

:param resource_type: Resource Namespace and Type.
:type resource_type: str
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


class AzureSku(Model):
"""AzureSku.
"""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: 'KC8', 'KC16',
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
:param capacity: SKU capacity.
:type capacity: int
Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


class AzureSku(Model):
"""AzureSku.
"""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: 'KC8', 'KC16',
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
:param capacity: SKU capacity.
:type capacity: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class CheckNameResult(Model):
"""CheckNameResult.
"""The result returned from a check name availability request.

:param name_available: Specifies a Boolean value that indicates if the
name is available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class CheckNameResult(Model):
"""CheckNameResult.
"""The result returned from a check name availability request.

:param name_available: Specifies a Boolean value that indicates if the
name is available.
Expand Down
7 changes: 1 addition & 6 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ class Cluster(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives
:type location: str
:ivar etag: An ETag of the resource created.
:vartype etag: str
:param sku: Required. The SKU of the cluster.
:type sku: ~azure.mgmt.kusto.models.AzureSku
:ivar state: The state of the resource. Possible values include:
'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping',
'Stopped', 'Starting'
'Stopped', 'Starting', 'Updating'
:vartype state: str or ~azure.mgmt.kusto.models.State
:ivar provisioning_state: The provisioned state of the resource. Possible
values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
Expand All @@ -58,7 +56,6 @@ class Cluster(TrackedResource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'etag': {'readonly': True},
'sku': {'required': True},
'state': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -72,7 +69,6 @@ class Cluster(TrackedResource):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'AzureSku'},
'state': {'key': 'properties.state', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -83,7 +79,6 @@ class Cluster(TrackedResource):

def __init__(self, **kwargs):
super(Cluster, self).__init__(**kwargs)
self.etag = None
self.sku = kwargs.get('sku', None)
self.state = None
self.provisioning_state = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ClusterCheckNameRequest(Model):
"""ClusterCheckNameRequest.
"""The result returned from a cluster check name availability request.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class ClusterCheckNameRequest(Model):
"""ClusterCheckNameRequest.
"""The result returned from a cluster check name availability request.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
7 changes: 1 addition & 6 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/cluster_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ class Cluster(TrackedResource):
:type tags: dict[str, str]
:param location: Required. The geo-location where the resource lives
:type location: str
:ivar etag: An ETag of the resource created.
:vartype etag: str
:param sku: Required. The SKU of the cluster.
:type sku: ~azure.mgmt.kusto.models.AzureSku
:ivar state: The state of the resource. Possible values include:
'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping',
'Stopped', 'Starting'
'Stopped', 'Starting', 'Updating'
:vartype state: str or ~azure.mgmt.kusto.models.State
:ivar provisioning_state: The provisioned state of the resource. Possible
values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
Expand All @@ -58,7 +56,6 @@ class Cluster(TrackedResource):
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'etag': {'readonly': True},
'sku': {'required': True},
'state': {'readonly': True},
'provisioning_state': {'readonly': True},
Expand All @@ -72,7 +69,6 @@ class Cluster(TrackedResource):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'AzureSku'},
'state': {'key': 'properties.state', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -83,7 +79,6 @@ class Cluster(TrackedResource):

def __init__(self, *, location: str, sku, tags=None, trusted_external_tenants=None, **kwargs) -> None:
super(Cluster, self).__init__(tags=tags, location=location, **kwargs)
self.etag = None
self.sku = sku
self.state = None
self.provisioning_state = None
Expand Down
7 changes: 1 addition & 6 deletions azure-mgmt-kusto/azure/mgmt/kusto/models/cluster_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ class ClusterUpdate(Resource):
:type tags: dict[str, str]
:param location: Resource location.
:type location: str
:ivar etag: An ETag of the resource updated.
:vartype etag: str
:param sku: The SKU of the cluster.
:type sku: ~azure.mgmt.kusto.models.AzureSku
:ivar state: The state of the resource. Possible values include:
'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping',
'Stopped', 'Starting'
'Stopped', 'Starting', 'Updating'
:vartype state: str or ~azure.mgmt.kusto.models.State
:ivar provisioning_state: The provisioned state of the resource. Possible
values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
Expand All @@ -55,7 +53,6 @@ class ClusterUpdate(Resource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'etag': {'readonly': True},
'state': {'readonly': True},
'provisioning_state': {'readonly': True},
'uri': {'readonly': True},
Expand All @@ -68,7 +65,6 @@ class ClusterUpdate(Resource):
'type': {'key': 'type', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'location': {'key': 'location', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'AzureSku'},
'state': {'key': 'properties.state', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -81,7 +77,6 @@ def __init__(self, **kwargs):
super(ClusterUpdate, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.location = kwargs.get('location', None)
self.etag = None
self.sku = kwargs.get('sku', None)
self.state = None
self.provisioning_state = None
Expand Down
Loading