diff --git a/profiles/latest/kusto/mgmt/kusto/models.go b/profiles/latest/kusto/mgmt/kusto/models.go index 61c643786dc6..a7b6a893d009 100644 --- a/profiles/latest/kusto/mgmt/kusto/models.go +++ b/profiles/latest/kusto/mgmt/kusto/models.go @@ -40,13 +40,17 @@ const ( type AzureSkuName = original.AzureSkuName const ( - D11V2 AzureSkuName = original.D11V2 - D12V2 AzureSkuName = original.D12V2 - D13V2 AzureSkuName = original.D13V2 - D14V2 AzureSkuName = original.D14V2 - L16 AzureSkuName = original.L16 - L4 AzureSkuName = original.L4 - L8 AzureSkuName = original.L8 + StandardD11V2 AzureSkuName = original.StandardD11V2 + StandardD12V2 AzureSkuName = original.StandardD12V2 + StandardD13V2 AzureSkuName = original.StandardD13V2 + StandardD14V2 AzureSkuName = original.StandardD14V2 + StandardDS13V21TBPS AzureSkuName = original.StandardDS13V21TBPS + StandardDS13V22TBPS AzureSkuName = original.StandardDS13V22TBPS + StandardDS14V23TBPS AzureSkuName = original.StandardDS14V23TBPS + StandardDS14V24TBPS AzureSkuName = original.StandardDS14V24TBPS + StandardL16s AzureSkuName = original.StandardL16s + StandardL4s AzureSkuName = original.StandardL4s + StandardL8s AzureSkuName = original.StandardL8s ) type DataFormat = original.DataFormat @@ -92,12 +96,20 @@ const ( KindEventHub Kind = original.KindEventHub ) +type NameAvailable = original.NameAvailable + +const ( + Available NameAvailable = original.Available + NotAvailable NameAvailable = original.NotAvailable +) + type ProvisioningState = original.ProvisioningState const ( Creating ProvisioningState = original.Creating Deleting ProvisioningState = original.Deleting Failed ProvisioningState = original.Failed + Moving ProvisioningState = original.Moving Running ProvisioningState = original.Running Succeeded ProvisioningState = original.Succeeded ) @@ -122,6 +134,7 @@ type AzureResourceSku = original.AzureResourceSku type AzureSku = original.AzureSku type BaseClient = original.BaseClient type BasicDataConnection = original.BasicDataConnection +type CheckNameAvailabilityResult = original.CheckNameAvailabilityResult type CheckNameResult = original.CheckNameResult type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody @@ -137,6 +150,7 @@ type ClustersStartFuture = original.ClustersStartFuture type ClustersStopFuture = original.ClustersStopFuture type ClustersUpdateFuture = original.ClustersUpdateFuture type DataConnection = original.DataConnection +type DataConnectionCheckNameRequest = original.DataConnectionCheckNameRequest type DataConnectionListResult = original.DataConnectionListResult type DataConnectionModel = original.DataConnectionModel type DataConnectionValidation = original.DataConnectionValidation @@ -163,8 +177,8 @@ type EventGridConnectionProperties = original.EventGridConnectionProperties type EventGridDataConnection = original.EventGridDataConnection type EventHubConnectionProperties = original.EventHubConnectionProperties type EventHubDataConnection = original.EventHubDataConnection +type IntelligentAutoscale = original.IntelligentAutoscale type ListResourceSkusResult = original.ListResourceSkusResult -type ListSkusResult = original.ListSkusResult type Operation = original.Operation type OperationDisplay = original.OperationDisplay type OperationListResult = original.OperationListResult @@ -173,6 +187,9 @@ type OperationListResultPage = original.OperationListResultPage type OperationsClient = original.OperationsClient type ProxyResource = original.ProxyResource type Resource = original.Resource +type SkuDescription = original.SkuDescription +type SkuDescriptionList = original.SkuDescriptionList +type SkuLocationInfoItem = original.SkuLocationInfoItem type TrackedResource = original.TrackedResource type TrustedExternalTenant = original.TrustedExternalTenant @@ -230,6 +247,9 @@ func PossibleDatabasePrincipalTypeValues() []DatabasePrincipalType { func PossibleKindValues() []Kind { return original.PossibleKindValues() } +func PossibleNameAvailableValues() []NameAvailable { + return original.PossibleNameAvailableValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } diff --git a/profiles/preview/kusto/mgmt/kusto/models.go b/profiles/preview/kusto/mgmt/kusto/models.go index 1a02218c6929..83eb73a6c302 100644 --- a/profiles/preview/kusto/mgmt/kusto/models.go +++ b/profiles/preview/kusto/mgmt/kusto/models.go @@ -40,13 +40,17 @@ const ( type AzureSkuName = original.AzureSkuName const ( - D11V2 AzureSkuName = original.D11V2 - D12V2 AzureSkuName = original.D12V2 - D13V2 AzureSkuName = original.D13V2 - D14V2 AzureSkuName = original.D14V2 - L16 AzureSkuName = original.L16 - L4 AzureSkuName = original.L4 - L8 AzureSkuName = original.L8 + StandardD11V2 AzureSkuName = original.StandardD11V2 + StandardD12V2 AzureSkuName = original.StandardD12V2 + StandardD13V2 AzureSkuName = original.StandardD13V2 + StandardD14V2 AzureSkuName = original.StandardD14V2 + StandardDS13V21TBPS AzureSkuName = original.StandardDS13V21TBPS + StandardDS13V22TBPS AzureSkuName = original.StandardDS13V22TBPS + StandardDS14V23TBPS AzureSkuName = original.StandardDS14V23TBPS + StandardDS14V24TBPS AzureSkuName = original.StandardDS14V24TBPS + StandardL16s AzureSkuName = original.StandardL16s + StandardL4s AzureSkuName = original.StandardL4s + StandardL8s AzureSkuName = original.StandardL8s ) type DataFormat = original.DataFormat @@ -92,12 +96,20 @@ const ( KindEventHub Kind = original.KindEventHub ) +type NameAvailable = original.NameAvailable + +const ( + Available NameAvailable = original.Available + NotAvailable NameAvailable = original.NotAvailable +) + type ProvisioningState = original.ProvisioningState const ( Creating ProvisioningState = original.Creating Deleting ProvisioningState = original.Deleting Failed ProvisioningState = original.Failed + Moving ProvisioningState = original.Moving Running ProvisioningState = original.Running Succeeded ProvisioningState = original.Succeeded ) @@ -122,6 +134,7 @@ type AzureResourceSku = original.AzureResourceSku type AzureSku = original.AzureSku type BaseClient = original.BaseClient type BasicDataConnection = original.BasicDataConnection +type CheckNameAvailabilityResult = original.CheckNameAvailabilityResult type CheckNameResult = original.CheckNameResult type CloudError = original.CloudError type CloudErrorBody = original.CloudErrorBody @@ -137,6 +150,7 @@ type ClustersStartFuture = original.ClustersStartFuture type ClustersStopFuture = original.ClustersStopFuture type ClustersUpdateFuture = original.ClustersUpdateFuture type DataConnection = original.DataConnection +type DataConnectionCheckNameRequest = original.DataConnectionCheckNameRequest type DataConnectionListResult = original.DataConnectionListResult type DataConnectionModel = original.DataConnectionModel type DataConnectionValidation = original.DataConnectionValidation @@ -163,8 +177,8 @@ type EventGridConnectionProperties = original.EventGridConnectionProperties type EventGridDataConnection = original.EventGridDataConnection type EventHubConnectionProperties = original.EventHubConnectionProperties type EventHubDataConnection = original.EventHubDataConnection +type IntelligentAutoscale = original.IntelligentAutoscale type ListResourceSkusResult = original.ListResourceSkusResult -type ListSkusResult = original.ListSkusResult type Operation = original.Operation type OperationDisplay = original.OperationDisplay type OperationListResult = original.OperationListResult @@ -173,6 +187,9 @@ type OperationListResultPage = original.OperationListResultPage type OperationsClient = original.OperationsClient type ProxyResource = original.ProxyResource type Resource = original.Resource +type SkuDescription = original.SkuDescription +type SkuDescriptionList = original.SkuDescriptionList +type SkuLocationInfoItem = original.SkuLocationInfoItem type TrackedResource = original.TrackedResource type TrustedExternalTenant = original.TrustedExternalTenant @@ -230,6 +247,9 @@ func PossibleDatabasePrincipalTypeValues() []DatabasePrincipalType { func PossibleKindValues() []Kind { return original.PossibleKindValues() } +func PossibleNameAvailableValues() []NameAvailable { + return original.PossibleNameAvailableValues() +} func PossibleProvisioningStateValues() []ProvisioningState { return original.PossibleProvisioningStateValues() } diff --git a/services/kusto/mgmt/2019-01-21/kusto/clusters.go b/services/kusto/mgmt/2019-01-21/kusto/clusters.go index b2bd8bb2bb03..987c0613f159 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/clusters.go +++ b/services/kusto/mgmt/2019-01-21/kusto/clusters.go @@ -147,7 +147,14 @@ func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupNa if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.Sku", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.Sku.Tier", Name: validation.Null, Rule: true, Chain: nil}}}}}}); err != nil { + Chain: []validation.Constraint{{Target: "parameters.Sku.Tier", Name: validation.Null, Rule: true, Chain: nil}}}, + {Target: "parameters.ClusterProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ClusterProperties.IntelligentAutoscale", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.ClusterProperties.IntelligentAutoscale.Version", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ClusterProperties.IntelligentAutoscale.Minimum", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.ClusterProperties.IntelligentAutoscale.Maximum", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}}}}); err != nil { return result, validation.NewError("kusto.ClustersClient", "CreateOrUpdate", err.Error()) } @@ -516,7 +523,7 @@ func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) ( } // ListSkus lists eligible SKUs for Kusto resource provider. -func (client ClustersClient) ListSkus(ctx context.Context) (result ListSkusResult, err error) { +func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptionList, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ClustersClient.ListSkus") defer func() { @@ -576,7 +583,7 @@ func (client ClustersClient) ListSkusSender(req *http.Request) (*http.Response, // ListSkusResponder handles the response to the ListSkus request. The method always // closes the http.Response Body. -func (client ClustersClient) ListSkusResponder(resp *http.Response) (result ListSkusResult, err error) { +func (client ClustersClient) ListSkusResponder(resp *http.Response) (result SkuDescriptionList, err error) { err = autorest.Respond( resp, client.ByInspecting(), diff --git a/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go b/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go index 9459d9b7d922..3b320ef3052d 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-01-21/kusto/dataconnections.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -42,6 +43,95 @@ func NewDataConnectionsClientWithBaseURI(baseURI string, subscriptionID string) return DataConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} } +// CheckNameAvailability checks that the data connection name is valid and is not already in use. +// Parameters: +// resourceGroupName - the name of the resource group containing the Kusto cluster. +// clusterName - the name of the Kusto cluster. +// databaseName - the name of the database in the Kusto cluster. +// dataConnectionName - the name of the data connection. +func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName DataConnectionCheckNameRequest) (result CheckNameAvailabilityResult, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/DataConnectionsClient.CheckNameAvailability") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: dataConnectionName, + Constraints: []validation.Constraint{{Target: "dataConnectionName.Name", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "dataConnectionName.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { + return result, validation.NewError("kusto.DataConnectionsClient", "CheckNameAvailability", err.Error()) + } + + req, err := client.CheckNameAvailabilityPreparer(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName) + if err != nil { + err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", nil, "Failure preparing request") + return + } + + resp, err := client.CheckNameAvailabilitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure sending request") + return + } + + result, err = client.CheckNameAvailabilityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + } + + return +} + +// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. +func (client DataConnectionsClient) CheckNameAvailabilityPreparer(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName DataConnectionCheckNameRequest) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "clusterName": autorest.Encode("path", clusterName), + "databaseName": autorest.Encode("path", databaseName), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2019-01-21" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability", pathParameters), + autorest.WithJSON(dataConnectionName), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the +// http.Response Body if it receives an error. +func (client DataConnectionsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always +// closes the http.Response Body. +func (client DataConnectionsClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // CreateOrUpdate creates or updates a data connection. // Parameters: // resourceGroupName - the name of the resource group containing the Kusto cluster. diff --git a/services/kusto/mgmt/2019-01-21/kusto/kustoapi/interfaces.go b/services/kusto/mgmt/2019-01-21/kusto/kustoapi/interfaces.go index a84d2be78dd4..77b6117886ec 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/kustoapi/interfaces.go +++ b/services/kusto/mgmt/2019-01-21/kusto/kustoapi/interfaces.go @@ -30,7 +30,7 @@ type ClustersClientAPI interface { Get(ctx context.Context, resourceGroupName string, clusterName string) (result kusto.Cluster, err error) List(ctx context.Context) (result kusto.ClusterListResult, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result kusto.ClusterListResult, err error) - ListSkus(ctx context.Context) (result kusto.ListSkusResult, err error) + ListSkus(ctx context.Context) (result kusto.SkuDescriptionList, err error) ListSkusByResource(ctx context.Context, resourceGroupName string, clusterName string) (result kusto.ListResourceSkusResult, err error) Start(ctx context.Context, resourceGroupName string, clusterName string) (result kusto.ClustersStartFuture, err error) Stop(ctx context.Context, resourceGroupName string, clusterName string) (result kusto.ClustersStopFuture, err error) @@ -56,6 +56,7 @@ var _ DatabasesClientAPI = (*kusto.DatabasesClient)(nil) // DataConnectionsClientAPI contains the set of methods on the DataConnectionsClient type. type DataConnectionsClientAPI interface { + CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName kusto.DataConnectionCheckNameRequest) (result kusto.CheckNameAvailabilityResult, err error) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, parameters kusto.BasicDataConnection) (result kusto.DataConnectionsCreateOrUpdateFuture, err error) DataConnectionValidationMethod(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters kusto.DataConnectionValidation) (result kusto.DataConnectionValidationListResult, err error) Delete(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string) (result kusto.DataConnectionsDeleteFuture, err error) diff --git a/services/kusto/mgmt/2019-01-21/kusto/models.go b/services/kusto/mgmt/2019-01-21/kusto/models.go index e6b5c398482e..e4882353202f 100644 --- a/services/kusto/mgmt/2019-01-21/kusto/models.go +++ b/services/kusto/mgmt/2019-01-21/kusto/models.go @@ -51,25 +51,33 @@ func PossibleAzureScaleTypeValues() []AzureScaleType { type AzureSkuName string const ( - // D11V2 ... - D11V2 AzureSkuName = "D11_v2" - // D12V2 ... - D12V2 AzureSkuName = "D12_v2" - // D13V2 ... - D13V2 AzureSkuName = "D13_v2" - // D14V2 ... - D14V2 AzureSkuName = "D14_v2" - // L16 ... - L16 AzureSkuName = "L16" - // L4 ... - L4 AzureSkuName = "L4" - // L8 ... - L8 AzureSkuName = "L8" + // StandardD11V2 ... + StandardD11V2 AzureSkuName = "Standard_D11_v2" + // StandardD12V2 ... + StandardD12V2 AzureSkuName = "Standard_D12_v2" + // StandardD13V2 ... + StandardD13V2 AzureSkuName = "Standard_D13_v2" + // StandardD14V2 ... + StandardD14V2 AzureSkuName = "Standard_D14_v2" + // StandardDS13V21TBPS ... + StandardDS13V21TBPS AzureSkuName = "Standard_DS13_v2+1TB_PS" + // StandardDS13V22TBPS ... + StandardDS13V22TBPS AzureSkuName = "Standard_DS13_v2+2TB_PS" + // StandardDS14V23TBPS ... + StandardDS14V23TBPS AzureSkuName = "Standard_DS14_v2+3TB_PS" + // StandardDS14V24TBPS ... + StandardDS14V24TBPS AzureSkuName = "Standard_DS14_v2+4TB_PS" + // StandardL16s ... + StandardL16s AzureSkuName = "Standard_L16s" + // StandardL4s ... + StandardL4s AzureSkuName = "Standard_L4s" + // StandardL8s ... + StandardL8s AzureSkuName = "Standard_L8s" ) // PossibleAzureSkuNameValues returns an array of possible values for the AzureSkuName const type. func PossibleAzureSkuNameValues() []AzureSkuName { - return []AzureSkuName{D11V2, D12V2, D13V2, D14V2, L16, L4, L8} + return []AzureSkuName{StandardD11V2, StandardD12V2, StandardD13V2, StandardD14V2, StandardDS13V21TBPS, StandardDS13V22TBPS, StandardDS14V23TBPS, StandardDS14V24TBPS, StandardL16s, StandardL4s, StandardL8s} } // DatabasePrincipalRole enumerates the values for database principal role. @@ -162,6 +170,21 @@ func PossibleKindValues() []Kind { return []Kind{KindDataConnection, KindEventGrid, KindEventHub} } +// NameAvailable enumerates the values for name available. +type NameAvailable string + +const ( + // Available ... + Available NameAvailable = "Available" + // NotAvailable ... + NotAvailable NameAvailable = "NotAvailable" +) + +// PossibleNameAvailableValues returns an array of possible values for the NameAvailable const type. +func PossibleNameAvailableValues() []NameAvailable { + return []NameAvailable{Available, NotAvailable} +} + // ProvisioningState enumerates the values for provisioning state. type ProvisioningState string @@ -172,6 +195,8 @@ const ( Deleting ProvisioningState = "Deleting" // Failed ... Failed ProvisioningState = "Failed" + // Moving ... + Moving ProvisioningState = "Moving" // Running ... Running ProvisioningState = "Running" // Succeeded ... @@ -180,7 +205,7 @@ const ( // PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{Creating, Deleting, Failed, Running, Succeeded} + return []ProvisioningState{Creating, Deleting, Failed, Moving, Running, Succeeded} } // State enumerates the values for state. @@ -248,7 +273,7 @@ type AzureResourceSku struct { // AzureSku azure SKU definition. type AzureSku struct { - // Name - SKU name. Possible values include: 'D13V2', 'D14V2', 'L8', 'L16', 'D11V2', 'D12V2', 'L4' + // Name - SKU name. Possible values include: 'StandardDS13V21TBPS', 'StandardDS13V22TBPS', 'StandardDS14V23TBPS', 'StandardDS14V24TBPS', 'StandardD13V2', 'StandardD14V2', 'StandardL8s', 'StandardL16s', 'StandardD11V2', 'StandardD12V2', 'StandardL4s' Name AzureSkuName `json:"name,omitempty"` // Capacity - SKU capacity. Capacity *int32 `json:"capacity,omitempty"` @@ -256,6 +281,17 @@ type AzureSku struct { Tier *string `json:"tier,omitempty"` } +// CheckNameAvailabilityResult the result returned from a check name availability request. +type CheckNameAvailabilityResult struct { + autorest.Response `json:"-"` + // NameAvailable - Specifies whether or not the name is available. Possible values include: 'Available', 'NotAvailable' + NameAvailable NameAvailable `json:"nameAvailable,omitempty"` + // Name - The name that was checked. + Name *string `json:"name,omitempty"` + // Message - Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. + Message *string `json:"message,omitempty"` +} + // CheckNameResult the result returned from a check name availability request. type CheckNameResult struct { autorest.Response `json:"-"` @@ -428,7 +464,7 @@ type ClusterListResult struct { type ClusterProperties struct { // State - The state of the resource. Possible values include: 'StateCreating', 'StateUnavailable', 'StateRunning', 'StateDeleting', 'StateDeleted', 'StateStopping', 'StateStopped', 'StateStarting', 'StateUpdating' State State `json:"state,omitempty"` - // ProvisioningState - The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed' + // ProvisioningState - The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Moving' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // URI - The cluster URI. URI *string `json:"uri,omitempty"` @@ -436,6 +472,8 @@ type ClusterProperties struct { DataIngestionURI *string `json:"dataIngestionUri,omitempty"` // TrustedExternalTenants - The cluster's external tenants. TrustedExternalTenants *[]TrustedExternalTenant `json:"trustedExternalTenants,omitempty"` + // IntelligentAutoscale - Intelligent auto scale definition. + IntelligentAutoscale *IntelligentAutoscale `json:"intelligentAutoscale,omitempty"` } // ClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running @@ -829,11 +867,11 @@ type DatabasePrincipalListResult struct { // DatabaseProperties class representing the Kusto database properties. type DatabaseProperties struct { - // ProvisioningState - The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed' + // ProvisioningState - The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Moving' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // SoftDeletePeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan. SoftDeletePeriod *string `json:"softDeletePeriod,omitempty"` - // HotCachePeriod - The time the data that should be kept in cache for fast queries in TimeSpan. + // HotCachePeriod - The time the data should be kept in cache for fast queries in TimeSpan. HotCachePeriod *string `json:"hotCachePeriod,omitempty"` // Statistics - The statistics of the database. Statistics *DatabaseStatistics `json:"statistics,omitempty"` @@ -1126,6 +1164,15 @@ func (dc DataConnection) AsBasicDataConnection() (BasicDataConnection, bool) { return &dc, true } +// DataConnectionCheckNameRequest the result returned from a data connections check name availability +// request. +type DataConnectionCheckNameRequest struct { + // Name - Data Connection name. + Name *string `json:"name,omitempty"` + // Type - The type of resource, Microsoft.Kusto/clusters/databases/dataConnections. + Type *string `json:"type,omitempty"` +} + // DataConnectionListResult the list Kusto data connections operation response. type DataConnectionListResult struct { autorest.Response `json:"-"` @@ -1597,20 +1644,23 @@ func (ehdc *EventHubDataConnection) UnmarshalJSON(body []byte) error { return nil } -// ListResourceSkusResult list of available SKUs for an existing Kusto Cluster. +// IntelligentAutoscale a class that contains the intelligent auto scale definition. +type IntelligentAutoscale struct { + // Version - The version of the template defined, for instance 1. + Version *int32 `json:"version,omitempty"` + // Minimum - Minimum allowed capacity. + Minimum *int32 `json:"minimum,omitempty"` + // Maximum - Maximum allowed capacity. + Maximum *int32 `json:"maximum,omitempty"` +} + +// ListResourceSkusResult list of available SKUs for a Kusto Cluster. type ListResourceSkusResult struct { autorest.Response `json:"-"` // Value - The collection of available SKUs for an existing resource. Value *[]AzureResourceSku `json:"value,omitempty"` } -// ListSkusResult list of available SKUs for a new Kusto Cluster. -type ListSkusResult struct { - autorest.Response `json:"-"` - // Value - The collection of available SKUs for new resources. - Value *[]AzureSku `json:"value,omitempty"` -} - // Operation ... type Operation struct { // Name - This is of the format {provider}/{resource}/{operation}. @@ -1794,6 +1844,37 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// SkuDescription the Kusto SKU description of given resource type +type SkuDescription struct { + // ResourceType - The resource type + ResourceType *string `json:"resourceType,omitempty"` + // Name - The name of the SKU + Name *string `json:"name,omitempty"` + // Tier - The tier of the SKU + Tier *string `json:"tier,omitempty"` + // Locations - The set of locations that the SKU is available + Locations *[]string `json:"locations,omitempty"` + // LocationInfo - Locations and zones + LocationInfo *[]SkuLocationInfoItem `json:"locationInfo,omitempty"` + // Restrictions - The restrictions because of which SKU cannot be used + Restrictions *[]interface{} `json:"restrictions,omitempty"` +} + +// SkuDescriptionList the list of the EngagementFabric SKU descriptions +type SkuDescriptionList struct { + autorest.Response `json:"-"` + // Value - SKU descriptions + Value *[]SkuDescription `json:"value,omitempty"` +} + +// SkuLocationInfoItem the locations and zones info for SKU. +type SkuLocationInfoItem struct { + // Location - The available location of the SKU. + Location *string `json:"location,omitempty"` + // Zones - The available zone of the SKU. + Zones *[]string `json:"zones,omitempty"` +} + // TrackedResource the resource model definition for a ARM tracked top level resource type TrackedResource struct { // Tags - Resource tags.