diff --git a/sdk/kusto/arm-kusto/CHANGELOG.md b/sdk/kusto/arm-kusto/CHANGELOG.md index 2583bc5c24de..7e71254ceed2 100644 --- a/sdk/kusto/arm-kusto/CHANGELOG.md +++ b/sdk/kusto/arm-kusto/CHANGELOG.md @@ -1,9 +1,59 @@ # Release History + +## 7.1.0 (2022-02-24) + +**Features** -## 7.0.1 (Unreleased) - -Add generated samples from swagger examples. - + - Added operation group OperationsResultsLocation + - Added Interface ClustersUpdateHeaders + - Added Interface DatabasesUpdateHeaders + - Added Interface DataConnectionsUpdateHeaders + - Added Interface ManagedPrivateEndpointsUpdateHeaders + - Added Interface OperationsResultsLocationGetOptionalParams + - Added Interface ScriptsUpdateHeaders + - Added Type Alias DatabaseRouting + - Added Type Alias PublicIPType + - Interface OperationResult has a new optional parameter provisioningState + - Class KustoManagementClient has a new parameter operationsResultsLocation + - Type Alias Cluster has a new parameter publicIPType + - Type Alias Cluster has a new parameter virtualClusterGraduationProperties + - Type Alias Cluster has a new parameter privateEndpointConnections + - Type Alias ClusterPrincipalAssignment has a new parameter aadObjectId + - Type Alias ClusterUpdate has a new parameter publicIPType + - Type Alias ClusterUpdate has a new parameter virtualClusterGraduationProperties + - Type Alias ClusterUpdate has a new parameter privateEndpointConnections + - Type Alias DatabasePrincipalAssignment has a new parameter aadObjectId + - Type Alias EventGridDataConnection has a new parameter eventGridResourceId + - Type Alias EventGridDataConnection has a new parameter managedIdentityResourceId + - Type Alias EventGridDataConnection has a new parameter managedIdentityObjectId + - Type Alias EventGridDataConnection has a new parameter databaseRouting + - Type Alias EventHubDataConnection has a new parameter managedIdentityObjectId + - Type Alias EventHubDataConnection has a new parameter databaseRouting + - Type Alias IotHubDataConnection has a new parameter databaseRouting + - Type Alias Script has a new parameter scriptContent + - Added Enum KnownDatabaseRouting + - Added Enum KnownPublicIPType + - Enum KnownAzureSkuName has a new value StandardD16DV5 + - Enum KnownAzureSkuName has a new value StandardD32DV4 + - Enum KnownAzureSkuName has a new value StandardD32DV5 + - Enum KnownAzureSkuName has a new value StandardE16AdsV5 + - Enum KnownAzureSkuName has a new value StandardE16AsV53TBPS + - Enum KnownAzureSkuName has a new value StandardE16AsV54TBPS + - Enum KnownAzureSkuName has a new value StandardE16SV43TBPS + - Enum KnownAzureSkuName has a new value StandardE16SV44TBPS + - Enum KnownAzureSkuName has a new value StandardE16SV53TBPS + - Enum KnownAzureSkuName has a new value StandardE16SV54TBPS + - Enum KnownAzureSkuName has a new value StandardE2AdsV5 + - Enum KnownAzureSkuName has a new value StandardE4AdsV5 + - Enum KnownAzureSkuName has a new value StandardE8AdsV5 + - Enum KnownAzureSkuName has a new value StandardE8AsV51TBPS + - Enum KnownAzureSkuName has a new value StandardE8AsV52TBPS + - Enum KnownAzureSkuName has a new value StandardE8SV41TBPS + - Enum KnownAzureSkuName has a new value StandardE8SV42TBPS + - Enum KnownAzureSkuName has a new value StandardE8SV51TBPS + - Enum KnownAzureSkuName has a new value StandardE8SV52TBPS + + ## 7.0.0 (2022-01-24) The package of @azure/arm-kusto is using our next generation design principles since version 7.0.0, which contains breaking changes. diff --git a/sdk/kusto/arm-kusto/_meta.json b/sdk/kusto/arm-kusto/_meta.json index 0d9a7e2d7b32..dcdd1afaf438 100644 --- a/sdk/kusto/arm-kusto/_meta.json +++ b/sdk/kusto/arm-kusto/_meta.json @@ -1,7 +1,7 @@ { - "commit": "5ce998f5162da881e2fd418477e5458ec297d5fe", + "commit": "e0a2a27c7545452e2e6feb9aba1ebf560e1c8db9", "readme": "specification/azure-kusto/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=C:\\Users\\marygao\\project\\azure-sdk-for-js ../azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/kusto/arm-kusto/package.json b/sdk/kusto/arm-kusto/package.json index 0f4b0d2aed05..60fbdf16856f 100644 --- a/sdk/kusto/arm-kusto/package.json +++ b/sdk/kusto/arm-kusto/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for KustoManagementClient.", - "version": "7.0.1", + "version": "1.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -98,21 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/kustoManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-kusto?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/kusto/arm-kusto/review/arm-kusto.api.md b/sdk/kusto/arm-kusto/review/arm-kusto.api.md index 2e71a2abf358..63dbb23fb6a8 100644 --- a/sdk/kusto/arm-kusto/review/arm-kusto.api.md +++ b/sdk/kusto/arm-kusto/review/arm-kusto.api.md @@ -173,6 +173,9 @@ export type Cluster = TrackedResource & { enableAutoStop?: boolean; restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; allowedFqdnList?: string[]; + publicIPType?: PublicIPType; + virtualClusterGraduationProperties?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; }; // @public @@ -198,6 +201,7 @@ export type ClusterPrincipalAssignment = ProxyResource & { readonly tenantName?: string; readonly principalName?: string; readonly provisioningState?: ProvisioningState; + readonly aadObjectId?: string; }; // @public @@ -418,6 +422,11 @@ export interface ClustersStopOptionalParams extends coreClient.OperationOptions updateIntervalInMs?: number; } +// @public +export interface ClustersUpdateHeaders { + azureAsyncOperation?: string; +} + // @public export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions { ifMatch?: string; @@ -457,6 +466,9 @@ export type ClusterUpdate = Resource & { enableAutoStop?: boolean; restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; allowedFqdnList?: string[]; + publicIPType?: PublicIPType; + virtualClusterGraduationProperties?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; }; // @public (undocumented) @@ -502,6 +514,7 @@ export type DatabasePrincipalAssignment = ProxyResource & { readonly tenantName?: string; readonly principalName?: string; readonly provisioningState?: ProvisioningState; + readonly aadObjectId?: string; }; // @public @@ -578,6 +591,9 @@ export type DatabasePrincipalRole = string; // @public export type DatabasePrincipalType = string; +// @public +export type DatabaseRouting = string; + // @public export interface Databases { addPrincipals(resourceGroupName: string, clusterName: string, databaseName: string, databasePrincipalsToAdd: DatabasePrincipalListRequest, options?: DatabasesAddPrincipalsOptionalParams): Promise; @@ -656,6 +672,11 @@ export interface DatabaseStatistics { size?: number; } +// @public +export interface DatabasesUpdateHeaders { + azureAsyncOperation?: string; +} + // @public export interface DatabasesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -748,6 +769,11 @@ export interface DataConnectionsListByDatabaseOptionalParams extends coreClient. // @public export type DataConnectionsListByDatabaseResponse = DataConnectionListResult; +// @public +export interface DataConnectionsUpdateHeaders { + azureAsyncOperation?: string; +} + // @public export interface DataConnectionsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -801,6 +827,7 @@ export type EngineType = string; // @public export type EventGridDataConnection = DataConnection & { storageAccountResourceId?: string; + eventGridResourceId?: string; eventHubResourceId?: string; consumerGroup?: string; tableName?: string; @@ -808,6 +835,9 @@ export type EventGridDataConnection = DataConnection & { dataFormat?: EventGridDataFormat; ignoreFirstRecord?: boolean; blobStorageEventType?: BlobStorageEventType; + managedIdentityResourceId?: string; + readonly managedIdentityObjectId?: string; + databaseRouting?: DatabaseRouting; readonly provisioningState?: ProvisioningState; }; @@ -825,6 +855,8 @@ export type EventHubDataConnection = DataConnection & { compression?: Compression; readonly provisioningState?: ProvisioningState; managedIdentityResourceId?: string; + readonly managedIdentityObjectId?: string; + databaseRouting?: DatabaseRouting; }; // @public @@ -864,6 +896,7 @@ export type IotHubDataConnection = DataConnection & { dataFormat?: IotHubDataFormat; eventSystemProperties?: string[]; sharedAccessPolicyName?: string; + databaseRouting?: DatabaseRouting; readonly provisioningState?: ProvisioningState; }; @@ -906,6 +939,12 @@ export enum KnownAzureSkuName { // (undocumented) StandardD14V2 = "Standard_D14_v2", // (undocumented) + StandardD16DV5 = "Standard_D16d_v5", + // (undocumented) + StandardD32DV4 = "Standard_D32d_v4", + // (undocumented) + StandardD32DV5 = "Standard_D32d_v5", + // (undocumented) StandardDS13V21TBPS = "Standard_DS13_v2+1TB_PS", // (undocumented) StandardDS13V22TBPS = "Standard_DS13_v2+2TB_PS", @@ -914,26 +953,58 @@ export enum KnownAzureSkuName { // (undocumented) StandardDS14V24TBPS = "Standard_DS14_v2+4TB_PS", // (undocumented) + StandardE16AdsV5 = "Standard_E16ads_v5", + // (undocumented) StandardE16AsV43TBPS = "Standard_E16as_v4+3TB_PS", // (undocumented) StandardE16AsV44TBPS = "Standard_E16as_v4+4TB_PS", // (undocumented) + StandardE16AsV53TBPS = "Standard_E16as_v5+3TB_PS", + // (undocumented) + StandardE16AsV54TBPS = "Standard_E16as_v5+4TB_PS", + // (undocumented) StandardE16AV4 = "Standard_E16a_v4", // (undocumented) + StandardE16SV43TBPS = "Standard_E16s_v4+3TB_PS", + // (undocumented) + StandardE16SV44TBPS = "Standard_E16s_v4+4TB_PS", + // (undocumented) + StandardE16SV53TBPS = "Standard_E16s_v5+3TB_PS", + // (undocumented) + StandardE16SV54TBPS = "Standard_E16s_v5+4TB_PS", + // (undocumented) + StandardE2AdsV5 = "Standard_E2ads_v5", + // (undocumented) StandardE2AV4 = "Standard_E2a_v4", // (undocumented) + StandardE4AdsV5 = "Standard_E4ads_v5", + // (undocumented) StandardE4AV4 = "Standard_E4a_v4", // (undocumented) StandardE64IV3 = "Standard_E64i_v3", // (undocumented) StandardE80IdsV4 = "Standard_E80ids_v4", // (undocumented) + StandardE8AdsV5 = "Standard_E8ads_v5", + // (undocumented) StandardE8AsV41TBPS = "Standard_E8as_v4+1TB_PS", // (undocumented) StandardE8AsV42TBPS = "Standard_E8as_v4+2TB_PS", // (undocumented) + StandardE8AsV51TBPS = "Standard_E8as_v5+1TB_PS", + // (undocumented) + StandardE8AsV52TBPS = "Standard_E8as_v5+2TB_PS", + // (undocumented) StandardE8AV4 = "Standard_E8a_v4", // (undocumented) + StandardE8SV41TBPS = "Standard_E8s_v4+1TB_PS", + // (undocumented) + StandardE8SV42TBPS = "Standard_E8s_v4+2TB_PS", + // (undocumented) + StandardE8SV51TBPS = "Standard_E8s_v5+1TB_PS", + // (undocumented) + StandardE8SV52TBPS = "Standard_E8s_v5+2TB_PS", + // (undocumented) StandardL16S = "Standard_L16s", // (undocumented) StandardL16SV2 = "Standard_L16s_v2", @@ -1023,6 +1094,14 @@ export enum KnownDatabasePrincipalType { User = "User" } +// @public +export enum KnownDatabaseRouting { + // (undocumented) + Multi = "Multi", + // (undocumented) + Single = "Single" +} + // @public export enum KnownDataConnectionKind { // (undocumented) @@ -1223,6 +1302,14 @@ export enum KnownProvisioningState { Succeeded = "Succeeded" } +// @public +export enum KnownPublicIPType { + // (undocumented) + DualStack = "DualStack", + // (undocumented) + IPv4 = "IPv4" +} + // @public export enum KnownPublicNetworkAccess { // (undocumented) @@ -1299,6 +1386,8 @@ export class KustoManagementClient extends coreClient.ServiceClient { // (undocumented) operationsResults: OperationsResults; // (undocumented) + operationsResultsLocation: OperationsResultsLocation; + // (undocumented) privateEndpointConnections: PrivateEndpointConnections; // (undocumented) privateLinkResources: PrivateLinkResources; @@ -1403,6 +1492,11 @@ export interface ManagedPrivateEndpointsListOptionalParams extends coreClient.Op // @public export type ManagedPrivateEndpointsListResponse = ManagedPrivateEndpointListResult; +// @public +export interface ManagedPrivateEndpointsUpdateHeaders { + azureAsyncOperation?: string; +} + // @public export interface ManagedPrivateEndpointsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1444,6 +1538,7 @@ export interface OperationResult { operationKind?: string; operationState?: string; percentComplete?: number; + readonly provisioningState?: ProvisioningState; startTime?: Date; readonly status?: Status; } @@ -1479,6 +1574,15 @@ export interface OperationsResultsGetOptionalParams extends coreClient.Operation // @public export type OperationsResultsGetResponse = OperationResult; +// @public +export interface OperationsResultsLocation { + get(location: string, operationId: string, options?: OperationsResultsLocationGetOptionalParams): Promise; +} + +// @public +export interface OperationsResultsLocationGetOptionalParams extends coreClient.OperationOptions { +} + // @public export interface OptimizedAutoscale { isEnabled: boolean; @@ -1611,6 +1715,9 @@ export type ProvisioningState = string; // @public export type ProxyResource = Resource & {}; +// @public +export type PublicIPType = string; + // @public export type PublicNetworkAccess = string; @@ -1649,6 +1756,7 @@ export type Script = ProxyResource & { readonly systemData?: SystemData; scriptUrl?: string; scriptUrlSasToken?: string; + scriptContent?: string; forceUpdateTag?: string; continueOnErrors?: boolean; readonly provisioningState?: ProvisioningState; @@ -1714,6 +1822,11 @@ export interface ScriptsListByDatabaseOptionalParams extends coreClient.Operatio // @public export type ScriptsListByDatabaseResponse = ScriptListResult; +// @public +export interface ScriptsUpdateHeaders { + azureAsyncOperation?: string; +} + // @public export interface ScriptsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts index 04be4943e01d..f523dffb84b4 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts @@ -20,7 +20,8 @@ import { PrivateLinkResourcesImpl, DataConnectionsImpl, OperationsImpl, - OperationsResultsImpl + OperationsResultsImpl, + OperationsResultsLocationImpl } from "./operations"; import { Clusters, @@ -34,7 +35,8 @@ import { PrivateLinkResources, DataConnections, Operations, - OperationsResults + OperationsResults, + OperationsResultsLocation } from "./operationsInterfaces"; import { KustoManagementClientOptionalParams } from "./models"; @@ -71,7 +73,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-kusto/7.0.1`; + const packageDetails = `azsdk-js-arm-kusto/7.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -94,7 +96,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-27"; + this.apiVersion = options.apiVersion || "2022-02-01"; this.clusters = new ClustersImpl(this); this.clusterPrincipalAssignments = new ClusterPrincipalAssignmentsImpl( this @@ -113,6 +115,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { this.dataConnections = new DataConnectionsImpl(this); this.operations = new OperationsImpl(this); this.operationsResults = new OperationsResultsImpl(this); + this.operationsResultsLocation = new OperationsResultsLocationImpl(this); } clusters: Clusters; @@ -127,4 +130,5 @@ export class KustoManagementClient extends coreClient.ServiceClient { dataConnections: DataConnections; operations: Operations; operationsResults: OperationsResults; + operationsResultsLocation: OperationsResultsLocation; } diff --git a/sdk/kusto/arm-kusto/src/models/index.ts b/sdk/kusto/arm-kusto/src/models/index.ts index 484f2aab19fd..3d764ff4e924 100644 --- a/sdk/kusto/arm-kusto/src/models/index.ts +++ b/sdk/kusto/arm-kusto/src/models/index.ts @@ -135,6 +135,28 @@ export interface AcceptedAudiences { value?: string; } +/** Private endpoint which the connection belongs to. */ +export interface PrivateEndpointProperty { + /** + * Resource id of the private endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; +} + +/** Connection State of the Private Endpoint Connection. */ +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status?: string; + /** The private link service connection description. */ + description?: string; + /** + * Any action that is required beyond basic workflow (approve/ reject/ disconnect) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** @@ -410,28 +432,6 @@ export interface PrivateEndpointConnectionListResult { value?: PrivateEndpointConnection[]; } -/** Private endpoint which the connection belongs to. */ -export interface PrivateEndpointProperty { - /** - * Resource id of the private endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; -} - -/** Connection State of the Private Endpoint Connection. */ -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status?: string; - /** The private link service connection description. */ - description?: string; - /** - * Any action that is required beyond basic workflow (approve/ reject/ disconnect) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionsRequired?: string; -} - /** A list of private link resources */ export interface PrivateLinkResourceListResult { /** Array of private link resources */ @@ -588,6 +588,11 @@ export interface OperationResult { message?: string; /** The kind of the operation. */ operationKind?: string; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** The state of the operation. */ operationState?: string; } @@ -598,6 +603,9 @@ export interface DatabaseStatistics { size?: number; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export type ProxyResource = Resource & {}; + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export type TrackedResource = Resource & { /** Resource tags. */ @@ -676,11 +684,17 @@ export type ClusterUpdate = Resource & { restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; /** List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. */ allowedFqdnList?: string[]; + /** Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6) */ + publicIPType?: PublicIPType; + /** Virtual Cluster graduation properties */ + virtualClusterGraduationProperties?: string; + /** + * A list of private endpoint connections. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; }; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; - /** A private link resource */ export type PrivateLinkResource = Resource & { /** @@ -705,84 +719,30 @@ export type PrivateLinkResource = Resource & { readonly requiredZoneNames?: string[]; }; -/** Class representing a Kusto cluster. */ -export type Cluster = TrackedResource & { - /** The SKU of the cluster. */ - sku: AzureSku; +/** A private endpoint connection */ +export type PrivateEndpointConnection = ProxyResource & { /** * Metadata pertaining to creation and last modification of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The availability zones of the cluster. */ - zones?: string[]; - /** The identity of the cluster, if configured. */ - identity?: Identity; /** - * A unique read-only string that changes whenever the resource is updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** - * The state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: State; - /** - * The provisioned state of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * The cluster URI. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly uri?: string; - /** - * The cluster data ingestion URI. + * Private endpoint which the connection belongs to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataIngestionUri?: string; + readonly privateEndpoint?: PrivateEndpointProperty; + /** Connection State of the Private Endpoint Connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; /** - * The reason for the cluster's current state. + * Group id of the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly stateReason?: string; - /** The cluster's external tenants. */ - trustedExternalTenants?: TrustedExternalTenant[]; - /** Optimized auto scale definition. */ - optimizedAutoscale?: OptimizedAutoscale; - /** A boolean value that indicates if the cluster's disks are encrypted. */ - enableDiskEncryption?: boolean; - /** A boolean value that indicates if the streaming ingest is enabled. */ - enableStreamingIngest?: boolean; - /** Virtual network definition. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; - /** KeyVault properties for the cluster encryption. */ - keyVaultProperties?: KeyVaultProperties; - /** A boolean value that indicates if the purge operations are enabled. */ - enablePurge?: boolean; + readonly groupId?: string; /** - * List of the cluster's language extensions. + * Provisioning state of the private endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly languageExtensions?: LanguageExtensionsList; - /** A boolean value that indicates if double encryption is enabled. */ - enableDoubleEncryption?: boolean; - /** Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed */ - publicNetworkAccess?: PublicNetworkAccess; - /** The list of ips in the format of CIDR allowed to connect to the cluster. */ - allowedIpRangeList?: string[]; - /** The engine type */ - engineType?: EngineType; - /** The cluster's accepted audiences. */ - acceptedAudiences?: AcceptedAudiences[]; - /** A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days). */ - enableAutoStop?: boolean; - /** Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; - /** List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. */ - allowedFqdnList?: string[]; + readonly provisioningState?: string; }; /** Class representing a cluster principal assignment. */ @@ -810,6 +770,11 @@ export type ClusterPrincipalAssignment = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * The service principal object id in AAD (Azure active directory) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aadObjectId?: string; }; /** Class representing a Kusto database. */ @@ -845,6 +810,11 @@ export type DatabasePrincipalAssignment = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * The service principal object id in AAD (Azure active directory) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly aadObjectId?: string; }; /** Class representing a database script. */ @@ -854,10 +824,12 @@ export type Script = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** The url to the KQL script blob file. */ + /** The url to the KQL script blob file. Must not be used together with scriptContent property */ scriptUrl?: string; - /** The SaS token. */ + /** The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property. */ scriptUrlSasToken?: string; + /** The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties. */ + scriptContent?: string; /** A unique string. If changed the script will be applied again. */ forceUpdateTag?: string; /** Flag that indicates whether to continue if one of the command fails. */ @@ -891,32 +863,6 @@ export type ManagedPrivateEndpoint = ProxyResource & { readonly provisioningState?: ProvisioningState; }; -/** A private endpoint connection */ -export type PrivateEndpointConnection = ProxyResource & { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * Private endpoint which the connection belongs to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpoint?: PrivateEndpointProperty; - /** Connection State of the Private Endpoint Connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; - /** - * Group id of the private endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly groupId?: string; - /** - * Provisioning state of the private endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -}; - /** Endpoints accessed for a common purpose that the Kusto Service Environment requires outbound network access to. */ export type OutboundNetworkDependenciesEndpoint = ProxyResource & { /** @@ -967,6 +913,95 @@ export type DataConnection = ProxyResource & { kind: DataConnectionKind; }; +/** Class representing a Kusto cluster. */ +export type Cluster = TrackedResource & { + /** The SKU of the cluster. */ + sku: AzureSku; + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The availability zones of the cluster. */ + zones?: string[]; + /** The identity of the cluster, if configured. */ + identity?: Identity; + /** + * A unique read-only string that changes whenever the resource is updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly etag?: string; + /** + * The state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: State; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The cluster URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uri?: string; + /** + * The cluster data ingestion URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataIngestionUri?: string; + /** + * The reason for the cluster's current state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly stateReason?: string; + /** The cluster's external tenants. */ + trustedExternalTenants?: TrustedExternalTenant[]; + /** Optimized auto scale definition. */ + optimizedAutoscale?: OptimizedAutoscale; + /** A boolean value that indicates if the cluster's disks are encrypted. */ + enableDiskEncryption?: boolean; + /** A boolean value that indicates if the streaming ingest is enabled. */ + enableStreamingIngest?: boolean; + /** Virtual network definition. */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** KeyVault properties for the cluster encryption. */ + keyVaultProperties?: KeyVaultProperties; + /** A boolean value that indicates if the purge operations are enabled. */ + enablePurge?: boolean; + /** + * List of the cluster's language extensions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly languageExtensions?: LanguageExtensionsList; + /** A boolean value that indicates if double encryption is enabled. */ + enableDoubleEncryption?: boolean; + /** Public network access to the cluster is enabled by default. When disabled, only private endpoint connection to the cluster is allowed */ + publicNetworkAccess?: PublicNetworkAccess; + /** The list of ips in the format of CIDR allowed to connect to the cluster. */ + allowedIpRangeList?: string[]; + /** The engine type */ + engineType?: EngineType; + /** The cluster's accepted audiences. */ + acceptedAudiences?: AcceptedAudiences[]; + /** A boolean value that indicates if the cluster could be automatically stopped (due to lack of data or no activity for many days). */ + enableAutoStop?: boolean; + /** Whether or not to restrict outbound network access. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; + /** List of allowed FQDNs(Fully Qualified Domain Name) for egress from Cluster. */ + allowedFqdnList?: string[]; + /** Indicates what public IP type to create - IPv4 (default), or DualStack (both IPv4 and IPv6) */ + publicIPType?: PublicIPType; + /** Virtual Cluster graduation properties */ + virtualClusterGraduationProperties?: string; + /** + * A list of private endpoint connections. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; +}; + /** Class representing a read write database. */ export type ReadWriteDatabase = Database & { /** @@ -1049,6 +1084,13 @@ export type EventHubDataConnection = DataConnection & { readonly provisioningState?: ProvisioningState; /** The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub. */ managedIdentityResourceId?: string; + /** + * The object ID of the managedIdentityResourceId + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedIdentityObjectId?: string; + /** Indication for database routing information from the data connection, by default only database routing information is allowed */ + databaseRouting?: DatabaseRouting; }; /** Class representing an iot hub data connection. */ @@ -1067,6 +1109,8 @@ export type IotHubDataConnection = DataConnection & { eventSystemProperties?: string[]; /** The name of the share access policy */ sharedAccessPolicyName?: string; + /** Indication for database routing information from the data connection, by default only database routing information is allowed */ + databaseRouting?: DatabaseRouting; /** * The provisioned state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1078,6 +1122,8 @@ export type IotHubDataConnection = DataConnection & { export type EventGridDataConnection = DataConnection & { /** The resource ID of the storage account where the data resides. */ storageAccountResourceId?: string; + /** The resource ID of the event grid that is subscribed to the storage account events. */ + eventGridResourceId?: string; /** The resource ID where the event grid is configured to send events. */ eventHubResourceId?: string; /** The event hub consumer group. */ @@ -1092,6 +1138,15 @@ export type EventGridDataConnection = DataConnection & { ignoreFirstRecord?: boolean; /** The name of blob storage event type to process. */ blobStorageEventType?: BlobStorageEventType; + /** The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub and storage account. */ + managedIdentityResourceId?: string; + /** + * The object ID of managedIdentityResourceId + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managedIdentityObjectId?: string; + /** Indication for database routing information from the data connection, by default only database routing information is allowed */ + databaseRouting?: DatabaseRouting; /** * The provisioned state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1099,22 +1154,56 @@ export type EventGridDataConnection = DataConnection & { readonly provisioningState?: ProvisioningState; }; +/** Defines headers for Clusters_update operation. */ +export interface ClustersUpdateHeaders { + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Databases_update operation. */ +export interface DatabasesUpdateHeaders { + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for ManagedPrivateEndpoints_update operation. */ +export interface ManagedPrivateEndpointsUpdateHeaders { + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Scripts_update operation. */ +export interface ScriptsUpdateHeaders { + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for DataConnections_update operation. */ +export interface DataConnectionsUpdateHeaders { + /** URL to query for status of the operation. */ + azureAsyncOperation?: string; +} + /** Known values of {@link AzureSkuName} that the service accepts. */ export enum KnownAzureSkuName { + DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2", + DevNoSLAStandardE2AV4 = "Dev(No SLA)_Standard_E2a_v4", + StandardD11V2 = "Standard_D11_v2", + StandardD12V2 = "Standard_D12_v2", + StandardD13V2 = "Standard_D13_v2", + StandardD14V2 = "Standard_D14_v2", + StandardD32DV4 = "Standard_D32d_v4", + StandardD16DV5 = "Standard_D16d_v5", + StandardD32DV5 = "Standard_D32d_v5", StandardDS13V21TBPS = "Standard_DS13_v2+1TB_PS", StandardDS13V22TBPS = "Standard_DS13_v2+2TB_PS", StandardDS14V23TBPS = "Standard_DS14_v2+3TB_PS", StandardDS14V24TBPS = "Standard_DS14_v2+4TB_PS", - StandardD13V2 = "Standard_D13_v2", - StandardD14V2 = "Standard_D14_v2", + StandardL4S = "Standard_L4s", StandardL8S = "Standard_L8s", StandardL16S = "Standard_L16s", StandardL8SV2 = "Standard_L8s_v2", StandardL16SV2 = "Standard_L16s_v2", - StandardD11V2 = "Standard_D11_v2", - StandardD12V2 = "Standard_D12_v2", - StandardL4S = "Standard_L4s", - DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2", StandardE64IV3 = "Standard_E64i_v3", StandardE80IdsV4 = "Standard_E80ids_v4", StandardE2AV4 = "Standard_E2a_v4", @@ -1125,7 +1214,22 @@ export enum KnownAzureSkuName { StandardE8AsV42TBPS = "Standard_E8as_v4+2TB_PS", StandardE16AsV43TBPS = "Standard_E16as_v4+3TB_PS", StandardE16AsV44TBPS = "Standard_E16as_v4+4TB_PS", - DevNoSLAStandardE2AV4 = "Dev(No SLA)_Standard_E2a_v4" + StandardE8AsV51TBPS = "Standard_E8as_v5+1TB_PS", + StandardE8AsV52TBPS = "Standard_E8as_v5+2TB_PS", + StandardE16AsV53TBPS = "Standard_E16as_v5+3TB_PS", + StandardE16AsV54TBPS = "Standard_E16as_v5+4TB_PS", + StandardE2AdsV5 = "Standard_E2ads_v5", + StandardE4AdsV5 = "Standard_E4ads_v5", + StandardE8AdsV5 = "Standard_E8ads_v5", + StandardE16AdsV5 = "Standard_E16ads_v5", + StandardE8SV41TBPS = "Standard_E8s_v4+1TB_PS", + StandardE8SV42TBPS = "Standard_E8s_v4+2TB_PS", + StandardE16SV43TBPS = "Standard_E16s_v4+3TB_PS", + StandardE16SV44TBPS = "Standard_E16s_v4+4TB_PS", + StandardE8SV51TBPS = "Standard_E8s_v5+1TB_PS", + StandardE8SV52TBPS = "Standard_E8s_v5+2TB_PS", + StandardE16SV53TBPS = "Standard_E16s_v5+3TB_PS", + StandardE16SV54TBPS = "Standard_E16s_v5+4TB_PS" } /** @@ -1133,20 +1237,24 @@ export enum KnownAzureSkuName { * {@link KnownAzureSkuName} can be used interchangeably with AzureSkuName, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Dev(No SLA)_Standard_D11_v2** \ + * **Dev(No SLA)_Standard_E2a_v4** \ + * **Standard_D11_v2** \ + * **Standard_D12_v2** \ + * **Standard_D13_v2** \ + * **Standard_D14_v2** \ + * **Standard_D32d_v4** \ + * **Standard_D16d_v5** \ + * **Standard_D32d_v5** \ * **Standard_DS13_v2+1TB_PS** \ * **Standard_DS13_v2+2TB_PS** \ * **Standard_DS14_v2+3TB_PS** \ * **Standard_DS14_v2+4TB_PS** \ - * **Standard_D13_v2** \ - * **Standard_D14_v2** \ + * **Standard_L4s** \ * **Standard_L8s** \ * **Standard_L16s** \ * **Standard_L8s_v2** \ * **Standard_L16s_v2** \ - * **Standard_D11_v2** \ - * **Standard_D12_v2** \ - * **Standard_L4s** \ - * **Dev(No SLA)_Standard_D11_v2** \ * **Standard_E64i_v3** \ * **Standard_E80ids_v4** \ * **Standard_E2a_v4** \ @@ -1157,7 +1265,22 @@ export enum KnownAzureSkuName { * **Standard_E8as_v4+2TB_PS** \ * **Standard_E16as_v4+3TB_PS** \ * **Standard_E16as_v4+4TB_PS** \ - * **Dev(No SLA)_Standard_E2a_v4** + * **Standard_E8as_v5+1TB_PS** \ + * **Standard_E8as_v5+2TB_PS** \ + * **Standard_E16as_v5+3TB_PS** \ + * **Standard_E16as_v5+4TB_PS** \ + * **Standard_E2ads_v5** \ + * **Standard_E4ads_v5** \ + * **Standard_E8ads_v5** \ + * **Standard_E16ads_v5** \ + * **Standard_E8s_v4+1TB_PS** \ + * **Standard_E8s_v4+2TB_PS** \ + * **Standard_E16s_v4+3TB_PS** \ + * **Standard_E16s_v4+4TB_PS** \ + * **Standard_E8s_v5+1TB_PS** \ + * **Standard_E8s_v5+2TB_PS** \ + * **Standard_E16s_v5+3TB_PS** \ + * **Standard_E16s_v5+4TB_PS** */ export type AzureSkuName = string; @@ -1335,6 +1458,22 @@ export enum KnownClusterNetworkAccessFlag { */ export type ClusterNetworkAccessFlag = string; +/** Known values of {@link PublicIPType} that the service accepts. */ +export enum KnownPublicIPType { + IPv4 = "IPv4", + DualStack = "DualStack" +} + +/** + * Defines values for PublicIPType. \ + * {@link KnownPublicIPType} can be used interchangeably with PublicIPType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPv4** \ + * **DualStack** + */ +export type PublicIPType = string; + /** Known values of {@link Reason} that the service accepts. */ export enum KnownReason { Invalid = "Invalid", @@ -1595,6 +1734,22 @@ export enum KnownCompression { */ export type Compression = string; +/** Known values of {@link DatabaseRouting} that the service accepts. */ +export enum KnownDatabaseRouting { + Single = "Single", + Multi = "Multi" +} + +/** + * Defines values for DatabaseRouting. \ + * {@link KnownDatabaseRouting} can be used interchangeably with DatabaseRouting, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Single** \ + * **Multi** + */ +export type DatabaseRouting = string; + /** Known values of {@link IotHubDataFormat} that the service accepts. */ export enum KnownIotHubDataFormat { Multijson = "MULTIJSON", @@ -2313,6 +2468,10 @@ export interface OperationsResultsGetOptionalParams /** Contains response data for the get operation. */ export type OperationsResultsGetResponse = OperationResult; +/** Optional parameters. */ +export interface OperationsResultsLocationGetOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface KustoManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/kusto/arm-kusto/src/models/mappers.ts b/sdk/kusto/arm-kusto/src/models/mappers.ts index 8d350d03a51b..f109d164b05c 100644 --- a/sdk/kusto/arm-kusto/src/models/mappers.ts +++ b/sdk/kusto/arm-kusto/src/models/mappers.ts @@ -315,6 +315,50 @@ export const AcceptedAudiences: coreClient.CompositeMapper = { } }; +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1099,50 +1143,6 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { } }; -export const PrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1619,6 +1619,13 @@ export const OperationResult: coreClient.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, operationState: { serializedName: "properties.operationState", type: { @@ -1644,6 +1651,16 @@ export const DatabaseStatistics: coreClient.CompositeMapper = { } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1849,6 +1866,7 @@ export const ClusterUpdate: coreClient.CompositeMapper = { } }, restrictOutboundNetworkAccess: { + defaultValue: "Disabled", serializedName: "properties.restrictOutboundNetworkAccess", type: { name: "String" @@ -1864,21 +1882,37 @@ export const ClusterUpdate: coreClient.CompositeMapper = { } } } + }, + publicIPType: { + defaultValue: "IPv4", + serializedName: "properties.publicIPType", + type: { + name: "String" + } + }, + virtualClusterGraduationProperties: { + serializedName: "properties.virtualClusterGraduationProperties", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } } } } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1927,19 +1961,12 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const Cluster: coreClient.CompositeMapper = { +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cluster", + className: "PrivateEndpointConnection", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "AzureSku" - } - }, + ...ProxyResource.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -1947,33 +1974,22 @@ export const Cluster: coreClient.CompositeMapper = { className: "SystemData" } }, - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - identity: { - serializedName: "identity", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "Identity" + className: "PrivateEndpointProperty" } }, - etag: { - serializedName: "etag", - readOnly: true, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, - state: { - serializedName: "properties.state", + groupId: { + serializedName: "properties.groupId", readOnly: true, type: { name: "String" @@ -1985,210 +2001,67 @@ export const Cluster: coreClient.CompositeMapper = { type: { name: "String" } - }, - uri: { - serializedName: "properties.uri", - readOnly: true, + } + } + } +}; + +export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterPrincipalAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + principalId: { + serializedName: "properties.principalId", type: { name: "String" } }, - dataIngestionUri: { - serializedName: "properties.dataIngestionUri", - readOnly: true, + role: { + serializedName: "properties.role", type: { name: "String" } }, - stateReason: { - serializedName: "properties.stateReason", - readOnly: true, + tenantId: { + serializedName: "properties.tenantId", type: { name: "String" } }, - trustedExternalTenants: { - serializedName: "properties.trustedExternalTenants", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrustedExternalTenant" - } - } - } - }, - optimizedAutoscale: { - serializedName: "properties.optimizedAutoscale", + principalType: { + serializedName: "properties.principalType", type: { - name: "Composite", - className: "OptimizedAutoscale" + name: "String" } }, - enableDiskEncryption: { - defaultValue: false, - serializedName: "properties.enableDiskEncryption", + tenantName: { + serializedName: "properties.tenantName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - enableStreamingIngest: { - defaultValue: false, - serializedName: "properties.enableStreamingIngest", + principalName: { + serializedName: "properties.principalName", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "String" } }, - keyVaultProperties: { - serializedName: "properties.keyVaultProperties", + aadObjectId: { + serializedName: "properties.aadObjectId", + readOnly: true, type: { - name: "Composite", - className: "KeyVaultProperties" - } - }, - enablePurge: { - defaultValue: false, - serializedName: "properties.enablePurge", - type: { - name: "Boolean" - } - }, - languageExtensions: { - serializedName: "properties.languageExtensions", - type: { - name: "Composite", - className: "LanguageExtensionsList" - } - }, - enableDoubleEncryption: { - defaultValue: false, - serializedName: "properties.enableDoubleEncryption", - type: { - name: "Boolean" - } - }, - publicNetworkAccess: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - allowedIpRangeList: { - serializedName: "properties.allowedIpRangeList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - engineType: { - defaultValue: "V3", - serializedName: "properties.engineType", - type: { - name: "String" - } - }, - acceptedAudiences: { - serializedName: "properties.acceptedAudiences", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AcceptedAudiences" - } - } - } - }, - enableAutoStop: { - defaultValue: true, - serializedName: "properties.enableAutoStop", - type: { - name: "Boolean" - } - }, - restrictOutboundNetworkAccess: { - serializedName: "properties.restrictOutboundNetworkAccess", - type: { - name: "String" - } - }, - allowedFqdnList: { - serializedName: "properties.allowedFqdnList", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ClusterPrincipalAssignment", - modelProperties: { - ...ProxyResource.type.modelProperties, - principalId: { - serializedName: "properties.principalId", - type: { - name: "String" - } - }, - role: { - serializedName: "properties.role", - type: { - name: "String" - } - }, - tenantId: { - serializedName: "properties.tenantId", - type: { - name: "String" - } - }, - principalType: { - serializedName: "properties.principalType", - type: { - name: "String" - } - }, - tenantName: { - serializedName: "properties.tenantName", - readOnly: true, - type: { - name: "String" - } - }, - principalName: { - serializedName: "properties.principalName", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" + name: "String" } } } @@ -2274,6 +2147,13 @@ export const DatabasePrincipalAssignment: coreClient.CompositeMapper = { type: { name: "String" } + }, + aadObjectId: { + serializedName: "properties.aadObjectId", + readOnly: true, + type: { + name: "String" + } } } } @@ -2304,6 +2184,12 @@ export const Script: coreClient.CompositeMapper = { name: "String" } }, + scriptContent: { + serializedName: "properties.scriptContent", + type: { + name: "String" + } + }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { @@ -2376,51 +2262,6 @@ export const ManagedPrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const OutboundNetworkDependenciesEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2552,6 +2393,246 @@ export const DataConnection: coreClient.CompositeMapper = { } }; +export const Cluster: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "AzureSku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + readOnly: true, + type: { + name: "String" + } + }, + dataIngestionUri: { + serializedName: "properties.dataIngestionUri", + readOnly: true, + type: { + name: "String" + } + }, + stateReason: { + serializedName: "properties.stateReason", + readOnly: true, + type: { + name: "String" + } + }, + trustedExternalTenants: { + serializedName: "properties.trustedExternalTenants", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TrustedExternalTenant" + } + } + } + }, + optimizedAutoscale: { + serializedName: "properties.optimizedAutoscale", + type: { + name: "Composite", + className: "OptimizedAutoscale" + } + }, + enableDiskEncryption: { + defaultValue: false, + serializedName: "properties.enableDiskEncryption", + type: { + name: "Boolean" + } + }, + enableStreamingIngest: { + defaultValue: false, + serializedName: "properties.enableStreamingIngest", + type: { + name: "Boolean" + } + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + keyVaultProperties: { + serializedName: "properties.keyVaultProperties", + type: { + name: "Composite", + className: "KeyVaultProperties" + } + }, + enablePurge: { + defaultValue: false, + serializedName: "properties.enablePurge", + type: { + name: "Boolean" + } + }, + languageExtensions: { + serializedName: "properties.languageExtensions", + type: { + name: "Composite", + className: "LanguageExtensionsList" + } + }, + enableDoubleEncryption: { + defaultValue: false, + serializedName: "properties.enableDoubleEncryption", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + allowedIpRangeList: { + serializedName: "properties.allowedIpRangeList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + engineType: { + defaultValue: "V3", + serializedName: "properties.engineType", + type: { + name: "String" + } + }, + acceptedAudiences: { + serializedName: "properties.acceptedAudiences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AcceptedAudiences" + } + } + } + }, + enableAutoStop: { + defaultValue: true, + serializedName: "properties.enableAutoStop", + type: { + name: "Boolean" + } + }, + restrictOutboundNetworkAccess: { + defaultValue: "Disabled", + serializedName: "properties.restrictOutboundNetworkAccess", + type: { + name: "String" + } + }, + allowedFqdnList: { + serializedName: "properties.allowedFqdnList", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + publicIPType: { + defaultValue: "IPv4", + serializedName: "properties.publicIPType", + type: { + name: "String" + } + }, + virtualClusterGraduationProperties: { + serializedName: "properties.virtualClusterGraduationProperties", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + } + } + } +}; + export const ReadWriteDatabase: coreClient.CompositeMapper = { serializedName: "ReadWrite", type: { @@ -2728,6 +2809,19 @@ export const EventHubDataConnection: coreClient.CompositeMapper = { type: { name: "String" } + }, + managedIdentityObjectId: { + serializedName: "properties.managedIdentityObjectId", + readOnly: true, + type: { + name: "String" + } + }, + databaseRouting: { + serializedName: "properties.databaseRouting", + type: { + name: "String" + } } } } @@ -2789,6 +2883,12 @@ export const IotHubDataConnection: coreClient.CompositeMapper = { name: "String" } }, + databaseRouting: { + serializedName: "properties.databaseRouting", + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -2815,6 +2915,12 @@ export const EventGridDataConnection: coreClient.CompositeMapper = { name: "String" } }, + eventGridResourceId: { + serializedName: "properties.eventGridResourceId", + type: { + name: "String" + } + }, eventHubResourceId: { serializedName: "properties.eventHubResourceId", type: { @@ -2857,6 +2963,25 @@ export const EventGridDataConnection: coreClient.CompositeMapper = { name: "String" } }, + managedIdentityResourceId: { + serializedName: "properties.managedIdentityResourceId", + type: { + name: "String" + } + }, + managedIdentityObjectId: { + serializedName: "properties.managedIdentityObjectId", + readOnly: true, + type: { + name: "String" + } + }, + databaseRouting: { + serializedName: "properties.databaseRouting", + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -2868,6 +2993,81 @@ export const EventGridDataConnection: coreClient.CompositeMapper = { } }; +export const ClustersUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClustersUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const DatabasesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabasesUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedPrivateEndpointsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedPrivateEndpointsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ScriptsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const DataConnectionsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataConnectionsUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + export let discriminators = { "Resource.Database": Database, "Resource.DataConnection": DataConnection, diff --git a/sdk/kusto/arm-kusto/src/models/parameters.ts b/sdk/kusto/arm-kusto/src/models/parameters.ts index 7c324f0e5f90..0accda1c154e 100644 --- a/sdk/kusto/arm-kusto/src/models/parameters.ts +++ b/sdk/kusto/arm-kusto/src/models/parameters.ts @@ -96,7 +96,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-27", + defaultValue: "2022-02-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/kusto/arm-kusto/src/operations/index.ts b/sdk/kusto/arm-kusto/src/operations/index.ts index d1b10da33d6b..80c20784e6f8 100644 --- a/sdk/kusto/arm-kusto/src/operations/index.ts +++ b/sdk/kusto/arm-kusto/src/operations/index.ts @@ -18,3 +18,4 @@ export * from "./privateLinkResources"; export * from "./dataConnections"; export * from "./operations"; export * from "./operationsResults"; +export * from "./operationsResultsLocation"; diff --git a/sdk/kusto/arm-kusto/src/operations/operationsResults.ts b/sdk/kusto/arm-kusto/src/operations/operationsResults.ts index 99dbe6bec1b8..ddaca890b142 100644 --- a/sdk/kusto/arm-kusto/src/operations/operationsResults.ts +++ b/sdk/kusto/arm-kusto/src/operations/operationsResults.ts @@ -50,7 +50,7 @@ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationresults/{operationId}", + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}", httpMethod: "GET", responses: { 200: { diff --git a/sdk/kusto/arm-kusto/src/operations/operationsResultsLocation.ts b/sdk/kusto/arm-kusto/src/operations/operationsResultsLocation.ts new file mode 100644 index 000000000000..64997b40ab47 --- /dev/null +++ b/sdk/kusto/arm-kusto/src/operations/operationsResultsLocation.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { OperationsResultsLocation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { KustoManagementClient } from "../kustoManagementClient"; +import { OperationsResultsLocationGetOptionalParams } from "../models"; + +/** Class containing OperationsResultsLocation operations. */ +export class OperationsResultsLocationImpl + implements OperationsResultsLocation { + private readonly client: KustoManagementClient; + + /** + * Initialize a new instance of the class OperationsResultsLocation class. + * @param client Reference to the service client + */ + constructor(client: KustoManagementClient) { + this.client = client; + } + + /** + * Returns operation results. + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationsResultsLocationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, operationId, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}", + httpMethod: "GET", + responses: { 200: {}, 202: {}, default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location, + Parameters.operationId + ], + serializer +}; diff --git a/sdk/kusto/arm-kusto/src/operationsInterfaces/index.ts b/sdk/kusto/arm-kusto/src/operationsInterfaces/index.ts index d1b10da33d6b..80c20784e6f8 100644 --- a/sdk/kusto/arm-kusto/src/operationsInterfaces/index.ts +++ b/sdk/kusto/arm-kusto/src/operationsInterfaces/index.ts @@ -18,3 +18,4 @@ export * from "./privateLinkResources"; export * from "./dataConnections"; export * from "./operations"; export * from "./operationsResults"; +export * from "./operationsResultsLocation"; diff --git a/sdk/kusto/arm-kusto/src/operationsInterfaces/operationsResultsLocation.ts b/sdk/kusto/arm-kusto/src/operationsInterfaces/operationsResultsLocation.ts new file mode 100644 index 000000000000..4c834c5a593f --- /dev/null +++ b/sdk/kusto/arm-kusto/src/operationsInterfaces/operationsResultsLocation.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { OperationsResultsLocationGetOptionalParams } from "../models"; + +/** Interface representing a OperationsResultsLocation. */ +export interface OperationsResultsLocation { + /** + * Returns operation results. + * @param location Azure location (region) name. + * @param operationId The Guid of the operation ID + * @param options The options parameters. + */ + get( + location: string, + operationId: string, + options?: OperationsResultsLocationGetOptionalParams + ): Promise; +} diff --git a/sdk/kusto/arm-kusto/test/sampleTest.ts b/sdk/kusto/arm-kusto/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/kusto/arm-kusto/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/kusto/arm-kusto/tsconfig.json b/sdk/kusto/arm-kusto/tsconfig.json index 76677746e870..3e6ae96443f3 100644 --- a/sdk/kusto/arm-kusto/tsconfig.json +++ b/sdk/kusto/arm-kusto/tsconfig.json @@ -15,19 +15,13 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-kusto": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "./samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" ] -} +} \ No newline at end of file