From d26c3ae8f477c815d07ac405a0bc2f7dc24438a3 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Sun, 11 Oct 2020 01:29:46 +0000 Subject: [PATCH] Generated from 107bc96b5f9b28633b5f99549f983421e66d8ddc --- .../src/kustoManagementClientContext.ts | 8 +-- sdk/kusto/arm-kusto/src/models/index.ts | 60 ++++++++++++++++--- sdk/kusto/arm-kusto/src/models/mappers.ts | 46 ++++++++++++-- 3 files changed, 95 insertions(+), 19 deletions(-) diff --git a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts index e2fdda7d1b0f..656cba5dcf6b 100644 --- a/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts +++ b/sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts @@ -38,14 +38,14 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2020-06-14'; + this.apiVersion = '2020-09-18'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -53,10 +53,10 @@ export class KustoManagementClientContext extends msRestAzure.AzureServiceClient this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/kusto/arm-kusto/src/models/index.ts b/sdk/kusto/arm-kusto/src/models/index.ts index e7a99ba13e6d..d3a7d3abd935 100644 --- a/sdk/kusto/arm-kusto/src/models/index.ts +++ b/sdk/kusto/arm-kusto/src/models/index.ts @@ -72,11 +72,15 @@ export interface KeyVaultProperties { /** * The version of the key vault key. */ - keyVersion: string; + keyVersion?: string; /** * The Uri of the key vault. */ keyVaultUri: string; + /** + * The user assigned identity (ARM resource id) that has access to the key. + */ + userIdentity?: string; } /** @@ -97,8 +101,8 @@ export interface AzureSku { * SKU name. Possible values include: '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_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No - * SLA)_Standard_D11_v2', 'Standard_E2a_v4', 'Standard_E4a_v4', 'Standard_E8a_v4', - * 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', + * SLA)_Standard_D11_v2', 'Standard_E64i_v3', 'Standard_E2a_v4', 'Standard_E4a_v4', + * 'Standard_E8a_v4', 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', * 'Standard_E16as_v4+3TB_PS', 'Standard_E16as_v4+4TB_PS', 'Dev(No SLA)_Standard_E2a_v4' */ name: AzureSkuName; @@ -243,7 +247,10 @@ export interface Identity { */ readonly tenantId?: string; /** - * The identity type. Possible values include: 'None', 'SystemAssigned' + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an + * implicitly created identity and a set of user-assigned identities. The type 'None' will remove + * all identities. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned, UserAssigned' */ type: IdentityType; /** @@ -371,6 +378,10 @@ export interface Cluster extends TrackedResource { * A boolean value that indicates if double encryption is enabled. Default value: false. */ enableDoubleEncryption?: boolean; + /** + * The engine type. Possible values include: 'V2', 'V3' + */ + engineType?: EngineType; } /** @@ -457,6 +468,10 @@ export interface ClusterUpdate extends Resource { * A boolean value that indicates if double encryption is enabled. Default value: false. */ enableDoubleEncryption?: boolean; + /** + * The engine type. Possible values include: 'V2', 'V3' + */ + engineType?: EngineType; } /** @@ -931,6 +946,12 @@ export interface EventHubDataConnection { * The event hub messages compression type. Possible values include: 'None', 'GZip' */ compression?: Compression; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; } /** @@ -994,6 +1015,12 @@ export interface IotHubDataConnection { * The name of the share access policy */ sharedAccessPolicyName: string; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; } /** @@ -1063,6 +1090,12 @@ export interface EventGridDataConnection { * 'Microsoft.Storage.BlobCreated', 'Microsoft.Storage.BlobRenamed' */ blobStorageEventType?: BlobStorageEventType; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; } /** @@ -1343,18 +1376,26 @@ export type ProvisioningState = 'Running' | 'Creating' | 'Deleting' | 'Succeeded */ export type LanguageExtensionName = 'PYTHON' | 'R'; +/** + * Defines values for EngineType. + * Possible values include: 'V2', 'V3' + * @readonly + * @enum {string} + */ +export type EngineType = 'V2' | 'V3'; + /** * Defines values for AzureSkuName. * Possible values include: '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_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No - * SLA)_Standard_D11_v2', 'Standard_E2a_v4', 'Standard_E4a_v4', 'Standard_E8a_v4', - * 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', + * SLA)_Standard_D11_v2', 'Standard_E64i_v3', 'Standard_E2a_v4', 'Standard_E4a_v4', + * 'Standard_E8a_v4', 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS', * 'Standard_E16as_v4+3TB_PS', 'Standard_E16as_v4+4TB_PS', 'Dev(No SLA)_Standard_E2a_v4' * @readonly * @enum {string} */ -export type AzureSkuName = '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_L8s' | 'Standard_L16s' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_L4s' | 'Dev(No SLA)_Standard_D11_v2' | 'Standard_E2a_v4' | 'Standard_E4a_v4' | 'Standard_E8a_v4' | 'Standard_E16a_v4' | 'Standard_E8as_v4+1TB_PS' | 'Standard_E8as_v4+2TB_PS' | 'Standard_E16as_v4+3TB_PS' | 'Standard_E16as_v4+4TB_PS' | 'Dev(No SLA)_Standard_E2a_v4'; +export type AzureSkuName = '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_L8s' | 'Standard_L16s' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_L4s' | 'Dev(No SLA)_Standard_D11_v2' | 'Standard_E64i_v3' | 'Standard_E2a_v4' | 'Standard_E4a_v4' | 'Standard_E8a_v4' | 'Standard_E16a_v4' | 'Standard_E8as_v4+1TB_PS' | 'Standard_E8as_v4+2TB_PS' | 'Standard_E16as_v4+3TB_PS' | 'Standard_E16as_v4+4TB_PS' | 'Dev(No SLA)_Standard_E2a_v4'; /** * Defines values for AzureSkuTier. @@ -1433,11 +1474,12 @@ export type BlobStorageEventType = 'Microsoft.Storage.BlobCreated' | 'Microsoft. /** * Defines values for IdentityType. - * Possible values include: 'None', 'SystemAssigned' + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, + * UserAssigned' * @readonly * @enum {string} */ -export type IdentityType = 'None' | 'SystemAssigned'; +export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned'; /** * Defines values for DatabasePrincipalRole. diff --git a/sdk/kusto/arm-kusto/src/models/mappers.ts b/sdk/kusto/arm-kusto/src/models/mappers.ts index 398f668f590b..cbbf402b0eea 100644 --- a/sdk/kusto/arm-kusto/src/models/mappers.ts +++ b/sdk/kusto/arm-kusto/src/models/mappers.ts @@ -111,7 +111,6 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }, keyVersion: { - required: true, serializedName: "keyVersion", type: { name: "String" @@ -123,6 +122,12 @@ export const KeyVaultProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + userIdentity: { + serializedName: "userIdentity", + type: { + name: "String" + } } } } @@ -402,11 +407,7 @@ export const Identity: msRest.CompositeMapper = { required: true, serializedName: "type", type: { - name: "Enum", - allowedValues: [ - "None", - "SystemAssigned" - ] + name: "String" } }, userAssignedIdentities: { @@ -620,6 +621,12 @@ export const Cluster: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + engineType: { + serializedName: "properties.engineType", + type: { + name: "String" + } } } } @@ -765,6 +772,12 @@ export const ClusterUpdate: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + engineType: { + serializedName: "properties.engineType", + type: { + name: "String" + } } } } @@ -1347,6 +1360,13 @@ export const EventHubDataConnection: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } } } } @@ -1410,6 +1430,13 @@ export const IotHubDataConnection: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } } } } @@ -1474,6 +1501,13 @@ export const EventGridDataConnection: msRest.CompositeMapper = { type: { name: "String" } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } } } }