Skip to content
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
6 changes: 3 additions & 3 deletions sdk/hanaonazure/arm-hanaonazure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "HanaManagementClient Library with typescript type definitions for node.js and browser.",
"version": "2.2.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.0",
"@azure/ms-rest-js": "^2.0.3",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@

export {
BaseResource,
CloudError,
Disk,
ErrorResponse,
HanaInstance,
HanaInstancesListResult,
HardwareProfile,
IpAddress,
MonitoringDetails,
NetworkProfile,
OSProfile,
Resource,
Expand Down
9 changes: 9 additions & 0 deletions sdk/hanaonazure/arm-hanaonazure/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,15 @@ export interface SapMonitor extends Resource {
* Database password of the HANA instance.
*/
hanaDbPassword?: string;
/**
* KeyVault URL link to the password for the HANA database.
*/
hanaDbPasswordKeyVaultUrl?: string;
/**
* MSI ID passed by customer which has access to customer's KeyVault and to be assigned to the
* Collector VM.
*/
hanaDbCredentialsMsiId?: string;
/**
* State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating',
* 'Updating', 'Failed', 'Succeeded', 'Deleting', 'Migrating'
Expand Down
12 changes: 12 additions & 0 deletions sdk/hanaonazure/arm-hanaonazure/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,18 @@ export const SapMonitor: msRest.CompositeMapper = {
name: "String"
}
},
hanaDbPasswordKeyVaultUrl: {
serializedName: "properties.hanaDbPasswordKeyVaultUrl",
type: {
name: "String"
}
},
hanaDbCredentialsMsiId: {
serializedName: "properties.hanaDbCredentialsMsiId",
type: {
name: "String"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
Expand Down
64 changes: 0 additions & 64 deletions sdk/hanaonazure/arm-hanaonazure/src/operations/hanaInstances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,6 @@ export class HanaInstances {
.then(lroPoller => lroPoller.pollUntilFinished());
}

/**
* The operation to add a monitor to an SAP HANA instance.
* @param resourceGroupName Name of the resource group.
* @param hanaInstanceName Name of the SAP HANA on Azure instance.
* @param monitoringParameter Request body that only contains monitoring attributes
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
enableMonitoring(resourceGroupName: string, hanaInstanceName: string, monitoringParameter: Models.MonitoringDetails, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
return this.beginEnableMonitoring(resourceGroupName,hanaInstanceName,monitoringParameter,options)
.then(lroPoller => lroPoller.pollUntilFinished());
}

/**
* Creates a SAP HANA instance for the specified subscription, resource group, and instance name.
* @summary Creates a SAP HANA instance.
Expand Down Expand Up @@ -325,26 +312,6 @@ export class HanaInstances {
options);
}

/**
* The operation to add a monitor to an SAP HANA instance.
* @param resourceGroupName Name of the resource group.
* @param hanaInstanceName Name of the SAP HANA on Azure instance.
* @param monitoringParameter Request body that only contains monitoring attributes
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
*/
beginEnableMonitoring(resourceGroupName: string, hanaInstanceName: string, monitoringParameter: Models.MonitoringDetails, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
resourceGroupName,
hanaInstanceName,
monitoringParameter,
options
},
beginEnableMonitoringOperationSpec,
options);
}

/**
* Gets a list of SAP HANA instances in the specified subscription. The operations returns various
* properties of each SAP HANA on Azure instance.
Expand Down Expand Up @@ -644,37 +611,6 @@ const beginShutdownOperationSpec: msRest.OperationSpec = {
serializer
};

const beginEnableMonitoringOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/monitoring",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.hanaInstanceName
],
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "monitoringParameter",
mapper: {
...Mappers.MonitoringDetails,
required: true
}
},
responses: {
200: {},
202: {},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};

const listNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
Expand Down
2 changes: 1 addition & 1 deletion sdk/hanaonazure/arm-hanaonazure/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es6"],
"lib": ["es6", "dom"],
"declaration": true,
"outDir": "./esm",
"importHelpers": true
Expand Down