Skip to content

Commit

Permalink
CodeGen from PR 13306 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge e170dfee8e000b875dcb7dc6f13270e1efdc078b into e10fd5f
  • Loading branch information
SDKAuto committed Mar 22, 2021
1 parent 58c46ee commit 305ee51
Show file tree
Hide file tree
Showing 30 changed files with 2,379 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-09-18"
self.api_version = "2021-01-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-kusto/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,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 @@ -39,12 +41,16 @@ class KustoManagementClient(object):
:vartype databases: azure.mgmt.kusto.operations.DatabasesOperations
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
:vartype database_principal_assignments: azure.mgmt.kusto.operations.DatabasePrincipalAssignmentsOperations
:ivar scripts: ScriptsOperations operations
:vartype scripts: azure.mgmt.kusto.operations.ScriptsOperations
:ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations
:vartype attached_database_configurations: azure.mgmt.kusto.operations.AttachedDatabaseConfigurationsOperations
:ivar data_connections: DataConnectionsOperations operations
:vartype data_connections: azure.mgmt.kusto.operations.DataConnectionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.kusto.operations.Operations
:ivar operations_results: OperationsResultsOperations operations
:vartype operations_results: azure.mgmt.kusto.operations.OperationsResultsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -78,12 +84,16 @@ 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)

def close(self):
# type: () -> None
Expand Down
8 changes: 5 additions & 3 deletions sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2020-09-18",
"total_api_version_list": ["2020-09-18"],
"chosen_version": "2021-01-01",
"total_api_version_list": ["2021-01-01"],
"client": {
"name": "KustoManagementClient",
"filename": "_kusto_management_client",
Expand Down Expand Up @@ -56,9 +56,11 @@
"cluster_principal_assignments": "ClusterPrincipalAssignmentsOperations",
"databases": "DatabasesOperations",
"database_principal_assignments": "DatabasePrincipalAssignmentsOperations",
"scripts": "ScriptsOperations",
"attached_database_configurations": "AttachedDatabaseConfigurationsOperations",
"data_connections": "DataConnectionsOperations",
"operations": "Operations"
"operations": "Operations",
"operations_results": "OperationsResultsOperations"
},
"operation_mixins": {
},
Expand Down
2 changes: 1 addition & 1 deletion sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "0.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-09-18"
self.api_version = "2021-01-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-kusto/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,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(object):
:vartype databases: azure.mgmt.kusto.aio.operations.DatabasesOperations
:ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations
:vartype database_principal_assignments: azure.mgmt.kusto.aio.operations.DatabasePrincipalAssignmentsOperations
:ivar scripts: ScriptsOperations operations
:vartype scripts: azure.mgmt.kusto.aio.operations.ScriptsOperations
:ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations
:vartype attached_database_configurations: azure.mgmt.kusto.aio.operations.AttachedDatabaseConfigurationsOperations
:ivar data_connections: DataConnectionsOperations operations
:vartype data_connections: azure.mgmt.kusto.aio.operations.DataConnectionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.kusto.aio.operations.Operations
:ivar operations_results: OperationsResultsOperations operations
:vartype operations_results: azure.mgmt.kusto.aio.operations.OperationsResultsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Expand Down Expand Up @@ -75,12 +81,16 @@ 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)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@
from ._cluster_principal_assignments_operations import ClusterPrincipalAssignmentsOperations
from ._databases_operations import DatabasesOperations
from ._database_principal_assignments_operations import DatabasePrincipalAssignmentsOperations
from ._scripts_operations import ScriptsOperations
from ._attached_database_configurations_operations import AttachedDatabaseConfigurationsOperations
from ._data_connections_operations import DataConnectionsOperations
from ._operations import Operations
from ._operations_results_operations import OperationsResultsOperations

__all__ = [
'ClustersOperations',
'ClusterPrincipalAssignmentsOperations',
'DatabasesOperations',
'DatabasePrincipalAssignmentsOperations',
'ScriptsOperations',
'AttachedDatabaseConfigurationsOperations',
'DataConnectionsOperations',
'Operations',
'OperationsResultsOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def list_by_cluster(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -142,7 +142,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -192,7 +192,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -329,7 +329,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def check_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -134,7 +134,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -184,7 +184,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -319,7 +319,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -444,7 +444,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2020-09-18"
api_version = "2021-01-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading

0 comments on commit 305ee51

Please sign in to comment.