Skip to content

Commit 9d40f0b

Browse files
author
SDKAuto
committed
CodeGen from PR 13166 in Azure/azure-rest-api-specs
Merge b353336f78b47a9a9d83765d68a6b9b87ea76f95 into 89f00c2
1 parent 0d16cef commit 9d40f0b

Some content is hidden

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

42 files changed

+2631
-2378
lines changed

src/kusto/HISTORY.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ Release History
66
0.1.0
77
++++++
88
* Initial release.
9-
10-
0.2.0
11-
++++++
12-
* Adding Engine v3 support and User-Assigned-Identity
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"azext.isExperimental": true,
3-
"azext.minCliCoreVersion": "2.11.0"
3+
"azext.minCliCoreVersion": "2.15.0"
44
}

src/kusto/azext_kusto/generated/_client_factory.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@
1111

1212
def cf_kusto_cl(cli_ctx, *_):
1313
from azure.cli.core.commands.client_factory import get_mgmt_service_client
14-
from ..vendored_sdks.kusto import KustoManagementClient
14+
from azext_kusto.vendored_sdks.kusto import KustoManagementClient
1515
return get_mgmt_service_client(cli_ctx,
1616
KustoManagementClient)
1717

1818

1919
def cf_cluster(cli_ctx, *_):
20-
return cf_kusto_cl(cli_ctx).cluster
20+
return cf_kusto_cl(cli_ctx).clusters
2121

2222

2323
def cf_cluster_principal_assignment(cli_ctx, *_):
24-
return cf_kusto_cl(cli_ctx).cluster_principal_assignment
24+
return cf_kusto_cl(cli_ctx).cluster_principal_assignments
2525

2626

2727
def cf_database(cli_ctx, *_):
28-
return cf_kusto_cl(cli_ctx).database
28+
return cf_kusto_cl(cli_ctx).databases
2929

3030

3131
def cf_database_principal_assignment(cli_ctx, *_):
32-
return cf_kusto_cl(cli_ctx).database_principal_assignment
32+
return cf_kusto_cl(cli_ctx).database_principal_assignments
3333

3434

3535
def cf_attached_database_configuration(cli_ctx, *_):
36-
return cf_kusto_cl(cli_ctx).attached_database_configuration
36+
return cf_kusto_cl(cli_ctx).attached_database_configurations
3737

3838

3939
def cf_data_connection(cli_ctx, *_):
40-
return cf_kusto_cl(cli_ctx).data_connection
40+
return cf_kusto_cl(cli_ctx).data_connections

src/kusto/azext_kusto/generated/_help.py

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@
1414

1515
helps['kusto cluster'] = """
1616
type: group
17-
short-summary: kusto cluster
17+
short-summary: Manage cluster with kusto
1818
"""
1919

2020
helps['kusto cluster list'] = """
2121
type: command
22-
short-summary: "Lists all Kusto clusters within a subscription."
22+
short-summary: "Lists all Kusto clusters within a resource group. And Lists all Kusto clusters within a \
23+
subscription."
2324
examples:
2425
- name: KustoClustersListByResourceGroup
2526
text: |-
2627
az kusto cluster list --resource-group "kustorptest"
28+
- name: KustoClustersList
29+
text: |-
30+
az kusto cluster list
2731
"""
2832

2933
helps['kusto cluster show'] = """
@@ -37,7 +41,7 @@
3741

3842
helps['kusto cluster create'] = """
3943
type: command
40-
short-summary: "Create or update a Kusto cluster."
44+
short-summary: "Create a Kusto cluster."
4145
parameters:
4246
- name: --sku
4347
short-summary: "The SKU of the cluster."
@@ -84,8 +88,8 @@
8488
examples:
8589
- name: KustoClustersCreateOrUpdate
8690
text: |-
87-
az kusto cluster create --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \
88-
"westus" --enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \
91+
az kusto cluster create --name "kustoclusterrptest4" --type "SystemAssigned" --location "westus" \
92+
--enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \
8993
capacity=2 tier="Standard" --resource-group "kustorptest"
9094
"""
9195

@@ -138,9 +142,9 @@
138142
examples:
139143
- name: KustoClustersUpdate
140144
text: |-
141-
az kusto cluster update --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \
142-
"westus" --enable-purge true --enable-streaming-ingest true --engine-type "V2" --key-vault-properties \
143-
key-name="keyName" key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest"
145+
az kusto cluster update --name "kustoclusterrptest4" --type "SystemAssigned" --location "westus" \
146+
--enable-purge true --enable-streaming-ingest true --engine-type "V2" --key-vault-properties key-name="keyName" \
147+
key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest"
144148
"""
145149

