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

[AutoPR kusto] Enable swagger ci for azure-powershell #688

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 0 additions & 4 deletions src/kusto/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ Release History
0.1.0
++++++
* Initial release.

0.2.0
++++++
* Adding Engine v3 support and User-Assigned-Identity
2 changes: 1 addition & 1 deletion src/kusto/azext_kusto/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.11.0"
"azext.minCliCoreVersion": "2.15.0"
}
14 changes: 7 additions & 7 deletions src/kusto/azext_kusto/generated/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@

def cf_kusto_cl(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.kusto import KustoManagementClient
from azext_kusto.vendored_sdks.kusto import KustoManagementClient
return get_mgmt_service_client(cli_ctx,
KustoManagementClient)


def cf_cluster(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).cluster
return cf_kusto_cl(cli_ctx).clusters


def cf_cluster_principal_assignment(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).cluster_principal_assignment
return cf_kusto_cl(cli_ctx).cluster_principal_assignments


def cf_database(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).database
return cf_kusto_cl(cli_ctx).databases


def cf_database_principal_assignment(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).database_principal_assignment
return cf_kusto_cl(cli_ctx).database_principal_assignments


def cf_attached_database_configuration(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).attached_database_configuration
return cf_kusto_cl(cli_ctx).attached_database_configurations


def cf_data_connection(cli_ctx, *_):
return cf_kusto_cl(cli_ctx).data_connection
return cf_kusto_cl(cli_ctx).data_connections
58 changes: 33 additions & 25 deletions src/kusto/azext_kusto/generated/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@

helps['kusto cluster'] = """
type: group
short-summary: kusto cluster
short-summary: Manage cluster with kusto
"""

helps['kusto cluster list'] = """
type: command
short-summary: "Lists all Kusto clusters within a subscription."
short-summary: "Lists all Kusto clusters within a resource group. And Lists all Kusto clusters within a \
subscription."
examples:
- name: KustoClustersListByResourceGroup
text: |-
az kusto cluster list --resource-group "kustorptest"
- name: KustoClustersList
text: |-
az kusto cluster list
"""

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

helps['kusto cluster create'] = """
type: command
short-summary: "Create or update a Kusto cluster."
short-summary: "Create a Kusto cluster."
parameters:
- name: --sku
short-summary: "The SKU of the cluster."
Expand Down Expand Up @@ -84,8 +88,8 @@
examples:
- name: KustoClustersCreateOrUpdate
text: |-
az kusto cluster create --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \
"westus" --enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \
az kusto cluster create --name "kustoclusterrptest4" --type "SystemAssigned" --location "westus" \
--enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \
capacity=2 tier="Standard" --resource-group "kustorptest"
"""

Expand Down Expand Up @@ -138,9 +142,9 @@
examples:
- name: KustoClustersUpdate
text: |-
az kusto cluster update --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \
"westus" --enable-purge true --enable-streaming-ingest true --engine-type "V2" --key-vault-properties \
key-name="keyName" key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest"
az kusto cluster update --name "kustoclusterrptest4" --type "SystemAssigned" --location "westus" \
--enable-purge true --enable-streaming-ingest true --engine-type "V2" --key-vault-properties key-name="keyName" \
key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest"
"""

helps['kusto cluster delete'] = """
Expand Down Expand Up @@ -212,11 +216,15 @@

helps['kusto cluster list-sku'] = """
type: command
short-summary: "Lists eligible SKUs for Kusto resource provider."
short-summary: "Returns the SKUs available for the provided resource. And Lists eligible SKUs for Kusto resource \
provider."
examples:
- name: KustoClustersListResourceSkus
text: |-
az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest"
- name: KustoClustersListSkus
text: |-
az kusto cluster list-sku
"""

helps['kusto cluster remove-language-extension'] = """
Expand Down Expand Up @@ -273,7 +281,7 @@

helps['kusto cluster-principal-assignment'] = """
type: group
short-summary: kusto cluster-principal-assignment
short-summary: Manage cluster principal assignment with kusto
"""

helps['kusto cluster-principal-assignment list'] = """
Expand Down Expand Up @@ -309,7 +317,7 @@

helps['kusto cluster-principal-assignment update'] = """
type: command
short-summary: "Create a Kusto cluster principalAssignment."
short-summary: "Update a Kusto cluster principalAssignment."
"""

helps['kusto cluster-principal-assignment delete'] = """
Expand Down Expand Up @@ -346,7 +354,7 @@

helps['kusto database'] = """
type: group
short-summary: kusto database
short-summary: Manage database with kusto
"""

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

helps['kusto database create'] = """
type: command
short-summary: "Creates or updates a database."
short-summary: "Create a database."
parameters:
- name: --read-write-database
short-summary: "Class representing a read write database."
Expand Down Expand Up @@ -521,7 +529,7 @@

helps['kusto database-principal-assignment'] = """
type: group
short-summary: kusto database-principal-assignment
short-summary: Manage database principal assignment with kusto
"""

helps['kusto database-principal-assignment list'] = """
Expand Down Expand Up @@ -558,7 +566,7 @@

helps['kusto database-principal-assignment update'] = """
type: command
short-summary: "Creates a Kusto cluster database principalAssignment."
short-summary: "Update a Kusto cluster database principalAssignment."
"""

helps['kusto database-principal-assignment delete'] = """
Expand Down Expand Up @@ -595,7 +603,7 @@

helps['kusto attached-database-configuration'] = """
type: group
short-summary: kusto attached-database-configuration
short-summary: Manage attached database configuration with kusto
"""

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

helps['kusto attached-database-configuration create'] = """
type: command
short-summary: "Creates or updates an attached database configuration."
short-summary: "Create an attached database configuration."
examples:
- name: AttachedDatabaseConfigurationsCreateOrUpdate
text: |-
Expand All @@ -632,7 +640,7 @@

helps['kusto attached-database-configuration update'] = """
type: command
short-summary: "Creates or updates an attached database configuration."
short-summary: "Update an attached database configuration."
"""

helps['kusto attached-database-configuration delete'] = """
Expand Down Expand Up @@ -669,7 +677,7 @@

helps['kusto data-connection'] = """
type: group
short-summary: kusto data-connection
short-summary: Manage data connection with kusto
"""

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

helps['kusto data-connection event-grid'] = """
type: group
short-summary: kusto data-connection sub group event-grid
short-summary: Manage data connection with kusto sub group event-grid
"""

helps['kusto data-connection event-grid create'] = """
type: command
short-summary: "Creates or updates a data connection."
short-summary: "Create a data connection."
"""

helps['kusto data-connection event-hub'] = """
type: group
short-summary: kusto data-connection sub group event-hub
short-summary: Manage data connection with kusto sub group event-hub
"""

helps['kusto data-connection event-hub create'] = """
type: command
short-summary: "Creates or updates a data connection."
short-summary: "Create a data connection."
examples:
- name: KustoDataConnectionsCreateOrUpdate
text: |-
Expand All @@ -721,12 +729,12 @@

helps['kusto data-connection iot-hub'] = """
type: group
short-summary: kusto data-connection sub group iot-hub
short-summary: Manage data connection with kusto sub group iot-hub
"""

helps['kusto data-connection iot-hub create'] = """
type: command
short-summary: "Creates or updates a data connection."
short-summary: "Create a data connection."
"""

helps['kusto data-connection event-grid update'] = """
Expand Down
Loading