Skip to content

Commit 211bc96

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] azure-kusto/resource-manager (#3391)
* [AutoPR azure-kusto/resource-manager] Kusto: Added more features such as: database operations, check cluste… (#3380) * Generated from 35fbdcbfa9cd33cc087f79a82d53437ef73ccebb readme file syntax fixes * Generated from 5ecff7e5eecd7a1840007d132d109bcc51850407 fixed ListSkusByResource operation id * Generated from 9829f1641cc48ab6e8a500df5f783bc98f0644c8 change "capacity" value in examples from null to 2 * Packaging update of azure-mgmt-kusto * 0.2.0
1 parent 17f3d57 commit 211bc96

File tree

57 files changed

+3135
-53
lines changed

Some content is hidden

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

57 files changed

+3135
-53
lines changed

azure-mgmt-kusto/HISTORY.rst

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

6+
0.2.0 (2018-11-27)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model Cluster has a new parameter uri
12+
- Model Cluster has a new parameter state
13+
- Model Cluster has a new parameter data_ingestion_uri
14+
- Model Cluster has a new parameter trusted_external_tenants
15+
- Model DatabaseUpdate has a new parameter etag
16+
- Model DatabaseUpdate has a new parameter statistics
17+
- Model DatabaseUpdate has a new parameter hot_cache_period_in_days
18+
- Model Database has a new parameter statistics
19+
- Model Database has a new parameter hot_cache_period_in_days
20+
- Model ClusterUpdate has a new parameter uri
21+
- Model ClusterUpdate has a new parameter etag
22+
- Model ClusterUpdate has a new parameter state
23+
- Model ClusterUpdate has a new parameter sku
24+
- Model ClusterUpdate has a new parameter tags
25+
- Model ClusterUpdate has a new parameter data_ingestion_uri
26+
- Model ClusterUpdate has a new parameter trusted_external_tenants
27+
- Added operation DatabasesOperations.list_principals
28+
- Added operation DatabasesOperations.check_name_availability
29+
- Added operation DatabasesOperations.add_principals
30+
- Added operation DatabasesOperations.remove_principals
31+
- Added operation ClustersOperations.list_skus
32+
- Added operation ClustersOperations.list_skus_by_resource
33+
- Added operation ClustersOperations.start
34+
- Added operation ClustersOperations.check_name_availability
35+
- Added operation ClustersOperations.stop
36+
- Added operation group EventHubConnectionsOperations
37+
38+
**Breaking changes**
39+
40+
- Operation DatabasesOperations.update has a new signature
41+
- Operation ClustersOperations.update has a new signature
42+
- Operation DatabasesOperations.update has a new signature
43+
- Operation ClustersOperations.create_or_update has a new signature
44+
- Model Cluster has a new required parameter sku
45+
646
0.1.0 (2018-08-09)
747
++++++++++++++++++
848

azure-mgmt-kusto/MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
4+

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +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
1819
from .operations.operations import Operations
1920
from . import models
2021

@@ -63,6 +64,8 @@ class KustoManagementClient(SDKClient):
6364
:vartype clusters: azure.mgmt.kusto.operations.ClustersOperations
6465
:ivar databases: Databases operations
6566
:vartype databases: azure.mgmt.kusto.operations.DatabasesOperations
67+
:ivar event_hub_connections: EventHubConnections operations
68+
:vartype event_hub_connections: azure.mgmt.kusto.operations.EventHubConnectionsOperations
6669
:ivar operations: Operations operations
6770
:vartype operations: azure.mgmt.kusto.operations.Operations
6871
@@ -83,13 +86,15 @@ def __init__(
8386
super(KustoManagementClient, self).__init__(self.config.credentials, self.config)
8487

8588
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
86-
self.api_version = '2017-09-07-privatepreview'
89+
self.api_version = '2018-09-07-preview'
8790
self._serialize = Serializer(client_models)
8891
self._deserialize = Deserializer(client_models)
8992

9093
self.clusters = ClustersOperations(
9194
self._client, self.config, self._serialize, self._deserialize)
9295
self.databases = DatabasesOperations(
9396
self._client, self.config, self._serialize, self._deserialize)
97+
self.event_hub_connections = EventHubConnectionsOperations(
98+
self._client, self.config, self._serialize, self._deserialize)
9499
self.operations = Operations(
95100
self._client, self.config, self._serialize, self._deserialize)

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

+71-3
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,115 @@
1010
# --------------------------------------------------------------------------
1111

1212
try:
13+
from .trusted_external_tenant_py3 import TrustedExternalTenant
14+
from .azure_sku_py3 import AzureSku
15+
from .azure_capacity_py3 import AzureCapacity
16+
from .azure_resource_sku_py3 import AzureResourceSku
17+
from .database_statistics_py3 import DatabaseStatistics
18+
from .event_hub_connection_validation_py3 import EventHubConnectionValidation
1319
from .cluster_py3 import Cluster
1420
from .cluster_update_py3 import ClusterUpdate
1521
from .database_py3 import Database
1622
from .database_update_py3 import DatabaseUpdate
23+
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
27+
from .database_principal_list_result_py3 import DatabasePrincipalListResult
28+
from .database_principal_list_request_py3 import DatabasePrincipalListRequest
29+
from .event_hub_connection_validation_list_result_py3 import EventHubConnectionValidationListResult
30+
from .cluster_check_name_request_py3 import ClusterCheckNameRequest
31+
from .database_check_name_request_py3 import DatabaseCheckNameRequest
32+
from .check_name_result_py3 import CheckNameResult
1733
from .operation_display_py3 import OperationDisplay
1834
from .operation_py3 import Operation
19-
from .proxy_resource_py3 import ProxyResource
2035
from .tracked_resource_py3 import TrackedResource
2136
from .azure_entity_resource_py3 import AzureEntityResource
2237
from .resource_py3 import Resource
38+
from .proxy_resource_py3 import ProxyResource
2339
except (SyntaxError, ImportError):
40+
from .trusted_external_tenant import TrustedExternalTenant
41+
from .azure_sku import AzureSku
42+
from .azure_capacity import AzureCapacity
43+
from .azure_resource_sku import AzureResourceSku
44+
from .database_statistics import DatabaseStatistics
45+
from .event_hub_connection_validation import EventHubConnectionValidation
2446
from .cluster import Cluster
2547
from .cluster_update import ClusterUpdate
2648
from .database import Database
2749
from .database_update import DatabaseUpdate
50+
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
54+
from .database_principal_list_result import DatabasePrincipalListResult
55+
from .database_principal_list_request import DatabasePrincipalListRequest
56+
from .event_hub_connection_validation_list_result import EventHubConnectionValidationListResult
57+
from .cluster_check_name_request import ClusterCheckNameRequest
58+
from .database_check_name_request import DatabaseCheckNameRequest
59+
from .check_name_result import CheckNameResult
2860
from .operation_display import OperationDisplay
2961
from .operation import Operation
30-
from .proxy_resource import ProxyResource
3162
from .tracked_resource import TrackedResource
3263
from .azure_entity_resource import AzureEntityResource
3364
from .resource import Resource
65+
from .proxy_resource import ProxyResource
3466
from .cluster_paged import ClusterPaged
67+
from .azure_sku_paged import AzureSkuPaged
68+
from .azure_resource_sku_paged import AzureResourceSkuPaged
3569
from .database_paged import DatabasePaged
70+
from .database_principal_paged import DatabasePrincipalPaged
71+
from .event_hub_connection_paged import EventHubConnectionPaged
3672
from .operation_paged import OperationPaged
3773
from .kusto_management_client_enums import (
74+
State,
3875
ProvisioningState,
76+
AzureSkuName,
77+
AzureScaleType,
78+
DataFormat,
79+
DatabasePrincipalRole,
80+
DatabasePrincipalType,
3981
)
4082

4183
__all__ = [
84+
'TrustedExternalTenant',
85+
'AzureSku',
86+
'AzureCapacity',
87+
'AzureResourceSku',
88+
'DatabaseStatistics',
89+
'EventHubConnectionValidation',
4290
'Cluster',
4391
'ClusterUpdate',
4492
'Database',
4593
'DatabaseUpdate',
94+
'DatabasePrincipal',
95+
'EventHubConnectionUpdate',
96+
'EventHubConnection',
97+
'EventHubConnectionValidationResult',
98+
'DatabasePrincipalListResult',
99+
'DatabasePrincipalListRequest',
100+
'EventHubConnectionValidationListResult',
101+
'ClusterCheckNameRequest',
102+
'DatabaseCheckNameRequest',
103+
'CheckNameResult',
46104
'OperationDisplay',
47105
'Operation',
48-
'ProxyResource',
49106
'TrackedResource',
50107
'AzureEntityResource',
51108
'Resource',
109+
'ProxyResource',
52110
'ClusterPaged',
111+
'AzureSkuPaged',
112+
'AzureResourceSkuPaged',
53113
'DatabasePaged',
114+
'DatabasePrincipalPaged',
115+
'EventHubConnectionPaged',
54116
'OperationPaged',
117+
'State',
55118
'ProvisioningState',
119+
'AzureSkuName',
120+
'AzureScaleType',
121+
'DataFormat',
122+
'DatabasePrincipalRole',
123+
'DatabasePrincipalType',
56124
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AzureCapacity(Model):
16+
"""AzureCapacity.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param scale_type: Required. Scale type. Possible values include:
21+
'automatic', 'manual', 'none'
22+
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType
23+
:param minimum: Required. Minimum allowed capacity.
24+
:type minimum: int
25+
:param maximum: Required. Maximum allowed capacity.
26+
:type maximum: int
27+
:param default: Required. The default capacity that would be used.
28+
:type default: int
29+
"""
30+
31+
_validation = {
32+
'scale_type': {'required': True},
33+
'minimum': {'required': True},
34+
'maximum': {'required': True},
35+
'default': {'required': True},
36+
}
37+
38+
_attribute_map = {
39+
'scale_type': {'key': 'scaleType', 'type': 'str'},
40+
'minimum': {'key': 'minimum', 'type': 'int'},
41+
'maximum': {'key': 'maximum', 'type': 'int'},
42+
'default': {'key': 'default', 'type': 'int'},
43+
}
44+
45+
def __init__(self, **kwargs):
46+
super(AzureCapacity, self).__init__(**kwargs)
47+
self.scale_type = kwargs.get('scale_type', None)
48+
self.minimum = kwargs.get('minimum', None)
49+
self.maximum = kwargs.get('maximum', None)
50+
self.default = kwargs.get('default', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AzureCapacity(Model):
16+
"""AzureCapacity.
17+
18+
All required parameters must be populated in order to send to Azure.
19+
20+
:param scale_type: Required. Scale type. Possible values include:
21+
'automatic', 'manual', 'none'
22+
:type scale_type: str or ~azure.mgmt.kusto.models.AzureScaleType
23+
:param minimum: Required. Minimum allowed capacity.
24+
:type minimum: int
25+
:param maximum: Required. Maximum allowed capacity.
26+
:type maximum: int
27+
:param default: Required. The default capacity that would be used.
28+
:type default: int
29+
"""
30+
31+
_validation = {
32+
'scale_type': {'required': True},
33+
'minimum': {'required': True},
34+
'maximum': {'required': True},
35+
'default': {'required': True},
36+
}
37+
38+
_attribute_map = {
39+
'scale_type': {'key': 'scaleType', 'type': 'str'},
40+
'minimum': {'key': 'minimum', 'type': 'int'},
41+
'maximum': {'key': 'maximum', 'type': 'int'},
42+
'default': {'key': 'default', 'type': 'int'},
43+
}
44+
45+
def __init__(self, *, scale_type, minimum: int, maximum: int, default: int, **kwargs) -> None:
46+
super(AzureCapacity, self).__init__(**kwargs)
47+
self.scale_type = scale_type
48+
self.minimum = minimum
49+
self.maximum = maximum
50+
self.default = default
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AzureResourceSku(Model):
16+
"""AzureResourceSku.
17+
18+
:param resource_type: Resource Namespace and Type.
19+
:type resource_type: str
20+
:param sku: The SKU details.
21+
:type sku: ~azure.mgmt.kusto.models.AzureSku
22+
:param capacity: The SKU capacity.
23+
:type capacity: ~azure.mgmt.kusto.models.AzureCapacity
24+
"""
25+
26+
_attribute_map = {
27+
'resource_type': {'key': 'resourceType', 'type': 'str'},
28+
'sku': {'key': 'sku', 'type': 'AzureSku'},
29+
'capacity': {'key': 'capacity', 'type': 'AzureCapacity'},
30+
}
31+
32+
def __init__(self, **kwargs):
33+
super(AzureResourceSku, self).__init__(**kwargs)
34+
self.resource_type = kwargs.get('resource_type', None)
35+
self.sku = kwargs.get('sku', None)
36+
self.capacity = kwargs.get('capacity', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.paging import Paged
13+
14+
15+
class AzureResourceSkuPaged(Paged):
16+
"""
17+
A paging container for iterating over a list of :class:`AzureResourceSku <azure.mgmt.kusto.models.AzureResourceSku>` object
18+
"""
19+
20+
_attribute_map = {
21+
'next_link': {'key': 'nextLink', 'type': 'str'},
22+
'current_page': {'key': 'value', 'type': '[AzureResourceSku]'}
23+
}
24+
25+
def __init__(self, *args, **kwargs):
26+
27+
super(AzureResourceSkuPaged, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)