Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
70 changes: 16 additions & 54 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4158,48 +4158,22 @@ export interface TdeCertificate extends ProxyResource {

/**
* @class
* Initializes a new instance of the ManagedInstanceKey class.
* Initializes a new instance of the InterfaceEndpointProfile class.
* @constructor
* A managed instance key.
* A interface endpoint profile resource.
*
* @member {string} [kind] Kind of encryption protector. This is metadata used
* for the Azure portal experience.
* @member {string} serverKeyType The key type like 'ServiceManaged',
* 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
* @member {string} [uri] The URI of the key. If the ServerKeyType is
* AzureKeyVault, then the URI is required.
* @member {string} [thumbprint] Thumbprint of the key.
* @member {date} [creationDate] The key creation date.
*/
export interface ManagedInstanceKey extends ProxyResource {
readonly kind?: string;
serverKeyType: string;
uri?: string;
readonly thumbprint?: string;
readonly creationDate?: Date;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceEncryptionProtector class.
* @constructor
* The managed instance encryption protector.
*
* @member {string} [kind] Kind of encryption protector. This is metadata used
* for the Azure portal experience.
* @member {string} [serverKeyName] The name of the managed instance key.
* @member {string} serverKeyType The encryption protector type like
* 'ServiceManaged', 'AzureKeyVault'. Possible values include:
* 'ServiceManaged', 'AzureKeyVault'
* @member {string} [uri] The URI of the server key.
* @member {string} [thumbprint] Thumbprint of the server key.
* @member {string} virtualNetworkSubnetId The ARM resource id of the virtual
* network subnet.
* @member {string} [privateIp] The Private ip associated with the interface
* endpoint profile
* @member {string} [state] State of the interface endpoint profile. Possible
* values include: 'Initializing', 'InProgress', 'Ready', 'Failed', 'Deleting',
* 'Unknown'
*/
export interface ManagedInstanceEncryptionProtector extends ProxyResource {
readonly kind?: string;
serverKeyName?: string;
serverKeyType: string;
readonly uri?: string;
readonly thumbprint?: string;
export interface InterfaceEndpointProfile extends ProxyResource {
virtualNetworkSubnetId: string;
readonly privateIp?: string;
readonly state?: string;
}


Expand Down Expand Up @@ -4804,24 +4778,12 @@ export interface BackupShortTermRetentionPolicyListResult extends Array<BackupSh

/**
* @class
* Initializes a new instance of the ManagedInstanceKeyListResult class.
* @constructor
* A list of managed instance keys.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface ManagedInstanceKeyListResult extends Array<ManagedInstanceKey> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceEncryptionProtectorListResult class.
* Initializes a new instance of the InterfaceEndpointProfilesListResult class.
* @constructor
* A list of managed instance encryption protectors.
* A list of interface endpoint profiles.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface ManagedInstanceEncryptionProtectorListResult extends Array<ManagedInstanceEncryptionProtector> {
export interface InterfaceEndpointProfilesListResult extends Array<InterfaceEndpointProfile> {
readonly nextLink?: string;
}
6 changes: 2 additions & 4 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ exports.ManagedInstancePairInfo = require('./managedInstancePairInfo');
exports.InstanceFailoverGroup = require('./instanceFailoverGroup');
exports.BackupShortTermRetentionPolicy = require('./backupShortTermRetentionPolicy');
exports.TdeCertificate = require('./tdeCertificate');
exports.ManagedInstanceKey = require('./managedInstanceKey');
exports.ManagedInstanceEncryptionProtector = require('./managedInstanceEncryptionProtector');
exports.InterfaceEndpointProfile = require('./interfaceEndpointProfile');
exports.RecoverableDatabaseListResult = require('./recoverableDatabaseListResult');
exports.RestorableDroppedDatabaseListResult = require('./restorableDroppedDatabaseListResult');
exports.ServerListResult = require('./serverListResult');
Expand Down Expand Up @@ -213,5 +212,4 @@ exports.ElasticPoolOperationListResult = require('./elasticPoolOperationListResu
exports.VulnerabilityAssessmentScanRecordListResult = require('./vulnerabilityAssessmentScanRecordListResult');
exports.InstanceFailoverGroupListResult = require('./instanceFailoverGroupListResult');
exports.BackupShortTermRetentionPolicyListResult = require('./backupShortTermRetentionPolicyListResult');
exports.ManagedInstanceKeyListResult = require('./managedInstanceKeyListResult');
exports.ManagedInstanceEncryptionProtectorListResult = require('./managedInstanceEncryptionProtectorListResult');
exports.InterfaceEndpointProfilesListResult = require('./interfaceEndpointProfilesListResult');
102 changes: 102 additions & 0 deletions lib/services/sqlManagement2/lib/models/interfaceEndpointProfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* A interface endpoint profile resource.
*
* @extends models['ProxyResource']
*/
class InterfaceEndpointProfile extends models['ProxyResource'] {
/**
* Create a InterfaceEndpointProfile.
* @member {string} virtualNetworkSubnetId The ARM resource id of the virtual
* network subnet.
* @member {string} [privateIp] The Private ip associated with the interface
* endpoint profile
* @member {string} [state] State of the interface endpoint profile. Possible
* values include: 'Initializing', 'InProgress', 'Ready', 'Failed',
* 'Deleting', 'Unknown'
*/
constructor() {
super();
}

/**
* Defines the metadata of InterfaceEndpointProfile
*
* @returns {object} metadata of InterfaceEndpointProfile
*
*/
mapper() {
return {
required: false,
serializedName: 'InterfaceEndpointProfile',
type: {
name: 'Composite',
className: 'InterfaceEndpointProfile',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
virtualNetworkSubnetId: {
required: true,
serializedName: 'properties.virtualNetworkSubnetId',
type: {
name: 'String'
}
},
privateIp: {
required: false,
readOnly: true,
serializedName: 'properties.privateIp',
type: {
name: 'String'
}
},
state: {
required: false,
readOnly: true,
serializedName: 'properties.state',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = InterfaceEndpointProfile;
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* A list of interface endpoint profiles.
*/
class InterfaceEndpointProfilesListResult extends Array {
/**
* Create a InterfaceEndpointProfilesListResult.
* @member {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of InterfaceEndpointProfilesListResult
*
* @returns {object} metadata of InterfaceEndpointProfilesListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'InterfaceEndpointProfilesListResult',
type: {
name: 'Composite',
className: 'InterfaceEndpointProfilesListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'InterfaceEndpointProfileElementType',
type: {
name: 'Composite',
className: 'InterfaceEndpointProfile'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = InterfaceEndpointProfilesListResult;
Loading