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
2 changes: 1 addition & 1 deletion packages/@azure/arm-hanaonazure/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 4 additions & 7 deletions packages/@azure/arm-hanaonazure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for HanaManagementClient.

### How to Install

```
```bash
npm install @azure/arm-hanaonazure
```

Expand All @@ -19,13 +19,13 @@ npm install @azure/arm-hanaonazure

##### Install @azure/ms-rest-nodeauth

```
```bash
npm install @azure/ms-rest-nodeauth
```

##### Sample code

```ts
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
Expand All @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {

##### Install @azure/ms-rest-browserauth

```
```bash
npm install @azure/ms-rest-browserauth
```

Expand Down Expand Up @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-hanaonazure%2FREADME.png)
2 changes: 2 additions & 0 deletions packages/@azure/arm-hanaonazure/lib/hanaManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class HanaManagementClient extends HanaManagementClientContext {
// Operation groups
operations: operations.Operations;
hanaInstances: operations.HanaInstances;
monitoring: operations.Monitoring;

/**
* Initializes a new instance of the HanaManagementClient class.
Expand All @@ -31,6 +32,7 @@ class HanaManagementClient extends HanaManagementClientContext {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.hanaInstances = new operations.HanaInstances(this);
this.monitoring = new operations.Monitoring(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-hanaonazure";
const packageVersion = "0.1.0";
const packageVersion = "1.1.0";

export class HanaManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export {
NetworkProfile,
IpAddress,
ErrorResponse,
Tags,
CloudError
} from "../models/mappers";

110 changes: 104 additions & 6 deletions packages/@azure/arm-hanaonazure/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export interface HardwareProfile {
/**
* @member {HanaInstanceSizeNamesEnum} [hanaInstanceSize] Specifies the HANA
* instance SKU. Possible values include: 'S72m', 'S144m', 'S72', 'S144',
* 'S192', 'S192m', 'S192xm', 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m',
* 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m'
* 'S192', 'S192m', 'S192xm', 'S96', 'S384', 'S384m', 'S384xm', 'S384xxm',
* 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m'
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -158,7 +158,7 @@ export interface OSProfile {
/**
* @interface
* An interface representing IpAddress.
* Specifies the IP address of the network interaface.
* Specifies the IP address of the network interface.
*
*/
export interface IpAddress {
Expand Down Expand Up @@ -234,6 +234,19 @@ export interface HanaInstance extends Resource {
* the server.**
*/
readonly powerState?: HanaInstancePowerStateEnum;
/**
* @member {string} [proximityPlacementGroup] Resource proximity placement
* group
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
readonly proximityPlacementGroup?: string;
/**
* @member {string} [hwRevision] Hardware revision of a HANA instance
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
readonly hwRevision?: string;
}

/**
Expand Down Expand Up @@ -327,6 +340,64 @@ export interface ErrorResponse {
message?: string;
}

/**
* @interface
* An interface representing Tags.
* Tags field of the HANA instance.
*
*/
export interface Tags {
/**
* @member {{ [propertyName: string]: string }} [tags] Tags field of the HANA
* instance.
*/
tags?: { [propertyName: string]: string };
}

/**
* @interface
* An interface representing MonitoringDetails.
* Details needed to monitor a Hana Instance
*
*/
export interface MonitoringDetails {
/**
* @member {string} [hanaVnet] ARM ID of an Azure Vnet with access to the
* HANA instance.
*/
hanaVnet?: string;
/**
* @member {string} [hanaHostname] Hostname of the HANA Instance blade.
*/
hanaHostname?: string;
/**
* @member {string} [hanaInstanceNum] A number between 00 and 99, stored as a
* string to maintain leading zero.
*/
hanaInstanceNum?: string;
/**
* @member {HanaDatabaseContainersEnum} [dbContainer] Either single or
* multiple depending on the use of MDC(Multiple Database Containers).
* Possible values include: 'single', 'multiple'. Default value: 'single' .
*/
dbContainer?: HanaDatabaseContainersEnum;
/**
* @member {string} [hanaDatabase] Name of the database itself. It only
* needs to be specified if using MDC
*/
hanaDatabase?: string;
/**
* @member {string} [hanaDbUsername] Username for the HANA database to login
* to for monitoring
*/
hanaDbUsername?: string;
/**
* @member {string} [hanaDbPassword] Password for the HANA database to login
* for monitoring
*/
hanaDbPassword?: string;
}

/**
* @interface
* An interface representing HanaManagementClientOptions.
Expand Down Expand Up @@ -374,12 +445,12 @@ export type HanaHardwareTypeNamesEnum = 'Cisco_UCS' | 'HPE';

/**
* Defines values for HanaInstanceSizeNamesEnum.
* Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S384',
* 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m'
* Possible values include: 'S72m', 'S144m', 'S72', 'S144', 'S192', 'S192m', 'S192xm', 'S96',
* 'S384', 'S384m', 'S384xm', 'S384xxm', 'S576m', 'S576xm', 'S768', 'S768m', 'S768xm', 'S960m'
* @readonly
* @enum {string}
*/
export type HanaInstanceSizeNamesEnum = 'S72m' | 'S144m' | 'S72' | 'S144' | 'S192' | 'S192m' | 'S192xm' | 'S384' | 'S384m' | 'S384xm' | 'S384xxm' | 'S576m' | 'S576xm' | 'S768' | 'S768m' | 'S768xm' | 'S960m';
export type HanaInstanceSizeNamesEnum = 'S72m' | 'S144m' | 'S72' | 'S144' | 'S192' | 'S192m' | 'S192xm' | 'S96' | 'S384' | 'S384m' | 'S384xm' | 'S384xxm' | 'S576m' | 'S576xm' | 'S768' | 'S768m' | 'S768xm' | 'S960m';

/**
* Defines values for HanaInstancePowerStateEnum.
Expand All @@ -389,6 +460,14 @@ export type HanaInstanceSizeNamesEnum = 'S72m' | 'S144m' | 'S72' | 'S144' | 'S19
*/
export type HanaInstancePowerStateEnum = 'starting' | 'started' | 'stopping' | 'stopped' | 'restarting' | 'unknown';

/**
* Defines values for HanaDatabaseContainersEnum.
* Possible values include: 'single', 'multiple'
* @readonly
* @enum {string}
*/
export type HanaDatabaseContainersEnum = 'single' | 'multiple';

/**
* Contains response data for the list operation.
*/
Expand Down Expand Up @@ -465,6 +544,25 @@ export type HanaInstancesGetResponse = HanaInstance & {
};
};

/**
* Contains response data for the update operation.
*/
export type HanaInstancesUpdateResponse = HanaInstance & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: HanaInstance;
};
};

