Skip to content
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

[AutoRelease] t1-kusto-2021-04-26-32969 #18296

Merged
merged 4 commits into from
Apr 29, 2021
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
15 changes: 15 additions & 0 deletions sdk/kusto/azure-mgmt-kusto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Release History

## 0.11.0 (2021-04-26)

**Features**

- Model AttachedDatabaseConfiguration has a new parameter table_level_sharing_properties
- Model Cluster has a new parameter etag
- Model EventHubDataConnection has a new parameter managed_identity_resource_id
- Added operation group ScriptsOperations
- Added operation group OperationsResultsOperations

**Breaking changes**

- Operation ClustersOperations.update has a new signature
- Operation ClustersOperations.create_or_update has a new signature

## 0.10.0 (2020-10-23)

**Features**
Expand Down
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 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/kusto/azure-mgmt-kusto/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "a582c2ee04394bf87fa02c562a1a526d83424b27",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azure-kusto/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/azure-kusto/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
from .operations import ClusterPrincipalAssignmentsOperations
from .operations import DatabasesOperations
from .operations import DatabasePrincipalAssignmentsOperations
from .operations import ScriptsOperations
from .operations import AttachedDatabaseConfigurationsOperations
from .operations import DataConnectionsOperations
from .operations import Operations
from .operations import OperationsResultsOperations
from . import models


Expand All @@ -37,12 +39,16 @@ class KustoManagementClient(SDKClient):
:vartype databases: azure.mgmt.kusto.operations.DatabasesOperations
:ivar database_principal_assignments: DatabasePrincipalAssignments operations
:vartype database_principal_assignments: azure.mgmt.kusto.operations.DatabasePrincipalAssignmentsOperations
:ivar scripts: Scripts operations
:vartype scripts: azure.mgmt.kusto.operations.ScriptsOperations
:ivar attached_database_configurations: AttachedDatabaseConfigurations operations
:vartype attached_database_configurations: azure.mgmt.kusto.operations.AttachedDatabaseConfigurationsOperations
:ivar data_connections: DataConnections operations
:vartype data_connections: azure.mgmt.kusto.operations.DataConnectionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.kusto.operations.Operations
:ivar operations_results: OperationsResults operations
:vartype operations_results: azure.mgmt.kusto.operations.OperationsResultsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -61,7 +67,7 @@ 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 = '2020-09-18'
self.api_version = '2021-01-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -73,9 +79,13 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.database_principal_assignments = DatabasePrincipalAssignmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.scripts = ScriptsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.attached_database_configurations = AttachedDatabaseConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.data_connections = DataConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.operations_results = OperationsResultsOperations(
self._client, self.config, self._serialize, self._deserialize)
21 changes: 21 additions & 0 deletions sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@
from ._models_py3 import LanguageExtensionsList
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationResult
from ._models_py3 import OptimizedAutoscale
from ._models_py3 import ProxyResource
from ._models_py3 import ReadOnlyFollowingDatabase
from ._models_py3 import ReadWriteDatabase
from ._models_py3 import Resource
from ._models_py3 import Script
from ._models_py3 import ScriptCheckNameRequest
from ._models_py3 import SkuDescription
from ._models_py3 import SkuLocationInfoItem
from ._models_py3 import SystemData
from ._models_py3 import TableLevelSharingProperties
from ._models_py3 import TrackedResource
from ._models_py3 import TrustedExternalTenant
from ._models_py3 import VirtualNetworkConfiguration
Expand Down Expand Up @@ -93,13 +98,18 @@
from ._models import LanguageExtensionsList
from ._models import Operation
from ._models import OperationDisplay
from ._models import OperationResult
from ._models import OptimizedAutoscale
from ._models import ProxyResource
from ._models import ReadOnlyFollowingDatabase
from ._models import ReadWriteDatabase
from ._models import Resource
from ._models import Script
from ._models import ScriptCheckNameRequest
from ._models import SkuDescription
from ._models import SkuLocationInfoItem
from ._models import SystemData
from ._models import TableLevelSharingProperties
from ._models import TrackedResource
from ._models import TrustedExternalTenant
from ._models import VirtualNetworkConfiguration
Expand All @@ -114,6 +124,7 @@
from ._paged_models import FollowerDatabaseDefinitionPaged
from ._paged_models import LanguageExtensionPaged
from ._paged_models import OperationPaged
from ._paged_models import ScriptPaged
from ._paged_models import SkuDescriptionPaged
from ._kusto_management_client_enums import (
State,
Expand All @@ -135,8 +146,10 @@
DatabasePrincipalType,
PrincipalType,
ClusterPrincipalRole,
CreatedByType,
Type,
Reason,
Status,
)

__all__ = [
Expand Down Expand Up @@ -176,13 +189,18 @@
'LanguageExtensionsList',
'Operation',
'OperationDisplay',
'OperationResult',
'OptimizedAutoscale',
'ProxyResource',
'ReadOnlyFollowingDatabase',
'ReadWriteDatabase',
'Resource',
'Script',
'ScriptCheckNameRequest',
'SkuDescription',
'SkuLocationInfoItem',
'SystemData',
'TableLevelSharingProperties',
'TrackedResource',
'TrustedExternalTenant',
'VirtualNetworkConfiguration',
Expand All @@ -195,6 +213,7 @@
'DatabasePaged',
'DatabasePrincipalPaged',
'DatabasePrincipalAssignmentPaged',
'ScriptPaged',
'AttachedDatabaseConfigurationPaged',
'DataConnectionPaged',
'OperationPaged',
Expand All @@ -217,6 +236,8 @@
'DatabasePrincipalType',
'PrincipalType',
'ClusterPrincipalRole',
'CreatedByType',
'Type',
'Reason',
'Status',
]
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ class AzureSkuName(str, Enum):
standard_d14_v2 = "Standard_D14_v2"
standard_l8s = "Standard_L8s"
standard_l16s = "Standard_L16s"
standard_l8s_v2 = "Standard_L8s_v2"
standard_l16s_v2 = "Standard_L16s_v2"
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"
standard_e64i_v3 = "Standard_E64i_v3"
standard_e80ids_v4 = "Standard_E80ids_v4"
standard_e2a_v4 = "Standard_E2a_v4"
standard_e4a_v4 = "Standard_E4a_v4"
standard_e8a_v4 = "Standard_E8a_v4"
Expand Down Expand Up @@ -186,7 +189,7 @@ class DatabasePrincipalRole(str, Enum):
ingestor = "Ingestor"
monitor = "Monitor"
user = "User"
unrestricted_viewers = "UnrestrictedViewers"
unrestricted_viewer = "UnrestrictedViewer"
viewer = "Viewer"


Expand All @@ -210,6 +213,14 @@ class ClusterPrincipalRole(str, Enum):
all_databases_viewer = "AllDatabasesViewer"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class Type(str, Enum):

microsoft_kustoclustersdatabases = "Microsoft.Kusto/clusters/databases"
Expand All @@ -220,3 +231,11 @@ class Reason(str, Enum):

invalid = "Invalid"
already_exists = "AlreadyExists"


class Status(str, Enum):

succeeded = "Succeeded"
canceled = "Canceled"
failed = "Failed"
running = "Running"
Loading