146150
helps['kusto cluster delete'] = """
@@ -212,11 +216,15 @@
212216

213217
helps['kusto cluster list-sku'] = """
214218
type: command
215-
short-summary: "Lists eligible SKUs for Kusto resource provider."
219+
short-summary: "Returns the SKUs available for the provided resource. And Lists eligible SKUs for Kusto resource \
220+
provider."
216221
examples:
217222
- name: KustoClustersListResourceSkus
218223
text: |-
219224
az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest"
225+
- name: KustoClustersListSkus
226+
text: |-
227+
az kusto cluster list-sku
220228
"""
221229

222230
helps['kusto cluster remove-language-extension'] = """
@@ -273,7 +281,7 @@
273281

274282
helps['kusto cluster-principal-assignment'] = """
275283
type: group
276-
short-summary: kusto cluster-principal-assignment
284+
short-summary: Manage cluster principal assignment with kusto
277285
"""
278286

279287
helps['kusto cluster-principal-assignment list'] = """
@@ -309,7 +317,7 @@
309317

310318
helps['kusto cluster-principal-assignment update'] = """
311319
type: command
312-
short-summary: "Create a Kusto cluster principalAssignment."
320+
short-summary: "Update a Kusto cluster principalAssignment."
313321
"""
314322

315323
helps['kusto cluster-principal-assignment delete'] = """
@@ -346,7 +354,7 @@
346354

347355
helps['kusto database'] = """
348356
type: group
349-
short-summary: kusto database
357+
short-summary: Manage database with kusto
350358
"""
351359

352360
helps['kusto database list'] = """
@@ -370,7 +378,7 @@
370378

371379
helps['kusto database create'] = """
372380
type: command
373-
short-summary: "Creates or updates a database."
381+
short-summary: "Create a database."
374382
parameters:
375383
- name: --read-write-database
376384
short-summary: "Class representing a read write database."
@@ -521,7 +529,7 @@
521529

522530
helps['kusto database-principal-assignment'] = """
523531
type: group
524-
short-summary: kusto database-principal-assignment
532+
short-summary: Manage database principal assignment with kusto
525533
"""
526534

527535
helps['kusto database-principal-assignment list'] = """
@@ -558,7 +566,7 @@
558566

559567
helps['kusto database-principal-assignment update'] = """
560568
type: command
561-
short-summary: "Creates a Kusto cluster database principalAssignment."
569+
short-summary: "Update a Kusto cluster database principalAssignment."
562570
"""
563571

564572
helps['kusto database-principal-assignment delete'] = """
@@ -595,7 +603,7 @@
595603

596604
helps['kusto attached-database-configuration'] = """
597605
type: group
598-
short-summary: kusto attached-database-configuration
606+
short-summary: Manage attached database configuration with kusto
599607
"""
600608

601609
helps['kusto attached-database-configuration list'] = """
@@ -620,7 +628,7 @@
620628

621629
helps['kusto attached-database-configuration create'] = """
622630
type: command
623-
short-summary: "Creates or updates an attached database configuration."
631+
short-summary: "Create an attached database configuration."
624632
examples:
625633
- name: AttachedDatabaseConfigurationsCreateOrUpdate
626634
text: |-
@@ -632,7 +640,7 @@
632640

633641
helps['kusto attached-database-configuration update'] = """
634642
type: command
635-
short-summary: "Creates or updates an attached database configuration."
643+
short-summary: "Update an attached database configuration."
636644
"""
637645

638646
helps['kusto attached-database-configuration delete'] = """
@@ -669,7 +677,7 @@
669677

670678
helps['kusto data-connection'] = """
671679
type: group
672-
short-summary: kusto data-connection
680+
short-summary: Manage data connection with kusto
673681
"""
674682

675683
helps['kusto data-connection list'] = """
@@ -694,22 +702,22 @@
694702

695703
helps['kusto data-connection event-grid'] = """
696704
type: group
697-
short-summary: kusto data-connection sub group event-grid
705+
short-summary: Manage data connection with kusto sub group event-grid
698706
"""
699707

700708
helps['kusto data-connection event-grid create'] = """
701709
type: command
702-
short-summary: "Creates or updates a data connection."
710+
short-summary: "Create a data connection."
703711
"""
704712

705713
helps['kusto data-connection event-hub'] = """
706714
type: group
707-
short-summary: kusto data-connection sub group event-hub
715+
short-summary: Manage data connection with kusto sub group event-hub
708716
"""
709717

710718
helps['kusto data-connection event-hub create'] = """
711719
type: command
712-
short-summary: "Creates or updates a data connection."
720+
short-summary: "Create a data connection."
713721
examples:
714722
- name: KustoDataConnectionsCreateOrUpdate
715723
text: |-
@@ -721,12 +729,12 @@
721729

722730
helps['kusto data-connection iot-hub'] = """
723731
type: group
724-
short-summary: kusto data-connection sub group iot-hub
732+
short-summary: Manage data connection with kusto sub group iot-hub
725733
"""
726734

727735
helps['kusto data-connection iot-hub create'] = """
728736
type: command
729-
short-summary: "Creates or updates a data connection."
737+
short-summary: "Create a data connection."
730738
"""
731739

732740
helps['kusto data-connection event-grid update'] = """

0 commit comments

Comments
 (0)