From 92eefe30f648e3a8f269481d13f7b7d682852364 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 17 Dec 2020 05:48:09 +0000 Subject: [PATCH] CodeGen from PR 11847 in Azure/azure-rest-api-specs add kusto track2 config (#11847) --- .../kusto/mgmt/2020-06-14/kusto/CHANGELOG.md | 7 ++ .../kusto/attacheddatabaseconfigurations.go | 2 + .../kusto/clusterprincipalassignments.go | 3 + .../kusto/mgmt/2020-06-14/kusto/clusters.go | 8 ++ .../kusto/databaseprincipalassignments.go | 3 + .../kusto/mgmt/2020-06-14/kusto/databases.go | 6 + .../mgmt/2020-06-14/kusto/dataconnections.go | 3 + .../kusto/mgmt/2020-06-14/kusto/models.go | 117 ++++++++++-------- .../kusto/mgmt/2020-06-14/kusto/operations.go | 2 + 9 files changed, 97 insertions(+), 54 deletions(-) create mode 100644 services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md diff --git a/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md b/services/kusto/mgmt/2020-06-14/kusto/CHANGELOG.md new file mode 100644 index 000000000000..3430499dd2dd --- /dev/null +++ b/services/kusto/mgmt/2020-06-14/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/2020-06-14/kusto/attacheddatabaseconfigurations.go b/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go index 57ce4d385120..5ca890d0c3ee 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go +++ b/services/kusto/mgmt/2020-06-14/kusto/attacheddatabaseconfigurations.go @@ -242,6 +242,7 @@ func (client AttachedDatabaseConfigurationsClient) Get(ctx context.Context, reso result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "Get", resp, "Failure responding to request") + return } return @@ -318,6 +319,7 @@ func (client AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Con result, err = client.ListByClusterResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.AttachedDatabaseConfigurationsClient", "ListByCluster", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go b/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go index c06528f9d98d..64bbc1782627 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go +++ b/services/kusto/mgmt/2020-06-14/kusto/clusterprincipalassignments.go @@ -84,6 +84,7 @@ func (client ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx contex result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -325,6 +326,7 @@ func (client ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourc result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -401,6 +403,7 @@ func (client ClusterPrincipalAssignmentsClient) List(ctx context.Context, resour result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClusterPrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/clusters.go b/services/kusto/mgmt/2020-06-14/kusto/clusters.go index 1ace711caca4..a45de49c1602 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/clusters.go +++ b/services/kusto/mgmt/2020-06-14/kusto/clusters.go @@ -159,6 +159,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 @@ -572,6 +573,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 @@ -644,6 +646,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 @@ -716,6 +719,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 @@ -791,6 +795,7 @@ func (client ClustersClient) ListFollowerDatabases(ctx context.Context, resource result, err = client.ListFollowerDatabasesResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListFollowerDatabases", resp, "Failure responding to request") + return } return @@ -866,6 +871,7 @@ func (client ClustersClient) ListLanguageExtensions(ctx context.Context, resourc result, err = client.ListLanguageExtensionsResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.ClustersClient", "ListLanguageExtensions", resp, "Failure responding to request") + return } return @@ -938,6 +944,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 @@ -1011,6 +1018,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/2020-06-14/kusto/databaseprincipalassignments.go b/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go index 714c6e90bee6..6bcca81ff9bc 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go +++ b/services/kusto/mgmt/2020-06-14/kusto/databaseprincipalassignments.go @@ -85,6 +85,7 @@ func (client DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx conte result, err = client.CheckNameAvailabilityResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "CheckNameAvailability", resp, "Failure responding to request") + return } return @@ -332,6 +333,7 @@ func (client DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resour result, err = client.GetResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "Get", resp, "Failure responding to request") + return } return @@ -410,6 +412,7 @@ func (client DatabasePrincipalAssignmentsClient) List(ctx context.Context, resou result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "kusto.DatabasePrincipalAssignmentsClient", "List", resp, "Failure responding to request") + return } return diff --git a/services/kusto/mgmt/2020-06-14/kusto/databases.go b/services/kusto/mgmt/2020-06-14/kusto/databases.go index d02073154123..d8d27927330b 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/databases.go +++ b/services/kusto/mgmt/2020-06-14/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 @@ -162,6 +163,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 @@ -396,6 +398,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 @@ -472,6 +475,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 @@ -548,6 +552,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 @@ -626,6 +631,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/2020-06-14/kusto/dataconnections.go b/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go index b38d1e3495d0..c70bc99c2be5 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/dataconnections.go +++ b/services/kusto/mgmt/2020-06-14/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 @@ -404,6 +405,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 +484,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/2020-06-14/kusto/models.go b/services/kusto/mgmt/2020-06-14/kusto/models.go index 6dd4ebb7d7ce..4f8977dec022 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/models.go +++ b/services/kusto/mgmt/2020-06-14/kusto/models.go @@ -37,11 +37,11 @@ type AttachedDatabaseConfiguration struct { Location *string `json:"location,omitempty"` // AttachedDatabaseConfigurationProperties - The properties of the attached database configuration. *AttachedDatabaseConfigurationProperties `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"` } @@ -124,8 +124,8 @@ type AttachedDatabaseConfigurationListResult struct { Value *[]AttachedDatabaseConfiguration `json:"value,omitempty"` } -// AttachedDatabaseConfigurationProperties class representing the an attached database configuration properties -// of kind specific. +// AttachedDatabaseConfigurationProperties class representing the an attached database configuration +// properties of kind specific. type AttachedDatabaseConfigurationProperties struct { // ProvisioningState - READ-ONLY; The provisioned state of the resource. Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Moving' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` @@ -154,8 +154,8 @@ func (adcp AttachedDatabaseConfigurationProperties) MarshalJSON() ([]byte, error return json.Marshal(objectMap) } -// AttachedDatabaseConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. +// AttachedDatabaseConfigurationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. type AttachedDatabaseConfigurationsCreateOrUpdateFuture struct { azure.Future } @@ -218,15 +218,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"` } @@ -304,11 +304,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"` } @@ -452,11 +452,11 @@ type ClusterPrincipalAssignment struct { autorest.Response `json:"-"` // ClusterPrincipalProperties - The cluster principal. *ClusterPrincipalProperties `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"` } @@ -535,8 +535,8 @@ type ClusterPrincipalAssignmentListResult struct { Value *[]ClusterPrincipalAssignment `json:"value,omitempty"` } -// ClusterPrincipalAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of -// a long-running operation. +// ClusterPrincipalAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. type ClusterPrincipalAssignmentsCreateOrUpdateFuture struct { azure.Future } @@ -737,7 +737,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 } @@ -834,7 +835,8 @@ func (future *ClustersRemoveLanguageExtensionsFuture) Result(client ClustersClie 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 } @@ -878,7 +880,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 } @@ -918,11 +921,11 @@ type ClusterUpdate struct { Identity *Identity `json:"identity,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"` } @@ -1048,11 +1051,11 @@ type Database struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' 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"` } @@ -1224,11 +1227,11 @@ type DatabasePrincipalAssignment struct { autorest.Response `json:"-"` // DatabasePrincipalProperties - The database principal. *DatabasePrincipalProperties `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"` } @@ -1307,8 +1310,8 @@ type DatabasePrincipalAssignmentListResult struct { Value *[]DatabasePrincipalAssignment `json:"value,omitempty"` } -// DatabasePrincipalAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of -// a long-running operation. +// DatabasePrincipalAssignmentsCreateOrUpdateFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. type DatabasePrincipalAssignmentsCreateOrUpdateFuture struct { azure.Future } @@ -1437,7 +1440,8 @@ func (future *DatabasesCreateOrUpdateFuture) Result(client DatabasesClient) (dm 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 } @@ -1465,7 +1469,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 } @@ -1508,11 +1513,11 @@ type DataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind KindBasicDataConnection `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"` } @@ -1683,8 +1688,8 @@ func (future *DataConnectionsCreateOrUpdateFuture) Result(client DataConnections return } -// DataConnectionsDataConnectionValidationMethodFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. +// DataConnectionsDataConnectionValidationMethodFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. type DataConnectionsDataConnectionValidationMethodFuture struct { azure.Future } @@ -1852,11 +1857,11 @@ type EventGridDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind KindBasicDataConnection `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"` } @@ -1996,11 +2001,11 @@ type EventHubDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind KindBasicDataConnection `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"` } @@ -2201,11 +2206,11 @@ type IotHubDataConnection struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDataConnection', 'KindEventHub', 'KindIotHub', 'KindEventGrid' Kind KindBasicDataConnection `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"` } @@ -2517,8 +2522,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. @@ -2533,14 +2541,14 @@ 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"` } @@ -2552,11 +2560,11 @@ type ReadOnlyFollowingDatabase struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' 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"` } @@ -2703,11 +2711,11 @@ type ReadWriteDatabase struct { Location *string `json:"location,omitempty"` // Kind - Possible values include: 'KindDatabase', 'KindReadWrite', 'KindReadOnlyFollowing' 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"` } @@ -2845,13 +2853,13 @@ func (rwdp ReadWriteDatabaseProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// 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"` } @@ -2886,17 +2894,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/2020-06-14/kusto/operations.go b/services/kusto/mgmt/2020-06-14/kusto/operations.go index e89bada8f82a..2cb9f2ed3426 100644 --- a/services/kusto/mgmt/2020-06-14/kusto/operations.go +++ b/services/kusto/mgmt/2020-06-14/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