Skip to content

Commit 2c53502

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] azure-kusto/resource-manager (#4303)
* [AutoPR azure-kusto/resource-manager] Add Kusto 2019-01-21 api version (#4301) * Generated from bf831b851b1e7e72acd6d0c2482c75f9ad5e4a04 Remove etag * Packaging update of azure-mgmt-kusto * Generated from 43544c8274c286959cf74e66ae28f27e0209dd77 (#4304) typo: specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json - Repersents -> Represents - properiets -> properties * Generated from b4e72103336ee4e315b9c100467fa251ca6390e1 (#4317) Fix typos * ChangeLog * Rebuild by #4303 * Update version.py
1 parent a3ce7df commit 2c53502

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+513
-454
lines changed

azure-mgmt-kusto/HISTORY.rst

+24
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33
Release History
44
===============
55

6+
0.3.0 (2019-02-06)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model DatabaseUpdate has a new parameter hot_cache_period
12+
- Model DatabaseUpdate has a new parameter soft_delete_period
13+
- Model Database has a new parameter hot_cache_period
14+
- Model Database has a new parameter soft_delete_period
15+
- Added operation group DataConnectionsOperations
16+
17+
**Breaking changes**
18+
19+
- Model DatabaseUpdate no longer has parameter hot_cache_period_in_days
20+
- Model DatabaseUpdate no longer has parameter etag
21+
- Model DatabaseUpdate no longer has parameter soft_delete_period_in_days
22+
- Model Database no longer has parameter tags
23+
- Model Database no longer has parameter etag
24+
- Model Database no longer has parameter hot_cache_period_in_days
25+
- Model Database no longer has parameter soft_delete_period_in_days
26+
- Model Cluster no longer has parameter etag
27+
- Model ClusterUpdate no longer has parameter etag
28+
- Removed operation group EventHubConnectionsOperations
29+
630
0.2.0 (2018-11-27)
731
++++++++++++++++++
832

azure-mgmt-kusto/README.rst

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

1616

17-
Compatibility
18-
=============
19-
20-
**IMPORTANT**: If you have an earlier version of the azure package
21-
(version < 1.0), you should uninstall it before installing this package.
22-
23-
You can check the version using pip:
24-
25-
.. code:: shell
26-
27-
pip freeze
28-
29-
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
30-
31-
.. code:: shell
32-
33-
pip uninstall azure
34-
35-
3617
Usage
3718
=====
3819

azure-mgmt-kusto/azure/mgmt/kusto/kusto_management_client.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .version import VERSION
1616
from .operations.clusters_operations import ClustersOperations
1717
from .operations.databases_operations import DatabasesOperations
18-
from .operations.event_hub_connections_operations import EventHubConnectionsOperations
18+
from .operations.data_connections_operations import DataConnectionsOperations
1919
from .operations.operations import Operations
2020
from . import models
2121

@@ -64,8 +64,8 @@ class KustoManagementClient(SDKClient):
6464
:vartype clusters: azure.mgmt.kusto.operations.ClustersOperations
6565
:ivar databases: Databases operations
6666
:vartype databases: azure.mgmt.kusto.operations.DatabasesOperations
67-
:ivar event_hub_connections: EventHubConnections operations
68-
:vartype event_hub_connections: azure.mgmt.kusto.operations.EventHubConnectionsOperations
67+
:ivar data_connections: DataConnections operations
68+
:vartype data_connections: azure.mgmt.kusto.operations.DataConnectionsOperations
6969
:ivar operations: Operations operations
7070
:vartype operations: azure.mgmt.kusto.operations.Operations
7171
@@ -86,15 +86,15 @@ def __init__(
8686
super(KustoManagementClient, self).__init__(self.config.credentials, self.config)
8787

8888
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
89-
self.api_version = '2018-09-07-preview'
89+
self.api_version = '2019-01-21'
9090
self._serialize = Serializer(client_models)
9191
self._deserialize = Deserializer(client_models)
9292

9393
self.clusters = ClustersOperations(
9494
self._client, self.config, self._serialize, self._deserialize)
9595
self.databases = DatabasesOperations(
9696
self._client, self.config, self._serialize, self._deserialize)
97-
self.event_hub_connections = EventHubConnectionsOperations(
97+
self.data_connections = DataConnectionsOperations(
9898
self._client, self.config, self._serialize, self._deserialize)
9999
self.operations = Operations(
100100
self._client, self.config, self._serialize, self._deserialize)

azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py

+20-17
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515
from .azure_capacity_py3 import AzureCapacity
1616
from .azure_resource_sku_py3 import AzureResourceSku
1717
from .database_statistics_py3 import DatabaseStatistics
18-
from .event_hub_connection_validation_py3 import EventHubConnectionValidation
1918
from .cluster_py3 import Cluster
2019
from .cluster_update_py3 import ClusterUpdate
2120
from .database_py3 import Database
2221
from .database_update_py3 import DatabaseUpdate
2322
from .database_principal_py3 import DatabasePrincipal
24-
from .event_hub_connection_update_py3 import EventHubConnectionUpdate
25-
from .event_hub_connection_py3 import EventHubConnection
26-
from .event_hub_connection_validation_result_py3 import EventHubConnectionValidationResult
2723
from .database_principal_list_result_py3 import DatabasePrincipalListResult
24+
from .data_connection_py3 import DataConnection
25+
from .data_connection_validation_result_py3 import DataConnectionValidationResult
2826
from .database_principal_list_request_py3 import DatabasePrincipalListRequest
29-
from .event_hub_connection_validation_list_result_py3 import EventHubConnectionValidationListResult
27+
from .data_connection_validation_py3 import DataConnectionValidation
28+
from .event_hub_data_connection_py3 import EventHubDataConnection
29+
from .event_grid_data_connection_py3 import EventGridDataConnection
30+
from .data_connection_validation_list_result_py3 import DataConnectionValidationListResult
3031
from .cluster_check_name_request_py3 import ClusterCheckNameRequest
3132
from .database_check_name_request_py3 import DatabaseCheckNameRequest
3233
from .check_name_result_py3 import CheckNameResult
@@ -42,18 +43,19 @@
4243
from .azure_capacity import AzureCapacity
4344
from .azure_resource_sku import AzureResourceSku
4445
from .database_statistics import DatabaseStatistics
45-
from .event_hub_connection_validation import EventHubConnectionValidation
4646
from .cluster import Cluster
4747
from .cluster_update import ClusterUpdate
4848
from .database import Database
4949
from .database_update import DatabaseUpdate
5050
from .database_principal import DatabasePrincipal
51-
from .event_hub_connection_update import EventHubConnectionUpdate
52-
from .event_hub_connection import EventHubConnection
53-
from .event_hub_connection_validation_result import EventHubConnectionValidationResult
5451
from .database_principal_list_result import DatabasePrincipalListResult
52+
from .data_connection import DataConnection
53+
from .data_connection_validation_result import DataConnectionValidationResult
5554
from .database_principal_list_request import DatabasePrincipalListRequest
56-
from .event_hub_connection_validation_list_result import EventHubConnectionValidationListResult
55+
from .data_connection_validation import DataConnectionValidation
56+
from .event_hub_data_connection import EventHubDataConnection
57+
from .event_grid_data_connection import EventGridDataConnection
58+
from .data_connection_validation_list_result import DataConnectionValidationListResult
5759
from .cluster_check_name_request import ClusterCheckNameRequest
5860
from .database_check_name_request import DatabaseCheckNameRequest
5961
from .check_name_result import CheckNameResult
@@ -68,7 +70,7 @@
6870
from .azure_resource_sku_paged import AzureResourceSkuPaged
6971
from .database_paged import DatabasePaged
7072
from .database_principal_paged import DatabasePrincipalPaged
71-
from .event_hub_connection_paged import EventHubConnectionPaged
73+
from .data_connection_paged import DataConnectionPaged
7274
from .operation_paged import OperationPaged
7375
from .kusto_management_client_enums import (
7476
State,
@@ -86,18 +88,19 @@
8688
'AzureCapacity',
8789
'AzureResourceSku',
8890
'DatabaseStatistics',
89-
'EventHubConnectionValidation',
9091
'Cluster',
9192
'ClusterUpdate',
9293
'Database',
9394
'DatabaseUpdate',
9495
'DatabasePrincipal',
95-
'EventHubConnectionUpdate',
96-
'EventHubConnection',
97-
'EventHubConnectionValidationResult',
9896
'DatabasePrincipalListResult',
97+
'DataConnection',
98+
'DataConnectionValidationResult',
9999
'DatabasePrincipalListRequest',
100-
'EventHubConnectionValidationListResult',
100+
'DataConnectionValidation',
101+
'EventHubDataConnection',
102+
'EventGridDataConnection',
103+
'DataConnectionValidationListResult',
101104
'ClusterCheckNameRequest',
102105
'DatabaseCheckNameRequest',
103106
'CheckNameResult',
@@ -112,7 +115,7 @@
112115
'AzureResourceSkuPaged',
113116
'DatabasePaged',
114117
'DatabasePrincipalPaged',
115-
'EventHubConnectionPaged',
118+
'DataConnectionPaged',
116119
'OperationPaged',
117120
'State',
118121
'ProvisioningState',

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_capacity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class AzureCapacity(Model):
16-
"""AzureCapacity.
16+
"""Azure capacity definition.
1717
1818
All required parameters must be populated in order to send to Azure.
1919

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_capacity_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class AzureCapacity(Model):
16-
"""AzureCapacity.
16+
"""Azure capacity definition.
1717
1818
All required parameters must be populated in order to send to Azure.
1919

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_resource_sku.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class AzureResourceSku(Model):
16-
"""AzureResourceSku.
16+
"""Azure resource SKU definition.
1717
1818
:param resource_type: Resource Namespace and Type.
1919
:type resource_type: str

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_resource_sku_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class AzureResourceSku(Model):
16-
"""AzureResourceSku.
16+
"""Azure resource SKU definition.
1717
1818
:param resource_type: Resource Namespace and Type.
1919
:type resource_type: str

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414

1515
class AzureSku(Model):
16-
"""AzureSku.
16+
"""Azure SKU definition.
1717
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.
2020
2121
All required parameters must be populated in order to send to Azure.
2222
23-
:param name: Required. SKU name. Possible values include: 'KC8', 'KC16',
24-
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'
23+
:param name: Required. SKU name. Possible values include: 'D13_v2',
24+
'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
2525
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
2626
:param capacity: SKU capacity.
2727
:type capacity: int

azure-mgmt-kusto/azure/mgmt/kusto/models/azure_sku_py3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414

1515
class AzureSku(Model):
16-
"""AzureSku.
16+
"""Azure SKU definition.
1717
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.
2020
2121
All required parameters must be populated in order to send to Azure.
2222
23-
:param name: Required. SKU name. Possible values include: 'KC8', 'KC16',
24-
'KS8', 'KS16', 'D13_v2', 'D14_v2', 'L8', 'L16'
23+
:param name: Required. SKU name. Possible values include: 'D13_v2',
24+
'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
2525
:type name: str or ~azure.mgmt.kusto.models.AzureSkuName
2626
:param capacity: SKU capacity.
2727
:type capacity: int

azure-mgmt-kusto/azure/mgmt/kusto/models/check_name_result.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class CheckNameResult(Model):
16-
"""CheckNameResult.
16+
"""The result returned from a check name availability request.
1717
1818
:param name_available: Specifies a Boolean value that indicates if the
1919
name is available.

azure-mgmt-kusto/azure/mgmt/kusto/models/check_name_result_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class CheckNameResult(Model):
16-
"""CheckNameResult.
16+
"""The result returned from a check name availability request.
1717
1818
:param name_available: Specifies a Boolean value that indicates if the
1919
name is available.

azure-mgmt-kusto/azure/mgmt/kusto/models/cluster.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ class Cluster(TrackedResource):
3232
:type tags: dict[str, str]
3333
:param location: Required. The geo-location where the resource lives
3434
:type location: str
35-
:ivar etag: An ETag of the resource created.
36-
:vartype etag: str
3735
:param sku: Required. The SKU of the cluster.
3836
:type sku: ~azure.mgmt.kusto.models.AzureSku
3937
:ivar state: The state of the resource. Possible values include:
4038
'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping',
41-
'Stopped', 'Starting'
39+
'Stopped', 'Starting', 'Updating'
4240
:vartype state: str or ~azure.mgmt.kusto.models.State
4341
:ivar provisioning_state: The provisioned state of the resource. Possible
4442
values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
@@ -58,7 +56,6 @@ class Cluster(TrackedResource):
5856
'name': {'readonly': True},
5957
'type': {'readonly': True},
6058
'location': {'required': True},
61-
'etag': {'readonly': True},
6259
'sku': {'required': True},
6360
'state': {'readonly': True},
6461
'provisioning_state': {'readonly': True},
@@ -72,7 +69,6 @@ class Cluster(TrackedResource):
7269
'type': {'key': 'type', 'type': 'str'},
7370
'tags': {'key': 'tags', 'type': '{str}'},
7471
'location': {'key': 'location', 'type': 'str'},
75-
'etag': {'key': 'etag', 'type': 'str'},
7672
'sku': {'key': 'sku', 'type': 'AzureSku'},
7773
'state': {'key': 'properties.state', 'type': 'str'},
7874
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -83,7 +79,6 @@ class Cluster(TrackedResource):
8379

8480
def __init__(self, **kwargs):
8581
super(Cluster, self).__init__(**kwargs)
86-
self.etag = None
8782
self.sku = kwargs.get('sku', None)
8883
self.state = None
8984
self.provisioning_state = None

azure-mgmt-kusto/azure/mgmt/kusto/models/cluster_check_name_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class ClusterCheckNameRequest(Model):
16-
"""ClusterCheckNameRequest.
16+
"""The result returned from a cluster check name availability request.
1717
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.

azure-mgmt-kusto/azure/mgmt/kusto/models/cluster_check_name_request_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class ClusterCheckNameRequest(Model):
16-
"""ClusterCheckNameRequest.
16+
"""The result returned from a cluster check name availability request.
1717
1818
Variables are only populated by the server, and will be ignored when
1919
sending a request.

azure-mgmt-kusto/azure/mgmt/kusto/models/cluster_py3.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ class Cluster(TrackedResource):
3232
:type tags: dict[str, str]
3333
:param location: Required. The geo-location where the resource lives
3434
:type location: str
35-
:ivar etag: An ETag of the resource created.
36-
:vartype etag: str
3735
:param sku: Required. The SKU of the cluster.
3836
:type sku: ~azure.mgmt.kusto.models.AzureSku
3937
:ivar state: The state of the resource. Possible values include:
4038
'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', 'Stopping',
41-
'Stopped', 'Starting'
39+
'Stopped', 'Starting', 'Updating'
4240
:vartype state: str or ~azure.mgmt.kusto.models.State
4341
:ivar provisioning_state: The provisioned state of the resource. Possible
4442
values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
@@ -58,7 +56,6 @@ class Cluster(TrackedResource):
5856
'name': {'readonly': True},
5957
'type': {'readonly': True},
6058
'location': {'required': True},
61-
'etag': {'readonly': True},
6259
'sku': {'required': True},
6360
'state': {'readonly': True},
6461
'provisioning_state': {'readonly': True},
@@ -72,7 +69,6 @@ class Cluster(TrackedResource):
7269
'type': {'key': 'type', 'type': 'str'},
7370
'tags': {'key': 'tags', 'type': '{str}'},
7471
'location': {'key': 'location', 'type': 'str'},
75-
'etag': {'key': 'etag', 'type': 'str'},
7672
'sku': {'key': 'sku', 'type': 'AzureSku'},
7773
'state': {'key': 'properties.state', 'type': 'str'},
7874
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -83,7 +79,6 @@ class Cluster(TrackedResource):
8379

8480
def __init__(self, *, location: str, sku, tags=None, trusted_external_tenants=None, **kwargs) -> None:
8581
super(Cluster, self).__init__(tags=tags, location=location, **kwargs)
86-
self.etag = None
8782
self.sku = sku
8883
self.state = None
8984
self.provisioning_state = None

0 commit comments

Comments
 (0)