Skip to content

Commit

Permalink
Generated from 5f0cd6bf89252c1797aad2f7f93195da57f5b7aa (#2309)
Browse files Browse the repository at this point in the history
Install recommended VSCode extensions and re-save files
  • Loading branch information
AutorestCI authored Apr 17, 2019
1 parent 1916ada commit ca0ae3c
Show file tree
Hide file tree
Showing 15 changed files with 1,928 additions and 23 deletions.
2 changes: 1 addition & 1 deletion sdk/hanaonazure/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 sdk/hanaonazure/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/sdk/hanaonazure/arm-hanaonazure/README.png)
45 changes: 45 additions & 0 deletions sdk/hanaonazure/arm-hanaonazure/lib/hanaManagementClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* 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.
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { HanaManagementClientContext } from "./hanaManagementClientContext";


class HanaManagementClient extends HanaManagementClientContext {
// Operation groups
operations: operations.Operations;
hanaInstances: operations.HanaInstances;

/**
* Initializes a new instance of the HanaManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Subscription ID which uniquely identify Microsoft Azure subscription. The
* subscription ID forms part of the URI for every service call.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HanaManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.hanaInstances = new operations.HanaInstances(this);
}
}

// Operation Specifications

export {
HanaManagementClient,
HanaManagementClientContext,
Models as HanaManagementModels,
Mappers as HanaManagementMappers
};
export * from "./operations";
63 changes: 63 additions & 0 deletions sdk/hanaonazure/arm-hanaonazure/lib/hanaManagementClientContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* 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.
*/

import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

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

export class HanaManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the HanaManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Subscription ID which uniquely identify Microsoft Azure subscription. The
* subscription ID forms part of the URI for every service call.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HanaManagementClientOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}

if (!options) {
options = {};
}
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2017-11-03-preview';
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) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
}
27 changes: 27 additions & 0 deletions sdk/hanaonazure/arm-hanaonazure/lib/models/hanaInstancesMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* 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 {
HanaInstancesListResult,
HanaInstance,
Resource,
BaseResource,
HardwareProfile,
StorageProfile,
Disk,
OSProfile,
NetworkProfile,
IpAddress,
ErrorResponse,
Tags,
CloudError,
MonitoringDetails
} from "../models/mappers";

Loading

0 comments on commit ca0ae3c

Please sign in to comment.