From 4730aa2da8f7f465202162e61f732a8e2c3d3b98 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 17 Dec 2020 05:49:54 +0000 Subject: [PATCH] CodeGen from PR 11847 in Azure/azure-rest-api-specs add kusto track2 config (#11847) --- .../kusto/mgmt/2019-05-15/kusto/CHANGELOG.md | 7 ++ .../kusto/mgmt/2019-05-15/kusto/clusters.go | 6 ++ .../kusto/mgmt/2019-05-15/kusto/databases.go | 6 ++ .../mgmt/2019-05-15/kusto/dataconnections.go | 4 + .../kusto/mgmt/2019-05-15/kusto/models.go | 84 +++++++++++-------- .../kusto/mgmt/2019-05-15/kusto/operations.go | 2 + 6 files changed, 72 insertions(+), 37 deletions(-) create mode 100644 services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md diff --git a/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md b/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md new file mode 100644 index 000000000000..3430499dd2dd --- /dev/null +++ b/services/kusto/mgmt/2019-05-15/kusto/CHANGELOG.md @@ -0,0 +1,7 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 + +Code generator @microsoft.azure/autorest.go@~2.1.161 + +## Breaking Changes + +- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` diff --git a/services/kusto/mgmt/2019-05-15/kusto/clusters.go b/services/kusto/mgmt/2019-05-15/kusto/clusters.go index 3154b70abfc3..29806f21de3b 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/clusters.go +++ b/services/kusto/mgmt/2019-05-15/kusto/clusters.go @@ -82,6 +82,7 @@ func (client ClustersClient) CheckNameAvailability(ctx context.Context, location result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -329,6 +330,7 @@ func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClustersClient) List(ctx context.Context) (result ClusterListResult result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "List", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGr result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListByResourceGroup", resp, "Failure responding to request") + return } return @@ -544,6 +548,7 @@ func (client ClustersClient) ListSkus(ctx context.Context) (result SkuDescriptio result, err = client.ListSkusResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkus", resp, "Failure responding to request") + return } return @@ -617,6 +622,7 @@ func (client ClustersClient) ListSkusByResource(ctx context.Context, resourceGro result, err = client.ListSkusByResourceResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListSkusByResource", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/databases.go b/services/kusto/mgmt/2019-05-15/kusto/databases.go index 2afa9692cab4..b0518361e4fb 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/databases.go +++ b/services/kusto/mgmt/2019-05-15/kusto/databases.go @@ -77,6 +77,7 @@ func (client DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupNa result, err = client.AddPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "AddPrincipals", resp, "Failure responding to request") + return } return @@ -163,6 +164,7 @@ func (client DatabasesClient) CheckNameAvailability(ctx context.Context, resourc result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -397,6 +399,7 @@ func (client DatabasesClient) Get(ctx context.Context, resourceGroupName string, result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "Get", resp, "Failure responding to request") + return } return @@ -473,6 +476,7 @@ func (client DatabasesClient) ListByCluster(ctx context.Context, resourceGroupNa result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListByCluster", resp, "Failure responding to request") + return } return @@ -549,6 +553,7 @@ func (client DatabasesClient) ListPrincipals(ctx context.Context, resourceGroupN result, err = client.ListPrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "ListPrincipals", resp, "Failure responding to request") + return } return @@ -627,6 +632,7 @@ func (client DatabasesClient) RemovePrincipals(ctx context.Context, resourceGrou result, err = client.RemovePrincipalsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasesClient", "RemovePrincipals", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go b/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go index 1cd0b46b9500..257c3cc7543b 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go +++ b/services/kusto/mgmt/2019-05-15/kusto/dataconnections.go @@ -84,6 +84,7 @@ func (client DataConnectionsClient) CheckNameAvailability(ctx context.Context, r result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -246,6 +247,7 @@ func (client DataConnectionsClient) DataConnectionValidationMethod(ctx context.C result, err = client.DataConnectionValidationMethodResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "DataConnectionValidationMethod", resp, "Failure responding to request") + return } return @@ -404,6 +406,7 @@ func (client DataConnectionsClient) Get(ctx context.Context, resourceGroupName s result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "Get", resp, "Failure responding to request") + return } return @@ -482,6 +485,7 @@ func (client DataConnectionsClient) ListByDatabase(ctx context.Context, resource result, err = client.ListByDatabaseResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DataConnectionsClient", "ListByDatabase", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2019-05-15/kusto/models.go b/services/kusto/mgmt/2019-05-15/kusto/models.go index d32a3ae2b578..ec95fd882337 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/models.go +++ b/services/kusto/mgmt/2019-05-15/kusto/models.go @@ -42,15 +42,15 @@ type AzureCapacity struct { Default *int32 `json:"default,omitempty"` } -// AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag. +// AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag. type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -118,11 +118,11 @@ type Cluster struct { Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -321,7 +321,8 @@ func (future *ClustersCreateOrUpdateFuture) Result(client ClustersClient) (c Clu return } -// ClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ClustersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ClustersDeleteFuture struct { azure.Future } @@ -343,7 +344,8 @@ func (future *ClustersDeleteFuture) Result(client ClustersClient) (ar autorest.R return } -// ClustersStartFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ClustersStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ClustersStartFuture struct { azure.Future } @@ -387,7 +389,8 @@ func (future *ClustersStopFuture) Result(client ClustersClient) (ar autorest.Res return } -// ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ClustersUpdateFuture struct { azure.Future } @@ -425,11 +428,11 @@ type ClusterUpdate struct { Sku *AzureSku `json:"sku,omitempty"` // ClusterProperties - The cluster properties. *ClusterProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -536,11 +539,11 @@ type Database struct { Location *string `json:"location,omitempty"` // DatabaseProperties - The database properties. *DatabaseProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -742,7 +745,8 @@ func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (d D return } -// DatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// DatabasesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type DatabasesDeleteFuture struct { azure.Future } @@ -770,7 +774,8 @@ type DatabaseStatistics struct { Size *float64 `json:"size,omitempty"` } -// DatabasesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// DatabasesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type DatabasesUpdateFuture struct { azure.Future } @@ -804,11 +809,11 @@ type DatabaseUpdate struct { Location *string `json:"location,omitempty"` // DatabaseProperties - The properties of the updated database. *DatabaseProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -899,11 +904,11 @@ type DataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind Kind `json:"kind,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -990,7 +995,8 @@ func (dc DataConnection) AsBasicDataConnection() (BasicDataConnection, bool) { return &dc, true } -// DataConnectionCheckNameRequest the result returned from a data connections check name availability request. +// DataConnectionCheckNameRequest the result returned from a data connections check name availability +// request. type DataConnectionCheckNameRequest struct { // Name - Data Connection name. Name *string `json:"name,omitempty"` @@ -1203,11 +1209,11 @@ type EventGridDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind Kind `json:"kind,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -1345,11 +1351,11 @@ type EventHubDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind Kind `json:"kind,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -1489,11 +1495,11 @@ type IotHubDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind Kind `json:"kind,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -1782,8 +1788,11 @@ func (page OperationListResultPage) Values() []Operation { } // Creates a new instance of the OperationListResultPage type. -func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { - return OperationListResultPage{fn: getNextPage} +func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage { + return OperationListResultPage{ + fn: getNextPage, + olr: cur, + } } // OptimizedAutoscale a class that contains the optimized auto scale definition. @@ -1798,24 +1807,24 @@ type OptimizedAutoscale struct { Maximum *int32 `json:"maximum,omitempty"` } -// ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than -// required location and tags +// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not +// have tags and a location type ProxyResource struct { - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } -// Resource ... +// Resource common fields that are returned in the response for all Azure Resource Manager resources type Resource struct { - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } @@ -1850,17 +1859,18 @@ type SkuLocationInfoItem struct { Zones *[]string `json:"zones,omitempty"` } -// TrackedResource the resource model definition for a ARM tracked top level resource +// TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource +// which has 'tags' and a 'location' type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` - // ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` - // Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` } diff --git a/services/kusto/mgmt/2019-05-15/kusto/operations.go b/services/kusto/mgmt/2019-05-15/kusto/operations.go index 4a144e947b34..63ab4d01e16c 100644 --- a/services/kusto/mgmt/2019-05-15/kusto/operations.go +++ b/services/kusto/mgmt/2019-05-15/kusto/operations.go @@ -72,9 +72,11 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe result.olr, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.OperationsClient", "List", resp, "Failure responding to request") + return } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) + return } return