Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR @azure/arm-kusto] [Hub Generated] Review request for Microsoft.Kusto to add version stable/2020-09-18 #11762

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/kusto/arm-kusto/src/kustoManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ 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";
this.requestContentType = "application/json; charset=utf-8";
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;
}
}
Expand Down
60 changes: 51 additions & 9 deletions sdk/kusto/arm-kusto/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -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;
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
46 changes: 40 additions & 6 deletions sdk/kusto/arm-kusto/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export const KeyVaultProperties: msRest.CompositeMapper = {
}
},
keyVersion: {
required: true,
serializedName: "keyVersion",
type: {
name: "String"
Expand All @@ -123,6 +122,12 @@ export const KeyVaultProperties: msRest.CompositeMapper = {
type: {
name: "String"
}
},
userIdentity: {
serializedName: "userIdentity",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -402,11 +407,7 @@ export const Identity: msRest.CompositeMapper = {
required: true,
serializedName: "type",
type: {
name: "Enum",
allowedValues: [
"None",
"SystemAssigned"
]
name: "String"
}
},
userAssignedIdentities: {
Expand Down Expand Up @@ -620,6 +621,12 @@ export const Cluster: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
engineType: {
serializedName: "properties.engineType",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -765,6 +772,12 @@ export const ClusterUpdate: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
engineType: {
serializedName: "properties.engineType",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1347,6 +1360,13 @@ export const EventHubDataConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1410,6 +1430,13 @@ export const IotHubDataConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1474,6 +1501,13 @@ export const EventGridDataConnection: msRest.CompositeMapper = {
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
type: {
name: "String"
}
}
}
}
Expand Down