diff --git a/sdk/kusto/arm-kusto/CHANGELOG.md b/sdk/kusto/arm-kusto/CHANGELOG.md index 92107c1120bf..60d30f1ceda0 100644 --- a/sdk/kusto/arm-kusto/CHANGELOG.md +++ b/sdk/kusto/arm-kusto/CHANGELOG.md @@ -1,15 +1,55 @@ # Release History + +## 7.2.0 (2022-09-13) + +**Features** -## 7.1.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface AttachedDatabaseConfiguration + - Added Interface Cluster + - Added Interface ClusterPrincipalAssignment + - Added Interface ClusterUpdate + - Added Interface Database + - Added Interface DatabasePrincipalAssignment + - Added Interface DataConnection + - Added Interface EventGridDataConnection + - Added Interface EventHubDataConnection + - Added Interface IotHubDataConnection + - Added Interface ManagedPrivateEndpoint + - Added Interface OutboundNetworkDependenciesEndpoint + - Added Interface PrivateEndpointConnection + - Added Interface PrivateLinkResource + - Added Interface ProxyResource + - Added Interface ReadOnlyFollowingDatabase + - Added Interface ReadWriteDatabase + - Added Interface Script + - Added Interface TrackedResource + - Added Type Alias CallerRole + - Added Type Alias DatabaseShareOrigin + - Interface DatabasesCreateOrUpdateOptionalParams has a new optional parameter callerRole + - Interface DatabasesUpdateOptionalParams has a new optional parameter callerRole + - Interface FollowerDatabaseDefinition has a new optional parameter databaseShareOrigin + - Interface FollowerDatabaseDefinition has a new optional parameter tableLevelSharingProperties + - Added Enum KnownCallerRole + - Added Enum KnownDatabaseShareOrigin + - Enum KnownAzureSkuName has a new value StandardE16DV4 + - Enum KnownAzureSkuName has a new value StandardE16DV5 + - Enum KnownAzureSkuName has a new value StandardE2DV4 + - Enum KnownAzureSkuName has a new value StandardE2DV5 + - Enum KnownAzureSkuName has a new value StandardE4DV4 + - Enum KnownAzureSkuName has a new value StandardE4DV5 + - Enum KnownAzureSkuName has a new value StandardE8DV4 + - Enum KnownAzureSkuName has a new value StandardE8DV5 + - Enum KnownAzureSkuName has a new value StandardEC16AdsV5 + - Enum KnownAzureSkuName has a new value StandardEC16AsV53TBPS + - Enum KnownAzureSkuName has a new value StandardEC16AsV54TBPS + - Enum KnownAzureSkuName has a new value StandardEC8AdsV5 + - Enum KnownAzureSkuName has a new value StandardEC8AsV51TBPS + - Enum KnownAzureSkuName has a new value StandardEC8AsV52TBPS + - Enum KnownAzureSkuName has a new value StandardL16AsV3 + - Enum KnownAzureSkuName has a new value StandardL16SV3 + - Enum KnownAzureSkuName has a new value StandardL8AsV3 + - Enum KnownAzureSkuName has a new value StandardL8SV3 + ## 7.1.2 (2022-06-17) **Features** diff --git a/sdk/kusto/arm-kusto/_meta.json b/sdk/kusto/arm-kusto/_meta.json index 87a1d521a69f..e763496ab2c6 100644 --- a/sdk/kusto/arm-kusto/_meta.json +++ b/sdk/kusto/arm-kusto/_meta.json @@ -1,8 +1,8 @@ { - "commit": "3ac3a0a3ddb7fdefb698b0636fbd70e4df72e4e5", + "commit": "6567e6d1c5f645bc50202d6ee34f279077cb462b", "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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\azure-kusto\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/azure-kusto/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.3.2", - "use": "@autorest/typescript@6.0.0-beta.20" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/kusto/arm-kusto/package.json b/sdk/kusto/arm-kusto/package.json index cd7b2cf1abfe..2b6c60e64dcb 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.1.3", + "version": "7.2.0", "engines": { "node": ">=12.0.0" }, @@ -98,8 +98,7 @@ "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped", - "docs": "echo skipped" + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -110,13 +109,5 @@ } ] }, - "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 e164f77506ab..0de66d735d38 100644 --- a/sdk/kusto/arm-kusto/review/arm-kusto.api.md +++ b/sdk/kusto/arm-kusto/review/arm-kusto.api.md @@ -16,15 +16,17 @@ export interface AcceptedAudiences { } // @public -export type AttachedDatabaseConfiguration = ProxyResource & { - location?: string; - readonly provisioningState?: ProvisioningState; - databaseName?: string; - clusterResourceId?: string; +export interface AttachedDatabaseConfiguration extends ProxyResource { readonly attachedDatabaseNames?: string[]; + clusterResourceId?: string; + databaseName?: string; + databaseNameOverride?: string; + databaseNamePrefix?: string; defaultPrincipalsModificationKind?: DefaultPrincipalsModificationKind; + location?: string; + readonly provisioningState?: ProvisioningState; tableLevelSharingProperties?: TableLevelSharingProperties; -}; +} // @public export interface AttachedDatabaseConfigurationListResult { @@ -118,6 +120,9 @@ export type AzureSkuTier = string; // @public export type BlobStorageEventType = string; +// @public +export type CallerRole = string; + // @public export interface CheckNameRequest { name: string; @@ -146,37 +151,37 @@ export interface CloudErrorBody { } // @public -export type Cluster = TrackedResource & { - sku: AzureSku; - readonly systemData?: SystemData; - zones?: string[]; - identity?: Identity; - readonly etag?: string; - readonly state?: State; - readonly provisioningState?: ProvisioningState; - readonly uri?: string; +export interface Cluster extends TrackedResource { + acceptedAudiences?: AcceptedAudiences[]; + allowedFqdnList?: string[]; + allowedIpRangeList?: string[]; readonly dataIngestionUri?: string; - readonly stateReason?: string; - trustedExternalTenants?: TrustedExternalTenant[]; - optimizedAutoscale?: OptimizedAutoscale; + enableAutoStop?: boolean; enableDiskEncryption?: boolean; + enableDoubleEncryption?: boolean; + enablePurge?: boolean; enableStreamingIngest?: boolean; - virtualNetworkConfiguration?: VirtualNetworkConfiguration; + engineType?: EngineType; + readonly etag?: string; + identity?: Identity; keyVaultProperties?: KeyVaultProperties; - enablePurge?: boolean; readonly languageExtensions?: LanguageExtensionsList; - enableDoubleEncryption?: boolean; + optimizedAutoscale?: OptimizedAutoscale; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly provisioningState?: ProvisioningState; + publicIPType?: PublicIPType; publicNetworkAccess?: PublicNetworkAccess; - allowedIpRangeList?: string[]; - engineType?: EngineType; - acceptedAudiences?: AcceptedAudiences[]; - enableAutoStop?: boolean; restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; - allowedFqdnList?: string[]; - publicIPType?: PublicIPType; + sku: AzureSku; + readonly state?: State; + readonly stateReason?: string; + readonly systemData?: SystemData; + trustedExternalTenants?: TrustedExternalTenant[]; + readonly uri?: string; virtualClusterGraduationProperties?: string; - readonly privateEndpointConnections?: PrivateEndpointConnection[]; -}; + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + zones?: string[]; +} // @public export interface ClusterCheckNameRequest { @@ -193,16 +198,16 @@ export interface ClusterListResult { export type ClusterNetworkAccessFlag = string; // @public -export type ClusterPrincipalAssignment = ProxyResource & { +export interface ClusterPrincipalAssignment extends ProxyResource { + readonly aadObjectId?: string; principalId?: string; + readonly principalName?: string; + principalType?: PrincipalType; + readonly provisioningState?: ProvisioningState; role?: ClusterPrincipalRole; tenantId?: string; - principalType?: PrincipalType; readonly tenantName?: string; - readonly principalName?: string; - readonly provisioningState?: ProvisioningState; - readonly aadObjectId?: string; -}; +} // @public export interface ClusterPrincipalAssignmentCheckNameRequest { @@ -438,38 +443,38 @@ export interface ClustersUpdateOptionalParams extends coreClient.OperationOption export type ClustersUpdateResponse = Cluster; // @public -export type ClusterUpdate = Resource & { - tags?: { - [propertyName: string]: string; - }; - location?: string; - sku?: AzureSku; - identity?: Identity; - readonly state?: State; - readonly provisioningState?: ProvisioningState; - readonly uri?: string; +export interface ClusterUpdate extends Resource { + acceptedAudiences?: AcceptedAudiences[]; + allowedFqdnList?: string[]; + allowedIpRangeList?: string[]; readonly dataIngestionUri?: string; - readonly stateReason?: string; - trustedExternalTenants?: TrustedExternalTenant[]; - optimizedAutoscale?: OptimizedAutoscale; + enableAutoStop?: boolean; enableDiskEncryption?: boolean; + enableDoubleEncryption?: boolean; + enablePurge?: boolean; enableStreamingIngest?: boolean; - virtualNetworkConfiguration?: VirtualNetworkConfiguration; + engineType?: EngineType; + identity?: Identity; keyVaultProperties?: KeyVaultProperties; - enablePurge?: boolean; readonly languageExtensions?: LanguageExtensionsList; - enableDoubleEncryption?: boolean; + location?: string; + optimizedAutoscale?: OptimizedAutoscale; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly provisioningState?: ProvisioningState; + publicIPType?: PublicIPType; publicNetworkAccess?: PublicNetworkAccess; - allowedIpRangeList?: string[]; - engineType?: EngineType; - acceptedAudiences?: AcceptedAudiences[]; - enableAutoStop?: boolean; restrictOutboundNetworkAccess?: ClusterNetworkAccessFlag; - allowedFqdnList?: string[]; - publicIPType?: PublicIPType; + sku?: AzureSku; + readonly state?: State; + readonly stateReason?: string; + tags?: { + [propertyName: string]: string; + }; + trustedExternalTenants?: TrustedExternalTenant[]; + readonly uri?: string; virtualClusterGraduationProperties?: string; - readonly privateEndpointConnections?: PrivateEndpointConnection[]; -}; + virtualNetworkConfiguration?: VirtualNetworkConfiguration; +} // @public (undocumented) export interface ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties { @@ -484,10 +489,10 @@ export type Compression = string; export type CreatedByType = string; // @public -export type Database = ProxyResource & { - location?: string; +export interface Database extends ProxyResource { kind: Kind; -}; + location?: string; +} // @public export interface DatabaseListResult { @@ -506,16 +511,16 @@ export interface DatabasePrincipal { } // @public -export type DatabasePrincipalAssignment = ProxyResource & { +export interface DatabasePrincipalAssignment extends ProxyResource { + readonly aadObjectId?: string; principalId?: string; + readonly principalName?: string; + principalType?: PrincipalType; + readonly provisioningState?: ProvisioningState; role?: DatabasePrincipalRole; tenantId?: string; - principalType?: PrincipalType; readonly tenantName?: string; - readonly principalName?: string; - readonly provisioningState?: ProvisioningState; - readonly aadObjectId?: string; -}; +} // @public export interface DatabasePrincipalAssignmentCheckNameRequest { @@ -626,6 +631,7 @@ export type DatabasesCheckNameAvailabilityResponse = CheckNameResult; // @public export interface DatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + callerRole?: CallerRole; resumeFrom?: string; updateIntervalInMs?: number; } @@ -646,6 +652,9 @@ export interface DatabasesGetOptionalParams extends coreClient.OperationOptions // @public export type DatabasesGetResponse = DatabaseUnion; +// @public +export type DatabaseShareOrigin = string; + // @public export interface DatabasesListByClusterOptionalParams extends coreClient.OperationOptions { } @@ -679,6 +688,7 @@ export interface DatabasesUpdateHeaders { // @public export interface DatabasesUpdateOptionalParams extends coreClient.OperationOptions { + callerRole?: CallerRole; resumeFrom?: string; updateIntervalInMs?: number; } @@ -690,10 +700,10 @@ export type DatabasesUpdateResponse = DatabaseUnion; export type DatabaseUnion = Database | ReadWriteDatabase | ReadOnlyFollowingDatabase; // @public -export type DataConnection = ProxyResource & { - location?: string; +export interface DataConnection extends ProxyResource { kind: DataConnectionKind; -}; + location?: string; +} // @public export interface DataConnectionCheckNameRequest { @@ -825,39 +835,40 @@ export interface EndpointDetail { export type EngineType = string; // @public -export type EventGridDataConnection = DataConnection & { - storageAccountResourceId?: string; - eventGridResourceId?: string; - eventHubResourceId?: string; +export interface EventGridDataConnection extends DataConnection { + blobStorageEventType?: BlobStorageEventType; consumerGroup?: string; - tableName?: string; - mappingRuleName?: string; + databaseRouting?: DatabaseRouting; dataFormat?: EventGridDataFormat; + eventGridResourceId?: string; + eventHubResourceId?: string; ignoreFirstRecord?: boolean; - blobStorageEventType?: BlobStorageEventType; - managedIdentityResourceId?: string; readonly managedIdentityObjectId?: string; - databaseRouting?: DatabaseRouting; + managedIdentityResourceId?: string; + mappingRuleName?: string; readonly provisioningState?: ProvisioningState; -}; + storageAccountResourceId?: string; + tableName?: string; +} // @public export type EventGridDataFormat = string; // @public -export type EventHubDataConnection = DataConnection & { - eventHubResourceId?: string; +export interface EventHubDataConnection extends DataConnection { + compression?: Compression; consumerGroup?: string; - tableName?: string; - mappingRuleName?: string; + databaseRouting?: DatabaseRouting; dataFormat?: EventHubDataFormat; + eventHubResourceId?: string; eventSystemProperties?: string[]; - compression?: Compression; - readonly provisioningState?: ProvisioningState; - managedIdentityResourceId?: string; readonly managedIdentityObjectId?: string; - databaseRouting?: DatabaseRouting; -}; + managedIdentityResourceId?: string; + mappingRuleName?: string; + readonly provisioningState?: ProvisioningState; + retrievalStartDate?: Date; + tableName?: string; +} // @public export type EventHubDataFormat = string; @@ -867,6 +878,8 @@ export interface FollowerDatabaseDefinition { attachedDatabaseConfigurationName: string; clusterResourceId: string; readonly databaseName?: string; + readonly databaseShareOrigin?: DatabaseShareOrigin; + readonly tableLevelSharingProperties?: TableLevelSharingProperties; } // @public @@ -888,17 +901,18 @@ export interface Identity { export type IdentityType = string; // @public -export type IotHubDataConnection = DataConnection & { - iotHubResourceId?: string; +export interface IotHubDataConnection extends DataConnection { consumerGroup?: string; - tableName?: string; - mappingRuleName?: string; + databaseRouting?: DatabaseRouting; dataFormat?: IotHubDataFormat; eventSystemProperties?: string[]; - sharedAccessPolicyName?: string; - databaseRouting?: DatabaseRouting; + iotHubResourceId?: string; + mappingRuleName?: string; readonly provisioningState?: ProvisioningState; -}; + retrievalStartDate?: Date; + sharedAccessPolicyName?: string; + tableName?: string; +} // @public export type IotHubDataFormat = string; @@ -916,351 +930,247 @@ export type Kind = string; // @public export enum KnownAzureScaleType { - // (undocumented) Automatic = "automatic", - // (undocumented) Manual = "manual", - // (undocumented) None = "none" } // @public export enum KnownAzureSkuName { - // (undocumented) DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2", - // (undocumented) DevNoSLAStandardE2AV4 = "Dev(No SLA)_Standard_E2a_v4", - // (undocumented) StandardD11V2 = "Standard_D11_v2", - // (undocumented) StandardD12V2 = "Standard_D12_v2", - // (undocumented) StandardD13V2 = "Standard_D13_v2", - // (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", - // (undocumented) StandardDS14V23TBPS = "Standard_DS14_v2+3TB_PS", - // (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) + StandardE16DV4 = "Standard_E16d_v4", + StandardE16DV5 = "Standard_E16d_v5", 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) + StandardE2DV4 = "Standard_E2d_v4", + StandardE2DV5 = "Standard_E2d_v5", StandardE4AdsV5 = "Standard_E4ads_v5", - // (undocumented) StandardE4AV4 = "Standard_E4a_v4", - // (undocumented) + StandardE4DV4 = "Standard_E4d_v4", + StandardE4DV5 = "Standard_E4d_v5", 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) + StandardE8DV4 = "Standard_E8d_v4", + StandardE8DV5 = "Standard_E8d_v5", 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) + StandardEC16AdsV5 = "Standard_EC16ads_v5", + StandardEC16AsV53TBPS = "Standard_EC16as_v5+3TB_PS", + StandardEC16AsV54TBPS = "Standard_EC16as_v5+4TB_PS", + StandardEC8AdsV5 = "Standard_EC8ads_v5", + StandardEC8AsV51TBPS = "Standard_EC8as_v5+1TB_PS", + StandardEC8AsV52TBPS = "Standard_EC8as_v5+2TB_PS", + StandardL16AsV3 = "Standard_L16as_v3", StandardL16S = "Standard_L16s", - // (undocumented) StandardL16SV2 = "Standard_L16s_v2", - // (undocumented) + StandardL16SV3 = "Standard_L16s_v3", StandardL4S = "Standard_L4s", - // (undocumented) + StandardL8AsV3 = "Standard_L8as_v3", StandardL8S = "Standard_L8s", - // (undocumented) - StandardL8SV2 = "Standard_L8s_v2" + StandardL8SV2 = "Standard_L8s_v2", + StandardL8SV3 = "Standard_L8s_v3" } // @public export enum KnownAzureSkuTier { - // (undocumented) Basic = "Basic", - // (undocumented) Standard = "Standard" } // @public export enum KnownBlobStorageEventType { - // (undocumented) MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated", - // (undocumented) MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" } +// @public +export enum KnownCallerRole { + Admin = "Admin", + None = "None" +} + // @public export enum KnownClusterNetworkAccessFlag { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownClusterPrincipalRole { - // (undocumented) AllDatabasesAdmin = "AllDatabasesAdmin", - // (undocumented) AllDatabasesViewer = "AllDatabasesViewer" } // @public export enum KnownCompression { - // (undocumented) GZip = "GZip", - // (undocumented) None = "None" } // @public export enum KnownCreatedByType { - // (undocumented) Application = "Application", - // (undocumented) Key = "Key", - // (undocumented) ManagedIdentity = "ManagedIdentity", - // (undocumented) User = "User" } // @public export enum KnownDatabasePrincipalRole { - // (undocumented) Admin = "Admin", - // (undocumented) Ingestor = "Ingestor", - // (undocumented) Monitor = "Monitor", - // (undocumented) UnrestrictedViewer = "UnrestrictedViewer", - // (undocumented) User = "User", - // (undocumented) Viewer = "Viewer" } // @public export enum KnownDatabasePrincipalType { - // (undocumented) App = "App", - // (undocumented) Group = "Group", - // (undocumented) User = "User" } // @public export enum KnownDatabaseRouting { - // (undocumented) Multi = "Multi", - // (undocumented) Single = "Single" } +// @public +export enum KnownDatabaseShareOrigin { + DataShare = "DataShare", + Direct = "Direct", + Other = "Other" +} + // @public export enum KnownDataConnectionKind { - // (undocumented) EventGrid = "EventGrid", - // (undocumented) EventHub = "EventHub", - // (undocumented) IotHub = "IotHub" } // @public export enum KnownDefaultPrincipalsModificationKind { - // (undocumented) None = "None", - // (undocumented) Replace = "Replace", - // (undocumented) Union = "Union" } // @public export enum KnownEngineType { - // (undocumented) V2 = "V2", - // (undocumented) V3 = "V3" } // @public export enum KnownEventGridDataFormat { - // (undocumented) Apacheavro = "APACHEAVRO", - // (undocumented) Avro = "AVRO", - // (undocumented) CSV = "CSV", - // (undocumented) Json = "JSON", - // (undocumented) Multijson = "MULTIJSON", - // (undocumented) ORC = "ORC", - // (undocumented) Parquet = "PARQUET", - // (undocumented) PSV = "PSV", - // (undocumented) RAW = "RAW", - // (undocumented) Scsv = "SCSV", - // (undocumented) Singlejson = "SINGLEJSON", - // (undocumented) Sohsv = "SOHSV", - // (undocumented) TSV = "TSV", - // (undocumented) Tsve = "TSVE", - // (undocumented) TXT = "TXT", - // (undocumented) W3Clogfile = "W3CLOGFILE" } // @public export enum KnownEventHubDataFormat { - // (undocumented) Apacheavro = "APACHEAVRO", - // (undocumented) Avro = "AVRO", - // (undocumented) CSV = "CSV", - // (undocumented) Json = "JSON", - // (undocumented) Multijson = "MULTIJSON", - // (undocumented) ORC = "ORC", - // (undocumented) Parquet = "PARQUET", - // (undocumented) PSV = "PSV", - // (undocumented) RAW = "RAW", - // (undocumented) Scsv = "SCSV", - // (undocumented) Singlejson = "SINGLEJSON", - // (undocumented) Sohsv = "SOHSV", - // (undocumented) TSV = "TSV", - // (undocumented) Tsve = "TSVE", - // (undocumented) TXT = "TXT", - // (undocumented) W3Clogfile = "W3CLOGFILE" } // @public export enum KnownIdentityType { - // (undocumented) None = "None", - // (undocumented) SystemAssigned = "SystemAssigned", - // (undocumented) SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", - // (undocumented) UserAssigned = "UserAssigned" } // @public export enum KnownIotHubDataFormat { - // (undocumented) Apacheavro = "APACHEAVRO", - // (undocumented) Avro = "AVRO", - // (undocumented) CSV = "CSV", - // (undocumented) Json = "JSON", - // (undocumented) Multijson = "MULTIJSON", - // (undocumented) ORC = "ORC", - // (undocumented) Parquet = "PARQUET", - // (undocumented) PSV = "PSV", - // (undocumented) RAW = "RAW", - // (undocumented) Scsv = "SCSV", - // (undocumented) Singlejson = "SINGLEJSON", - // (undocumented) Sohsv = "SOHSV", - // (undocumented) TSV = "TSV", - // (undocumented) Tsve = "TSVE", - // (undocumented) TXT = "TXT", - // (undocumented) W3Clogfile = "W3CLOGFILE" } // @public export enum KnownKind { - // (undocumented) ReadOnlyFollowing = "ReadOnlyFollowing", - // (undocumented) ReadWrite = "ReadWrite" } // @public export enum KnownLanguageExtensionName { - // (undocumented) Python = "PYTHON", // (undocumented) R = "R" @@ -1268,95 +1178,64 @@ export enum KnownLanguageExtensionName { // @public export enum KnownPrincipalsModificationKind { - // (undocumented) None = "None", - // (undocumented) Replace = "Replace", - // (undocumented) Union = "Union" } // @public export enum KnownPrincipalType { - // (undocumented) App = "App", - // (undocumented) Group = "Group", - // (undocumented) User = "User" } // @public export enum KnownProvisioningState { - // (undocumented) Creating = "Creating", - // (undocumented) Deleting = "Deleting", - // (undocumented) Failed = "Failed", - // (undocumented) Moving = "Moving", - // (undocumented) Running = "Running", - // (undocumented) Succeeded = "Succeeded" } // @public export enum KnownPublicIPType { - // (undocumented) DualStack = "DualStack", - // (undocumented) IPv4 = "IPv4" } // @public export enum KnownPublicNetworkAccess { - // (undocumented) Disabled = "Disabled", - // (undocumented) Enabled = "Enabled" } // @public export enum KnownReason { - // (undocumented) AlreadyExists = "AlreadyExists", - // (undocumented) Invalid = "Invalid" } // @public export enum KnownState { - // (undocumented) Creating = "Creating", - // (undocumented) Deleted = "Deleted", - // (undocumented) Deleting = "Deleting", - // (undocumented) Running = "Running", - // (undocumented) Starting = "Starting", - // (undocumented) Stopped = "Stopped", - // (undocumented) Stopping = "Stopping", - // (undocumented) Unavailable = "Unavailable", - // (undocumented) Updating = "Updating" } // @public export enum KnownStatus { - // (undocumented) Canceled = "Canceled", - // (undocumented) Failed = "Failed", - // (undocumented) Running = "Running", - // (undocumented) Succeeded = "Succeeded" } @@ -1423,14 +1302,14 @@ export interface ListResourceSkusResult { } // @public -export type ManagedPrivateEndpoint = ProxyResource & { - readonly systemData?: SystemData; +export interface ManagedPrivateEndpoint extends ProxyResource { + groupId?: string; privateLinkResourceId?: string; privateLinkResourceRegion?: string; - groupId?: string; - requestMessage?: string; readonly provisioningState?: ProvisioningState; -}; + requestMessage?: string; + readonly systemData?: SystemData; +} // @public export interface ManagedPrivateEndpointListResult { @@ -1592,12 +1471,12 @@ export interface OptimizedAutoscale { } // @public -export type OutboundNetworkDependenciesEndpoint = ProxyResource & { - readonly etag?: string; +export interface OutboundNetworkDependenciesEndpoint extends ProxyResource { category?: string; endpoints?: EndpointDependency[]; + readonly etag?: string; readonly provisioningState?: ProvisioningState; -}; +} // @public export interface OutboundNetworkDependenciesEndpointListResult { @@ -1612,13 +1491,13 @@ export type PrincipalsModificationKind = string; export type PrincipalType = string; // @public -export type PrivateEndpointConnection = ProxyResource & { - readonly systemData?: SystemData; +export interface PrivateEndpointConnection extends ProxyResource { + readonly groupId?: string; readonly privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; - readonly groupId?: string; readonly provisioningState?: string; -}; + readonly systemData?: SystemData; +} // @public export interface PrivateEndpointConnectionListResult { @@ -1670,12 +1549,12 @@ export interface PrivateEndpointProperty { } // @public -export type PrivateLinkResource = Resource & { - readonly systemData?: SystemData; +export interface PrivateLinkResource extends Resource { readonly groupId?: string; readonly requiredMembers?: string[]; readonly requiredZoneNames?: string[]; -}; + readonly systemData?: SystemData; +} // @public export interface PrivateLinkResourceListResult { @@ -1713,7 +1592,8 @@ export interface PrivateLinkServiceConnectionStateProperty { export type ProvisioningState = string; // @public -export type ProxyResource = Resource; +export interface ProxyResource extends Resource { +} // @public export type PublicIPType = string; @@ -1722,24 +1602,27 @@ export type PublicIPType = string; export type PublicNetworkAccess = string; // @public -export type ReadOnlyFollowingDatabase = Database & { - readonly provisioningState?: ProvisioningState; - readonly softDeletePeriod?: string; +export interface ReadOnlyFollowingDatabase extends Database { + readonly attachedDatabaseConfigurationName?: string; + readonly databaseShareOrigin?: DatabaseShareOrigin; hotCachePeriod?: string; - readonly statistics?: DatabaseStatistics; readonly leaderClusterResourceId?: string; - readonly attachedDatabaseConfigurationName?: string; + readonly originalDatabaseName?: string; readonly principalsModificationKind?: PrincipalsModificationKind; -}; + readonly provisioningState?: ProvisioningState; + readonly softDeletePeriod?: string; + readonly statistics?: DatabaseStatistics; + readonly tableLevelSharingProperties?: TableLevelSharingProperties; +} // @public -export type ReadWriteDatabase = Database & { +export interface ReadWriteDatabase extends Database { + hotCachePeriod?: string; + readonly isFollowed?: boolean; readonly provisioningState?: ProvisioningState; softDeletePeriod?: string; - hotCachePeriod?: string; readonly statistics?: DatabaseStatistics; - readonly isFollowed?: boolean; -}; +} // @public export type Reason = string; @@ -1752,15 +1635,15 @@ export interface Resource { } // @public -export type Script = ProxyResource & { - readonly systemData?: SystemData; - scriptUrl?: string; - scriptUrlSasToken?: string; - scriptContent?: string; - forceUpdateTag?: string; +export interface Script extends ProxyResource { continueOnErrors?: boolean; + forceUpdateTag?: string; readonly provisioningState?: ProvisioningState; -}; + scriptContent?: string; + scriptUrl?: string; + scriptUrlSasToken?: string; + readonly systemData?: SystemData; +} // @public export interface ScriptCheckNameRequest { @@ -1884,12 +1767,12 @@ export interface TableLevelSharingProperties { } // @public -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { + location: string; tags?: { [propertyName: string]: string; }; - location: string; -}; +} // @public export interface TrustedExternalTenant { diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts index 7d44b74f6874..2dfd1fab5616 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClient.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClient.ts @@ -79,7 +79,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-kusto/7.1.3`; + const packageDetails = `azsdk-js-arm-kusto/7.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -126,7 +126,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-02-01"; + this.apiVersion = options.apiVersion || "2022-07-07"; this.clusters = new ClustersImpl(this); this.clusterPrincipalAssignments = new ClusterPrincipalAssignmentsImpl( this @@ -164,7 +164,7 @@ export class KustoManagementClient extends coreClient.ServiceClient { if (param.length > 1) { const newParams = param[1].split("&").map((item) => { if (item.indexOf("api-version") > -1) { - return item.replace(/(?<==).*$/, apiVersion); + return "api-version=" + apiVersion; } else { return item; } diff --git a/sdk/kusto/arm-kusto/src/models/index.ts b/sdk/kusto/arm-kusto/src/models/index.ts index 80fd55fbe859..7100cef53996 100644 --- a/sdk/kusto/arm-kusto/src/models/index.ts +++ b/sdk/kusto/arm-kusto/src/models/index.ts @@ -237,6 +237,32 @@ export interface FollowerDatabaseDefinition { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; + /** + * Table level sharing specifications + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableLevelSharingProperties?: TableLevelSharingProperties; + /** + * The origin of the following setup. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseShareOrigin?: DatabaseShareOrigin; +} + +/** Tables that will be included and excluded in the follower database */ +export interface TableLevelSharingProperties { + /** List of tables to include in the follower database */ + tablesToInclude?: string[]; + /** List of tables to exclude from the follower database */ + tablesToExclude?: string[]; + /** List of external tables to include in the follower database */ + externalTablesToInclude?: string[]; + /** List of external tables exclude from the follower database */ + externalTablesToExclude?: string[]; + /** List of materialized views to include in the follower database */ + materializedViewsToInclude?: string[]; + /** List of materialized views exclude from the follower database */ + materializedViewsToExclude?: string[]; } export interface DiagnoseVirtualNetworkResult { @@ -469,22 +495,6 @@ export interface AttachedDatabaseConfigurationListResult { value?: AttachedDatabaseConfiguration[]; } -/** Tables that will be included and excluded in the follower database */ -export interface TableLevelSharingProperties { - /** List of tables to include in the follower database */ - tablesToInclude?: string[]; - /** List of tables to exclude from the follower database */ - tablesToExclude?: string[]; - /** List of external tables to include in the follower database */ - externalTablesToInclude?: string[]; - /** List of external tables exclude from the follower database */ - externalTablesToExclude?: string[]; - /** List of materialized views to include in the follower database */ - materializedViewsToInclude?: string[]; - /** List of materialized views exclude from the follower database */ - materializedViewsToExclude?: string[]; -} - /** The list Kusto data connections operation response. */ export interface DataConnectionListResult { /** The list of Kusto data connections. */ @@ -543,7 +553,7 @@ export interface Operation { display?: OperationDisplay; /** The intended executor of the operation. */ origin?: string; - /** Any object */ + /** Properties of the operation. */ properties?: Record; } @@ -604,18 +614,18 @@ export interface DatabaseStatistics { } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource; +export interface ProxyResource extends Resource {} /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export type TrackedResource = Resource & { +export interface TrackedResource extends Resource { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** The geo-location where the resource lives */ location: string; -}; +} /** Class representing an update to a Kusto cluster. */ -export type ClusterUpdate = Resource & { +export interface ClusterUpdate extends Resource { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** Resource location. */ @@ -693,10 +703,10 @@ export type ClusterUpdate = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; -}; +} /** A private link resource */ -export type PrivateLinkResource = Resource & { +export interface PrivateLinkResource extends Resource { /** * 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. @@ -717,10 +727,10 @@ export type PrivateLinkResource = Resource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredZoneNames?: string[]; -}; +} /** A private endpoint connection */ -export type PrivateEndpointConnection = ProxyResource & { +export interface PrivateEndpointConnection extends 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. @@ -743,10 +753,10 @@ export type PrivateEndpointConnection = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: string; -}; +} /** Class representing a cluster principal assignment. */ -export type ClusterPrincipalAssignment = ProxyResource & { +export interface ClusterPrincipalAssignment extends ProxyResource { /** The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name. */ principalId?: string; /** Cluster principal role. */ @@ -775,18 +785,18 @@ export type ClusterPrincipalAssignment = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly aadObjectId?: string; -}; +} /** Class representing a Kusto database. */ -export type Database = ProxyResource & { +export interface Database extends ProxyResource { /** Resource location. */ location?: string; /** Kind of the database */ kind: Kind; -}; +} /** Class representing a database principal assignment. */ -export type DatabasePrincipalAssignment = ProxyResource & { +export interface DatabasePrincipalAssignment extends ProxyResource { /** The principal ID assigned to the database principal. It can be a user email, application ID, or security group name. */ principalId?: string; /** Database principal role. */ @@ -815,10 +825,10 @@ export type DatabasePrincipalAssignment = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly aadObjectId?: string; -}; +} /** Class representing a database script. */ -export type Script = ProxyResource & { +export interface Script extends 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. @@ -839,10 +849,10 @@ export type Script = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** Class representing a managed private endpoint. */ -export type ManagedPrivateEndpoint = ProxyResource & { +export interface ManagedPrivateEndpoint extends 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. @@ -861,10 +871,10 @@ export type ManagedPrivateEndpoint = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** Endpoints accessed for a common purpose that the Kusto Service Environment requires outbound network access to. */ -export type OutboundNetworkDependenciesEndpoint = ProxyResource & { +export interface OutboundNetworkDependenciesEndpoint extends ProxyResource { /** * 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. @@ -879,10 +889,10 @@ export type OutboundNetworkDependenciesEndpoint = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** Class representing an attached database configuration. */ -export type AttachedDatabaseConfiguration = ProxyResource & { +export interface AttachedDatabaseConfiguration extends ProxyResource { /** Resource location. */ location?: string; /** @@ -903,18 +913,22 @@ export type AttachedDatabaseConfiguration = ProxyResource & { defaultPrincipalsModificationKind?: DefaultPrincipalsModificationKind; /** Table level sharing specifications */ tableLevelSharingProperties?: TableLevelSharingProperties; -}; + /** Overrides the original database name. Relevant only when attaching to a specific database. */ + databaseNameOverride?: string; + /** Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster. */ + databaseNamePrefix?: string; +} /** Class representing an data connection. */ -export type DataConnection = ProxyResource & { +export interface DataConnection extends ProxyResource { /** Resource location. */ location?: string; /** Kind of the endpoint for the data connection */ kind: DataConnectionKind; -}; +} /** Class representing a Kusto cluster. */ -export type Cluster = TrackedResource & { +export interface Cluster extends TrackedResource { /** The SKU of the cluster. */ sku: AzureSku; /** @@ -1000,10 +1014,10 @@ export type Cluster = TrackedResource & { * 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 & { +export interface ReadWriteDatabase extends Database { /** * The provisioned state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1023,10 +1037,10 @@ export type ReadWriteDatabase = Database & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isFollowed?: boolean; -}; +} /** Class representing a read only following database. */ -export type ReadOnlyFollowingDatabase = Database & { +export interface ReadOnlyFollowingDatabase extends Database { /** * The provisioned state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1059,10 +1073,25 @@ export type ReadOnlyFollowingDatabase = Database & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly principalsModificationKind?: PrincipalsModificationKind; -}; + /** + * Table level sharing specifications + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableLevelSharingProperties?: TableLevelSharingProperties; + /** + * The original database name, before databaseNameOverride or databaseNamePrefix where applied. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly originalDatabaseName?: string; + /** + * The origin of the following setup. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly databaseShareOrigin?: DatabaseShareOrigin; +} /** Class representing an event hub data connection. */ -export type EventHubDataConnection = DataConnection & { +export interface EventHubDataConnection extends DataConnection { /** The resource ID of the event hub to be used to create a data connection. */ eventHubResourceId?: string; /** The event hub consumer group. */ @@ -1082,7 +1111,7 @@ export type EventHubDataConnection = DataConnection & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. */ + /** 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 @@ -1091,10 +1120,12 @@ export type EventHubDataConnection = DataConnection & { readonly managedIdentityObjectId?: string; /** Indication for database routing information from the data connection, by default only database routing information is allowed */ databaseRouting?: DatabaseRouting; -}; + /** When defined, the data connection retrieves existing Event hub events created since the Retrieval start date. It can only retrieve events retained by the Event hub, based on its retention period. */ + retrievalStartDate?: Date; +} /** Class representing an iot hub data connection. */ -export type IotHubDataConnection = DataConnection & { +export interface IotHubDataConnection extends DataConnection { /** The resource ID of the Iot hub to be used to create a data connection. */ iotHubResourceId?: string; /** The iot hub consumer group. */ @@ -1111,15 +1142,17 @@ export type IotHubDataConnection = DataConnection & { sharedAccessPolicyName?: string; /** Indication for database routing information from the data connection, by default only database routing information is allowed */ databaseRouting?: DatabaseRouting; + /** When defined, the data connection retrieves existing Event hub events created since the Retrieval start date. It can only retrieve events retained by the Event hub, based on its retention period. */ + retrievalStartDate?: Date; /** * The provisioned state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** Class representing an Event Grid data connection. */ -export type EventGridDataConnection = DataConnection & { +export interface EventGridDataConnection extends 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. */ @@ -1138,7 +1171,7 @@ export type EventGridDataConnection = DataConnection & { ignoreFirstRecord?: boolean; /** The name of blob storage event type to process. */ blobStorageEventType?: BlobStorageEventType; - /** Empty for non-managed identity based data connection. For system assigned identity, provide cluster resource Id. For user assigned identity (UAI) provide the UAI resource Id. */ + /** 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 @@ -1152,7 +1185,7 @@ export type EventGridDataConnection = DataConnection & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; -}; +} /** Defines headers for Clusters_update operation. */ export interface ClustersUpdateHeaders { @@ -1186,50 +1219,130 @@ export interface DataConnectionsUpdateHeaders { /** Known values of {@link AzureSkuName} that the service accepts. */ export enum KnownAzureSkuName { + /** DevNoSLAStandardD11V2 */ DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2", + /** DevNoSLAStandardE2AV4 */ DevNoSLAStandardE2AV4 = "Dev(No SLA)_Standard_E2a_v4", + /** StandardD11V2 */ StandardD11V2 = "Standard_D11_v2", + /** StandardD12V2 */ StandardD12V2 = "Standard_D12_v2", + /** StandardD13V2 */ StandardD13V2 = "Standard_D13_v2", + /** StandardD14V2 */ StandardD14V2 = "Standard_D14_v2", + /** StandardD32DV4 */ StandardD32DV4 = "Standard_D32d_v4", + /** StandardD16DV5 */ StandardD16DV5 = "Standard_D16d_v5", + /** StandardD32DV5 */ StandardD32DV5 = "Standard_D32d_v5", + /** StandardDS13V21TBPS */ StandardDS13V21TBPS = "Standard_DS13_v2+1TB_PS", + /** StandardDS13V22TBPS */ StandardDS13V22TBPS = "Standard_DS13_v2+2TB_PS", + /** StandardDS14V23TBPS */ StandardDS14V23TBPS = "Standard_DS14_v2+3TB_PS", + /** StandardDS14V24TBPS */ StandardDS14V24TBPS = "Standard_DS14_v2+4TB_PS", + /** StandardL4S */ StandardL4S = "Standard_L4s", + /** StandardL8S */ StandardL8S = "Standard_L8s", + /** StandardL16S */ StandardL16S = "Standard_L16s", + /** StandardL8SV2 */ StandardL8SV2 = "Standard_L8s_v2", + /** StandardL16SV2 */ StandardL16SV2 = "Standard_L16s_v2", + /** StandardL8SV3 */ + StandardL8SV3 = "Standard_L8s_v3", + /** StandardL16SV3 */ + StandardL16SV3 = "Standard_L16s_v3", + /** StandardL8AsV3 */ + StandardL8AsV3 = "Standard_L8as_v3", + /** StandardL16AsV3 */ + StandardL16AsV3 = "Standard_L16as_v3", + /** StandardE64IV3 */ StandardE64IV3 = "Standard_E64i_v3", + /** StandardE80IdsV4 */ StandardE80IdsV4 = "Standard_E80ids_v4", + /** StandardE2AV4 */ StandardE2AV4 = "Standard_E2a_v4", + /** StandardE4AV4 */ StandardE4AV4 = "Standard_E4a_v4", + /** StandardE8AV4 */ StandardE8AV4 = "Standard_E8a_v4", + /** StandardE16AV4 */ StandardE16AV4 = "Standard_E16a_v4", + /** StandardE8AsV41TBPS */ StandardE8AsV41TBPS = "Standard_E8as_v4+1TB_PS", + /** StandardE8AsV42TBPS */ StandardE8AsV42TBPS = "Standard_E8as_v4+2TB_PS", + /** StandardE16AsV43TBPS */ StandardE16AsV43TBPS = "Standard_E16as_v4+3TB_PS", + /** StandardE16AsV44TBPS */ StandardE16AsV44TBPS = "Standard_E16as_v4+4TB_PS", + /** StandardE8AsV51TBPS */ StandardE8AsV51TBPS = "Standard_E8as_v5+1TB_PS", + /** StandardE8AsV52TBPS */ StandardE8AsV52TBPS = "Standard_E8as_v5+2TB_PS", + /** StandardE16AsV53TBPS */ StandardE16AsV53TBPS = "Standard_E16as_v5+3TB_PS", + /** StandardE16AsV54TBPS */ StandardE16AsV54TBPS = "Standard_E16as_v5+4TB_PS", + /** StandardE2AdsV5 */ StandardE2AdsV5 = "Standard_E2ads_v5", + /** StandardE4AdsV5 */ StandardE4AdsV5 = "Standard_E4ads_v5", + /** StandardE8AdsV5 */ StandardE8AdsV5 = "Standard_E8ads_v5", + /** StandardE16AdsV5 */ StandardE16AdsV5 = "Standard_E16ads_v5", + /** StandardEC8AsV51TBPS */ + StandardEC8AsV51TBPS = "Standard_EC8as_v5+1TB_PS", + /** StandardEC8AsV52TBPS */ + StandardEC8AsV52TBPS = "Standard_EC8as_v5+2TB_PS", + /** StandardEC16AsV53TBPS */ + StandardEC16AsV53TBPS = "Standard_EC16as_v5+3TB_PS", + /** StandardEC16AsV54TBPS */ + StandardEC16AsV54TBPS = "Standard_EC16as_v5+4TB_PS", + /** StandardEC8AdsV5 */ + StandardEC8AdsV5 = "Standard_EC8ads_v5", + /** StandardEC16AdsV5 */ + StandardEC16AdsV5 = "Standard_EC16ads_v5", + /** StandardE8SV41TBPS */ StandardE8SV41TBPS = "Standard_E8s_v4+1TB_PS", + /** StandardE8SV42TBPS */ StandardE8SV42TBPS = "Standard_E8s_v4+2TB_PS", + /** StandardE16SV43TBPS */ StandardE16SV43TBPS = "Standard_E16s_v4+3TB_PS", + /** StandardE16SV44TBPS */ StandardE16SV44TBPS = "Standard_E16s_v4+4TB_PS", + /** StandardE8SV51TBPS */ StandardE8SV51TBPS = "Standard_E8s_v5+1TB_PS", + /** StandardE8SV52TBPS */ StandardE8SV52TBPS = "Standard_E8s_v5+2TB_PS", + /** StandardE16SV53TBPS */ StandardE16SV53TBPS = "Standard_E16s_v5+3TB_PS", - StandardE16SV54TBPS = "Standard_E16s_v5+4TB_PS" + /** StandardE16SV54TBPS */ + StandardE16SV54TBPS = "Standard_E16s_v5+4TB_PS", + /** StandardE2DV4 */ + StandardE2DV4 = "Standard_E2d_v4", + /** StandardE4DV4 */ + StandardE4DV4 = "Standard_E4d_v4", + /** StandardE8DV4 */ + StandardE8DV4 = "Standard_E8d_v4", + /** StandardE16DV4 */ + StandardE16DV4 = "Standard_E16d_v4", + /** StandardE2DV5 */ + StandardE2DV5 = "Standard_E2d_v5", + /** StandardE4DV5 */ + StandardE4DV5 = "Standard_E4d_v5", + /** StandardE8DV5 */ + StandardE8DV5 = "Standard_E8d_v5", + /** StandardE16DV5 */ + StandardE16DV5 = "Standard_E16d_v5" } /** @@ -1255,6 +1368,10 @@ export enum KnownAzureSkuName { * **Standard_L16s** \ * **Standard_L8s_v2** \ * **Standard_L16s_v2** \ + * **Standard_L8s_v3** \ + * **Standard_L16s_v3** \ + * **Standard_L8as_v3** \ + * **Standard_L16as_v3** \ * **Standard_E64i_v3** \ * **Standard_E80ids_v4** \ * **Standard_E2a_v4** \ @@ -1273,6 +1390,12 @@ export enum KnownAzureSkuName { * **Standard_E4ads_v5** \ * **Standard_E8ads_v5** \ * **Standard_E16ads_v5** \ + * **Standard_EC8as_v5+1TB_PS** \ + * **Standard_EC8as_v5+2TB_PS** \ + * **Standard_EC16as_v5+3TB_PS** \ + * **Standard_EC16as_v5+4TB_PS** \ + * **Standard_EC8ads_v5** \ + * **Standard_EC16ads_v5** \ * **Standard_E8s_v4+1TB_PS** \ * **Standard_E8s_v4+2TB_PS** \ * **Standard_E16s_v4+3TB_PS** \ @@ -1280,13 +1403,23 @@ export enum KnownAzureSkuName { * **Standard_E8s_v5+1TB_PS** \ * **Standard_E8s_v5+2TB_PS** \ * **Standard_E16s_v5+3TB_PS** \ - * **Standard_E16s_v5+4TB_PS** + * **Standard_E16s_v5+4TB_PS** \ + * **Standard_E2d_v4** \ + * **Standard_E4d_v4** \ + * **Standard_E8d_v4** \ + * **Standard_E16d_v4** \ + * **Standard_E2d_v5** \ + * **Standard_E4d_v5** \ + * **Standard_E8d_v5** \ + * **Standard_E16d_v5** */ export type AzureSkuName = string; /** Known values of {@link AzureSkuTier} that the service accepts. */ export enum KnownAzureSkuTier { + /** Basic */ Basic = "Basic", + /** Standard */ Standard = "Standard" } @@ -1302,9 +1435,13 @@ export type AzureSkuTier = string; /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { + /** User */ User = "User", + /** Application */ Application = "Application", + /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", + /** Key */ Key = "Key" } @@ -1322,9 +1459,13 @@ export type CreatedByType = string; /** Known values of {@link IdentityType} that the service accepts. */ export enum KnownIdentityType { + /** None */ None = "None", + /** SystemAssigned */ SystemAssigned = "SystemAssigned", + /** UserAssigned */ UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned" } @@ -1342,14 +1483,23 @@ export type IdentityType = string; /** Known values of {@link State} that the service accepts. */ export enum KnownState { + /** Creating */ Creating = "Creating", + /** Unavailable */ Unavailable = "Unavailable", + /** Running */ Running = "Running", + /** Deleting */ Deleting = "Deleting", + /** Deleted */ Deleted = "Deleted", + /** Stopping */ Stopping = "Stopping", + /** Stopped */ Stopped = "Stopped", + /** Starting */ Starting = "Starting", + /** Updating */ Updating = "Updating" } @@ -1372,11 +1522,17 @@ export type State = string; /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { + /** Running */ Running = "Running", + /** Creating */ Creating = "Creating", + /** Deleting */ Deleting = "Deleting", + /** Succeeded */ Succeeded = "Succeeded", + /** Failed */ Failed = "Failed", + /** Moving */ Moving = "Moving" } @@ -1396,7 +1552,9 @@ export type ProvisioningState = string; /** Known values of {@link LanguageExtensionName} that the service accepts. */ export enum KnownLanguageExtensionName { + /** Python */ Python = "PYTHON", + /** R */ R = "R" } @@ -1412,7 +1570,9 @@ export type LanguageExtensionName = string; /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -1428,7 +1588,9 @@ export type PublicNetworkAccess = string; /** Known values of {@link EngineType} that the service accepts. */ export enum KnownEngineType { + /** V2 */ V2 = "V2", + /** V3 */ V3 = "V3" } @@ -1444,7 +1606,9 @@ export type EngineType = string; /** Known values of {@link ClusterNetworkAccessFlag} that the service accepts. */ export enum KnownClusterNetworkAccessFlag { + /** Enabled */ Enabled = "Enabled", + /** Disabled */ Disabled = "Disabled" } @@ -1460,7 +1624,9 @@ export type ClusterNetworkAccessFlag = string; /** Known values of {@link PublicIPType} that the service accepts. */ export enum KnownPublicIPType { + /** IPv4 */ IPv4 = "IPv4", + /** DualStack */ DualStack = "DualStack" } @@ -1476,7 +1642,9 @@ export type PublicIPType = string; /** Known values of {@link Reason} that the service accepts. */ export enum KnownReason { + /** Invalid */ Invalid = "Invalid", + /** AlreadyExists */ AlreadyExists = "AlreadyExists" } @@ -1492,7 +1660,9 @@ export type Reason = string; /** Known values of {@link ClusterPrincipalRole} that the service accepts. */ export enum KnownClusterPrincipalRole { + /** AllDatabasesAdmin */ AllDatabasesAdmin = "AllDatabasesAdmin", + /** AllDatabasesViewer */ AllDatabasesViewer = "AllDatabasesViewer" } @@ -1508,8 +1678,11 @@ export type ClusterPrincipalRole = string; /** Known values of {@link PrincipalType} that the service accepts. */ export enum KnownPrincipalType { + /** App */ App = "App", + /** Group */ Group = "Group", + /** User */ User = "User" } @@ -1524,10 +1697,34 @@ export enum KnownPrincipalType { */ export type PrincipalType = string; +/** Known values of {@link DatabaseShareOrigin} that the service accepts. */ +export enum KnownDatabaseShareOrigin { + /** Direct */ + Direct = "Direct", + /** DataShare */ + DataShare = "DataShare", + /** Other */ + Other = "Other" +} + +/** + * Defines values for DatabaseShareOrigin. \ + * {@link KnownDatabaseShareOrigin} can be used interchangeably with DatabaseShareOrigin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Direct** \ + * **DataShare** \ + * **Other** + */ +export type DatabaseShareOrigin = string; + /** Known values of {@link AzureScaleType} that the service accepts. */ export enum KnownAzureScaleType { + /** Automatic */ Automatic = "automatic", + /** Manual */ Manual = "manual", + /** None */ None = "none" } @@ -1544,7 +1741,9 @@ export type AzureScaleType = string; /** Known values of {@link Kind} that the service accepts. */ export enum KnownKind { + /** ReadWrite */ ReadWrite = "ReadWrite", + /** ReadOnlyFollowing */ ReadOnlyFollowing = "ReadOnlyFollowing" } @@ -1558,13 +1757,37 @@ export enum KnownKind { */ export type Kind = string; +/** Known values of {@link CallerRole} that the service accepts. */ +export enum KnownCallerRole { + /** Admin */ + Admin = "Admin", + /** None */ + None = "None" +} + +/** + * Defines values for CallerRole. \ + * {@link KnownCallerRole} can be used interchangeably with CallerRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Admin** \ + * **None** + */ +export type CallerRole = string; + /** Known values of {@link DatabasePrincipalRole} that the service accepts. */ export enum KnownDatabasePrincipalRole { + /** Admin */ Admin = "Admin", + /** Ingestor */ Ingestor = "Ingestor", + /** Monitor */ Monitor = "Monitor", + /** User */ User = "User", + /** UnrestrictedViewer */ UnrestrictedViewer = "UnrestrictedViewer", + /** Viewer */ Viewer = "Viewer" } @@ -1584,8 +1807,11 @@ export type DatabasePrincipalRole = string; /** Known values of {@link DatabasePrincipalType} that the service accepts. */ export enum KnownDatabasePrincipalType { + /** App */ App = "App", + /** Group */ Group = "Group", + /** User */ User = "User" } @@ -1602,8 +1828,11 @@ export type DatabasePrincipalType = string; /** Known values of {@link DefaultPrincipalsModificationKind} that the service accepts. */ export enum KnownDefaultPrincipalsModificationKind { + /** Union */ Union = "Union", + /** Replace */ Replace = "Replace", + /** None */ None = "None" } @@ -1620,8 +1849,11 @@ export type DefaultPrincipalsModificationKind = string; /** Known values of {@link DataConnectionKind} that the service accepts. */ export enum KnownDataConnectionKind { + /** EventHub */ EventHub = "EventHub", + /** EventGrid */ EventGrid = "EventGrid", + /** IotHub */ IotHub = "IotHub" } @@ -1638,9 +1870,13 @@ export type DataConnectionKind = string; /** Known values of {@link Status} that the service accepts. */ export enum KnownStatus { + /** Succeeded */ Succeeded = "Succeeded", + /** Canceled */ Canceled = "Canceled", + /** Failed */ Failed = "Failed", + /** Running */ Running = "Running" } @@ -1658,8 +1894,11 @@ export type Status = string; /** Known values of {@link PrincipalsModificationKind} that the service accepts. */ export enum KnownPrincipalsModificationKind { + /** Union */ Union = "Union", + /** Replace */ Replace = "Replace", + /** None */ None = "None" } @@ -1676,21 +1915,37 @@ export type PrincipalsModificationKind = string; /** Known values of {@link EventHubDataFormat} that the service accepts. */ export enum KnownEventHubDataFormat { + /** Multijson */ Multijson = "MULTIJSON", + /** Json */ Json = "JSON", + /** CSV */ CSV = "CSV", + /** TSV */ TSV = "TSV", + /** Scsv */ Scsv = "SCSV", + /** Sohsv */ Sohsv = "SOHSV", + /** PSV */ PSV = "PSV", + /** TXT */ TXT = "TXT", + /** RAW */ RAW = "RAW", + /** Singlejson */ Singlejson = "SINGLEJSON", + /** Avro */ Avro = "AVRO", + /** Tsve */ Tsve = "TSVE", + /** Parquet */ Parquet = "PARQUET", + /** ORC */ ORC = "ORC", + /** Apacheavro */ Apacheavro = "APACHEAVRO", + /** W3Clogfile */ W3Clogfile = "W3CLOGFILE" } @@ -1720,7 +1975,9 @@ export type EventHubDataFormat = string; /** Known values of {@link Compression} that the service accepts. */ export enum KnownCompression { + /** None */ None = "None", + /** GZip */ GZip = "GZip" } @@ -1736,7 +1993,9 @@ export type Compression = string; /** Known values of {@link DatabaseRouting} that the service accepts. */ export enum KnownDatabaseRouting { + /** Single */ Single = "Single", + /** Multi */ Multi = "Multi" } @@ -1752,21 +2011,37 @@ export type DatabaseRouting = string; /** Known values of {@link IotHubDataFormat} that the service accepts. */ export enum KnownIotHubDataFormat { + /** Multijson */ Multijson = "MULTIJSON", + /** Json */ Json = "JSON", + /** CSV */ CSV = "CSV", + /** TSV */ TSV = "TSV", + /** Scsv */ Scsv = "SCSV", + /** Sohsv */ Sohsv = "SOHSV", + /** PSV */ PSV = "PSV", + /** TXT */ TXT = "TXT", + /** RAW */ RAW = "RAW", + /** Singlejson */ Singlejson = "SINGLEJSON", + /** Avro */ Avro = "AVRO", + /** Tsve */ Tsve = "TSVE", + /** Parquet */ Parquet = "PARQUET", + /** ORC */ ORC = "ORC", + /** Apacheavro */ Apacheavro = "APACHEAVRO", + /** W3Clogfile */ W3Clogfile = "W3CLOGFILE" } @@ -1796,21 +2071,37 @@ export type IotHubDataFormat = string; /** Known values of {@link EventGridDataFormat} that the service accepts. */ export enum KnownEventGridDataFormat { + /** Multijson */ Multijson = "MULTIJSON", + /** Json */ Json = "JSON", + /** CSV */ CSV = "CSV", + /** TSV */ TSV = "TSV", + /** Scsv */ Scsv = "SCSV", + /** Sohsv */ Sohsv = "SOHSV", + /** PSV */ PSV = "PSV", + /** TXT */ TXT = "TXT", + /** RAW */ RAW = "RAW", + /** Singlejson */ Singlejson = "SINGLEJSON", + /** Avro */ Avro = "AVRO", + /** Tsve */ Tsve = "TSVE", + /** Parquet */ Parquet = "PARQUET", + /** ORC */ ORC = "ORC", + /** Apacheavro */ Apacheavro = "APACHEAVRO", + /** W3Clogfile */ W3Clogfile = "W3CLOGFILE" } @@ -1840,7 +2131,9 @@ export type EventGridDataFormat = string; /** Known values of {@link BlobStorageEventType} that the service accepts. */ export enum KnownBlobStorageEventType { + /** MicrosoftStorageBlobCreated */ MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated", + /** MicrosoftStorageBlobRenamed */ MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" } @@ -2090,6 +2383,8 @@ export type DatabasesGetResponse = DatabaseUnion; /** Optional parameters. */ export interface DatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + /** By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list. */ + callerRole?: CallerRole; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -2102,6 +2397,8 @@ export type DatabasesCreateOrUpdateResponse = DatabaseUnion; /** Optional parameters. */ export interface DatabasesUpdateOptionalParams extends coreClient.OperationOptions { + /** By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list. */ + callerRole?: CallerRole; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ diff --git a/sdk/kusto/arm-kusto/src/models/mappers.ts b/sdk/kusto/arm-kusto/src/models/mappers.ts index f109d164b05c..c94f4c77ac1f 100644 --- a/sdk/kusto/arm-kusto/src/models/mappers.ts +++ b/sdk/kusto/arm-kusto/src/models/mappers.ts @@ -568,6 +568,95 @@ export const FollowerDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "String" } + }, + tableLevelSharingProperties: { + serializedName: "tableLevelSharingProperties", + type: { + name: "Composite", + className: "TableLevelSharingProperties" + } + }, + databaseShareOrigin: { + serializedName: "databaseShareOrigin", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const TableLevelSharingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableLevelSharingProperties", + modelProperties: { + tablesToInclude: { + serializedName: "tablesToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tablesToExclude: { + serializedName: "tablesToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalTablesToInclude: { + serializedName: "externalTablesToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalTablesToExclude: { + serializedName: "externalTablesToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + materializedViewsToInclude: { + serializedName: "materializedViewsToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + materializedViewsToExclude: { + serializedName: "materializedViewsToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -1256,81 +1345,6 @@ export const AttachedDatabaseConfigurationListResult: coreClient.CompositeMapper } }; -export const TableLevelSharingProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TableLevelSharingProperties", - modelProperties: { - tablesToInclude: { - serializedName: "tablesToInclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - tablesToExclude: { - serializedName: "tablesToExclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - externalTablesToInclude: { - serializedName: "externalTablesToInclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - externalTablesToExclude: { - serializedName: "externalTablesToExclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - materializedViewsToInclude: { - serializedName: "materializedViewsToInclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - materializedViewsToExclude: { - serializedName: "materializedViewsToExclude", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const DataConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2359,6 +2373,18 @@ export const AttachedDatabaseConfiguration: coreClient.CompositeMapper = { name: "Composite", className: "TableLevelSharingProperties" } + }, + databaseNameOverride: { + serializedName: "properties.databaseNameOverride", + type: { + name: "String" + } + }, + databaseNamePrefix: { + serializedName: "properties.databaseNamePrefix", + type: { + name: "String" + } } } } @@ -2735,6 +2761,27 @@ export const ReadOnlyFollowingDatabase: coreClient.CompositeMapper = { type: { name: "String" } + }, + tableLevelSharingProperties: { + serializedName: "properties.tableLevelSharingProperties", + type: { + name: "Composite", + className: "TableLevelSharingProperties" + } + }, + originalDatabaseName: { + serializedName: "properties.originalDatabaseName", + readOnly: true, + type: { + name: "String" + } + }, + databaseShareOrigin: { + serializedName: "properties.databaseShareOrigin", + readOnly: true, + type: { + name: "String" + } } } } @@ -2822,6 +2869,12 @@ export const EventHubDataConnection: coreClient.CompositeMapper = { type: { name: "String" } + }, + retrievalStartDate: { + serializedName: "properties.retrievalStartDate", + type: { + name: "DateTime" + } } } } @@ -2889,6 +2942,12 @@ export const IotHubDataConnection: coreClient.CompositeMapper = { name: "String" } }, + retrievalStartDate: { + serializedName: "properties.retrievalStartDate", + type: { + name: "DateTime" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, diff --git a/sdk/kusto/arm-kusto/src/models/parameters.ts b/sdk/kusto/arm-kusto/src/models/parameters.ts index 0accda1c154e..1c95117e94c4 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: "2022-02-01", + defaultValue: "2022-07-07", isConstant: true, serializedName: "api-version", type: { @@ -232,6 +232,17 @@ export const parameters3: OperationParameter = { mapper: DatabaseMapper }; +export const callerRole: OperationQueryParameter = { + parameterPath: ["options", "callerRole"], + mapper: { + defaultValue: "Admin", + serializedName: "callerRole", + type: { + name: "String" + } + } +}; + export const databasePrincipalsToAdd: OperationParameter = { parameterPath: "databasePrincipalsToAdd", mapper: DatabasePrincipalListRequestMapper diff --git a/sdk/kusto/arm-kusto/src/operations/databases.ts b/sdk/kusto/arm-kusto/src/operations/databases.ts index 1443568b4de8..f37f5cf72100 100644 --- a/sdk/kusto/arm-kusto/src/operations/databases.ts +++ b/sdk/kusto/arm-kusto/src/operations/databases.ts @@ -682,7 +682,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.callerRole], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -716,7 +716,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.callerRole], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/kusto/arm-kusto/test/sampleTest.ts b/sdk/kusto/arm-kusto/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/kusto/arm-kusto/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * 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 { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + 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" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + 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 8864a1f3f475..3e6ae96443f3 100644 --- a/sdk/kusto/arm-kusto/tsconfig.json +++ b/sdk/kusto/arm-kusto/tsconfig.json @@ -15,17 +15,11 @@ ], "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"