-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 5f0cd6bf89252c1797aad2f7f93195da57f5b7aa (#2309)
Install recommended VSCode extensions and re-save files
- Loading branch information
1 parent
1916ada
commit ca0ae3c
Showing
15 changed files
with
1,928 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
sdk/hanaonazure/arm-hanaonazure/lib/hanaManagementClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
63
sdk/hanaonazure/arm-hanaonazure/lib/hanaManagementClientContext.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
sdk/hanaonazure/arm-hanaonazure/lib/models/hanaInstancesMappers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
|
Oops, something went wrong.