/**
* Contains response data for the listNext operation.
*/
Expand Down
88 changes: 88 additions & 0 deletions packages/@azure/arm-hanaonazure/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,20 @@ export const HanaInstance: msRest.CompositeMapper = {
type: {
name: "String"
}
},
proximityPlacementGroup: {
readOnly: true,
serializedName: "properties.proximityPlacementGroup",
type: {
name: "String"
}
},
hwRevision: {
readOnly: true,
serializedName: "properties.hwRevision",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -367,6 +381,80 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};

export const Tags: msRest.CompositeMapper = {
serializedName: "Tags",
type: {
name: "Composite",
className: "Tags",
modelProperties: {
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
}
}
}
};

export const MonitoringDetails: msRest.CompositeMapper = {
serializedName: "MonitoringDetails",
type: {
name: "Composite",
className: "MonitoringDetails",
modelProperties: {
hanaVnet: {
serializedName: "hanaVnet",
type: {
name: "String"
}
},
hanaHostname: {
serializedName: "hanaHostname",
type: {
name: "String"
}
},
hanaInstanceNum: {
serializedName: "hanaInstanceNum",
type: {
name: "String"
}
},
dbContainer: {
serializedName: "dbContainer",
defaultValue: 'single',
type: {
name: "String"
}
},
hanaDatabase: {
serializedName: "hanaDatabase",
type: {
name: "String"
}
},
hanaDbUsername: {
serializedName: "hanaDbUsername",
type: {
name: "String"
}
},
hanaDbPassword: {
serializedName: "hanaDbPassword",
type: {
name: "String"
}
}
}
}
};

export const OperationList: msRest.CompositeMapper = {
serializedName: "OperationList",
type: {
Expand Down
15 changes: 15 additions & 0 deletions packages/@azure/arm-hanaonazure/lib/models/monitoringMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* 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.
*/

export {
MonitoringDetails,
CloudError
} from "../models/mappers";

Loading